windows-spawn: Relicense under LGPLv2+.
[gnulib.git] / ChangeLog
blob19fd55077172b41f02c980753a28734a96f680d3
1 2020-12-10  Bruno Haible  <bruno@clisp.org>
3         windows-spawn: Relicense under LGPLv2+.
4         * modules/windows-spawn (License): Change to LGPLv2+.
6 2020-12-10  Bruno Haible  <bruno@clisp.org>
8         execute, spawn-pipe: Fix memory leak on native Windows.
9         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
10         * lib/windows-spawn.c: Don't include xalloc.h.
11         (quoted_arg_length, quoted_arg_string): New functions, extracted from
12         prepare_spawn.
13         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
14         elements of *new_argv together.
15         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
16         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
17         * lib/os2-spawn.c: Don't include xalloc.h.
18         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
19         elements of *new_argv together.
20         * lib/execute.c: Include xalloc.h.
21         (execute): Check return value of prepare_spawn. Free the memory
22         allocated by prepare_spawn.
23         * modules/execute (Depends-on): Add xalloc-die.
24         * lib/spawn-pipe.c: Include xalloc.h.
25         (create_pipe): Check return value of prepare_spawn. Free the memory
26         allocated by prepare_spawn.
27         * modules/spawn-pipe (Depends-on): Add xalloc-die.
29 2020-12-10  Bruno Haible  <bruno@clisp.org>
31         findprog-in: Relicense under LGPLv2+.
32         Paul Smith's approval is in
33         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
34         * modules/findprog-in (License): Change to LGPLv2+.
36 2020-12-10  Bruno Haible  <bruno@clisp.org>
38         findprog-in: Don't exit upon out-of-memory.
39         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
40         code.
41         * lib/findprog-in.c: Don't include xalloc.h.
42         (find_in_given_path): Call concatenated_filename, not
43         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
44         return NULL with errno set.
45         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
46         concat-filename, strdup-posix, malloc-posix.
48 2020-12-09  Bruno Haible  <bruno@clisp.org>
50         fmaf: Work around a bug on FreeBSD 12.2/arm.
51         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
52         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
54 2020-12-09  Bruno Haible  <bruno@clisp.org>
56         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
57         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
58         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
59         * lib/glthread/threadlib.c: Include <errno.h>.
60         (glthread_in_use): For FreeBSD, provide an alternative implementation
61         that uses pthread_key_create.
63 2020-12-09  Bruno Haible  <bruno@clisp.org>
65         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
66         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
67         not 'isnan'.
69 2020-12-08  Bruno Haible  <bruno@clisp.org>
71         std-gnu11: Make compatible with Autoconf 2.70.
72         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
73         use.
75 2020-12-08  Bruno Haible  <bruno@clisp.org>
77         argp: Avoid undefined behaviour when invoking qsort().
78         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
79         Reported by Jeffrey Walton <noloader@gmail.com> in
80         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
81         * lib/argp-help.c (group_cmp): Remove third argument.
82         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
83         upon hol_cluster_cmp.
84         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
85         (hol_entry_cmp): Rewritten to implement a total order.
87 2020-12-08  Bruno Haible  <bruno@clisp.org>
89         argp: Improve comments.
90         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
91         null pointer.
92         (struct hol_entry): Fix comment regarding sort order of group.
93         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
94         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
95         (hol_cluster_is_child, argp_hol): Move functions.
96         (HOL_ENTRY_PTRCMP): Remove unused macro.
98 2020-12-08  Bruno Haible  <bruno@clisp.org>
100         argp: Don't pass invalid arguments to isspace() and isalnum().
101         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
102         before passing it to isspace() or isalnum().
104 2020-12-08  Bruno Haible  <bruno@clisp.org>
106         argp: Don't rely on undefined behaviour of _tolower().
107         Patch by Eric Blake
108         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
109         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
110         not upper-case.  Pass correct range to tolower.
112 2020-12-07  Bruno Haible  <bruno@clisp.org>
114         unicodeio: Fix wrong result on FreeBSD.
115         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
116         characters on all platforms.
118 2020-12-07  Bruno Haible  <bruno@clisp.org>
120         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
121         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
122         FreeBSD systems.
124 2020-12-07  Bruno Haible  <bruno@clisp.org>
126         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
127         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
128         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
129         trivially of sbrk is not available.
130         * doc/glibc-functions/sbrk.texi: Mention that the function does not
131         exist in FreeBSD 12.2/arm64.
132         * doc/glibc-functions/brk.texi: Likewise.
134 2020-12-07  Bruno Haible  <bruno@clisp.org>
136         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
137         Suggested by Zack Weinberg in
138         <https://savannah.gnu.org/support/?110294>.
139         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
140         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
142 2020-12-07  Bruno Haible  <bruno@clisp.org>
144         Tweak the Windows oldnames workaround.
145         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
146         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
147         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
148         always.
149         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
150         * lib/stdlib.in.h (putenv): Likewise.
152 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
154         doc: fix flat address space discussion
155         * doc/gnulib-readme.texi (Other portability assumptions):
156         Move the all-bits-zero assumption outside the flat address space
157         section, since the two issues are independent.
159         doc: document -static-libubsan more
160         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
161         -static-libubsan a bit more.  Mostly cons.
163 2020-12-06  Bruno Haible  <bruno@clisp.org>
165         doc: Add more details regarding the undefined behaviour sanitizer.
166         * doc/gnulib-readme.texi (High Quality): Describe
167         -fsanitize-undefined-trap-on-error better.
169 2020-12-06  Bruno Haible  <bruno@clisp.org>
171         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
172         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
173         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
174         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
175         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
176         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
177         a preprocessor #define.
178         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
179         * lib/search.in.h (lfind, lsearch): Likewise.
180         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
181         Likewise.
182         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
183         * lib/string.in.h (memccpy, strdup): Likewise.
184         * lib/sys_stat.in.h (chmod, umask): Likewise.
185         * lib/time.in.h (tzset): Likewise.
186         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
187         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
188         read, rmdir, swab, unlink, write): Likewise.
189         * lib/utime.in.h (utime): Likewise.
190         * lib/wchar.in.h (wcsdup): Likewise.
191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
192         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
193         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
195         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
196         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
197         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
198         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
200         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
201         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
202         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
203         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
204         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
206 2020-12-06  Bruno Haible  <bruno@clisp.org>
208         doc: Mention some missing function declarations.
209         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
210         AIX.
211         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
212         FreeBSD.
213         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
214         Cygwin.
215         * doc/pastposix-functions/fcvt.texi: Likewise.
216         * doc/pastposix-functions/gcvt.texi: Likewise.
218 2020-12-06  Bruno Haible  <bruno@clisp.org>
220         doc: Tweak example.
221         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
222         'print'.
224 2020-12-06  Bruno Haible  <bruno@clisp.org>
226         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
227         * tests/test-filenamecat.c: Include idx.h.
228         (main): Mark prefixlen as nonnegative.
229         * modules/filenamecat-tests (Depends-on): Add idx.
231 2020-12-06  Bruno Haible  <bruno@clisp.org>
233         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
234         * lib/time_rz.c: Include idx.h.
235         (save_abbr): Mark zone_size as nonnegative.
236         * modules/time_rz (Depends-on): Add idx.
238 2020-12-06  Bruno Haible  <bruno@clisp.org>
240         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
241         * lib/parse-datetime.y: Include idx.h.
242         (textint): Mark digits as nonnegative.
243         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
244         dsts_seen, times_seen, zones_seen as nonnegative.
245         (lookup_word): Mark wordlen as nonnegative.
246         (yylex): Mark count as nonnegative.
247         (parse_datetime2): Mark tzsize as nonnegative.
248         * modules/parse-datetime (Depends-on): Add idx.
250 2020-12-06  Bruno Haible  <bruno@clisp.org>
252         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
253         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
254         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
255         nonnegative.
256         * modules/fnmatch (Depends-on): Add idx.
258 2020-12-06  Bruno Haible  <bruno@clisp.org>
260         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
261         * lib/c-stack.c: Include idx.h.
262         (die): Mark buflen as nonnegative.
263         * modules/c-stack (Depends-on): Add idx.
265 2020-12-06  Bruno Haible  <bruno@clisp.org>
267         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
268         * lib/backupfile.c: Include idx.h.
269         (numbered_backup): Mark base_offset as nonnegative.
270         (backupfile_internal): Likewise.
271         * modules/backup-rename (Depends-on): Add idx.
272         * modules/backupfile (Depends-on): Likewise.
274 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
276         doc: fix curved quotes issue
277         * doc/gnulib.texi: Set txicodequoteundirected and
278         txicodequotebacktick so that ` and ' in examples do not generate
279         curved single quotes that do the wrong thing when cut and pasted.
281         doc: mention static and dynamic checking
282         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
283         for static and dynamic checking.
285         intprops: Add INT_ADD_OK etc.
286         * doc/intprops.texi (Checking Integer Overflow): New section.
287         * lib/intprops.h: From a suggestion by Bruno Haible in:
288         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
289         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
291         doc: move exotic platfroms to Target Platforms
292         * doc/gnulib-intro.texi (Supported Platforms)
293         (Formerly Supported Platforms, Unsupported Platforms):
294         New subsections, split off from Target Platforms.
295         (Unsupported Platforms): Move the exotic-platform stuff here ...
296         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
297         section.
299         doc: mention intptr_t etc. and IBM i
300         * doc/gnulib-readme.texi (Other portability assumptions):
301         Mention intptr_t and uintptr_t, and that arithmetic on them
302         works in the usual way.
303         (Exotic platforms): New section, containing material from
304         the old 'Integer Portability' section.  Also mention IBM i.
305         * doc/intprops.texi (Wraparound Arithmetic):
306         Say that the macros work on unsigned integers too.
307         (Integer Portability): Remove.
309 2020-12-04  Bruno Haible  <bruno@clisp.org>
311         utime: Fix a test failure on macOS 10.13.
312         Reported by Martin Storsjö <martin@martin.st> in
313         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
314         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
315         slashes on files.
316         * lib/utime.c (utime): Add alternative implementation for Unix
317         platforms.
318         * modules/utime (Depends-on): Add stat.
319         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
320         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
321         trailing-slash bug.
322         * doc/posix-functions/open.texi: Likewise.
323         * doc/posix-functions/stat.texi: Likewise.
324         * doc/posix-functions/symlink.texi: Likewise.
326 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
328         intprops: update doc and mention Unisys
329         * doc/gnulib-readme.texi (Other portability assumptions):
330         Also mention ptrdiff_t when talking about widths and overflow.
331         * doc/intprops.texi (Integer Properties): Summarize new section.
332         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
333         evaluates its argument.
334         (Integer Bounds): Fix typo.
335         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
336         Document that the _WRAPV macros now support pointers to unsigned
337         integers.
338         (Integer Range Overflow): Update SEI CERT citation.
339         (Integer Portability): New subsection, which mentions
340         the oddball Unisys platforms as non-Gnulib targets.
342 2020-12-03  Bruno Haible  <bruno@clisp.org>
344         idx: Clarify that idx_t always behaves like a signed type.
345         Suggested by Paul Eggert in
346         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
347         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
348         Don't test UNSIGNED_IDX_T.
350 2020-12-03  Bruno Haible  <bruno@clisp.org>
352         idx: New module.
353         * lib/idx.h: New file.
354         * modules/idx: New file.
355         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
356         ptrdiff_t.
357         * lib/canonicalize.c: Likewise.
358         * modules/canonicalize-lgpl (Depends-on): Add idx.
359         * modules/canonicalize (Depends-on): Likewise.
361 2020-12-03  Bruno Haible  <bruno@clisp.org>
363         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
364         Reported by Martin Storsjö <martin@martin.st> in
365         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
366         * tests/test-fprintf-posix3.c: Skip the test on macOS.
367         (main): Return a different exit code at each point. Allow 100 KB extra
368         memory consumption.
369         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
370         doesn't work" diagnostic.
372 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
374         canonicalize: refactor can_mode flag
375         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
376         (multiple_bits_set): ... this new static function.  Uses changed.
377         (canonicalize_filename_mode): Refactor for clarity to avoid
378         modifying the CAN_MODE argument.
380         canonicalize: prefer signed integer types
381         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
382         (seen_triple, canonicalize_filename_mode): Prefer signed to
383         unsigned types where either will do, as they avoid some glitches
384         in comparisons and can trap on overflow when debugging.
386         canonicalize: fix most of another EOVERFLOW issue
387         * lib/canonicalize.c (canonicalize_filename_mode):
388         Do not call stat if fewer than 20 symlinks have been traversed.
389         This avoids EOVERFLOW failure in the common case where there
390         are not that many symlinks, while continuing to catch loops
391         (or fail due to EOVERFLOW) in the unusual case when there
392         are many symlinks to traverse.
394         canonicalize: do not assume symlinks have st_ino
395         * lib/canonicalize.c (canonicalize_filename_mode):
396         When checking for loops, use st_dev and st_ino from the parent
397         directory not from the symlink, as pre-2017 POSIX says these
398         members are not reliable for symlinks.  Couple this with START
399         (the remaining file name to be resolved), not NAME (the whole file
400         name with START as its suffix).
401         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
403         canonicalize: fix EOVERFLOW bug
404         * lib/canonicalize.c (canonicalize_filename_mode):
405         When testing whether a directory entry is a symbolic link, or a
406         directory or other, do not use lstat or stat or
407         areadlink_with_size.  Just use areadlink, as this suffices and it
408         avoids the EOVERFLOW problem that lstat and stat have.
409         * modules/canonicalize (Depends-on): Depend on areadlink instead
410         of areadlink-with-size and stat.
412         canonicalize-lgpl: fix EOVERFLOW bug
413         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
414         (__realpath): Do not use lstat.  Just use readlink, as this
415         suffices and it avoids the EOVERFLOW problem that lstat has.
416         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
418 2020-12-02  Bruno Haible  <bruno@clisp.org>
420         strsignal-tests: Fix test failure on macOS 10.13.
421         Reported by Martin Storsjö <martin@martin.st> in
422         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
423         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
424         to be longer than the expected result.
426 2020-12-02  Bruno Haible  <bruno@clisp.org>
428         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
429         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
430         recursive self-include problem on FreeBSD 12.2 in C++ mode.
432 2020-12-02  Bruno Haible  <bruno@clisp.org>
434         spawn-pipe: Allow caller to specify directory for the subprocess.
435         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
436         Add directory argument.
437         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
438         (create_pipe): Add directory argument. If specified, resolve the program
439         file name and make it absolute, first. Pass the directory to spawnpvech
440         and posix_spawn_file_actions_addchdir.
441         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
442         argument.
443         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
444         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
445         * tests/test-spawn-pipe-main.c (test_pipe): Update.
446         * NEWS: Mention the change.
447         * lib/csharpcomp.c (compile_csharp_using_mono,
448         compile_csharp_using_sscli): Update.
449         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
450         is_gcj_43): Update.
451         * lib/javaversion.c (execute_and_read_line): Update.
452         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
453         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
455 2020-12-02  Bruno Haible  <bruno@clisp.org>
457         execute: Allow caller to specify directory for the subprocess.
458         * lib/execute.h (execute): Add directory argument.
459         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
460         (execute): Add directory argument. If specified, resolve the program
461         file name and make it absolute, first. Pass the directory to spawnpvech
462         and posix_spawn_file_actions_addchdir.
463         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
464         posix_spawn, posix_spawn_file_actions_addchdir.
465         * tests/test-execute-main.c: Add test for passing a directory.
466         * tests/test-execute-child.c: Likewise.
467         * tests/test-execute.sh: Update.
468         * modules/execute-tests (Depends-on): Add mkdir.
469         * NEWS: Mention the change.
470         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
471         * lib/csharpexec.c (execute_csharp_using_mono,
472         execute_csharp_using_sscli): Update.
473         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
474         compile_using_javac, compile_using_jikes, is_javac_present,
475         is_jikes_present): Update.
476         * lib/javaexec.c (execute_java_class): Update.
478 2020-12-01  Bruno Haible  <bruno@clisp.org>
480         vma-iter: Add support for macOS11/arm64.
481         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
482         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
483         and by Martin Storsjö <martin@martin.st> in
484         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
485         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
487 2020-12-01  Bruno Haible  <bruno@clisp.org>
489         spawn-pipe: Fix handling of OS/2 kLIBC.
490         Reported by KO Myung-Hun <komh78@gmail.com> in
491         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
492         * modules/spawn-pipe (configure.ac): Use the common idiom for
493         recognizing the OS/2 operating system.
495 2020-11-30  Bruno Haible  <bruno@clisp.org>
497         execute: Fix uninitialized use of errno.
498         * lib/execute.c (execute): Preserve errno across several system calls.
500 2020-11-30  Bruno Haible  <bruno@clisp.org>
502         access tests: Fix test failure on native Windows.
503         * tests/test-access.c (main): Change permissions of f2 file before
504         attempting to remove it.
506 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
508         faccessat: link with $(LIB_EACCESS)
509         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
510         module depends on euidaccess.
512 2020-11-30  Bruno Haible  <bruno@clisp.org>
514         execute, spawn-pipe: Make multithread-safe on native Windows.
515         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
516         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
517         (spawnpvech): New declaration.
518         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
519         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
520         (_): Remove macro.
521         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
522         undup_safer_noinherit): Remove functions.
523         (spawnpvech): New function.
524         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
525         cloexec, dup2, error, gettext-h.
526         * lib/execute.c: Include msvc-nothrow.h.
527         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
528         * lib/spawn-pipe.c: Include msvc-nothrow.h.
529         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
530         instead of _spawnvpe.
531         * modules/execute (Depends-on): Add msvc-nothrow.
532         * modules/spawn-pipe (Depends-on): Likewise.
534 2020-11-30  Bruno Haible  <bruno@clisp.org>
536         execute, spawn-pipe: Improve documentation.
537         * lib/execute.h: Describe progname, prog_path, prog_argv.
538         * lib/spawn-pipe.h: Likewise.
540 2020-11-30  Bruno Haible  <bruno@clisp.org>
542         execute tests: Add more tests.
543         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
544         inherited file descriptors >= 3.
545         * tests/test-execute-child.c: Likewise.
546         * tests/test-execute.sh: Update.
548 2020-11-30  Bruno Haible  <bruno@clisp.org>
550         havelib: Fix for non-ELF platforms (regression 2019-11-17).
551         Reported by comex <comexk@gmail.com> in
552         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
553         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
554         don't expect an ELF header.
556 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
558         bitset: use integer_length in table implementation
559         * lib/bitset/table.c (tbitset_list_reverse): Use
560         BITSET_FOR_EACH_BIT_REVERSE.
562 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
564         bitset: use integer_length in list implementation
565         * lib/bitset/list.c (lbitset_list_reverse): Use
566         BITSET_FOR_EACH_BIT_REVERSE.
568 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
570         bitset: use integer_length in vector implementation
571         * lib/bitset/array.c (vbitset_list_reverse): Use
572         BITSET_FOR_EACH_BIT_REVERSE.
574 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
576         bitset: use integer_length in array implementation
577         * modules/bitset (Depends-on): Add integer_length_l.
578         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
579         * lib/bitset/array.c (abitset_list_reverse): Use it.
581 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
583         bitset: style: use consistent names
584         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
585         and 'boffset' as 'bitoff', for consistency with the other
586         implementations.
587         * bitset/table.c (tbitset_list_reverse): Likewise.
589 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
591         bitset: style: sort header
592         * lib/bitset/base.h (bitset_ffs): Rename as...
593         (bitset_ffs_): this.
594         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
596 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
598         bitset: tests: check BITSET_FOR_EACH_REVERSE
599         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
600         Check BITSET_FOR_EACH_REVERSE.
602 2020-11-29  Bruno Haible  <bruno@clisp.org>
604         spawn-pipe tests: Fix test failure with MSVC.
605         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
606         (gl_msvc_invalid_parameter_handler): New function.
607         (main): Set a global invalid-parameter handler.
608         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
610 2020-11-29  Bruno Haible  <bruno@clisp.org>
612         execute: Add tests.
613         * tests/test-execute.sh: New file.
614         * tests/test-execute-main.c: New file.
615         * tests/test-execute-child.c: New file.
616         * modules/execute-tests: New file.
618 2020-11-29  Bruno Haible  <bruno@clisp.org>
620         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
621         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
622         works.
623         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
624         fallback implementation as on Haiku.
625         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
626         effective.
627         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
629 2020-11-29  Bruno Haible  <bruno@clisp.org>
631         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
632         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
633         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
634         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
635         * lib/windows-spawn.c: Remove modifications for kLIBC.
636         * modules/spawn-pipe (Files): Add the new files.
637         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
639 2020-11-28  Bruno Haible  <bruno@clisp.org>
641         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
642         Reported by Paul Eggert in
643         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
644         * m4/sparcv8+.m4: New file.
645         * modules/sparcv8+: New file.
646         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
648 2020-11-28  Bruno Haible  <bruno@clisp.org>
650         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
651         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
653 2020-11-28  Bruno Haible  <bruno@clisp.org>
655         windows-spawn: New module.
656         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
657         implementations.
658         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
659         * modules/windows-spawn: New file.
660         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
661         * lib/spawn-pipe.c: Likewise.
662         * modules/execute (Files): Remove lib/w32spawn.h.
663         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
664         xalloc.
665         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
666         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
667         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
668         xalloc.
669         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
671 2020-11-27  Bruno Haible  <bruno@clisp.org>
673         ssfmalloc tests: Port to macOS 11.
674         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
676 2020-11-26  Bruno Haible  <bruno@clisp.org>
678         Fix dependencies of modules that use '_exit' on native Windows.
679         Reported by Jim Meyering in
680         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
681         * modules/_Exit (Depends-on): Add unistd.
682         * modules/closein (Depends-on): Likewise.
683         * modules/closeout (Depends-on): Likewise.
684         * modules/forkpty (Depends-on): Likewise.
685         * modules/posix_spawn-internal (Depends-on): Likewise.
686         * modules/savewd (Depends-on): Likewise.
687         * modules/stat-time-tests (Depends-on): Likewise.
689 2020-11-26  Bruno Haible  <bruno@clisp.org>
691         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
692         * modules/raise-tests (Depends-on): Add unistd.
693         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
695 2020-11-25  Jim Meyering  <meyering@fb.com>
697         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
698         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
699         non-NULL, since we don't bother handing strdup failure.
701         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
702         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
703         * tests/test-raise.c: Include unistd.h.
704         (handler): Use _exit, not exit.
706 2020-11-23  Bruno Haible  <bruno@clisp.org>
708         Use the correct printf format attribute for mingw.
709         Reported by Reuben Thomas <rrt@sc3d.org> in
710         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
712         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
713         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
715         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
716         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
717         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
718         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
719         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
720         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
722         * modules/vasnprintf (Depends-on): Add stdio.
723         * lib/vasnprintf.h: Include <stdio.h>.
724         (asnprintf, vasnprintf): Use the standard printf format attribute.
726         * modules/xvasprintf (Depends-on): Add stdio.
727         * lib/xvasprintf.h: Include <stdio.h>.
728         (xasprintf, xvasprintf): Use the standard printf format attribute.
730         * modules/xprintf (Depends-on): List stdio first.
731         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
732         depends on GNULIB_VPRINTF_POSIX.
733         (xfprintf, xvfprintf): Use a printf format attribute that depends on
734         GNULIB_VFPRINTF_POSIX.
736         * modules/c-vasnprintf (Depends-on): Add stdio.
737         * lib/c-vasnprintf.h: Include <stdio.h>.
738         (c_vasnprintf): Use the standard printf format attribute.
740         * modules/c-vasprintf (Depends-on): Add stdio.
741         * lib/c-vasprintf.h: Include <stdio.h>.
742         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
744         * modules/c-vsnprintf (Depends-on): Add stdio.
745         * lib/c-vsnprintf.h: Include <stdio.h>.
746         (c_vsnprintf): Use the standard printf format attribute.
748         * modules/c-snprintf (Depends-on): Add stdio.
749         * lib/c-snprintf.h: Include <stdio.h>.
750         (c_snprintf): Use the standard printf format attribute.
752         * modules/c-xvasprintf (Depends-on): Add stdio.
753         * lib/c-xvasprintf.h: Include <stdio.h>.
754         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
756         * modules/error (Depends-on): Depend on stdio always.
757         * lib/error.h: Include <stdio.h>.
758         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
759         (error, error_at_line): Use a printf format attribute that depends on
760         GNULIB_VFPRINTF_POSIX.
761         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
762         _GL_ATTRIBUTE_FORMAT_PRINTF.
764         * modules/verror (Depends-on): Add stdio.
765         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
766         (verror, verror_at_line): Use the standard printf format attribute.
767         * lib/verror.c: Include "error.h".
769         * modules/argp (Depends-on): Add stdio.
770         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
771         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
773         * modules/libtextstyle-optional (Depends-on): Add stdio.
774         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
775         printf format attribute.
777         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
778         format attribute.
780 2020-11-23  Pádraig Brady  <P@draigBrady.com>
782         selinux-at, selinux-h: use const correct declarations
783         * lib/se-selinux.in.h: Use const for "set" functions,
784         to match current selinux, and support cleaner user code.
785         * lib/selinux-at.c: Likewise.
786         * lib/selinux-at.h: Likewise.
788 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
790         canonicalize-lgpl: fix memory leak
791         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
792         which could have occurred if BUF was so large that malloc was
793         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
794         this eliminates the need to free BUF separately.
796 2020-11-22  Bruno Haible  <bruno@clisp.org>
798         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
799         * modules/xvasprintf (Depends-on): Add xalloc.
800         * modules/pipe-filter-gi (Depends-on): Likewise.
801         * modules/execute (Depends-on): Likewise, for w32spawn.h.
802         * modules/spawn-pipe (Depends-on): Likewise.
804 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
806         bootstrap: add option hooks
807         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
808         (bootstrap_option_hook): Likewise.
809         (usage): Call bootstrap_print_option_usage_hook.
811 2020-11-22  Bruno Haible  <bruno@clisp.org>
813         argp: Don't break getprogname on non-glibc systems.
814         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
815         program_invocation_name and program_invocation_short_name.
817 2020-11-22  Bruno Haible  <bruno@clisp.org>
819         doc: Document <link.h>.
820         * doc/glibc-headers/link.texi: New file.
821         * doc/gnulib.texi: Include it.
823 2020-11-22  Bruno Haible  <bruno@clisp.org>
825         doc: Add references to the LSB.
826         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
827         * doc/posix-functions/*.texi: Likewise.
829 2020-11-22  Bruno Haible  <bruno@clisp.org>
831         doc: Fix a makeinfo warning (regression 2020-11-03).
832         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
834 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
836         parse-datetime: fix printf format typo
837         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
838         previous patch to this file.  Problem reported by Chris Elvidge in
839         <https://bugs.gnu.org/44763#32>.
841         setlocale-null-tests: work around GCC bug 44511
842         * tests/test-setlocale_null-mt-all.c:
843         * tests/test-setlocale_null-mt-one.c:
844         Ignore -Wreturn-type, to work around GCC bug 44511.
846         nl_langinfo-tests: work around GCC bug 44511
847         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
848         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
849         Problem reported for GNU grep by Andreas Schwab
850         <https://bugs.gnu.org/44535>.
852         selinux-h: add stubs for selabel_open etc.
853         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
854         because matchpathcon is deprecated in favor of selabel_open etc.,
855         so this patch adds stubs for these functions.
856         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
857         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
858         as it is needed for selabel_open and selinux/selinux.h declares
859         this type here.
860         * modules/selinux-h (Files): Add the new files.
861         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
862         (lib_SOURCES): Add se-label.in.h, se-label.c.
863         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
864         (selinux/label.h): New rule, mimicking selinux/context.h.
865         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
866         (Include): Add selinux/label.h.
868 2020-11-21  Bruno Haible  <bruno@clisp.org>
870         Update after 'test-driver' in Automake changed.
871         * build-aux/test-driver.diff: Rebase.
873 2020-11-21  Daiki Ueno  <ueno@gnu.org>
875         read-file: remove dead assignment
876         * lib/read-file.c (fread_file): Remove dead assignment when
877         RF_SENSITIVE is set, flagged by clang-analyzer.
879 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
881         bitset: tests: exercise the stats too
883         * tests/test-bitset.c: Display the stats at the end of the test.
884         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
885         last bin, display "256-..." rather that "256-511", since the last bin
886         does count item greater than or equal to 256.
888 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
890         bitset: tests: try harder to break it
891         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
892         BITSET_LIST_SIZE.
893         (main): Likewise.
894         While at it, also exercise super small bitsets.
896 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
898         bitset: use ffs where possible in the vector implementation
899         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
901 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
903         bitset: use ffs where possible in the table implementation
904         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
906 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
908         bitset: check empty and full bitsets
909         * tests/test-bitset.c (check_zero, check_ones): New.
910         (check_attributes): Use them.
912 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
914         bitset: be sure to always return a value
915         * lib/bitset/array.c (abitset_small_list): Always update *next and
916         return a value.
918 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
920         vcs-to-changelog: Expect spaces in file names
921         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
922         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
923         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
924         tabs to spaces.
925         (list_changes): Use tabs to identify file names.
927 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
929         bitset: strengthen tests
930         * tests/test-bitset.c (compare): Also check count.
931         Deal only with random values, move the one-bit tests to...
932         (check_one_bit): this new function.
933         (check_attributes): Call it.
935 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
937         bitset: fix iteration over table bitsets
938         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
940 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
942         bitset: rename internal details for consistency
943         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
945 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
947         bitset: test: run deterministic tests on several bitset sizes
948         * tests/test-bitset.c (check_attributes): Run it with small and large
949         sizes.
951 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
953         bitset: use ffs where possible in the list implementation
954         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
956 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
958         bitset: use ffs where possible in array implementation
959         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
961 2020-11-17  Bruno Haible  <bruno@clisp.org>
963         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
964         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
965         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
966         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
967         C++ mode.
969 2020-11-17  Bruno Haible  <bruno@clisp.org>
971         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
972         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
973         is always declared.
974         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
975         declared.
977 2020-11-17  Bruno Haible  <bruno@clisp.org>
979         Fix link errors on AIX.
980         * modules/clean-temp (Link): Link with $(LIBTHREAD).
981         * modules/getumask (Link): Link with $(LIBTHREAD).
982         * modules/getumask-tests (Makefile.am): Link test-getumask with
983         $(LIBTHREAD).
984         * modules/supersede (Link): Link with $(LIBTHREAD).
985         * modules/supersede-tests (Makefile.am): Link test-supersede with
986         $(LIBTHREAD).
987         * modules/fatal-signal (Link): New section.
988         * modules/execute (Link): New section.
989         * modules/csharpexec (Link): Link with $(LIBTHREAD).
990         * modules/javaexec (Link): Link with $(LIBTHREAD).
991         * modules/spawn-pipe (Link): New section.
992         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
993         $(LIBTHREAD).
994         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
995         * modules/javacomp (Link): Link with $(LIBTHREAD).
996         * modules/javaversion (Link): Link with $(LIBTHREAD).
997         * modules/pipe-filter-gi (Link): New section.
998         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
999         test-pipe-filter-gi2-main with $(LIBTHREAD).
1000         * modules/pipe-filter-ii (Link): New section.
1001         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1002         test-pipe-filter-ii2-main with $(LIBTHREAD).
1003         * modules/term-style-control (Link): New section.
1004         * modules/term-style-control-tests (Makefile.am): Link
1005         test-term-style-control-hello, test-term-style-control-yes with
1006         $(LIBTHREAD).
1007         * modules/wait-process (Link): New section.
1008         * modules/nonblocking-pipe-tests (Makefile.am): Link
1009         test-nonblocking-pipe-main with $(LIBTHREAD).
1010         * modules/nonblocking-socket-tests (Makefile.am): Link
1011         test-nonblocking-socket-main with $(LIBTHREAD).
1013 2020-11-16  Bruno Haible  <bruno@clisp.org>
1015         Fix link errors on platforms with libunistring.
1016         * modules/c32isalnum (Link): New section.
1017         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1018         $(LIBUNISTRING).
1019         * modules/c32isalpha (Link): New section.
1020         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1021         $(LIBUNISTRING).
1022         * modules/c32isblank (Link): New section.
1023         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1024         $(LIBUNISTRING).
1025         * modules/c32iscntrl (Link): New section.
1026         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1027         $(LIBUNISTRING).
1028         * modules/c32isdigit (Link): New section.
1029         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1030         $(LIBUNISTRING).
1031         * modules/c32isgraph (Link): New section.
1032         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1033         $(LIBUNISTRING).
1034         * modules/c32islower (Link): New section.
1035         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1036         $(LIBUNISTRING).
1037         * modules/c32isprint (Link): New section.
1038         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1039         $(LIBUNISTRING).
1040         * modules/c32ispunct (Link): New section.
1041         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1042         $(LIBUNISTRING).
1043         * modules/c32isspace (Link): New section.
1044         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1045         $(LIBUNISTRING).
1046         * modules/c32isupper (Link): New section.
1047         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1048         $(LIBUNISTRING).
1049         * modules/c32isxdigit (Link): New section.
1050         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1051         $(LIBUNISTRING).
1052         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1053         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1054         $(LIBUNISTRING).
1056 2020-11-16  Bruno Haible  <bruno@clisp.org>
1058         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1059         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1060         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1061         * modules/getumask-tests (Makefile.am): Link test-getumask with
1062         $(LIBINTL).
1063         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1064         * modules/supersede-tests (Makefile.am): Link test-supersede with
1065         $(LIBINTL).
1066         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1067         $(LIBINTL).
1069 2020-11-16  Bruno Haible  <bruno@clisp.org>
1071         getumask: Document link dependencies.
1072         * modules/getumask (Link): New section.
1074 2020-11-16  Bruno Haible  <bruno@clisp.org>
1076         Update link dependencies in modules after 2020-09-09 change.
1077         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1078         * modules/mkdtemp (Link): Likewise.
1079         * modules/mkostemp (Link): Likewise.
1080         * modules/mkostemps (Link): Likewise.
1081         * modules/mkstemp (Link): Likewise.
1082         * modules/mkstemps (Link): Likewise.
1083         * modules/supersede (Link): Likewise.
1084         * modules/tmpfile (Link): Likewise.
1085         * modules/tmpfile-safer (Link): Likewise.
1087 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1089         getumask-tests: port to Solaris 10 etc.
1090         Problem reported by Tom Christensen in:
1091         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1092         * modules/getumask-tests (test_getumask_LDADD):
1093         Add $(LIB_CLOCK_GETTIME).
1095 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1097         bitset: use ffsl to accelerate iterations over set bits
1098         Suggested by Bruno Haible.
1099         * modules/bitset: Depend upon ffsl.
1100         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1101         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1103 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1105         bitset: more tests
1106         * tests/test-bitset.c (compare): Make it clear that the random values
1107         should not be modified.
1108         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1110 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1112         bitset: fix the copy from lbitset to other types
1113         * lib/bitset/list.c (lbitset_copy): Rename as...
1114         (lbitset_copy_): this.
1115         (lbitset_copy): New.
1116         Dispatch to heterogeneous/homogeneous copy.
1118 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1120         bitset: making debug traces more useful
1121         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1123         bitset: comment changes
1124         * lib/bitset.c: Move some documenting comments to...
1125         * lib/bitset.h: here.
1126         * lib/bitset/array.c: Fix some comments.
1128 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1130         careadlinkat: warn better about GCC bug 93644
1131         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1132         not in effect, use "#warning" to let builders know more clearly
1133         about GCC bug 93644, because the bug triggers even if no -W option
1134         is given to GCC.
1136 2020-11-13  Jim Meyering  <meyering@fb.com>
1138         hard-locale-tests: avoid a -Wstrict-prototypes warning
1139         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1140         changing "main ()" to "main (void)". This was the only case that
1141         triggered a warning when building grep with --enable-gcc-warnings.
1143 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1145         time_rz: simplify CVE-2017-7476 fix
1146         * lib/time_rz.c: Do not include limits.h; I think it was included
1147         under the mistaken impression that limits.h defines SIZE_MAX.
1148         (SIZE_MAX): Remove.
1149         (save_abbr): Put string length into a ptrdiff_t variable,
1150         so that the size comparison works naturally.  This
1151         fixes CVE-2017-7476 in a cleaner way.
1153         parse-datetime: streamline overflow checking
1154         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1155         did not work for unsigned destinations, and since time_t might
1156         be unsigned that meant it did not work for time_t destinations.
1157         This limitation of INT_ADD_WRAPV has been fixed, so we can
1158         now streamline parse-datetime.y a bit.
1159         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1160         has not been used for a while.
1161         (yylex, parse_datetime2): Assume C99 declarations after statements.
1162         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1163         to TYPE_MINIMUM.
1164         (parse_datetime2): No need for time_overflow now that
1165         INT_ADD_WRAPV works for unsigned results.
1167         parse-datetime-tests: port to Alpine Linux 3.12.1
1168         * tests/test-parse-datetime.c: Include errno.h for errno,
1169         and unistd.h for _SC_TZNAME_MAX and sysconf.
1170         (main): In the outlandishly-long time zone abbreviation test,
1171         do not exceed TZNAME_MAX as this has undefined behavior,
1172         and on Alpine Linux 3.12.1 it makes the test fail.
1174 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1176         mgetgroups: avoid warning with clang
1177         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1178         so disable -Wpointer-sign for all clang versions.
1180 2020-11-07  Bruno Haible  <bruno@clisp.org>
1182         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1183         Reported by Simon Josefsson in
1184         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1185         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1186         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1187         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1189 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1191         tests: pacify Sun C 5.9
1192         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1193         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1194         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1195         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1196         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1197         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1198         Remove unreachable ‘return NULL;’s.
1200         tests: port better to XLC 12.01
1201         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1202         even in code that is not executed, as IBM XLC 12.01 complains "The
1203         subscript -1 is less than zero."
1204         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1205         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1206         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1207         arguments than are required by the macro definition."
1209 2020-11-03  Bruno Haible  <bruno@clisp.org>
1211         aligned-malloc: Use fixes from the new modules.
1212         * modules/aligned-malloc (Depends-on): Add posix_memalign,
1213         aligned_alloc, memalign.
1214         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1216 2020-11-03  Bruno Haible  <bruno@clisp.org>
1218         aligned_alloc: Add tests.
1219         * tests/test-aligned_alloc.c: New file.
1220         * modules/aligned_alloc-tests: New file.
1222         aligned_alloc: New module.
1223         * lib/stdlib.in.h (aligned_alloc): New declaration.
1224         * lib/aligned_alloc.c: New file.
1225         * m4/aligned_alloc.m4: New file.
1226         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
1227         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
1228         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1229         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
1230         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1231         * modules/aligned_alloc: New file.
1232         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
1233         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
1234         AIX bug.
1236 2020-11-03  Bruno Haible  <bruno@clisp.org>
1238         posix_memalign: Add tests.
1239         * tests/test-posix_memalign.c: New file.
1240         * modules/posix_memalign-tests: New file.
1242         posix_memalign: New module.
1243         * lib/stdlib.in.h (posix_memalign): New declaration.
1244         * lib/posix_memalign.c: New file.
1245         * m4/posix_memalign.m4: New file.
1246         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
1247         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
1248         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1249         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1250         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1251         * modules/posix_memalign: New file.
1252         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1253         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1254         the OpenBSD bug.
1256 2020-11-03  Bruno Haible  <bruno@clisp.org>
1258         memalign: Add tests.
1259         * tests/test-memalign.c: New file.
1260         * modules/memalign-tests: New file.
1262         memalign: New module.
1263         * modules/memalign: New file.
1264         * doc/glibc-functions/memalign.texi: Mention the new module.
1266 2020-11-03  Bruno Haible  <bruno@clisp.org>
1268         verify tests: Fix crash with GCC (regression 2020-11-02).
1269         * tests/test-verify.c (main): Fix initializer of s.
1271 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1273         mountlist: recognize more file system types as remote
1275         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1276         "remote" file systems from stat.c in coreutils.
1278 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1280         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1281         * tests/test-verify.c (main): Initialize state variable.
1282         Reported by Bruno Haible for GCC 5.4.0.
1284 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1286         dfa.h: support inclusion from C++
1287         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1288         C++ code.  The latter was suggested by Arnold Robbins.
1290 2020-11-01  Bruno Haible  <bruno@clisp.org>
1292         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1293         * tests/test-ssfmalloc.c: Include <limits.h>.
1294         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1296 2020-11-01  Bruno Haible  <bruno@clisp.org>
1298         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1299         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1301 2020-11-01  Jim Meyering  <meyering@fb.com>
1303         dfa-tests: test for today's invalid-merge fix
1304         * tests/test-dfa-invalid-merge.sh: New file.
1305         * modules/dfa-tests (Files): Add it.
1306         (TESTS): Add it.
1308 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1310         dfa: retain sequences of similar nodes in optimization
1311         DFA was merging similar nodes when it should not.  For example,
1312         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1313         is not merged.  Problem reported by Gonzalo Padrino in
1314         https://bugs.gnu.org/44351
1315         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1316         optimization.
1318 2020-11-01  Jim Meyering  <meyering@fb.com>
1320         test-dfa-match-aux.c: accept EREs, not BREs
1321         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1322         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1324 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1326         verify tests: avoid -Wmissing-declarations warnings
1327         * tests/test-verify.c (test_assume_expressions): Add declaration.
1328         (test_assume_optimization): Likewise.
1329         (test_assume_noreturn): Likewise.
1330         (main): Move down after all other definitions.  While at it, also
1331         call test_assume_expressions and test_assume_optimization as a
1332         runtime check.
1334 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1336         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1337         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1338         Perhaps these macros should be removed, as they’re not in either
1339         POSIX or GNU.  They could be moved to stat-macros.h, which would
1340         be cleaner in some sense.
1342 2020-10-25  Bruno Haible  <bruno@clisp.org>
1344         ssfmalloc tests: Small tweaks.
1345         * tests/test-ssfmalloc.c: Add comments.
1346         (alloc_pages): Don't require PROT_EXEC bits.
1347         (block_sizes): Add more small sizes, for better coverage of
1348         ssfmalloc-bitmap.h.
1350         ssfmalloc tests: Portability to Minix.
1351         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1352         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1353         * m4/mmap-anon.m4: Update comment.
1355         ssfmalloc: Portability to AIX.
1356         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1357         (Link): New section.
1358         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1359         $(LIBTHREAD).
1361         ssfmalloc: Portability to Cygwin.
1362         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1363         (pg_offset_t): Define depending on PAGESIZE_MAX.
1364         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1365         (PAGESIZE_MAX): New macro.
1367         ssfmalloc: Fix buffer overrun in bitmap search.
1368         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1369         word *words_end.
1371 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1373         doc: mention ‘restrict’ and C++
1374         * doc/gnulib-readme.texi (C99 features assumed): Document
1375         that ‘restrict’ should be avoided in C++ code.
1377 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1379         selinux-at, selinux-h: port to SELinux 3.1
1380         The new release finally deprecated the typedef 'security_context_t',
1381         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
1382         Use the simpler 'char *' instead.
1383         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
1384         (lgetfilecon): Likewise.
1385         (fgetfilecon): Likewise.
1386         (map_to_failure): Likewise.
1387         (rpl_getfilecon): Likewise.
1388         (rpl_lgetfilecon): Likewise.
1389         (rpl_fgetfilecon): Likewise.
1390         * lib/se-selinux.in.h (security_context_t): Remove typedef.
1391         (getcon): Adjust type of context parameter.
1392         (freecon): Likewise.
1393         (getfscreatecon): Likewise.
1394         (setfscreatecon): Likewise.
1395         (matchpathcon): Likewise.
1396         (getfilecon): Likewise.
1397         (lgetfilecon): Likewise.
1398         (fgetfilecon): Likewise.
1399         (setfilecon): Likewise.
1400         (lsetfilecon): Likewise.
1401         (fsetfilecon): Likewise.
1402         (security_check_context): Likewise.
1403         (security_check_context_raw): Likewise.
1404         (setexeccon): Likewise.
1405         (security_compute_create): Likewise.
1406         * lib/selinux-at.c (getfileconat): Likewise.
1407         (lgetfileconat): Likewise.
1408         (setfileconat): Likewise.
1409         (lsetfileconat): Likewise.
1410         * lib/selinux-at.h: Likewise.
1412 2020-10-19  Bruno Haible  <bruno@clisp.org>
1414         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
1415         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
1416         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
1417         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
1418         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
1419         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
1420         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
1422 2020-10-18  Bruno Haible  <bruno@clisp.org>
1424         ssfmalloc: Add tests.
1425         * tests/test-ssfmalloc.c: New file.
1426         * modules/ssfmalloc-tests: New file.
1428         ssfmalloc: New module.
1429         * lib/ssfmalloc.h: New file.
1430         * lib/ssfmalloc-bitmap.h: New file.
1431         * modules/ssfmalloc: New file.
1433 2020-10-18  Bruno Haible  <bruno@clisp.org>
1435         wchar: Fix configure test result on some versions of AIX.
1436         Reported by Clément Chigot <clement.chigot@atos.net> in
1437         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
1438         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
1439         systems.
1441 2020-10-18  Bruno Haible  <bruno@clisp.org>
1443         time: Fix warning about asctime when asctime is not used.
1444         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
1445         invocation.
1447 2020-10-18  Bruno Haible  <bruno@clisp.org>
1449         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
1450         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
1451         '_GL_ATTRIBUTE_CONST'.
1452         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
1453         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
1454         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1455         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
1456         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
1457         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
1458         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
1460 2020-10-18  Bruno Haible  <bruno@clisp.org>
1462         obstack: Fix a clang warning.
1463         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
1465 2020-10-16  Bruno Haible  <bruno@clisp.org>
1467         hash: Rename hash_delete to hash_remove.
1468         * lib/hash.h (hash_remove): Renamed from hash_delete.
1469         (hash_delete): New declaration.
1470         * lib/hash.c (hash_remove): Renamed from hash_delete.
1471         (hash_delete): New function.
1472         * tests/test-hash.c (main): Update.
1473         * lib/fts-cycle.c (leave_dir): Likewise.
1474         * NEWS: Mention the change.
1476 2020-10-16  Bruno Haible  <bruno@clisp.org>
1478         hash, xhash: Make usable from C++.
1479         * lib/hash.h: Add extern "C".
1481 2020-10-16  Bruno Haible  <bruno@clisp.org>
1483         hash, xhash: Move comments to the .h file.
1484         * lib/hash.c: Move comments meant for the user from here...
1485         * lib/xhash.c: ... and here...
1486         * lib/hash.h: ... to here.
1488 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
1490         Don't declare an intention to modify the return value of strerror.
1491         * tests/test-perror2.c (main): Assign the return value of strerror to a
1492         'const char *' variable.
1494 2020-10-11  Bruno Haible  <bruno@clisp.org>
1496         *printf: Avoid "expanded before it was required" warning.
1497         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
1498         AC_DEFUN_ONCE.
1500 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
1502         getprogname: Add support for OpenServer 6 and UnixWare 7.
1503         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
1504         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
1506 2020-10-11  Bruno Haible  <bruno@clisp.org>
1508         tests: Avoid a name clash on UnixWare.
1509         Reported by Tim Rice <tim@multitalents.net> in
1510         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
1511         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
1513 2020-10-11  Bruno Haible  <bruno@clisp.org>
1515         stdioext: Update comments regarding UnixWare.
1516         Reported by Tim Rice <tim@multitalents.net> in
1517         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1518         * lib/fbufmode.c: Update comments.
1519         * lib/fflush.c: Likewise.
1520         * lib/fpending.c: Likewise.
1521         * lib/fpurge.c: Likewise.
1522         * lib/freadable.h: Likewise.
1523         * lib/freadable.c: Likewise.
1524         * lib/freadahead.c: Likewise.
1525         * lib/freading.h: Likewise.
1526         * lib/freading.c: Likewise.
1527         * lib/freadptr.c: Likewise.
1528         * lib/freadseek.c: Likewise.
1529         * lib/fseeko.c: Likewise.
1530         * lib/fseterr.c: Likewise.
1531         * lib/fwritable.h: Likewise.
1532         * lib/fwritable.c: Likewise.
1533         * lib/fwriting.h: Likewise.
1534         * lib/fwriting.c: Likewise.
1536 2020-10-11  Bruno Haible  <bruno@clisp.org>
1538         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
1539         Reported by Tim Rice <tim@multitalents.net> in
1540         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1541         Uses the info from
1542         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
1543         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
1545 2020-10-11  Bruno Haible  <bruno@clisp.org>
1547         stdioext: Avoid compilation errors on UnixWare 7.
1548         Reported by Tim Rice <tim@multitalents.net> in
1549         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
1550         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
1551         * lib/fpurge.c: Likewise.
1552         * lib/freadable.h: Likewise.
1553         * lib/freading.h: Likewise.
1554         * lib/fwritable.h: Likewise.
1555         * lib/fwriting.h: Likewise.
1556         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
1557         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1558         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
1559         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
1560         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
1561         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
1563 2020-10-11  Bruno Haible  <bruno@clisp.org>
1565         stdioext: Update comments regarding Cygwin.
1566         * lib/fpending.c: Update comments.
1567         * lib/fpurge.c: Likewise.
1568         * lib/freadable.h: Likewise.
1569         * lib/freadable.c: Likewise.
1570         * lib/freading.h: Likewise.
1571         * lib/freading.c: Likewise.
1572         * lib/fwritable.h: Likewise.
1573         * lib/fwritable.c: Likewise.
1574         * lib/fwriting.h: Likewise.
1575         * lib/fwriting.c: Likewise.
1577 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
1579         Fix "warning: implicit declaration of function 'pthread_sigmask'".
1580         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
1581         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
1583 2020-10-10  Bruno Haible  <bruno@clisp.org>
1585         *-list, *-oset, *-omap: Avoid possible compiler warnings.
1586         Reported by Marc Nieper-Wißkirchen in
1587         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
1588         * lib/gl_anylinked_list2.h (gl_linked_iterator,
1589         gl_linked_iterator_from_to): Mark as 'pure'.
1590         (gl_linked_iterator_free): Mark as 'const'.
1591         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
1592         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
1593         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
1594         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
1595         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
1596         (gl_tree_iterator_free): Mark as 'const'.
1597         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
1598         'pure'.
1599         (gl_tree_iterator_free): Mark as 'const'.
1600         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
1601         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
1602         (gl_tree_iterator_free): Mark as 'const'.
1603         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
1604         compare_position_threshold): Mark as 'pure'.
1605         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
1606         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
1607         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
1608         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
1609         'pure'.
1610         (gl_array_iterator_free): Mark as 'const'.
1611         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
1612         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
1613         (gl_array_iterator_free): Mark as 'const'.
1614         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
1615         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
1616         gl_array_iterator_atleast): Mark as 'pure'.
1617         (gl_array_iterator_free): Mark as 'const'.
1618         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
1619         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
1620         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
1621         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
1622         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
1623         gl_carray_sortedlist_search): Mark as 'pure'.
1624         (gl_carray_iterator_free): Mark as 'const'.
1626 2020-10-10  Bruno Haible  <bruno@clisp.org>
1628         rbtree-list: Avoid possible compiler warnings.
1629         This mirrors the change of avltree-list on 2014-09-16.
1630         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
1631         declaration. Add cast to void for ignored value of check_invariants.
1633 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1635         stack: New module.
1636         * MODULES.html.sh: Add entry for the stack module.
1637         * modules/stack: New file.
1638         * modules/stack-tests: New file.
1639         * lib/stack.h: New file.
1640         * tests/test-stack.c: New file.
1642 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1644         attribute: improve const, pure doc
1645         Problem reported by Marc Nieper-Wißkirchen in:
1646         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
1647         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
1648         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
1650 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1652         thread: pacify GCC on Solaris 10
1653         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
1654         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
1655         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
1656         where pthread_t is unsigned int.
1658 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1660         c-stack: avoid AS_IF
1661         Problem reported by Bruno Haible in:
1662         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
1663         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
1665         c-stack: pacify GCC 9.3.1 when using libsigsegv
1666         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
1668 2020-10-04  Bruno Haible  <bruno@clisp.org>
1670         localename: Fix a couple of "unused parameter" warnings.
1671         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
1672         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
1673         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
1674         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
1675         parameter list.
1677 2020-10-04  Bruno Haible  <bruno@clisp.org>
1679         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
1680         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
1681         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
1682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
1683         HAVE_SNPRINTF_TRUNCATION_C99.
1684         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
1685         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
1687 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1689         c-stack: streamline Solaris configuration
1690         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
1691         the code is used only if a test for sigaltstack worked
1692         in some other way.
1693         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
1694         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
1695         heuristic does not work).
1696         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
1697         we no longer require the libsigsegv module.
1698         (Depends-on): Depend on havelib, not libsigsegv.
1700         c-stack: stop using SIGSTKSZ
1701         It’s been proposed to stop making SIGSTKSZ an integer constant:
1702         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
1703         Also, using SIGSTKSZ in #if did not conform to current POSIX.
1704         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
1705         * lib/c-stack.c (SIGSTKSZ): Remove.
1706         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
1707         All uses changed.
1709         c-stack: fix libsigsegv typo
1710         Problem reported by Bruno Haible in:
1711         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
1712         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
1713         to be used only on Solaris (exactly where it is not needed!).
1715 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
1717         MODULES.html.sh: Fix typo.
1718         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
1720 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
1722         version-etc: pacify Oracle Studio 12.6
1723         Without this patch, it complains: "version-etc.h", line 64:
1724         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
1725         pedantic mode.
1726         * lib/version-etc.h (version_etc): Port to C89 macro rules.
1728 2020-09-27  Bruno Haible  <bruno@clisp.org>
1730         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
1731         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1732         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1733         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
1734         ourselves; don't use AC_DECL_SYS_SIGLIST.
1736 2020-09-27  Bruno Haible  <bruno@clisp.org>
1738         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
1739         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1740         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1741         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
1742         instead of _AC_COMPUTE_INT.
1744 2020-09-27  Bruno Haible  <bruno@clisp.org>
1746         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
1747         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1748         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1749         Based on a patch by Paul Eggert.
1750         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
1751         test STDC_HEADERS. Assume <stdlib.h> exists.
1752         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
1754 2020-09-27  Bruno Haible  <bruno@clisp.org>
1756         Enable testing of prereleases of Autoconf 2.70.
1757         Suggested by Paul Eggert in
1758         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
1759         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
1760         >= 2.70.
1761         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
1762         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
1763         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
1765 2020-09-27  Bruno Haible  <bruno@clisp.org>
1767         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
1768         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1769         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1770         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
1771         AC_PROG_CC, depending on the Autoconf version.
1773 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
1775         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
1776         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
1777         of AC_HELP_STRING.
1778         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
1780 2020-09-27  Bruno Haible  <bruno@clisp.org>
1782         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
1783         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1784         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1785         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
1787 2020-09-27  Bruno Haible  <bruno@clisp.org>
1789         extensions: Simplify last commit.
1790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
1791         AC_GNU_SOURCE ever.
1793 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1795         extensions: require AC_GNU_SOURCE only for <=2.63
1796         Problem reported by Gavin Smith in:
1797         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
1798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
1799         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
1800         shouldn’t be needed after that, and Autoconf 2.70 complains about
1801         it being obsolete.
1803 2020-09-26  Bruno Haible  <bruno@clisp.org>
1805         regex-tests: Make test more robust.
1806         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
1807         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
1809 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1811         regex-tests: fix possible Turkish false-alarm
1812         * modules/regex-tests (Depends-on): Add wctype-h.
1813         * tests/test-regex.c: Include wctype.h.
1814         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
1815         as the Turkish regex test assumes this.
1817         regex-tests: fix test and add debug output
1818         Perhaps this will fix the recent grep test failure reported at:
1819         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
1820         At least, the debug output should help narrow down the failure.
1821         * tests/test-regex.c: Include stdarg.h, stdio.h.
1822         (exit_status): New var.
1823         (report_error): New function.
1824         (main): Use it to report failures to stdout instead of merely
1825         exiting with some nonzero status.  The status info alone isn’t
1826         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
1827         regex before calling re_compile_pattern, fixing a portability bug.
1829         regex: no longer match glibc
1830         * config/srclist.txt: Comment out regex_internal.c for now.
1832 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1834         regex: fix ignore-case Turkish bug
1835         * lib/regex_internal.c (build_wcs_upper_buffer):
1836         Do not assume that converting single-byte character to upper
1837         yields a single-byte character.  This is not true for Turkish,
1838         where towupper (L'i') yields L'İ', which is not single-byte.
1839         * tests/test-regex.c (main): Test for this bug.
1841         regex: port to weird isascii platforms
1842         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
1844 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1846         dfa: make dfasupported a global function
1847         * lib/dfa.c (dfasupported): Rename, and make it global.
1848         Update caller.
1849         * lib/dfa.h (dfasupported): Add prototype.
1851 2020-09-20  Bruno Haible  <bruno@clisp.org>
1853         canonicalize: Add support for UNC file names on native Windows.
1854         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
1855         <https://savannah.gnu.org/bugs/?59079>.
1856         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
1857         extend the prefix to include the server.
1859 2020-09-20  Bruno Haible  <bruno@clisp.org>
1861         supersede: Fix test failures on native Windows.
1862         * lib/supersede.c (open_supersede): Handle non-regular files on native
1863         Windows like on Solaris.
1864         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
1866 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1868         test-stdalign: test Oracle Studio better
1869         * doc/posix-headers/stdalign.texi (stdalign.h):
1870         * tests/test-stdalign.c (main):
1871         Sun Studio Bug #2125432 seems to be fixed.
1873         c-stack: output diagnostic in single 'write'
1874         * lib/c-stack.c (die): In the typical case, use just one 'write'
1875         syscall to output the diagnostic, as this lessens interleaving.
1876         (die, c_stack_action): Assume C99.
1877         * modules/c-stack (Depends-on): Add c99, mempcpy.
1879         c-stack: improve checking if !libsigsegv
1880         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
1881         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
1882         unlikely pointer overflow.  Also, fix some obsolete code and typos.
1883         I found these problems while looking into this bug report:
1884         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
1885         * lib/c-stack.c: Include c-stack.h first, to test interface.
1886         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
1887         max_align_t, intprops.h for INT_ADD_WRAPV.
1888         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
1889         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
1890         for libsigsegv 2.8 and earlier since the bug should be fixed
1891         after that.
1892         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
1893         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
1894         Assume sprintf returns byte count; this assumption is safe now.
1895         (page_size): New static volatile variable, since sysconf isn’t
1896         documented to be async-signal-safe on Solaris.  This variable is
1897         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
1898         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
1899         SIGINFO_WORKS).
1900         (segv_handler): Use it if present.  Never report null pointer
1901         dereference as a stack overflow.  Check for (unlikely) unsigned
1902         and/or pointer overflow.
1903         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1904         Rename cache variables to gl_cv_sys_stack_overflow_works
1905         and gl_cv_sys_xsi_stack_overflow_heuristic.
1906         All uses changed.
1907         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
1908         c-stack no longer uses STACK_DIRECTION.
1909         Do not check for unistd.h, since we depend on unistd.
1910         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
1911         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
1912         stdbool, stddef.
1914 2020-09-20  Bruno Haible  <bruno@clisp.org>
1916         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
1917         * m4/musl.m4: Revert 2020-09-19 patch.
1918         * m4/setlocale_null.m4: Likewise.
1919         * modules/setlocale-null: Likewise.
1921 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
1922             Bruno Haible  <bruno@clisp.org>
1924         relocatable-prog: Fix for multiple relocatable library directories.
1925         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
1926         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
1927         being attached to a single one.
1929 2020-09-19  Jim Meyering  <meyering@fb.com>
1931         test-verify.c: avoid -Wshadow warnings
1932         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
1933         (enum): Capitalize member names. Adjust uses.
1935 2020-09-19  Bruno Haible  <bruno@clisp.org>
1937         havelib: Avoid linking with libc.a on GNU systems.
1938         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
1939         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
1940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
1941         dependency_libs value of a .la file, ignore '-lc' options on GNU
1942         systems.
1944 2020-09-19  Bruno Haible  <bruno@clisp.org>
1946         Fix recognition of musl libc on Alpine Linux 3.10.
1947         Reported by Jeffrey Walton <noloader@gmail.com> in
1948         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
1949         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
1950         (gl_MUSL_LIBC): Require it.
1951         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
1952         * modules/setlocale-null (Files): Add m4/musl.m4.
1954 2020-09-19  Bruno Haible  <bruno@clisp.org>
1956         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
1957         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
1958         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
1959         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
1960         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
1961         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
1962         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
1963         or <threads.h>.
1964         (ITEMS, MAX_RESULT_LEN): New macros.
1965         (nl_langinfo_unlocked): New function.
1966         (gl_get_nl_langinfo_lock): New declaration.
1967         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
1968         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
1969         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
1970         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
1971         REPLACE_NL_LANGINFO.
1972         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
1973         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
1974         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
1975         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
1976         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
1978 2020-09-18  Bruno Haible  <bruno@clisp.org>
1980         fsusage, getaddrinfo: Produce more regular configure output.
1981         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
1982         corresponding AC_MSG_RESULT.
1983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1985 2020-09-18  Bruno Haible  <bruno@clisp.org>
1987         Add back gl_SILENT.
1988         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
1990 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1992         c-stack-tests: fix -fsanitize=undefined false alarm
1993         * tests/test-c-stack2.sh: Skip the test-harness self-test
1994         if ‘gcc -fsanitize=undefined’ is in use.
1996 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
1998         signalblocking: simplify and remove gl_SILENT
1999         gl_SILENT was problematic because if a trap was sprung, stderr
2000         generated during the trap was lost.  Avoid the problem by
2001         removing the need for gl_SILENT.
2002         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2003         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2004         Simplify, avoiding the need for gl_SILENT while preserving the
2005         ability of the user to override the value of the cache variable,
2006         now ac_cv_func_sigprocmask.
2008 2020-09-17  Bruno Haible  <bruno@clisp.org>
2010         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2011         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2012         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2013         AS_MESSAGE_FD.
2015 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2017         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2018         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2019         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2020         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2021         Define to 0.
2022         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2023         Do not use __builtin_mul_overflow_p.
2025         libc-config: port __THROW to Ubuntu 4
2026         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2027         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2028         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2029         The GCC 3.3.4 documentation says the attribute should work, but
2030         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2031         little point or desire to research this circa-2004 platform further,
2032         so just avoid the attribute there.
2034 2020-09-17  Jim Meyering  <meyering@fb.com>
2036         test-dfa-match.sh: port timeout work-around to newer Busybox
2037         * tests/test-dfa-match.sh: Update timeout -t portability test to
2038         accommodate Busybox 1.30.0 and newer.
2040 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2042         fnmatch: adjust to match glibc fix
2043         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2044         This does not affect Gnulib; it merely keeps Gnulib and glibc
2045         closer together, to help with any eventual merge, by incorporating
2046         a recent glibc patch.  The patch and the following commentary is
2047         by Andreas Schwab.
2048         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2049         contains the index into the extra array, whereas wextra points
2050         into the extra array at this index, containing the length of the
2051         following collating sequence in the wide character representation.
2053 2020-09-16  Bruno Haible  <bruno@clisp.org>
2055         stat, fstat: Fix compilation error with old mingw headers.
2056         Reported by Eli Zaretskii <eliz@gnu.org> in
2057         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2058         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2059         define it.
2061 2020-09-16  Bruno Haible  <bruno@clisp.org>
2063         stat, fstat: Fix when compiling for versions older than Windows Vista.
2064         Reported by Eli Zaretskii <eliz@gnu.org> in
2065         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2066         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2067         that was originally set before we redefined it.
2068         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2069         (gl_PREREQ_STAT): Require it.
2070         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2072 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2074         dfa: remove dfa-heap-overrun workaround
2075         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2076         both sets map[*] and does other things.  This reverts
2077         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2078         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2079         fixed the underlying problem.
2081 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2083         dfa: avoid use of uninitialized constraint
2084         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2085         to zero here.
2086         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2087         use of an uninitialized constraint by later code when ! (flags[i]
2088         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2089         the constraint.  Problem found by running 'valgrind src/grep -E
2090         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2092         dfa: assume C99 in reorder_tokens
2093         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2095         dfa: fix dfa-heap-overrun failure
2096         * lib/dfa.c (reorder_tokens): When setting
2097         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2098         that (i < d->follows[i].elems[j].index), use two loops, one to set
2099         the map array and the other to use it.  The incorrect assumption
2100         caused some elements to be missed, and this in turn caused grep's
2101         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2102         with GCC.  I found this bug while investigating
2103         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2104         and I think the bug also occurs on GNU/Linux but with more-subtle
2105         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2106         recent changes make the bug more likely.
2108 2020-09-13  Bruno Haible  <bruno@clisp.org>
2110         parse-datetime: Make the build rule work with parallel 'make'.
2111         Reported by Daiki Ueno <ueno@gnu.org> in
2112         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2113         * modules/parse-datetime (Makefile.am): Use a phony target and the
2114         general idiom for rules that produce multiple files.
2116 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2118         getpass: Check for nonnull prompt argument while avoiding warnings.
2119         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2120         (getpass) [!_WIN32]: Print prompt only if nonnull.
2122 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2124         dfa: epsilon-closure tweaks (Bug#40634)
2125         Rename BACKWORD to BACKWARD consistently.
2126         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2127         (addtok_mb): Redo slightly to make it act more like a state machine.
2128         Check depth only when it increases.
2129         (epsclosure): Let the switch test the tokens.
2130         (dfaanalyze): Cache tindex.  Simplify position loops.
2131         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2132         only if it is not null, since we're testing that anyway.
2133         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2135 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2137         dfa: use backward set in removal of epsilon closure
2138         When removing in epsilon closure, the code searched all nodes
2139         sequentially, and this was slow for some cases.  Build a backward
2140         set before search, and only check previous position with the set.
2141         Problem reported in <https://bugs.gnu.org/40634>.
2142         * lib/dfa.c (struct dfa): New member 'epsilon'.
2143         (addtok_mb): Check whether a pattern has epsilon node or not.
2144         (epsclosure): New arg BACKWORD; caller changed.  When removing
2145         epsilon node and reconnecting, check only previous positions.
2146         Treat BEG as if it were character.
2147         (dfaanalyze): Build backward set.
2149 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2151         canonicalize: fix pointer indexing bugs
2152         Problem reported by Florian Weimer in:
2153         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2154         * lib/canonicalize-lgpl.c (__realpath):
2155         * lib/canonicalize.c (canonicalize_filename_mode):
2156         Do not generate a pointer past the end of the array.
2157         * lib/canonicalize.c (canonicalize_filename_mode):
2158         Do not use a pointer after passing it to realloc.
2160 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2162         tempname: help merge with glibc
2163         Inspired by draft patches by Adhemerval Zanella in:
2164         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2165         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2166         * lib/tempname.c: Include stdalign.h, time.h.
2167         If _LIBC, do not include random-bits.h.
2168         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2169         (RANDOM_BITS): Remove, replacing with ...
2170         (random_bits): ... this new static function.  All uses changed.
2171         Add entropy each time if getrandom is not supported.
2172         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2173         Assume 64-bit support a la C99.
2174         (try_tempname_len): Take advantage of ASLR when initializing
2175         random value.
2176         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2178         getcwd: merge recent glibc changes
2179         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2180         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2182 2020-09-06  Bruno Haible  <bruno@clisp.org>
2184         attribute: Clarify which file to include.
2185         * modules/attribute (Include): Add "attribute.h".
2187 2020-09-06  Bruno Haible  <bruno@clisp.org>
2189         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2190         * lib/pipe-filter-ii.c: Include <process.h>.
2191         * lib/pipe-filter-gi.c: Likewise.
2193 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2195         verify: avoid __builtin_assume
2196         Our latest attempt to use Clang’s __builtin_assume caused a crash
2197         in GNU Emacs that we spent quite some time tracking down as being
2198         caused by the switch to __builtin_assume.  It’s not known whether
2199         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2200         For now, play it safe and avoid __builtin_assume.
2201         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2202         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2204 2020-09-05  Bruno Haible  <bruno@clisp.org>
2206         Fix several "warning: no previous prototype for function".
2207         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2208         in front of the declaration of the lookup function in
2209         unicase/locale-languages.h.
2210         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
2211         unictype/bidi_byname.h.
2212         * modules/unictype/category-byname (Makefile.am): Likewise in
2213         unictype/categ_byname.h.
2214         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
2215         unictype/combiningclass_byname.h.
2216         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
2217         unictype/joininggroup_byname.h.
2218         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
2219         unictype/joiningtype_byname.h.
2220         * modules/unictype/property-byname (Makefile.am): Likewise in
2221         unictype/pr_byname.h.
2222         * modules/unictype/scripts (Makefile.am): Likewise in
2223         unictype/scripts_byname.h.
2224         * modules/uninorm/composition (Makefile.am): Likewise in
2225         uninorm/composition-table.h.
2227 2020-09-05  Bruno Haible  <bruno@clisp.org>
2229         select: Fix "warning: no previous prototype for function".
2230         * lib/select.c: Include <sys/select.h>.
2232 2020-09-05  Bruno Haible  <bruno@clisp.org>
2234         Use module 'c99' when needed for variadic macros with '...' syntax.
2235         * modules/crypto/sm3 (Depends-on): Add c99.
2237 2020-09-05  Bruno Haible  <bruno@clisp.org>
2239         Use module 'c99' when needed for subobject initializer syntax.
2240         * modules/tempname (Depends-on): Add c99.
2241         * modules/nstrftime-tests (Depends-on): Likewise.
2243 2020-09-05  Bruno Haible  <bruno@clisp.org>
2245         Use module 'c99' when needed for declaration-after-statement syntax.
2246         * modules/backup-rename (Depends-on): Add c99.
2247         * modules/backupfile (Depends-on): Likewise.
2248         * modules/bitset-tests (Depends-on): Likewise.
2249         * modules/bitsetv (Depends-on): Likewise.
2250         * modules/c-strtod (Depends-on): Likewise.
2251         * modules/c-strtold (Depends-on): Likewise.
2252         * modules/clean-temp (Depends-on): Likewise.
2253         * modules/copy-file (Depends-on): Likewise.
2254         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2255         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2256         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2257         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2258         * modules/crypto/md5-buffer (Depends-on): Likewise.
2259         * modules/crypto/md5-tests (Depends-on): Likewise.
2260         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2261         * modules/crypto/sha1-tests (Depends-on): Likewise.
2262         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2263         * modules/crypto/sha256-tests (Depends-on): Likewise.
2264         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2265         * modules/crypto/sha512-tests (Depends-on): Likewise.
2266         * modules/diffseq (Depends-on): Likewise.
2267         * modules/fatal-signal (Depends-on): Likewise.
2268         * modules/fchmodat (Depends-on): Likewise.
2269         * modules/fstrcmp (Depends-on): Likewise.
2270         * modules/fsusage (Depends-on): Likewise.
2271         * modules/fts (Depends-on): Likewise.
2272         * modules/fts-tests (Depends-on): Likewise.
2273         * modules/getumask (Depends-on): Likewise.
2274         * modules/git-merge-changelog (Depends-on): Likewise.
2275         * modules/hash-map (Depends-on): Likewise.
2276         * modules/hash-set (Depends-on): Likewise.
2277         * modules/lchmod (Depends-on): Likewise.
2278         * modules/libgmp-tests (Depends-on): Likewise.
2279         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2280         * modules/linkedhash-map (Depends-on): Likewise.
2281         * modules/linkedhash-set (Depends-on): Likewise.
2282         * modules/long-options (Depends-on): Likewise.
2283         * modules/mbrtoc32 (Depends-on): Likewise.
2284         * modules/memchr2-tests (Depends-on): Likewise.
2285         * modules/memmem-tests (Depends-on): Likewise.
2286         * modules/memrchr-tests (Depends-on): Likewise.
2287         * modules/mktime-internal (Depends-on): Likewise.
2288         * modules/nstrftime (Depends-on): Likewise.
2289         * modules/opendirat (Depends-on): Likewise.
2290         * modules/parse-datetime (Depends-on): Likewise.
2291         * modules/quotearg-simple-tests (Depends-on): Likewise.
2292         * modules/same (Depends-on): Likewise.
2293         * modules/supersede (Depends-on): Likewise.
2294         * modules/supersede-tests (Depends-on): Likewise.
2295         * modules/time_rz (Depends-on): Likewise.
2296         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2297         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2298         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2299         * modules/xalloc (Depends-on): Likewise.
2300         * modules/xnanosleep (Depends-on): Likewise.
2302 2020-09-05  Bruno Haible  <bruno@clisp.org>
2304         Fix "warning: array initialized from parenthesized string constant".
2305         * tests/test-memmem.c (main): Remove parentheses around string constant.
2306         * tests/test-c-strcasestr.c (main): Likewise.
2307         * tests/test-strcasestr.c (main): Likewise.
2309 2020-09-05  Bruno Haible  <bruno@clisp.org>
2311         argmatch tests: Fix ISO C compliance warning.
2312         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2313         invocation.
2315 2020-09-05  Bruno Haible  <bruno@clisp.org>
2317         uniname/uniname: Fix -Wshadow warning.
2318         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2319         * modules/uniname/uniname (Depends-on): Add c99.
2321 2020-09-05  Bruno Haible  <bruno@clisp.org>
2323         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2324         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2325         argument to size_t.
2326         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2327         n to size_t.
2329 2020-09-05  Bruno Haible  <bruno@clisp.org>
2331         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2332         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2333         u32_uctomb): Change type of last argument to ptrdiff_t.
2334         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2335         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2336         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2337         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2338         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2340 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2342         manywarnings: remove -Wchkp and -Wabi from C++ too
2343         Suggested by Reuben Thomas in:
2344         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2345         At some point somebody should merge the many other manywarnings-c.m4
2346         changes into manywarnings-c++.m4 too, e.g.,
2347         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2348         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2349         Remove -Wchkp, -Wabi.
2351 2020-08-30  Bruno Haible  <bruno@clisp.org>
2353         strerrorname_np: Add tests.
2354         * tests/test-strerrorname_np.c: New file.
2355         * modules/strerrorname_np-tests: New file.
2357         strerrorname_np: New module.
2358         * lib/string.in.h (strerrorname_np): New declaration.
2359         * lib/strerrorname_np.c: New file.
2360         * m4/strerrorname_np.m4: New file.
2361         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2362         is declared.
2363         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2364         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2365         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2366         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2367         * modules/strerrorname_np: New file.
2368         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2369         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2370         the glibc 2.32 bug.
2372 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2374         perror, strerror_r: remove unportable tests
2375         Problem reported by Florian Weimer in:
2376         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2377         * tests/test-perror2.c (main):
2378         * tests/test-strerror_r.c (main): Omit unportable tests.
2380 2020-08-26  Bruno Haible  <bruno@clisp.org>
2382         stdint, wchar, wctype-h: Change configure message.
2383         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
2384         enough..." instead of "checking whether wint_t is too small...".
2386 2020-08-26  Bruno Haible  <bruno@clisp.org>
2388         time_rz: Change configure message.
2389         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
2390         near extrema..." instead of "checking whether localtime loops forever
2391         near extrema...".
2393 2020-08-26  Bruno Haible  <bruno@clisp.org>
2395         stdint: Change configure message.
2396         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
2397         without ISO C predefines..." instead of "checking whether stdint.h
2398         predates C++11...".
2400 2020-08-26  Bruno Haible  <bruno@clisp.org>
2402         socketlib: Change configure message.
2403         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
2404         instead of "checking if we need to call WSAStartup in winsock2.h and
2405         -lws2_32...".
2407 2020-08-26  Bruno Haible  <bruno@clisp.org>
2409         include_next: Change configure message.
2410         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
2411         code line length is unlimited..." instead of "checking whether system
2412         header files limit the line length...".
2414 2020-08-26  Bruno Haible  <bruno@clisp.org>
2416         getcwd: Change configure message.
2417         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
2418         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
2419         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
2421 2020-08-26  Bruno Haible  <bruno@clisp.org>
2423         chdir-long: Change configure message.
2424         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
2425         system supports file names of any length..." instead of "checking
2426         whether this system has an arbitrary file name length limit...".
2427         Set gl_cv_have_unlimited_file_name_length instead of
2428         gl_cv_have_arbitrary_file_name_length_limit.
2429         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
2431 2020-08-26  Bruno Haible  <bruno@clisp.org>
2433         ceill: Change configure message.
2434         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
2435         instead of "checking whether ceill() breaks with small values...".
2437 2020-08-26  Bruno Haible  <bruno@clisp.org>
2439         iconv: Change configure message.
2440         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
2441         with its POSIX signature..." instead of "checking for iconv
2442         declaration...". Remove K&R C support.
2444 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2446         getcwd: help the merge back into glibc
2447         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
2448         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
2449         The idea is to make it easier for Gnulib lib/getcwd.c to match
2450         glibc io/getcwd-generic.c.
2451         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
2452         Include not-cancel.h.
2453         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
2454         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
2455         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
2456         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
2457         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
2458         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
2459         (__getcwd_generic): Rename from __getcwd.
2460         Use the abovementioned macros for consistency with glibc.
2461         (weak_alias): Remove.
2463 2020-08-25  Bruno Haible  <bruno@clisp.org>
2465         verify: Avoid warnings when assume(0) is used.
2466         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
2467         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
2468         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
2469         the constant 0.
2470         * tests/test-verify.c (f): New function.
2471         (state): New type.
2472         (test_assume_expressions, test_assume_optimization,
2473         test_assume_noreturn): New functions.
2475 2020-08-25  Bruno Haible  <bruno@clisp.org>
2477         fstrcmp: Clarification regarding NOTE_ORDERED.
2478         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
2480 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2482         diffseq: new option NOTE_ORDERED
2483         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
2484         * NEWS: Mention this.
2485         * lib/diffseq.h (NOTE_ORDERED): New macro.
2486         (IF_LINT2): Remove; no longer needed.
2487         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
2488         subproblem and iterate to do the larger.
2490 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2492         sys_types: let Autoconf 2.70 do pid_t
2493         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
2494         only for Autoconf versions 2.69 and earlier, since 2.70
2495         will be fixed.
2497 2020-08-23  Bruno Haible  <bruno@clisp.org>
2499         tests: Don't assume that pid_t fits in an 'int'.
2500         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
2501         of 'int'.
2502         * tests/test-nonblocking-socket-main.c (main): Likewise.
2504         sys_types: Fix definition of pid_t on 64-bit MSVC.
2505         * m4/pid_t.m4: New file.
2506         * modules/sys_types (Files): Add it.
2507         * modules/dirent (Files): Likewise.
2508         * modules/fcntl-h (Files): Likewise.
2509         * modules/sched (Files): Likewise.
2510         * modules/signal-h (Files): Likewise.
2511         * modules/spawn (Files): Likewise.
2512         * modules/sys_stat (Files): Likewise.
2513         * modules/sys_wait (Files): Likewise.
2514         * modules/termios (Files): Likewise.
2515         * modules/unistd (Files): Likewise.
2517 2020-08-23  Bruno Haible  <bruno@clisp.org>
2519         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
2520         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
2521         program.
2523 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2525         intprops: be consistent about +X vs X+0
2526         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2528         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
2529         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
2530         is a bit-field, on older GCC or non-GCC compilers where we do
2531         things ourselves instead of using __builtin_mul_overflow.
2532         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
2533         to applying sizeof to a bit-field.
2534         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
2535         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
2537 2020-08-23  Bruno Haible  <bruno@clisp.org>
2539         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
2540         Reported by Jörg Sonnenberger <joerg@netbsd.org>
2541         via Thomas Klausner <tk@giga.or.at> in
2542         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
2543         * lib/supersede.c (open_supersede): When opening an existing non-regular
2544         file on Solaris, use O_CREAT although it should not be necessary.
2546 2020-08-23  Bruno Haible  <bruno@clisp.org>
2548         verify: Make assume work on bit field expressions (regr. 2020-08-22).
2549         Reported by Benno Schulenberg <bensberg@telfort.nl> in
2550         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
2551         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
2552         variable.
2554 2020-08-23  Bruno Haible  <bruno@clisp.org>
2556         libc-config: Improve comments.
2557         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
2558         cannot use clang's __diagnose_if__ here.
2560 2020-08-22  Bruno Haible  <bruno@clisp.org>
2562         verify: Do use __builtin_assume on clang.
2563         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
2564         variable in a statement expression.
2566 2020-08-22  Bruno Haible  <bruno@clisp.org>
2568         sig2str: Add more signals.
2569         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
2571 2020-08-22  Bruno Haible  <bruno@clisp.org>
2573         doc: Update for OpenBSD 6.0, 6.7.
2574         * doc/*/*.texi: Update.
2575         * m4/printf.m4: Update comments and cross-compilation guesses.
2576         * m4/ceill.m4: Update comments.
2577         * m4/getcwd-abort-bug.m4: Likewise.
2578         * m4/ilogb.m4: Likewise.
2579         * m4/ilogbf.m4: Likewise.
2580         * m4/langinfo_h.m4: Likewise.
2581         * m4/modf.m4: Likewise.
2582         * m4/modff.m4: Likewise.
2584 2020-08-22  Bruno Haible  <bruno@clisp.org>
2586         doc: Mention sig2str module.
2587         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
2589 2020-08-21  Bruno Haible  <bruno@clisp.org>
2591         sigdescr_np: Add tests.
2592         * tests/test-sigdescr_np.c: New file.
2593         * modules/sigdescr_np-tests: New file.
2595         sigdescr_np: New module.
2596         * lib/string.in.h (sigdescr_np): New declaration.
2597         * lib/sigdescr_np.c: New file.
2598         * m4/sigdescr_np.m4: New file.
2599         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
2600         declared.
2601         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
2602         HAVE_SIGDESCR_NP.
2603         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
2604         HAVE_SIGDESCR_NP.
2605         * modules/sigdescr_np: New file.
2606         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
2607         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
2609 2020-08-20  Bruno Haible  <bruno@clisp.org>
2611         sigabbrev_np: Add tests.
2612         * tests/test-sigabbrev_np.c: New file.
2613         * modules/sigabbrev_np-tests: New file.
2615         sigabbrev_np: New module.
2616         * lib/string.in.h (sigabbrev_np): New declaration.
2617         * lib/sigabbrev_np.c: New file.
2618         * m4/sigabbrev_np.m4: New file.
2619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
2620         declared.
2621         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
2622         HAVE_SIGABBREV_NP.
2623         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
2624         HAVE_SIGABBREV_NP.
2625         * modules/sigabbrev_np: New file.
2626         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
2627         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
2629 2020-08-20  Bruno Haible  <bruno@clisp.org>
2631         stdalign tests: Skip test with AIX xlclang.
2632         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
2634 2020-08-20  Bruno Haible  <bruno@clisp.org>
2636         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
2637         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
2638         workaround as for GCC versions < 4.9.
2640 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2642         Sync up ProjectQuirks comments and documentation
2643         Transform the ProjectQuirks comments into a docstring so that it can
2644         be accessed from python as ProjectQuirks.__doc__ and harmonize
2645         descriptions with the documentation.
2646         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
2647         Transform comments into a docstring.
2648         * doc/vcs-to-changelog.texi: Sync up description with comments.
2650         Split ProjectQuirks out into its own file
2651         ProjectQuirks is used by external quirks files and importing it from
2652         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
2653         is cleaner to put it in its own file anyway.
2654         * build-aux/vcstocl/projectquirks.py: A new file...
2655         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
2656         we move ProjectQuirks and import the file.
2658 2020-08-19  Bruno Haible  <bruno@clisp.org>
2660         uchar: Fix compilation errors in C++ mode on macOS.
2661         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
2662         system header file before attempting to use 'char16_t' and 'char32_t'.
2664 2020-08-19  Bruno Haible  <bruno@clisp.org>
2666         ansi-c++-opt: Work around an autoconf macro reordering problem.
2667         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
2668         section.
2670 2020-08-19  Bruno Haible  <bruno@clisp.org>
2672         math C++ tests: Fix compilation error in with GCC 10.
2673         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
2674         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
2675         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2677 2020-08-19  Bruno Haible  <bruno@clisp.org>
2679         uchar: Fix compilation errors in C++ mode on OpenBSD.
2680         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
2681         CXX_HAS_UCHAR_TYPES is 1.
2682         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
2683         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
2684         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
2686 2020-08-19  Bruno Haible  <bruno@clisp.org>
2688         Fix compilation errors in C++ mode on OpenBSD.
2689         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
2690         OpenBSD with clang, use the approach without C preprocessor macro.
2692 2020-08-18  Bruno Haible  <bruno@clisp.org>
2694         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
2695         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
2696         AC_LANG_POP.
2698 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2700         verify: avoid __built_assume on Clang
2701         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
2702         Clang 9 incorrectly diagnoses arguments as having side effects
2703         even when they do not.  I guess Clang 9 considers any function
2704         call as if it had a side effect here.
2706         libc-config: avoid Clang’s __diagnose_if__
2707         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
2708         For now, do not use __diagnose_if__ here, as this fails
2709         on Fedora 31 with Clang 9.0.1, with diagnostic
2710         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
2711         size than length of destination buffer
2712         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
2713         for functions that are not called?
2715         careadlinkat: speedup for GCC 10 with GCC_LINT
2716         Inspired by a suggestion by Bruno Haible in:
2717         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
2718         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
2719         (readlink_stk): New function, with most of the old careadlinkat
2720         contents and with a new STACK_BUF arg.  Inline it in GCC 10
2721         if GCC_LINT.
2722         (careadlinkat): Use the new function for everything but the
2723         stack buffer.
2725         * build-aux/gcc-warning.spec: Update comments.
2727 2020-08-17  Bruno Haible  <bruno@clisp.org>
2729         Assume autoconf >= 2.64.
2730         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
2732 2020-08-17  Bruno Haible  <bruno@clisp.org>
2734         Revert autoupdate's revert.
2735         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
2737 2020-08-17  Bruno Haible  <bruno@clisp.org>
2739         uchar C++ tests: Fix build error on FreeBSD 12.
2740         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
2741         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
2742         <cuchar> does not exist.
2744 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2746         time_rz: remove unused functions
2747         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
2749         time_rz: fix issues with mktime_z failures
2750         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
2751         Use a cheaper tm_yday test for failed mktime.
2753 2020-08-16  Bruno Haible  <bruno@clisp.org>
2755         intprops test: Strengthen on clang.
2756         * tests/test-intprops.c (VERIFY): Use verify_stmt.
2758 2020-08-16  Bruno Haible  <bruno@clisp.org>
2760         nstrftime: Guide inlining also on clang.
2761         * lib/nstrftime.c (iso_week_days): Inline also on clang.
2763 2020-08-16  Bruno Haible  <bruno@clisp.org>
2765         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
2766         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
2768 2020-08-16  Bruno Haible  <bruno@clisp.org>
2770         log2l: Disable MSVC workaround on clang.
2771         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
2773 2020-08-16  Bruno Haible  <bruno@clisp.org>
2775         argp: Emit a warning also with clang.
2776         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
2777         clang.
2779 2020-08-16  Bruno Haible  <bruno@clisp.org>
2781         libc-config: Enable __REDIRECT macro also on clang.
2782         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
2783         __ASMNAME2): Define on clang like on GCC.
2785 2020-08-16  Bruno Haible  <bruno@clisp.org>
2787         regex: Use initializer shorthand syntax also with clang.
2788         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
2789         with clang.
2791 2020-08-16  Bruno Haible  <bruno@clisp.org>
2793         regex: Use space optimization also with clang.
2794         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
2795         with clang.
2797 2020-08-16  Bruno Haible  <bruno@clisp.org>
2799         Use _Static_assert and static_assert primitives when present on clang.
2800         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
2801         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
2802         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
2804 2020-08-16  Bruno Haible  <bruno@clisp.org>
2806         Use 'throw ()' for optimization in C++ mode also on clang.
2807         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
2808         * lib/getopt-cdefs.in.h (__THROW): Likewise.
2809         * lib/md5.h (__THROW): Likewise.
2811 2020-08-16  Bruno Haible  <bruno@clisp.org>
2813         absolute-header: Add support for clang.
2814         * modules/absolute-header (Makefile.am): Include '__clang__' in the
2815         HAVE_INCLUDE_NEXT expression.
2817 2020-08-16  Bruno Haible  <bruno@clisp.org>
2819         Fix "warning: implicitly declaring library function 'strcasecmp'".
2820         * lib/argp-help.c: Include <strings.h>.
2822 2020-08-16  Bruno Haible  <bruno@clisp.org>
2824         stdio: Don't break attribute 'scanf' on clang.
2825         * lib/stdio.in.h (scanf): Treat clang like GCC.
2827 2020-08-16  Bruno Haible  <bruno@clisp.org>
2829         Use __restrict also on clang.
2830         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
2831         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
2832         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
2834 2020-08-16  Bruno Haible  <bruno@clisp.org>
2836         pthread-spin: Use GCC built-ins also on clang.
2837         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2838         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
2839         also on clang.
2841 2020-08-16  Bruno Haible  <bruno@clisp.org>
2843         asyncsafe-spin tests: Update.
2844         * tests/test-asyncsafe-spin2.c: Update to match the change in
2845         lib/asyncsafe-spin.c from 2020-08-11.
2847 2020-08-16  Bruno Haible  <bruno@clisp.org>
2849         setenv: Use tree code also with clang.
2850         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
2852 2020-08-16  Bruno Haible  <bruno@clisp.org>
2854         math: Optimize signbit also on clang.
2855         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
2856         on clang.
2858 2020-08-16  Bruno Haible  <bruno@clisp.org>
2860         avltreehash-list, rbtreehash-list: Optimize also on clang.
2861         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
2862         __builtin_expect also on clang.
2864 2020-08-16  Bruno Haible  <bruno@clisp.org>
2866         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
2867         * lib/socket.c: Use WSASocketW, not WSASocketA.
2869         Fix "warning: format specifies type 'unsigned long'".
2870         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
2871         argument to match the format directive.
2873         Fix "warning: no case matching constant switch condition '0'".
2874         * tests/test-fcntl.c (check_flags): Add a 'default' case.
2876         Fix "warning: integer overflow in expression".
2877         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
2878         remove a 'long' overflow.
2880         Fix "warning: "getpagesize" redefined".
2881         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
2882         macro.
2884         Fix "warning: implicitly declaring library function 'strncasecmp'".
2885         * lib/strptime.c: Include <strings.h>.
2887         Fix "warning: 'snprintf' macro redefined".
2888         * lib/strerror_r.c (snprintf): Undefine before redefining.
2890         Fix "warning: address of array 'locale' will always evaluate to 'true'".
2891         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
2893         Fix "warning: '__stat64' macro redefined".
2894         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
2896         Fix "warning: 'format' attribute argument not supported: rpl_printf".
2897         * lib/stdio.in.h (printf): Treat clang like GCC.
2899         Fix "warning: attribute declaration must precede definition" with clang.
2900         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
2901         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
2902         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
2903         on non-glibc systems.
2904         * lib/netdb.in.h (gai_strerror): Likewise.
2905         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
2906         * lib/sys_stat.in.h (fstat): Likewise.
2907         * lib/utime.in.h (utime): Likewise.
2909         Fix undesired warnings.
2910         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
2911         clang.
2913 2020-08-16  Bruno Haible  <bruno@clisp.org>
2915         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
2916         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
2917         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
2918         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
2919         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
2921 2020-08-16  Bruno Haible  <bruno@clisp.org>
2923         Don't use Autoconf quadrigraphs.
2924         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
2925         Autoconf quadrigraph.
2926         * m4/free.m4 (gl_FUNC_FREE): Likewise.
2927         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
2928         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
2929         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2930         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
2931         * m4/math_h.m4 (gl_MATH_H): Likewise.
2932         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2934 2020-08-16  Bruno Haible  <bruno@clisp.org>
2936         Fix quoting of AC_LANG_PROGRAM arguments.
2937         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
2938         arguments through [[...]].
2939         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
2940         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2941         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2942         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
2943         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
2944         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2945         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
2946         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2947         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2948         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2949         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
2950         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
2951         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2953 2020-08-16  Bruno Haible  <bruno@clisp.org>
2955         Assume autoconf >= 2.64.
2956         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
2957         * DEPENDENCIES: Require Autoconf 2.64 or newer.
2958         * NEWS: Mention the changed requirement.
2959         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
2960         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
2961         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
2962         variables.
2963         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2964         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
2965         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
2966         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
2967         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
2968         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
2969         Likewise.
2970         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
2971         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
2972         * m4/configmake.m4: Update comment.
2974 2020-08-16  Bruno Haible  <bruno@clisp.org>
2976         sys_ioctl: Simplify.
2977         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
2978         AC_INCLUDES_DEFAULT.
2980 2020-08-16  Bruno Haible  <bruno@clisp.org>
2982         Fix quoting of AC_LANG_SOURCE arguments.
2983         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
2984         GL_NOCRASH expansion.
2985         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
2986         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2987         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2988         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2989         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2991 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2993         nstrftime: be more predictable about errno
2994         This aligns nstrftime better with draft POSIX 202x strftime.
2995         * lib/nstrftime.c: Include errno.h.
2996         (width_add, __strftime_internal): Set errno on failure,
2997         and preserve it on success.  Check for mktime_z failure.
2998         * modules/nstrftime (Depends-on): Add errno.
2999         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3000         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3001         (errno_test): New test function.
3002         (main): Call it.
3004 2020-08-15  Bruno Haible  <bruno@clisp.org>
3006         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3007         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3008         from dependency analysis first.
3010 2020-08-15  Bruno Haible  <bruno@clisp.org>
3012         Determine asm output option and filename suffix for MSVC/clang.
3013         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3014         clang-cl.
3016 2020-08-15  Bruno Haible  <bruno@clisp.org>
3018         doc: Update for MSVC/clang.
3019         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3020         that MSVC 14 does not have.
3022 2020-08-15  Bruno Haible  <bruno@clisp.org>
3024         Revert autoupdate's revert.
3025         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3027 2020-08-15  Bruno Haible  <bruno@clisp.org>
3029         frexpl: Fix configuration test result on MSVC.
3030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3031         zero.
3033 2020-08-15  Bruno Haible  <bruno@clisp.org>
3035         Support compiling without -loldnames on native Windows.
3036         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3037         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3038         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3039         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3040         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3042         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3043         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3044         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3045         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3046         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3047         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3048         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3049         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3050         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3051         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3052         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3054         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3055         Likewise.
3056         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3057         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3058         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3059         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3061         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3062         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3063         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3065         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3066         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3067         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3068         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3069         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3070         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3071         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3072         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3073         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3074         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3075         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3076         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3077         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3078         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3079         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3080         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3081         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3082         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3083         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3084         test for getcwd.
3085         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3086         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3087         with GL_MDA_DEFINES.
3088         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3089         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3090         prefixed symbol.
3091         * lib/search.in.h (lfind, lsearch): Likewise.
3092         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3093         Likewise.
3094         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3095         * lib/string.in.h (memccpy, strdup): Likewise.
3096         * lib/sys_stat.in.h (chmod, umask): Likewise.
3097         * lib/time.in.h (tzset): Likewise.
3098         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3099         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3100         read, rmdir, swab, unlink, write): Likewise.
3101         * lib/utime.in.h (utime): Likewise.
3102         * lib/wchar.in.h (wcsdup): Likewise.
3103         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3104         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3105         rpl_-prefixed macro.
3106         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3107         * lib/close.c (close_nothrow): On native Windows, use _close.
3108         * lib/creat.c (orig_creat): On native Windows, use _creat.
3109         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3110         * lib/dup2.c (dup2_nothrow): Use _dup2.
3111         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3112         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3113         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3114         * lib/open.c (orig_open): On native Windows, use _open.
3115         * lib/read.c (read_nothrow): Use _read.
3116         * lib/rmdir.c: On native Windows, use _rmdir.
3117         * lib/unlink.c: On native Windows, use _unlink.
3118         * lib/write.c (write_nothrow): Use _write.
3119         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3120         undefined symbol.
3121         * lib/sys_socket.in.h (close): Likewise.
3122         * lib/sys_time.in.h (close): Likewise.
3123         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3125 2020-08-15  Bruno Haible  <bruno@clisp.org>
3127         Fix "unknown pragma ignored" warnings with clang on native Windows.
3128         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3129         * lib/cbrtf.c: Likewise.
3130         * lib/ceil.c: Likewise.
3131         * lib/floor.c: Likewise.
3132         * lib/fma.c: Likewise.
3133         * lib/fmod.c: Likewise.
3134         * lib/rint.c: Likewise.
3135         * lib/round.c: Likewise.
3136         * lib/trunc.c: Likewise.
3137         * tests/test-ceil2.c: Likewise.
3138         * tests/test-ceilf2.c: Likewise.
3139         * tests/test-floor2.c: Likewise.
3140         * tests/test-floorf2.c: Likewise.
3141         * tests/test-trunc2.c: Likewise.
3142         * tests/test-truncf2.c: Likewise.
3143         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3144         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3146 2020-08-15  Bruno Haible  <bruno@clisp.org>
3148         Fix compilation errors in C++ mode with clang on native Windows.
3149         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3150         non-glibc systems.
3151         * lib/sched.in.h (sched_yield): Likewise.
3153 2020-08-14  Bruno Haible  <bruno@clisp.org>
3155         stdnoreturn: Work around problem with MSVC/clang.
3156         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3157         system header after <stdnoreturn.h>.
3158         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3160 2020-08-14  Bruno Haible  <bruno@clisp.org>
3162         utime-h: Generate an utime.h file always.
3163         * modules/utime-h (Makefile.am): Generate utime.h always.
3164         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3165         GL_GENERATE_UTIME_H.
3167 2020-08-14  Bruno Haible  <bruno@clisp.org>
3169         mktime, mktime-internal: Remove obsolete code.
3170         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3172 2020-08-14  Bruno Haible  <bruno@clisp.org>
3174         getcwd: Remove obsolete code.
3175         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3176         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3178 2020-08-14  Bruno Haible  <bruno@clisp.org>
3180         tzset: Assume the function exists.
3181         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3182         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3183         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3184         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3185         HAVE_TZSET.
3186         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3187         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3189         nstrftime: Assume tzset exists.
3190         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3191         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3192         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3194         mktime, mktime-internal: Assume tzset exists.
3195         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3196         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3198 2020-08-14  Bruno Haible  <bruno@clisp.org>
3200         strdup: Assume the function exists.
3201         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3202         whether strdup exists.
3203         * modules/strdup (Files): Remove lib/strdup.c.
3204         (configure.ac): Don't compile strdup.c.
3205         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3206         ac_cv_func_strdup.
3207         * doc/posix-functions/strdup.texi: Update.
3208         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
3209         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
3210         (Depends-on): Remove unistr/u8-strlen.
3212 2020-08-13  Bruno Haible  <bruno@clisp.org>
3214         sys_random: Work around an uClibc bug.
3215         Reported by akater <nuclearspace@gmail.com>
3216         via Stefan Kangas <stefan@marxist.se>
3217         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
3218         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
3219         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
3220         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3221         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
3223 2020-08-12  Bruno Haible  <bruno@clisp.org>
3225         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
3226         Reported by Florian Weimer in
3227         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
3228         * lib/gen-uni-tables.c (output_predicate): Change the element type of
3229         the level3 array to 'unsigned int'.
3230         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
3231         * lib/unictype/categ_*.h: Regenerated.
3232         * lib/unictype/ctype_*.h: Regenerated.
3233         * lib/unictype/pr_*.h: Regenerated.
3234         * lib/unictype/sy_*.h: Regenerated.
3235         * lib/unicase/cased.h: Regenerated.
3236         * lib/unicase/ignorable.h: Regenerated.
3238 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3240         stdint: port intptr_t to more-recent MinGW
3241         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
3242         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
3243         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
3244         Apparently those two macros were removed in mingwrt-3.22
3245         dated 2016-07-14.
3247 2020-08-12  Bruno Haible  <bruno@clisp.org>
3249         thread-optim: Export function-like macros only.
3250         Suggested by Paul Eggert.
3251         * lib/thread-optim.h (gl_multithreaded): New macro.
3252         (IF_MT_DECL, IF_MT): Remove macros.
3253         * doc/multithread.texi (Multithreading Optimizations): Add a small
3254         example.
3255         * lib/fatal-signal.c: Update all uses.
3256         * lib/clean-temp.c: Likewise.
3257         * lib/localename.c: Likewise.
3258         * modules/localename (Depends-on): Add stdbool.
3260 2020-08-12  Bruno Haible  <bruno@clisp.org>
3262         Revert autoupdate's revert.
3263         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3265 2020-08-11  Bruno Haible  <bruno@clisp.org>
3267         thread-optim: Fix a compiler warning.
3268         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3270 2020-08-11  Bruno Haible  <bruno@clisp.org>
3272         Use __restrict also on clang.
3273         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3274         (__restrict_arr): On clang, define like on GCC.
3275         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3276         (_Restrict_arr_): Use _Restrict_ also on clang.
3277         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3278         (_Restrict_arr_): Use _Restrict_ also on clang.
3280 2020-08-11  Bruno Haible  <bruno@clisp.org>
3282         Use flexible array syntax also on clang.
3283         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3284         define like for GCC 3.
3286 2020-08-11  Bruno Haible  <bruno@clisp.org>
3288         fcntl: On native Windows, use _setmode, not setmode.
3289         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3290         * lib/binary-io.h: Update comment.
3291         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3292         * tests/test-dup2.c: Likewise.
3293         * tests/test-dup-safer.c: Likewise.
3294         * tests/test-fcntl.c: Likewise.
3296 2020-08-11  Bruno Haible  <bruno@clisp.org>
3298         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3299         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3300         * lib/spawn-pipe.c (create_pipe): Likewise.
3301         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3302         * tests/test-nonblocking-socket-main.c (main): Likewise.
3303         * lib/wait-process.c: Update comment.
3304         * doc/posix-functions/fork.texi: Update.
3306 2020-08-11  Bruno Haible  <bruno@clisp.org>
3308         asyncsafe-spin: Use GCC built-ins also on clang.
3309         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3310         the newer GCC built-ins also on clang.
3312 2020-08-11  Bruno Haible  <bruno@clisp.org>
3314         Use expression statements also on clang.
3315         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3316         * lib/obstack.h (__extension__): Likewise.
3317         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3318         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3319         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3320         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3321         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3322         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3324 2020-08-10  Bruno Haible  <bruno@clisp.org>
3326         Use many __attribute__s with clang.
3327         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3328         on clang.
3329         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3330         New macros.
3331         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3332         on clang.
3333         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3334         also on older clang versions.
3335         (__attribute__): Don't define to empty on clang.
3336         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3337         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3338         (__attribute_const__): Use __attribute__ __const__ also on clang.
3339         (__attribute_used__): Use __attribute__ __used__ also on clang.
3340         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3341         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3342         clang.
3343         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3344         clang.
3345         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3346         also on clang.
3347         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3348         (__attribute_warn_unused_result__): Use __attribute__
3349         __warn_unused_result__ also on clang.
3350         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3351         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3352         clang >= 7.
3353         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3354         clang versions.
3355         (_Noreturn): Don't redefine on clang >= 3.5.
3356         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3357         also on clang.
3358         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3359         on clang.
3360         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3361         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3362         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3363         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3364         also on clang.
3365         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3366         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3367         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3368         also on clang.
3369         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3370         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3371         __attribute__ __noreturn__ also on clang.
3372         * lib/obstack.h (__attribute_noreturn__): Likewise.
3373         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3374         clang.
3375         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3376         always_inline also on clang.
3377         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3378         clang.
3380 2020-08-10  Bruno Haible  <bruno@clisp.org>
3382         c-ldtoastr tests: Fix test failure.
3383         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
3384         is longer than 'double'.
3386 2020-08-10  Bruno Haible  <bruno@clisp.org>
3388         Revert autoupdate's revert.
3389         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
3391 2020-08-09  Bruno Haible  <bruno@clisp.org>
3393         string: Fix build error in C++ mode with clang (regression from today).
3394         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
3395         parameters, one for GCC, one for clang.
3396         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
3397         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
3398         as return type.
3400 2020-08-09  Bruno Haible  <bruno@clisp.org>
3402         ftruncate: Use _chsize, not chsize.
3403         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
3404         * lib/ftruncate.c: Test HAVE__CHSIZE.
3405         (chsize_nothrow): Use _chsize, not chsize.
3407 2020-08-09  Bruno Haible  <bruno@clisp.org>
3409         Silence warnings from clang 10 with -Wimplicit-fallthrough.
3410         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
3411         clang >= 10.
3412         * lib/fnmatch.c (FALLTHROUGH): Likewise.
3413         * lib/fts.c (FALLTHROUGH): Likewise.
3414         * tests/macros.h (FALLTHROUGH): Likewise.
3415         * lib/regex_internal.h (FALLTHROUGH): Likewise.
3416         * config/srclist.txt: Mark it as needing sync with glibc.
3418 2020-08-09  Bruno Haible  <bruno@clisp.org>
3420         stdbool tests: Enable the stricter tests also on clang.
3421         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
3422         (e): Enable the address-to-bool conversion test also on clang.
3424 2020-08-09  Bruno Haible  <bruno@clisp.org>
3426         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
3427         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
3429 2020-08-09  Bruno Haible  <bruno@clisp.org>
3431         Use attribute __aligned__ with clang.
3432         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
3433         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
3435 2020-08-09  Bruno Haible  <bruno@clisp.org>
3437         Use __alignof__ with clang.
3438         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
3439         on clang.
3440         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
3441         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
3442         clang.
3443         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
3444         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
3445         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
3446         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
3448 2020-08-09  Bruno Haible  <bruno@clisp.org>
3450         ignore-value: Simplify on clang.
3451         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
3452         workaround.
3454 2020-08-09  Bruno Haible  <bruno@clisp.org>
3456         Use __typeof__ with clang.
3457         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
3458         "clang -std=gnu99".
3459         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
3460         * tests/test-stdint.c (verify_same_types): Enable the check also on
3461         clang.
3463 2020-08-09  Bruno Haible  <bruno@clisp.org>
3465         Add ability to emit user-defined warnings and errors with clang.
3466         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
3467         _GL_ATTRIBUTE_WARNING using an attribute for clang.
3468         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
3469         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
3470         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
3471         attribute for clang.
3473 2020-08-09  Bruno Haible  <bruno@clisp.org>
3475         intprops: Fix typo in comment.
3476         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
3478 2020-08-09  Bruno Haible  <bruno@clisp.org>
3480         Use __builtin_signbit* with clang.
3481         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
3482         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
3483         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3485         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3486         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
3487         not REPLACE_SIGNBIT_USING_GCC.
3489 2020-08-09  Bruno Haible  <bruno@clisp.org>
3491         Use __builtin_isnan with clang.
3492         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3493         not __builtin_isnanf. Also on clang.
3494         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
3495         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
3496         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
3497         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
3498         built-in.
3499         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3500         not __builtin_isnanl. Also on clang.
3501         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
3502         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
3503         * lib/math.in.h (__has_builtin): Remove macro.
3504         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
3505         __builtin_isnanf. Also on clang.
3506         (isnand, gl_isnan_d): With clang, use the GCC built-in.
3507         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
3508         __builtin_isnanl. Also on clang.
3509         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
3510         on clang.
3512 2020-08-09  Bruno Haible  <bruno@clisp.org>
3514         thread-optim: Fix logic error.
3515         Reported by Paul Eggert.
3516         * lib/thread-optim.h (IF_MT): Fix logic error.
3518 2020-08-08  Bruno Haible  <bruno@clisp.org>
3520         localename: Use module 'thread-optim'.
3521         * lib/localename.c: Include thread-optim.h.
3522         (struniq): Use IF_MT macro.
3523         * modules/localename (Depends-on): Add thread-optim.
3525         clean-temp: Use module 'thread-optim'.
3526         * lib/clean-temp.c: Include thread-optim.h.
3527         (register_temporary_file, unregister_temporary_file, create_temp_dir,
3528         register_temp_file, unregister_temp_file, register_temp_subdir,
3529         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
3530         close_temp, fclose_variant_temp): Use IF_MT macro.
3531         * modules/clean-temp (Depends-on): Add thread-optim.
3533         fatal-signal: Use module 'thread-optim'.
3534         * lib/fatal-signal.c: Include thread-optim.h.
3535         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
3536         macro.
3537         * modules/fatal-signal (Depends-on): Add thread-optim.
3539 2020-08-08  Bruno Haible  <bruno@clisp.org>
3541         New module 'thread-optim'.
3542         * lib/thread-optim.h: New file.
3543         * modules/thread-optim: New file.
3544         * doc/multithread.texi (Multithreading Optimizations): New section.
3546 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
3548         doc: more updates for glibc 2.32
3549         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
3550         * doc/posix-functions/fchmodat.texi: Update.
3552 2020-08-07  Bruno Haible  <bruno@clisp.org>
3554         doc: Update for glibc 2.32.
3555         * doc/glibc-functions/__libc_single_threaded.texi: New file.
3556         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
3557         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
3558         * doc/glibc-functions/sigabbrev_np.texi: New file.
3559         * doc/glibc-functions/sigdescr_np.texi: New file.
3560         * doc/glibc-functions/strerrordesc_np.texi: New file.
3561         * doc/glibc-functions/strerrorname_np.texi: New file.
3562         * doc/gnulib.texi: Include them.
3563         (Glibc sys/single_threaded.h): New section.
3564         * doc/pastposix-functions/h_errno.texi: Update.
3565         * doc/posix-functions/*.texi: Likewise.
3566         * doc/glibc-functions/*.texi: Likewise.
3568 2020-08-07  Bruno Haible  <bruno@clisp.org>
3570         alloca: No need to compile alloca.c with clang.
3571         * lib/alloca.c: Skip all code with clang.
3573         Use __builtin_alloca with clang.
3574         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
3576 2020-08-06  Bruno Haible  <bruno@clisp.org>
3578         Use __builtin_assume with clang.
3579         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
3580         (assume): Use __builtin_assume when available.
3582 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3584         libgmp: add <gmp/gmp.h> support
3585         * m4/libgmp.m4 (gl_LIBGMP):
3586         * modules/libgmp (configure.ac, Makefile.am):
3587         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
3588         ‘#include <gmp.h>’.
3590 2020-08-06  Bruno Haible  <bruno@clisp.org>
3592         Consider that clang defines __OPTIMIZE__ like GCC does.
3593         * lib/streq.h: Define the inline functions also on clang.
3594         * lib/c-strcaseeq.h: Likewise.
3595         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
3596         the GCC workaround to clang.
3598 2020-08-06  Bruno Haible  <bruno@clisp.org>
3600         safe-alloc: Remove unused code.
3601         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
3603 2020-08-06  Bruno Haible  <bruno@clisp.org>
3605         Use __builtin_expect with clang everywhere.
3606         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
3607         also on clang.
3609 2020-08-05  Bruno Haible  <bruno@clisp.org>
3611         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
3612         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
3613         built-in also on clang.
3614         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
3615         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
3617 2020-08-05  Bruno Haible  <bruno@clisp.org>
3619         Use __builtin_clz{,l,ll} with clang, also on Windows.
3620         * lib/integer_length.c: With clang, use the GCC built-in, not
3621         <intrin.h>.
3622         * lib/integer_length_l.c: Likewise.
3623         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
3624         also on clang.
3625         * lib/vasnprintf.c (divide): Likewise.
3627 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3629         Update srclist.txt as per recent glibc changes
3630         * config/srclist.txt: Uncomment lines to reflect recent merges
3631         from Gnulib to glibc.
3633 2020-08-03  Bruno Haible  <bruno@clisp.org>
3635         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3636         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
3638 2020-08-03  Bruno Haible  <bruno@clisp.org>
3640         integer_length_ll: Optimize for MSVC in 64-bit mode.
3641         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3642         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3644 2020-08-03  Bruno Haible  <bruno@clisp.org>
3646         integer_length_ll: Optimize for MSVC in 32-bit mode.
3647         * lib/integer_length_l.c: Include <intrin.h>.
3648         (integer_length): Define as inline function, like in
3649         lib/integer_length.c.
3651 2020-08-03  Bruno Haible  <bruno@clisp.org>
3653         integer_length: Optimize for MSVC.
3654         * lib/integer_length.c: Include <intrin.h>.
3655         (integer_length): With MSVC, use the _BitScanReverse built-in.
3657 2020-08-03  Bruno Haible  <bruno@clisp.org>
3659         ffsll: Optimize for MSVC in 64-bit mode.
3660         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3661         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3662         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
3664 2020-08-03  Bruno Haible  <bruno@clisp.org>
3666         ffsll: Optimize for MSVC in 32-bit mode.
3667         * lib/ffsl.h: Include <intrin.h>.
3668         (ffs): Define as inline function, like in lib/ffs.c.
3670 2020-08-03  Bruno Haible  <bruno@clisp.org>
3672         ffs: Optimize for MSVC.
3673         * lib/ffs.c: Include <intrin.h>.
3674         (ffs): With MSVC, use the _BitScanForward built-in.
3676 2020-08-03  Bruno Haible  <bruno@clisp.org>
3678         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
3679         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
3680         variable.
3682 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
3684         fopen: Avoid undesired interactions with glibc headers.
3685         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
3686         __need_FILE, as the latter does not work with glibc.
3688 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3690         fcntl: document some F_SETLK errno variations
3691         * doc/posix-functions/fcntl.texi (fcntl): Document
3692         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
3694 2020-08-02  Bruno Haible  <bruno@clisp.org>
3696         oset: Add an 'iterator_atleast' operation.
3697         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
3698         extracted from gl_array_search_atleast.
3699         (gl_array_search_atleast): Use it.
3700         (gl_array_iterator_atleast): New function.
3701         (gl_array_oset_implementation): Use it.
3702         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
3703         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
3704         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
3705         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
3706         member.
3707         (gl_oset_iterator_atleast): New function.
3708         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
3709         (gl_OSet::iterator): Add another auxiliary constructor.
3710         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
3711         New functions.
3712         (main): Test also gl_oset_iterator_atleast.
3713         * tests/test-avltree_oset.c (is_at_least): New function.
3714         (main): Test also gl_oset_iterator_atleast.
3715         * tests/test-rbtree_oset.c (is_at_least): New function.
3716         (main): Test also gl_oset_iterator_atleast.
3717         * tests/test-oset-c++.cc (is_at_most): New function.
3718         (main): Test also gl_OSet::begin_atleast.
3720 2020-08-02  Bruno Haible  <bruno@clisp.org>
3722         oset-c++, omap-c++: Remove restriction for search_atleast method.
3723         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
3724         a different type than the element.
3725         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
3726         a different type than the key.
3728 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3730         gnumakefile: say ‘$(MAKE)’ not ‘make’
3731         * top/GNUmakefile (abort-due-to-no-makefile):
3732         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
3733         This change is backported from Autoconf.
3735 2020-08-01  Bruno Haible  <bruno@clisp.org>
3737         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3738         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
3739         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3740         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3741         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3742         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
3744 2020-08-01  Bruno Haible  <bruno@clisp.org>
3746         libtextstyle-optional: Update tests.
3747         * modules/libtextstyle-optional-tests (configure.ac): Invoke
3748         gl_LIBTEXTSTYLE_OPTIONAL.
3750 2020-08-01  Bruno Haible  <bruno@clisp.org>
3752         parse-datetime: Fix wrong #line statements.
3753         * modules/parse-datetime (Makefile.am): Correct #line statements also in
3754         parse-datetime-gen.h.
3756 2020-08-01  Bruno Haible  <bruno@clisp.org>
3758         libtextstyle[-optional]: Allow requesting a minimum version.
3759         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
3760         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
3761         gl_LIBTEXTSTYLE_SEARCH): New macros.
3762         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
3763         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
3764         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
3765         * modules/libtextstyle-optional (configure.ac): Don't invoke
3766         gl_LIBTEXTSTYLE_OPTIONAL.
3767         * NEWS: Mention the changes.
3769 2020-07-31  Bruno Haible  <bruno@clisp.org>
3771         _GL_CMP: Improve documentation.
3772         Reported by Paul Eggert in
3773         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
3774         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
3775         passed.
3777 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3779         largefile: sync with Autoconf master
3780         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
3781         Avoid undefined behavior on platforms where off_t is 32 bits.
3782         See: https://bugs.debian.org/742780
3784         alloca: sync with Autoconf master
3785         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3786         Do not define if Autoconf 2.70 or later, since Autoconf master
3787         now matches us.
3789 2020-07-30  Bruno Haible  <bruno@clisp.org>
3791         unicodeio: Add comment.
3792         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
3793         different iconv behaviours.
3795 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3797         Work around some Oracle Studio attribute bugs
3798         These were discovered when building bleeding-edge Emacs with
3799         Oracle Studio.
3800         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
3801         Port to Oracle Studio 12.6, which mishandles __attribute__
3802         ((__cold__)) and __attribute__ ((__may_alias__)) even though
3803         __has_attribute says they work.
3805 2020-07-29  Bruno Haible  <bruno@clisp.org>
3807         unicodeio: Fix wrong result on musl libc.
3808         Reported by A. Wilcox <awilfox@adelielinux.org> in
3809         <https://www.openwall.com/lists/musl/2020/07/29/2>.
3810         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
3811         on musl libc.
3812         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
3813         * modules/unicodeio (Files): Add m4/musl.m4.
3815 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
3817         fsusage, regex, stat-size: remove Cray support
3818         As near as I can make out this is actually support for UNICOS/mp,
3819         last released 2005, and Cray hasn’t supported that for years.
3820         * config/srclist.txt: Comment out regex.h for now.
3821         * lib/fsusage.c (get_fs_usage):
3822         * lib/regex.h (re_comp, re_exec):
3823         * lib/stat-size.h (ST_NBLOCKSIZE):
3824         Don’t worry about _CRAY.
3826 2020-07-29  Bruno Haible  <bruno@clisp.org>
3828         parse-datetime: Fix compilation error with bison 3.7.
3829         * modules/parse-datetime (Makefile.am): Create a generated header file
3830         parse-datetime-gen.h in the source directory. Correct #include and
3831         #line statements during preprocessing.
3833 2020-07-28  Bruno Haible  <bruno@clisp.org>
3835         fopen-gnu: Create files correctly (regression from 2020-05-24).
3836         * lib/fopen.c (rpl_open): Pass a third argument to open().
3838 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3840         xalloc-die: don’t depend on xalloc
3841         This removes a circular dependency, as xalloc depends on xalloc-die.
3842         * modules/xalloc-die (Files): Add lib/xalloc.h.
3843         (Depends-on): Remove xalloc.
3844         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
3846         dfa-tests: port to MSVC
3847         Problem reported by Gisle Vanem in:
3848         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
3849         Also, remove an unnecessary dependency on getprogname.
3850         * modules/dfa-tests (Depends-on): Remove getprogname.
3851         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
3852         (exit_status): New static var.
3853         (dfawarn): Set it instead of exiting.
3854         Do not declare as _Noreturn, to pacify MSVC.
3855         (main): Return exit_status.
3857 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3859         argz: pacify MSVC
3860         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
3861         Problem reported by Gisle Vanem.
3863         libgmp: remove dependency on havelib
3864         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
3865         use the more-traditional AC_SEARCH_LIBS approach.
3866         This should work better with GNU Emacs configuration,
3867         which uses pkg-config instead of a havelib-style approach.
3868         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
3869         * modules/libgmp (Depends-on): Remove havelib.
3871         libgmp: remove HAVE_GMP, LIB_GMP
3872         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
3873         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
3875 2020-07-26  Bruno Haible  <bruno@clisp.org>
3877         inttypes: Remove support for AIX 4.
3878         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
3879         * m4/inttypes-pri.m4: Remove file.
3880         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
3881         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
3882         * modules/inttypes-incomplete (Makefile.am): Don't substitute
3883         PRI_MACROS_BROKEN.
3884         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
3886 2020-07-26  Bruno Haible  <bruno@clisp.org>
3888         gettimeofday: Remove workaround for Mac OS X 10.0.
3889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
3890         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
3891         * lib/gettimeofday.c: Don't include localtime-buffer.h.
3892         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3893         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
3894         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
3895         * modules/localtime-buffer: Remove file.
3896         * lib/localtime-buffer.h: Remove file.
3897         * lib/localtime-buffer.c: Remove file.
3898         * m4/localtime-buffer.m4: Remove file.
3899         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
3901 2020-07-26  Bruno Haible  <bruno@clisp.org>
3903         tzset: Remove workaround for Solaris 2.6.
3904         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
3905         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
3906         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
3907         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
3908         * lib/localtime-buffer.c: Likewise.
3909         * lib/localtime.c: Likewise.
3910         * lib/tzset.c: Don't include localtime-buffer.h.
3911         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
3912         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
3913         is 1.
3914         * modules/tzset (Depends-on): Remove localtime-buffer.
3916 2020-07-26  Bruno Haible  <bruno@clisp.org>
3918         expl: Simplify autoconf test.
3919         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
3920         with small values..." test into the "checking whether expl works..."
3921         test.
3923 2020-07-26  Bruno Haible  <bruno@clisp.org>
3925         alloca: Remove Cray-2 and Cray Y-MP support.
3926         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
3927         Enable also on Autoconf >= 2.69.
3928         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
3929         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
3930         i00afunc): Remove.
3932 2020-07-25  Bruno Haible  <bruno@clisp.org>
3934         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
3935         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
3937 2020-07-25  Bruno Haible  <bruno@clisp.org>
3939         sigprocmask: Small autoconf macro improvement.
3940         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
3941         user to override the value of gl_cv_func_sigprocmask.
3942         * m4/gnulib-common.m4 (gl_SILENT): New macro.
3944 2020-07-25  Bruno Haible  <bruno@clisp.org>
3946         Small autoconf macro improvements.
3947         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
3948         override the value of gl_cv_func_working_mktime.
3949         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
3950         compiler produces multi-arch binaries..." in the configure output.
3951         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
3952         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
3954 2020-07-25  Bruno Haible  <bruno@clisp.org>
3956         doc: Update for NetBSD 7.1, 8.0, 9.0.
3957         * doc/*/*.texi: Update.
3958         * m4/exp2l.m4: Update comments.
3959         * m4/expl.m4: Likewise.
3960         * m4/ilogb.m4: Likewise.
3961         * m4/ilogbf.m4: Likewise.
3962         * m4/log10l.m4: Likewise.
3963         * m4/logl.m4: Likewise.
3964         * m4/printf.m4: Likewise.
3965         * m4/rintl.m4: Likewise.
3966         * m4/wcwidth.m4: Likewise.
3968 2020-07-24  Bruno Haible  <bruno@clisp.org>
3970         doc: Update for Mac OS X 10.13.
3971         * doc/*/*.texi: Update.
3972         * m4/expm1l.m4: Update comments.
3973         * m4/getgroups.m4: Likewise.
3974         * m4/getlogin_r.m4: Likewise.
3975         * m4/linkat.m4: Likewise.
3976         * m4/printf.m4: Likewise.
3978 2020-07-24  Bruno Haible  <bruno@clisp.org>
3980         doc: Update for Cygwin 2.9.0.
3981         * doc/*/*.texi: Update.
3983 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3985         parse-datetime: modernize doc
3986         * doc/parse-datetime.texi: Use more-current examples.
3987         Don’t lead with 32-bit time_t, as it’s on its way out.
3988         Capitalize “Epoch” to be consistent with POSIX.
3990         timespec: remove dependence on ‘verify’
3991         * lib/timespec.h: Do not include verify.h; no longer needed.
3992         * modules/timespec (Depends-on): Remove ‘verify’.
3994         Optimize a few more three-valued comparisons
3995         * lib/timespec.h (timespec_cmp, timespec_sign):
3996         * lib/utimecmp.c (utimecmpat):
3997         Avoid conditional branches by using _GL_CMP.
3999         Fix _GL_CMP parenthesization typo
4000         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4002 2020-07-24  Bruno Haible  <bruno@clisp.org>
4004         dfa: Revert breaking gawk.
4005         Reported by Arnold Robbins <arnold@skeeve.com>.
4006         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4008 2020-07-23  Bruno Haible  <bruno@clisp.org>
4010         Optimize three-valued comparison between integers.
4011         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4012         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4013         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4014         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4015         * lib/dfa.c (compare): Likewise.
4016         * lib/fts.c (fts_compare_ino): Likewise.
4017         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4018         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4019         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4020         * lib/memcasecmp.c (memcasecmp): Likewise.
4021         * lib/memcmp2.c (memcmp2): Likewise.
4022         * lib/savedir.c (direntry_cmp_inode): Likewise.
4023         * lib/strcasecmp.c (strcasecmp): Likewise.
4024         * lib/strncasecmp.c (strncasecmp): Likewise.
4025         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4027 2020-07-23  Bruno Haible  <bruno@clisp.org>
4029         lchmod: Use /proc on Cygwin.
4030         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4032 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4034         fchmodat: Use /proc on Cygwin
4035         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4037 2020-07-21  Bruno Haible  <bruno@clisp.org>
4039         aligned-malloc: Optionally use aligned_alloc.
4040         * lib/aligned-malloc.h: Verify the alignment.
4041         (aligned_malloc): Use aligned_alloc as an alternative.
4042         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4043         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4044         'aligned-malloc' and 'pagealign_alloc'.
4046 2020-07-21  Bruno Haible  <bruno@clisp.org>
4048         aligned-malloc: Add tests.
4049         * tests/test-aligned-malloc.c: New file.
4050         * modules/aligned-malloc-tests: New file.
4052         aligned-malloc: New module.
4053         * lib/aligned-malloc.h: New file.
4054         * m4/malloc-align.m4: New file.
4055         * modules/aligned-malloc: New file.
4056         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4057         * doc/glibc-functions/memalign.texi: Likewise.
4059 2020-07-21  Bruno Haible  <bruno@clisp.org>
4061         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4062         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4063         sure PRIPTR_PREFIX is defined to "ll", not "l".
4065 2020-07-21  Bruno Haible  <bruno@clisp.org>
4067         printf-posix: Make an autoconf test more future-proof.
4068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4069         using uintptr_t.
4071 2020-07-20  Bruno Haible  <bruno@clisp.org>
4073         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4074         * modules/list (License): Change to LGPLv2+.
4075         * modules/array-list (License): Likewise.
4076         * modules/carray-list (License): Likewise.
4077         * modules/linked-list (License): Likewise.
4078         * modules/avltree-list (License): Likewise.
4079         * modules/rbtree-list (License): Likewise.
4080         * modules/oset (License): Likewise.
4081         * modules/array-oset (License): Likewise.
4082         * modules/avltree-oset (License): Likewise.
4083         * modules/rbtree-oset (License): Likewise.
4084         * modules/omap (License): Likewise.
4085         * modules/array-omap (License): Likewise.
4086         * modules/avltree-omap (License): Likewise.
4087         * modules/rbtree-omap (License): Likewise.
4089 2020-07-20  Bruno Haible  <bruno@clisp.org>
4091         oset: Add an 'update' operation.
4092         * lib/gl_array_oset.c (gl_array_update): New function.
4093         (gl_array_oset_implementation): Use it.
4094         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4095         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4096         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4097         extracted from gl_tree_nx_add_before.
4098         (gl_tree_nx_add_before): Invoke it.
4099         (gl_tree_add_node_after): New function, extracted from
4100         gl_tree_nx_add_after.
4101         (gl_tree_nx_add_after): Invoke it.
4102         (gl_tree_remove_node_no_free): New function, extracted from
4103         gl_tree_remove_node.
4104         (gl_tree_remove_node): Invoke it.
4105         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4106         extracted from gl_tree_nx_add_before.
4107         (gl_tree_nx_add_before): Invoke it.
4108         (gl_tree_add_node_after): New function, extracted from
4109         gl_tree_nx_add_after.
4110         (gl_tree_nx_add_after): Invoke it.
4111         (gl_tree_remove_node_no_free): New function, extracted from
4112         gl_tree_remove_node.
4113         (gl_tree_remove_node): Invoke it.
4114         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4115         from gl_tree_iterator_next.
4116         (gl_tree_iterator_next): Invoke it.
4117         (gl_tree_prev_node, gl_tree_update): New functions.
4118         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4119         (gl_avltree_oset_implementation): Use gl_tree_update.
4120         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4121         (gl_rbtree_oset_implementation): Use gl_tree_update.
4122         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4123         (gl_oset_update): New function.
4124         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4125         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4126         * modules/rbtree-oset (configure.ac): Likewise.
4127         * tests/test-oset-update.h: New file.
4128         * tests/test-array_oset.c: Include test-oset-update.h.
4129         (main): Invoke test_update.
4130         * tests/test-avltree_oset.c: Likewise.
4131         * tests/test-rbtree_oset.c: Likewise.
4132         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4133         * modules/avltree-oset-tests (Files): Likewise.
4134         * modules/rbtree-oset-tests (Files): Likewise.
4135         * tests/test-oset-c++.cc (action): New function.
4136         (main): Test the 'update' member function.
4138 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4140         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4141         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4142         shell if, so that the argument to AC_CHECK_HEADERS is
4143         a simple string that does not require shell evaluation.
4144         This fixes a warning generated by Autoconf 2.69b.
4146 2020-07-12  Bruno Haible  <bruno@clisp.org>
4148         libgmp: Avoid warning when --without-libgmp is used.
4149         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4150         GCC >= 8, not for GCC >= 4.6.
4152 2020-07-12  Bruno Haible  <bruno@clisp.org>
4154         libgmp: Link to the correct shared library.
4155         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4156         * modules/libgmp (Depends-on): Add havelib.
4157         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4158         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4160 2020-07-12  Bruno Haible  <bruno@clisp.org>
4162         libgmp tests: Add some safety checks.
4163         * modules/libgmp-tests (Depends-on): Add verify.
4164         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4165         (main): Verify that gmp.h and libgmp versions match.
4167 2020-07-10  Bruno Haible  <bruno@clisp.org>
4169         unicodeio: Fix wrong result on NetBSD.
4170         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4171         characters also on NetBSD.
4173 2020-07-09  Bruno Haible  <bruno@clisp.org>
4175         unicodeio: Fix wrong result on Solaris 11.
4176         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4177         via Akim Demaille <akim.demaille@gmail.com> in
4178         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4179         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4180         characters on Solaris.
4181         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4182         UTF-8 output or the specified fallback.
4184 2020-07-08  Bruno Haible  <bruno@clisp.org>
4186         unicodeio: Add tests.
4187         * tests/test-unicodeio.c: New file.
4188         * tests/test-unicodeio1.sh: New file.
4189         * tests/test-unicodeio2.sh: New file.
4190         * tests/test-unicodeio3.sh: New file.
4191         * modules/unicodeio-tests: New file.
4193 2020-07-08  Bruno Haible  <bruno@clisp.org>
4195         unicodeio: Document link requirements.
4196         * modules/unicodeio (Link): New section.
4198 2020-07-07  Bruno Haible  <bruno@clisp.org>
4200         doc: Remove support for some very old platforms.
4201         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4202         * doc/posix-functions/memcpy.texi: Likewise.
4203         * doc/posix-functions/memmove.texi: Likewise.
4204         * doc/posix-functions/memset.texi: Likewise.
4205         * doc/posix-functions/getcwd.texi: Likewise.
4207         memchr: Remove support for some very old platforms.
4208         * m4/memchr-obsolete.m4: Remove file.
4209         * modules/memchr-obsolete: Remove file.
4210         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
4211         absent. Don't define HAVE_MEMCHR.
4212         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
4213         * modules/memchr (Depends-on): Remove memchr-obsolete.
4214         (configure.ac): Assume HAVE_MEMCHR is 1.
4215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4216         HAVE_MEMCHR.
4217         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
4218         * doc/posix-functions/memchr.texi: Don't mention module
4219         'memchr-obsolete'.
4220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4221         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4222         * modules/strnlen (Depends-on): Remove memchr-obsolete.
4224         dup2: Remove support for some very old platforms.
4225         * m4/dup2-obsolete.m4: Remove file.
4226         * modules/dup2-obsolete: Remove file.
4227         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
4228         Don't define HAVE_DUP2.
4229         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
4230         * lib/dup2.c: Likewise.
4231         * modules/dup2 (Depends-on, configure.ac): Likewise.
4232         (Depends-on): Remove dup2-obsolete.
4233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
4234         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
4235         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
4237 2020-07-07  Bruno Haible  <bruno@clisp.org>
4239         canonicalize: Trim module dependencies.
4240         * lib/hash-triple.h: Group declarations.
4241         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
4242         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
4243         (STREQ): Remove macro.
4244         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
4245         * modules/hash-triple-simple: New file, based on modules/hash-triple.
4246         * modules/hash-triple (Files): Remove lib/hash-triple.h.
4247         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
4248         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4249         hash-triple-simple.
4250         * modules/file-set (Depends-on): Likewise.
4252 2020-07-07  Bruno Haible  <bruno@clisp.org>
4254         Clarify dependencies to double-slash-root.
4255         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4256         (Depends-on): Add double-slash-root.
4257         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4258         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4260 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4262         libgmp: new module
4263         The idea is to let programs simply include <gmp.h>, and
4264         so long as they live within the mini-gmp subset they need
4265         not worry about whether the GMP libraries are installed.
4266         * MODULES.html.sh: Mention it.
4267         * config/srclist.txt: Mention files copied from GMP source.
4268         * config/srclistvars.sh (GMP): New var.
4269         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4270         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4271         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4273 2020-07-05  Bruno Haible  <bruno@clisp.org>
4275         mkancesdirs: Trim module dependencies.
4276         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4277         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4279 2020-07-05  Bruno Haible  <bruno@clisp.org>
4281         getprogname: Trim module dependencies.
4282         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4283         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4284         basename-lgpl.
4286 2020-07-05  Bruno Haible  <bruno@clisp.org>
4288         filenamecat-lgpl: Trim module dependencies.
4289         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4290         dirname.h.
4291         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4292         basename-lgpl, filename.
4294 2020-07-05  Bruno Haible  <bruno@clisp.org>
4296         backupfile, backup-rename: Trim module dependencies.
4297         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4298         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4299         basename-lgpl.
4300         * modules/backup-rename (Depends-on): Likewise.
4302 2020-07-05  Bruno Haible  <bruno@clisp.org>
4304         argp: Trim module dependencies.
4305         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4306         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4308 2020-07-05  Bruno Haible  <bruno@clisp.org>
4310         basename-lgpl: New module.
4311         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4312         lib/basename-lgpl.c.
4313         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4314         <stdbool.h>, filename.h.
4315         (last_component): Rename a local variable.
4316         * lib/dirname.h: Include basename-lgpl.h.
4317         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4318         (last_component, base_len): Remove declarations.
4319         * modules/basename-lgpl: New file.
4320         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4321         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4322         (Makefile.am): Don't compile basename-lgpl.c.
4323         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4324         not 'dirname'.
4326 2020-07-05  Bruno Haible  <bruno@clisp.org>
4328         dirname, dirname-lgpl: Simplify.
4329         * m4/dirname.m4: Remove file.
4330         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4331         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4332         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4334 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4336         tests: avoid shadowing warning
4337         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4339 2020-07-05  Bruno Haible  <bruno@clisp.org>
4341         supersede: Add tests.
4342         * tests/test-supersede.c: New file.
4343         * tests/test-supersede-open.h: New file.
4344         * tests/test-supersede-fopen.h: New file.
4345         * modules/supersede-tests: New file.
4347         supersede: New module.
4348         * lib/supersede.h: New file.
4349         * lib/supersede.c: New file.
4350         * m4/supersede.m4: New file.
4351         * modules/supersede: New file.
4353 2020-07-05  Bruno Haible  <bruno@clisp.org>
4355         Add some copyright headers.
4356         * lib/dev-ino.h: Add copyright header.
4357         * lib/di-set.h: Likewise.
4358         * lib/fchown-stub.c: Likewise.
4359         * lib/file-set.h: Likewise.
4360         * lib/hash-triple.h: Likewise.
4361         * lib/idcache.h: Likewise.
4362         * lib/ino-map.h: Likewise.
4363         * lib/mkancesdirs.h: Likewise.
4364         * lib/scratch_buffer.h: Likewise.
4365         * lib/se-context.in.h: Likewise.
4366         * lib/stdopen.h: Likewise.
4367         * lib/userspec.h: Likewise.
4369 2020-07-04  Bruno Haible  <bruno@clisp.org>
4371         getrandom: Relicense under LGPLv2+.
4372         Paul Eggert's approval is in
4373         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4374         * modules/getrandom (License): Change to LGPLv2+.
4376 2020-07-04  Bruno Haible  <bruno@clisp.org>
4378         getumask: Add tests.
4379         * tests/test-getumask.c: New file.
4380         * modules/getumask-tests: New file.
4382         getumask: New module.
4383         * lib/sys_stat.in.h (getumask): New declaration.
4384         * lib/getumask.c: New file.
4385         * m4/getumask.m4: New file.
4386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
4387         declared.
4388         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
4389         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
4390         HAVE_GETUMASK.
4391         * modules/getumask: New file.
4392         * tests/test-sys_stat-c++.cc (getumask): Check signature.
4393         * doc/glibc-functions/getumask.texi: New file.
4394         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
4396 2020-07-04  Bruno Haible  <bruno@clisp.org>
4398         clean-temp: Add support for temporary files with given mode.
4399         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
4400         * lib/clean-temp.c (struct try_create_file_params): New type.
4401         (try_create_file): New function.
4402         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
4403         gen_tempname.
4405 2020-07-04  Bruno Haible  <bruno@clisp.org>
4407         clean-temp: Document limitations.
4408         * lib/clean-temp.h: Document limitations.
4410 2020-07-04  Bruno Haible  <bruno@clisp.org>
4412         clean-temp: Add support for temporary files with unpredictable names.
4413         * lib/clean-temp.h (gen_register_open_temp): New declaration.
4414         * lib/clean-temp.c: Include tempname.h.
4415         (gen_register_open_temp): New function.
4416         * modules/tempname (configure.ac): Define a module indicator.
4418 2020-07-04  Bruno Haible  <bruno@clisp.org>
4420         clean-temp: Add support for temporary files anywhere in the file system.
4421         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
4422         cleanup_temporary_file): New declarations.
4423         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
4424         variables.
4425         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
4426         (dir_cleanup_list): Renamed from cleanup_list.
4427         (cleanup_action): Process the file_cleanup_list as well.
4428         (do_init_clean_temp): New function.
4429         (clean_temp_once): New variable.
4430         (init_clean_temp): New function.
4431         (create_temp_dir): Invoke it.
4432         (register_temporary_file, unregister_temporary_file,
4433         cleanup_temporary_file): New functions.
4434         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
4435         argument.
4437 2020-07-04  Bruno Haible  <bruno@clisp.org>
4439         clean-temp: Improve comments.
4440         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4441         fwriteerror_temp, close_stream_temp): Clarify intended use.
4442         * lib/clean-temp.c: Likewise.
4444 2020-07-04  Bruno Haible  <bruno@clisp.org>
4446         clean-temp: Make multithread-safe, part 2.
4447         * lib/fatal-signal.h: Include <signal.h>.
4448         (get_fatal_signal_set): New declaration.
4449         * lib/fatal-signal.c (get_fatal_signal_set): New function.
4450         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
4451         (struct closeable_fd): New type.
4452         (fatal_signal_set): New variable.
4453         (init_fatal_signal_set): New function.
4454         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
4455         (cleanup_action): Invoke asyncsafe_close instead of close.
4456         (create_temp_dir): Invoke init_fatal_signal_set.
4457         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
4458         element.
4459         (unregister_fd): Remove function.
4460         (close_temp): Cleanup descriptors list on the fly. Invoke
4461         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
4462         (fclose_variant_temp): New function.
4463         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
4464         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
4466 2020-07-04  Bruno Haible  <bruno@clisp.org>
4468         clean-temp: Make multithread-safe, part 1.
4469         * lib/clean-temp.c: Include glthread/lock.h.
4470         (cleanup_list_lock): New variable.
4471         (register_temp_file, unregister_temp_file, register_temp_subdir,
4472         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
4473         (create_temp_dir): Likewise. Don't free the old array.
4474         (descriptors_lock): New variable.
4475         (register_fd, unregister_fd): Use it.
4476         * modules/clean-temp (Depends-on): Add lock.
4478 2020-07-04  Bruno Haible  <bruno@clisp.org>
4480         fatal-signal: Make multithread-safe.
4481         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4482         (do_init_fatal_signal_set): New function, extracted from
4483         init_fatal_signal_set.
4484         (fatal_signal_set_once): New variable.
4485         (init_fatal_signal_set): Use gl_once.
4487 2020-07-03  Bruno Haible  <bruno@clisp.org>
4489         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
4490         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
4491         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
4492         <bcrypt.h>.
4494 2020-07-03  Bruno Haible  <bruno@clisp.org>
4496         dfa tests: Follow common file naming conventions.
4497         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
4498         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
4499         * tests/test-dfa-invalid-char-class.sh: Renamed from
4500         tests/dfa-invalid-char-class.sh. Update.
4501         * modules/dfa-tests (Files, Makefile.am): Update.
4503 2020-07-03  Bruno Haible  <bruno@clisp.org>
4505         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
4506         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
4507         the GCC extended asm syntax also for the Sun Studio 12 compilers.
4509 2020-07-03  Bruno Haible  <bruno@clisp.org>
4511         asyncsafe-spin: Reduce code duplication.
4512         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
4513         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
4514         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
4516 2020-07-03  Bruno Haible  <bruno@clisp.org>
4518         lchmod: Simplify after 2020-02-22 change.
4519         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
4521 2020-07-03  Bruno Haible  <bruno@clisp.org>
4523         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
4524         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
4526 2020-07-03  Bruno Haible  <bruno@clisp.org>
4528         dfa: Make sure the compiler does not barf on 'inline'.
4529         * modules/dfa (configure.ac): Require AC_C_INLINE.
4531 2020-07-03  Bruno Haible  <bruno@clisp.org>
4533         bitset: Make sure the compiler does not barf on 'inline'.
4534         * modules/bitset (configure.ac): New section.
4536 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4538         manywarnings: improve port to GCC 10.1
4539         * build-aux/gcc-warning.spec: Also list warnings that are default
4540         or are enabled by already-given flags.  This lets us speed up
4541         checking for attributes, and makes the generated compilation
4542         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
4543         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
4544         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
4545         to shell variables that may have long values.
4546         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
4547         consequences of other flags, to speed up checking and
4548         shorten commands.
4550         tests: pacify gcc -fanalyzer on zerosize_ptr
4551         * tests/test-memcasecmp.c (main):
4552         * tests/test-memchr.c (main):
4553         * tests/test-memchr2.c (main):
4554         * tests/test-memcmp.c (main):
4555         * tests/test-memmem.c (main):
4556         * tests/test-memrchr.c (main):
4557         * tests/unistr/test-chr.h (main):
4558         * tests/unistr/test-cmp.h (test_cmp):
4559         Check whether zerosize_ptr returns NULL before using it.
4560         This pacifies GCC 10.1’s new fanalyzer option, and matches
4561         other uses of zerosize_ptr.
4563 2020-07-01  Bruno Haible  <bruno@clisp.org>
4565         asyncsafe-spin: Add tests.
4566         * tests/test-asyncsafe-spin1.c: New file.
4567         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
4568         tests/test-pthread-spin.c.
4569         * modules/asyncsafe-spin-tests: New file.
4571 2020-07-01  Bruno Haible  <bruno@clisp.org>
4573         asyncsafe-spin: New module.
4574         * lib/asyncsafe-spin.h: New file.
4575         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
4576         * modules/asyncsafe-spin: New file.
4578 2020-07-01  Bruno Haible  <bruno@clisp.org>
4580         windows-spin: Fix race condition on multiprocessor systems.
4581         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
4583 2020-07-01  Bruno Haible  <bruno@clisp.org>
4585         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
4586         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4587         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
4588         an implementation based on other GCC built-ins.
4590 2020-07-01  Bruno Haible  <bruno@clisp.org>
4592         pthread-spin: Optimize fallback for GCC versions >= 4.7.
4593         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4594         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
4595         lock byte.
4597 2020-07-01  Bruno Haible  <bruno@clisp.org>
4599         pthread-spin: Add error checking.
4600         * lib/pthread-spin.c: Include <stdbool.h>.
4601         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
4602         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
4603         the unlocks.
4604         * modules/pthread-spin (Depends-on): Add stdbool.
4606 2020-07-01  Bruno Haible  <bruno@clisp.org>
4608         pthread-spin: Add tests.
4609         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
4610         * modules/pthread-spin-tests: New file.
4612 2020-07-01  Bruno Haible  <bruno@clisp.org>
4614         tests: Reduce code duplication.
4615         * tests/atomic-int-posix.h: New file, extracted from
4616         tests/test-pthread-mutex.c.
4617         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
4618         * tests/test-pthread-rwlock.c: Likewise.
4619         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
4620         * modules/pthread-rwlock-tests (Files): Likewise.
4622 2020-07-01  Bruno Haible  <bruno@clisp.org>
4624         tests: Refactor.
4625         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
4626         * tests/test-mtx.c: Include it. Remove the corresponding code.
4627         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
4629 2020-07-01  Bruno Haible  <bruno@clisp.org>
4631         tests: Refactor.
4632         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
4633         * tests/test-lock.c: Include it. Remove the corresponding code.
4634         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
4636 2020-06-29  Bruno Haible  <bruno@clisp.org>
4638         sys_socket: Don't define socklen_t if it is already defined on mingw.
4639         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
4640         <https://savannah.gnu.org/bugs/?57725>,
4641         by Rahul Das <bokul_4u@yahoo.com> in
4642         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
4643         and by Eli Zaretskii <eliz@gnu.org> in
4644         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
4645         * lib/sys_socket.in.h (socklen_t): Remove definition.
4647 2020-06-29  Bruno Haible  <bruno@clisp.org>
4649         alloca-opt: Fix warning on mingw.
4650         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
4651         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
4652         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
4653         whether alloca is defined.
4655 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
4657         getrandom: do not depend on ‘open’ on mingw
4658         Similarly for at-internal, getloadavg.  These modules do not call
4659         the ‘open’ function when they are compiled on mingw.  On mingw,
4660         this avoids having to compile open.c when building Emacs, which
4661         does its own thing with ‘open’.
4662         * modules/at-internal, modules/getloadavg, modules/getrandom:
4663         (Depends-on): Don’t depend on ‘open’ on mingw.
4664         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
4665         * modules/getloadavg (Depends-on):
4666         Depend on intprops, open, stdbool, stdlib only if compiling
4667         getloadavg.c.
4669 2020-06-28  Bruno Haible  <bruno@clisp.org>
4671         doc: Add a note about sigprocmask vs. pthread_sigmask.
4672         * doc/posix-functions/sigprocmask.texi: Add note.
4674 2020-06-28  Bruno Haible  <bruno@clisp.org>
4676         getrandom: Fix compilation errors on older versions of mingw.
4677         Reported by Eli Zaretskii <eliz@gnu.org> in
4678         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
4679         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
4680         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
4681         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
4682         BCryptGenRandom ourselves.
4684 2020-06-28  Bruno Haible  <bruno@clisp.org>
4686         clean-temp: Fix wrong errno in error message.
4687         * lib/clean-temp.c (create_temp_dir): Save errno around
4688         unblock_fatal_signals call.
4690 2020-06-27  Bruno Haible  <bruno@clisp.org>
4692         fatal-signal: Make multithread-safe.
4693         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
4695 2020-06-27  Bruno Haible  <bruno@clisp.org>
4697         clean-temp: Don't force deletion of temporary files on native Windows.
4698         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
4699         argument.
4700         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
4701         * NEWS: Mention the change.
4702         * lib/javacomp.c (write_temp_file): Update.
4704 2020-06-27  Bruno Haible  <bruno@clisp.org>
4706         fatal-signal: Make multithread-safe.
4707         * lib/fatal-signal.c: Include glthread/lock.h.
4708         (at_fatal_signal_lock): New variable.
4709         (at_fatal_signal): Use it.
4710         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
4711         (block_fatal_signals, unblock_fatal_signals): Use them.
4712         * modules/fatal-signal (Depends-on): Add lock.
4714 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
4716         getloadavg: don’t depend on fopen-gnu
4717         This is for Emacs, which does not need fopen-gnu for anything else,
4718         and which would need it only on a NetBSD platform where getloadavg
4719         does not work (does that even happen?).
4720         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
4721         * modules/getloadavg (Depends-on): Remove fopen-gnu.
4723         * tests/test-getloadavg.c (main): Fix typo.
4725 2020-06-27  Bruno Haible  <bruno@clisp.org>
4727         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
4728         * modules/tempname (Link): New section.
4729         * modules/mkdtemp (Link): Likewise.
4730         * modules/clean-temp (Link): Likewise.
4731         * modules/mkstemp (Link): Likewise.
4732         * modules/stdlib-safer (Link): Likewise.
4733         * modules/mkstemps (Link): Likewise.
4734         * modules/mkostemp (Link): Likewise.
4735         * modules/mkostemps (Link): Likewise.
4736         * modules/tmpfile (Link): Likewise.
4737         * modules/tmpfile-safer (Link): Likewise.
4738         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
4739         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
4740         $(LIB_GETRANDOM).
4741         * NEWS: Mention the changes.
4743 2020-06-27  Bruno Haible  <bruno@clisp.org>
4745         fopen-gnu: Simplify code.
4746         * lib/fopen.c: Include <stdbool.h>.
4747         (rpl_fopen): Use a single variable open_flags instead of
4748         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
4749         * modules/fopen (Depends-on): Add stdbool.
4751 2020-06-26  Bruno Haible  <bruno@clisp.org>
4753         canonicalize: Improve documentation.
4754         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
4755         return convention.
4757 2020-06-26  Bruno Haible  <bruno@clisp.org>
4759         xgetcwd: Improve documentation.
4760         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
4762 2020-06-26  Bruno Haible  <bruno@clisp.org>
4764         getcwd: Improve documentation.
4765         * lib/getcwd.c (__getcwd): Document the failure return convention.
4767 2020-06-26  Bruno Haible  <bruno@clisp.org>
4769         fchdir: Improve documentation.
4770         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
4771         convention.
4773 2020-06-26  Bruno Haible  <bruno@clisp.org>
4775         filenamecat-lgpl: Set errno upon failure.
4776         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
4777         return convention.
4778         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
4780 2020-06-26  Bruno Haible  <bruno@clisp.org>
4782         areadlink-with-size: Set errno upon failure.
4783         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
4784         fails.
4785         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
4787 2020-06-26  Bruno Haible  <bruno@clisp.org>
4789         copy-file: Shrink dependencies.
4790         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
4791         qcopy-acl.
4793 2020-06-26  Bruno Haible  <bruno@clisp.org>
4795         doc: Mention declaration fixes implemented by some modules.
4796         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
4797         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
4798         declaration appear in <unistd.h>.
4799         * doc/posix-functions/dup.texi: Likewise.
4800         * doc/posix-functions/dup2.texi: Likewise.
4801         * doc/posix-functions/gethostname.texi: Likewise.
4802         * doc/posix-functions/isatty.texi: Likewise.
4803         * doc/posix-functions/lseek.texi: Likewise.
4804         * doc/posix-functions/unlink.texi: Likewise.
4805         * doc/posix-functions/read.texi: Mention the module 'read'.
4806         * doc/posix-functions/write.texi: Mention the effects of the module
4807         'write'.
4809 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
4811         c-dtoastr, c-ldtoastr: new modules
4812         These modules provide the same functionality as the modules
4813         dtoastr and ldtoastr except for the formatting taking place in the
4814         C locale.
4815         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
4816         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
4817         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
4818         defined.  Use c_snprintf and c_strtod/c_strtold instead of
4819         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
4820         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
4821         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
4822         modules/c-ldtoastr-tests: New files.
4823         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
4824         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
4826 2020-06-21  Bruno Haible  <bruno@clisp.org>
4828         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
4829         * lib/tzset.c: Include <stdlib.h>, <string.h>.
4831 2020-06-16  Bruno Haible  <bruno@clisp.org>
4833         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
4834         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
4836 2020-06-16  Bruno Haible  <bruno@clisp.org>
4838         thread, thrd: Avoid a compiler warning.
4839         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
4841 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
4843         windows-thread: Avoid a compiler warning.
4844         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
4845         void.
4846         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
4848 2020-06-15  Bruno Haible  <bruno@clisp.org>
4850         unictype/joininggroup-name: Fix warning on 64-bit mingw.
4851         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
4852         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
4853         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
4854         first.
4856 2020-06-06  Bruno Haible  <bruno@clisp.org>
4858         calloc-gnu tests: Avoid a test failure with clang.
4859         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
4860         'volatile', to defeat compiler optimizations.
4862 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4864         getloadavg: fix double-increment bug
4865         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
4866         Linux without glibc, Android, Cygwin.  This fixes a bug I
4867         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
4868         Problem and fix reported by Semen Verchenko in:
4869         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
4871         tempname: use getrandom, not getentropy
4872         This removes a dependency, as getentropy depends on getrandom.
4873         * lib/tempname.c: Include sys/random.h instead of unistd.h.
4874         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
4875         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
4877 2020-06-01  Bruno Haible  <bruno@clisp.org>
4879         doc: New chapter 'Multithreading'.
4880         * doc/multithread.texi: New file.
4881         * doc/gnulib.texi: Include it.
4883 2020-06-01  Bruno Haible  <bruno@clisp.org>
4885         doc: Move 'Running self-tests under valgrind' section.
4886         * doc/gnulib.texi (Build Infrastructure Modules): Include
4887         valgrind-tests.texi here...
4888         (Miscellaneous Notes): ... not here.
4890 2020-06-01  Bruno Haible  <bruno@clisp.org>
4892         doc: Move 'Visual Studio Compatibility' section.
4893         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
4894         here...
4895         (Build Infrastructure Modules): ... not here.
4897 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4899         doc: improve randomness discussion
4900         Inspired by comments from Jeffrey Walton in:
4901         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
4902         * doc/glibc-functions/getentropy.texi (getentropy):
4903         * doc/glibc-functions/getrandom.texi (getrandom):
4904         Improve discussion of problems with "random" data,
4905         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
4907 2020-06-01  Bruno Haible  <bruno@clisp.org>
4909         doc: Fix Texinfo syntax error.
4910         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
4912 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
4914         doc: Change '.' to '@.' where appropriate.
4915         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
4916         * doc/glibc-functions/fstatfs.texi: Likewise.
4917         * doc/glibc-functions/fts_children.texi: Likewise.
4918         * doc/glibc-functions/fts_read.texi: Likewise.
4919         * doc/glibc-functions/getdirentries.texi: Likewise.
4920         * doc/glibc-functions/mkostemp.texi: Likewise.
4921         * doc/glibc-functions/mkostemps.texi: Likewise.
4922         * doc/glibc-functions/mkstemps.texi: Likewise.
4923         * doc/glibc-functions/preadv.texi: Likewise.
4924         * doc/glibc-functions/pwritev.texi: Likewise.
4925         * doc/glibc-functions/sendfile.texi: Likewise.
4926         * doc/glibc-functions/statfs.texi: Likewise.
4927         * doc/gnulib-intro.texi: Likewise.
4928         * doc/gnulib-tool.texi: Likewise.
4929         * doc/intprops.texi: Likewise.
4930         * doc/lib-symbol-visibility.texi: Likewise.
4931         * doc/licenses-texi.texi: Likewise.
4932         * doc/pastposix-functions/bcmp.texi: Likewise.
4933         * doc/pastposix-functions/bcopy.texi: Likewise.
4934         * doc/pastposix-functions/bzero.texi: Likewise.
4935         * doc/pastposix-functions/ecvt.texi: Likewise.
4936         * doc/pastposix-functions/fcvt.texi: Likewise.
4937         * doc/pastposix-functions/ftime.texi: Likewise.
4938         * doc/pastposix-functions/gcvt.texi: Likewise.
4939         * doc/pastposix-functions/getwd.texi: Likewise.
4940         * doc/pastposix-functions/index.texi: Likewise.
4941         * doc/pastposix-functions/mktemp.texi: Likewise.
4942         * doc/pastposix-functions/rindex.texi: Likewise.
4943         * doc/pastposix-functions/wcswcs.texi: Likewise.
4944         * doc/posix-functions/aio_cancel.texi: Likewise.
4945         * doc/posix-functions/aio_error.texi: Likewise.
4946         * doc/posix-functions/aio_fsync.texi: Likewise.
4947         * doc/posix-functions/aio_read.texi: Likewise.
4948         * doc/posix-functions/aio_return.texi: Likewise.
4949         * doc/posix-functions/aio_suspend.texi: Likewise.
4950         * doc/posix-functions/aio_write.texi: Likewise.
4951         * doc/posix-functions/creat.texi: Likewise.
4952         * doc/posix-functions/ctime.texi: Likewise.
4953         * doc/posix-functions/daylight.texi: Likewise.
4954         * doc/posix-functions/fgetpos.texi: Likewise.
4955         * doc/posix-functions/fopen.texi: Likewise.
4956         * doc/posix-functions/freopen.texi: Likewise.
4957         * doc/posix-functions/fseeko.texi: Likewise.
4958         * doc/posix-functions/fsetpos.texi: Likewise.
4959         * doc/posix-functions/fstatat.texi: Likewise.
4960         * doc/posix-functions/fstatvfs.texi: Likewise.
4961         * doc/posix-functions/ftello.texi: Likewise.
4962         * doc/posix-functions/ftruncate.texi: Likewise.
4963         * doc/posix-functions/getrlimit.texi: Likewise.
4964         * doc/posix-functions/lio_listio.texi: Likewise.
4965         * doc/posix-functions/localtime.texi: Likewise.
4966         * doc/posix-functions/lseek.texi: Likewise.
4967         * doc/posix-functions/mkstemp.texi: Likewise.
4968         * doc/posix-functions/mktime.texi: Likewise.
4969         * doc/posix-functions/open.texi: Likewise.
4970         * doc/posix-functions/openat.texi: Likewise.
4971         * doc/posix-functions/opendir.texi: Likewise.
4972         * doc/posix-functions/pread.texi: Likewise.
4973         * doc/posix-functions/pwrite.texi: Likewise.
4974         * doc/posix-functions/readdir.texi: Likewise.
4975         * doc/posix-functions/readdir_r.texi: Likewise.
4976         * doc/posix-functions/scandir.texi: Likewise.
4977         * doc/posix-functions/seekdir.texi: Likewise.
4978         * doc/posix-functions/setrlimit.texi: Likewise.
4979         * doc/posix-functions/statvfs.texi: Likewise.
4980         * doc/posix-functions/strftime.texi: Likewise.
4981         * doc/posix-functions/telldir.texi: Likewise.
4982         * doc/posix-functions/timezone.texi: Likewise.
4983         * doc/posix-functions/tmpfile.texi: Likewise.
4984         * doc/posix-functions/truncate.texi: Likewise.
4985         * doc/posix-functions/tzname.texi: Likewise.
4986         * doc/posix-functions/wcsftime.texi: Likewise.
4987         * doc/windows-sockets.texi: Likewise.
4989 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4991         getrandom-tests: do not assume GRND_RANDOM yields short read
4992         * tests/test-getrandom.c (main): Omit assertion that
4993         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
4994         when b’s size is 100000.  This assertion fails with Linux kernel
4995         5.6.13, as that kernel ignores the GRND_RANDOM flag.
4996         The separate blocking pool is going away in the Linux kernel, and
4997         they’ve added a flag GRND_INSECURE instead; see:
4998         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
4999         The assertion was iffy anyway; what’s to prevent a kernel from
5000         lazily filling a large buffer with random bytes?
5002         read-file-test: pacify --enable-gcc-warnings
5003         * tests/test-read-file.c (test_read_file): Now static.
5005         tempname: merge from glibc and coreutils
5006         Also, merge in Gnulib’s more-recent methods of making it easier
5007         to share between Gnulib and glibc, and fix a few randomness
5008         glitches.
5009         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5010         (__set_errno): Remove; libc-config.h does that for us.
5011         Do not include <sys/time.h>.
5012         (__secure_getenv) [_LIBC]: New macro.
5013         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5014         (RANDOM_BITS): Rewrite.
5015         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5016         (random_value): New typedef.
5017         (try_file, try_dir, try_nocreate): Move up.
5018         (gen_tempname_len, try_tempname_len): New functions.
5019         (gen_tempname_len): Use a constant array rather than a switch.
5020         (try_tempname_len): Don’t assume string length fits in int.
5021         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5022         has enough entropy (it’s a bit short).
5023         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5024         (__try_tempname): Rewrite in terms of try_tempname_len.
5025         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5026         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5027         Add getentropy, libc-config.
5029 2020-05-31  Bruno Haible  <bruno@clisp.org>
5031         getrandom, getentropy: Mention the crypto/gc-random module.
5032         Suggested by Simon Josefsson in
5033         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5034         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5035         crypto/gc-random module.
5036         * doc/glibc-functions/getentropy.texi: Likewise.
5038 2020-05-31  Bruno Haible  <bruno@clisp.org>
5040         getentropy: Enhance tests.
5041         * tests/test-getentropy.c (main): Add one more test.
5042         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5044 2020-05-31  Bruno Haible  <bruno@clisp.org>
5046         getentropy: Work around a macOS and Solaris problem.
5047         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5048         'getentropy' module.
5049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5050         UNISTD_H_HAVE_SYS_RANDOM_H.
5051         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5052         UNISTD_H_HAVE_SYS_RANDOM_H.
5053         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5054         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5055         problem. List more platforms.
5057 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5059         fnmatch: merge from glibc
5060         Also, merge in Gnulib’s more-recent methods of making it easier
5061         to share between Gnulib and glibc.
5062         * lib/fnmatch.c: Reorder includes to match glibc better.
5063         Include libc-config.h instead of config.h.
5064         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5065         Do not include "../locale/elem-hash.h" if _LIBC.
5066         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5067         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5068         Include intprops.h, since glibc has it now.
5069         (SIZE_MAX): Remove; use (size_t) -1 instead.
5070         Omit the "Comment out all this code" ifdef, since Gnulib
5071         has never really needed it.
5072         (STREQ): Remove; no longer used.
5073         (__libc_use_alloca, alloca, alloca_account): Define as
5074         needed if !_LIBC.
5075         (ISWCTYPE): Remove; all uses replaced by iswctype.
5076         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5077         (internal_function): Remove.  All uses removed.
5078         (STRUCT): New macro.
5079         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5080         (WMEMCMP): New macro.
5081         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5082         and <locale/weightwc.h>.
5083         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5084         __builtin_expect.  Check for integer overflow more
5085         systematically.  Account for alloca storage better when
5086         recursive.  Use strnlen instead of strlen for efficiency.
5087         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5088         (struct STRUCT): New type.
5089         (FCT, EXT): New ENDS and ALLOCA_USED args.
5090         All callers changed.
5091         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5092         Simplify by assuming WIDE_CHAR_SUPPORT.
5093         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5094         Cast cold to UCHAR to avoid signedness warning.
5095         (END): Check for invalid pattern.
5096         (EXT): Improve alloca/malloc checking (taken from glibc),
5097         and improve it some more by using intprops.h and checking
5098         for integer overflow and using bool for booleans.
5099         * lib/libc-config.h (compat_symbol): New macro.
5100         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5101         acceptable to non-GCC when a trailing semicolon is added.
5102         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5103         libc-config, strnlen.  Remove alloca.
5105 2020-05-31  Bruno Haible  <bruno@clisp.org>
5107         getrandom: Doc and test tweaks.
5108         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5109         it sets errno when failing.
5110         * tests/test-getrandom.c (main): Disable the high-quality check on those
5111         platforms on which it fails.
5112         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5113         Cygwin to the list of platforms that don't have the function. Add a note
5114         about the quality of the result.
5115         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5116         declaration; this is fixed by module 'getrandom'.
5118 2020-05-31  Bruno Haible  <bruno@clisp.org>
5120         getrandom: Add support for native Windows.
5121         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5122         <wincrypt.h>.
5123         (CRYPT_VERIFY_CONTEXT): New macro.
5124         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5125         'A'.
5126         (GetProcAddress): New macro.
5127         (BCryptGenRandomFuncType): New type.
5128         (BCryptGenRandomFunc, initialized): New variables.
5129         (initialize): New function.
5130         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5131         <wincrypt.h> API as fallback.
5132         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5133         * modules/getrandom (Link): New section.
5134         * modules/getentropy (Link): Likewise.
5135         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5136         $(LIB_GETRANDOM).
5137         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5138         $(LIB_GETRANDOM).
5139         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5140         against $(LIB_GETRANDOM).
5141         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5142         support.
5144 2020-05-31  Bruno Haible  <bruno@clisp.org>
5146         getrandom: Simplify the determination of the random number devices.
5147         Suggested by Paul Eggert in
5148         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5149         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5150         macros.
5151         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5153 2020-05-31  Bruno Haible  <bruno@clisp.org>
5155         crypto/gc-random: Fix list of crypto devices for Solaris.
5156         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5158 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5160         list: fix GCC warnings
5161         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5162         (gl_tree_next_node, gl_tree_node_nx_set_value)
5163         (gl_tree_previous_node, gl_tree_next_node):
5164         Mark unused arguments.
5165         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5166         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5167         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5169         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5170         the same variable name in nested scopes.
5172 2020-05-31  Bruno Haible  <bruno@clisp.org>
5174         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5175         Reported by Akim Demaille in
5176         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5177         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5178         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5179         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5180         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5181         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5183 2020-05-30  Bruno Haible  <bruno@clisp.org>
5185         wmemchr: Relicense under LGPLv2+.
5186         * modules/wmemchr (License): Set to LGPLv2+.
5188 2020-05-30  Bruno Haible  <bruno@clisp.org>
5190         wmempcpy: New module.
5191         Reported by Paul Eggert in
5192         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5193         * lib/wchar.in.h (wmempcpy): New declaration.
5194         * lib/wmempcpy.c: New file.
5195         * m4/wmempcpy.m4: New file.
5196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5198         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5199         HAVE_WMEMPCPY.
5200         * modules/wmempcpy: New file.
5201         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5202         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5203         * modules/mempcpy (Description): Fix typo.
5205 2020-05-30  Bruno Haible  <bruno@clisp.org>
5207         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5208         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
5210 2020-05-30  Bruno Haible  <bruno@clisp.org>
5212         sys_random: Work around macOS bug.
5213         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
5214         <stdlib.h> before <sys/random.h>.
5215         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5216         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
5217         first.
5218         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
5220 2020-05-30  Bruno Haible  <bruno@clisp.org>
5222         getrandom: Override incompatible system function on Solaris 11.
5223         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
5224         * lib/getrandom.c (getrandom): When the system has getrandom, just
5225         invoke it.
5226         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
5227         system's getrandom function's prototype is not the expected one.
5228         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
5229         REPLACE_GETRANDOM.
5230         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
5231         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
5232         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
5233         EAGAIN.
5234         * doc/glibc-functions/getrandom.texi: Mention the new module and the
5235         Solaris problem.
5237 2020-05-30  Bruno Haible  <bruno@clisp.org>
5239         sys_random: Add C++ tests.
5240         * tests/test-sys_random-c++.cc: New file.
5241         * modules/sys_random-c++-tests: New file.
5242         * modules/sys_random-tests (Depends-on): Depend on it.
5244         sys_random: Add tests.
5245         * tests/test-sys_random.c: New file.
5246         * modules/sys_random-tests: New file.
5248         sys_random: New module.
5249         * lib/sys_random.in.h: Use the common idioms for overridable header
5250         files.
5251         * m4/sys_random_h.m4: New file.
5252         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5253         * modules/sys_random: New file.
5254         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5255         (Depends-on): Add sys_random.
5256         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5257         gl_UNISTD_MODULE_INDICATOR.
5258         (Makefile.am): Don't generate sys/random.h here.
5259         * doc/glibc-headers/sys_random.texi: New file.
5260         * doc/gnulib.texi: Include it.
5262 2020-05-30  Bruno Haible  <bruno@clisp.org>
5264         unistd: Remove conflicting declaration of getrandom().
5265         * lib/unistd.in.h (getrandom): Remove declaration.
5266         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5267         declared.
5268         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5269         HAVE_GETRANDOM.
5270         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5271         HAVE_GETRANDOM.
5273 2020-05-30  Bruno Haible  <bruno@clisp.org>
5275         getrandom: Add tests.
5276         * tests/test-getrandom.c: New file.
5277         * modules/getrandom-tests: New file.
5279 2020-05-30  Bruno Haible  <bruno@clisp.org>
5281         crypto/gc-random: Fix link error on MSVC.
5282         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5283         * modules/crypto/gc-random (Link): New section.
5284         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5285         $(LIB_GC_RANDOM).
5287 2020-05-30  Bruno Haible  <bruno@clisp.org>
5289         Don't assume that UNICODE is not defined.
5290         Many Windows API functions are defined differently (redirecting to a
5291         function with suffix 'W') if the application defines the macro UNICODE
5292         than by default (redirecting to a function with suffix 'A').
5293         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5294         variant with suffix 'A'.
5295         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5296         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5297         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5298         * lib/getlogin.c (GetUserName): Likewise.
5299         * lib/getlogin_r.c (GetUserName): Likewise.
5300         * lib/gettimeofday.c (LoadLibrary): Likewise.
5301         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5302         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5303         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5304         * lib/mountlist.c (GetDriveType): Likewise.
5305         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5306         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5307         Likewise.
5308         * lib/physmem.c (GetModuleHandle): Likewise.
5309         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5310         PeekMessage, DispatchMessage): Likewise.
5311         * lib/progreloc.c (GetModuleFileName): Likewise.
5312         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5313         * lib/read.c (GetNamedPipeHandleState): Likewise.
5314         * lib/readdir.c (FindNextFile): Likewise.
5315         * lib/relocatable.c (GetModuleFileName): Likewise.
5316         * lib/rename.c (MoveFileEx): Likewise.
5317         * lib/rewinddir.c (FindFirstFile): Likewise.
5318         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5319         PeekMessage, DispatchMessage): Likewise.
5320         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5321         * lib/socket.c (WSASocket): Likewise.
5322         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5323         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5324         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5325         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5326         * lib/tmpdir.c (GetTempPath): Likewise.
5327         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5328         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5329         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5330         * lib/windows-cond.c (CreateEvent): Likewise.
5331         * lib/windows-rwlock.c (CreateEvent): Likewise.
5332         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5333         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5334         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5335         * lib/write.c (GetNamedPipeHandleState): Likewise.
5337 2020-05-30  Bruno Haible  <bruno@clisp.org>
5339         physmem: Fix compilation errors on MSVC.
5340         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5341         * modules/physmem (Depends-on): Add unistd.
5343 2020-05-29  Bruno Haible  <bruno@clisp.org>
5345         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5346         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5347         LDADD a second time, after the second occurrence of libtests.a.
5348         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5350 2020-05-29  Bruno Haible  <bruno@clisp.org>
5352         fnmatch: Rely on more gnulib modules.
5353         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5354         wmempcpy, mempcpy.
5355         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5356         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5357         HAVE_MEMPCPY are all 1.
5358         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5359         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5361 2020-05-29  Bruno Haible  <bruno@clisp.org>
5363         Avoid dynamic lookup of Windows API functions when possible.
5364         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5365         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5366         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5367         (use_win32_p): Define differently.
5368         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5369         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5370         for Windows XP or higher.
5372 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5374         read-file: disable buffering if RF_SENSITIVE is set
5375         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5376         Suggested by Glenn Strauss.
5377         (fread_file): Suggest calling setvbuf before calling this
5378         function.  Suggested by Bruno Haible.
5380 2020-05-29  Bruno Haible  <bruno@clisp.org>
5382         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
5383         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
5384         program.
5385         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
5386         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
5387         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
5388         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
5390 2020-05-29  Bruno Haible  <bruno@clisp.org>
5392         Fix compilation error on native Windows (regression from 2020-05-28).
5393         Reported by Daiki Ueno.
5394         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
5395         macro when not using dynamic loading.
5396         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
5397         QueryFullProcessImageNameFunc): Likewise.
5398         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
5399         GetFinalPathNameByHandleFunc): Likewise.
5401 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5403         fopen-gnu-tests: fix "\x" escape usage
5404         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
5406 2020-05-28  Bruno Haible  <bruno@clisp.org>
5408         Avoid dynamic loading of Windows API functions when possible.
5409         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5410         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
5411         * lib/gettimeofday.c (GetProcAddress,
5412         GetSystemTimePreciseAsFileTimeFuncType,
5413         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
5414         define in a build for Windows 8 or higher.
5415         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
5416         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
5417         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
5418         in a build for Windows Vista or higher.
5419         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
5420         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
5421         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
5423 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5425         explicit_bzero-tests: improve -Wmissing-declarations pacification
5426         * tests/test-explicit_bzero.c: Now noinline.
5427         Suggested by Bruno Haible in:
5428         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
5430 2020-05-28  Bruno Haible  <bruno@clisp.org>
5432         Fix build errors due to read-file changes (regression from 2020-05-27).
5433         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
5434         invocation.
5435         * tests/test-sameacls.c (main): Likewise.
5436         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
5437         read_binary_file.
5438         * tests/test-pipe-filter-ii1.c (main): Likewise.
5440 2020-05-28  Bruno Haible  <bruno@clisp.org>
5442         fts: Make more robust in multithreaded applications.
5443         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
5444         * modules/fts (Depends-on): Add 'open'.
5446 2020-05-28  Bruno Haible  <bruno@clisp.org>
5448         relocatable-prog: Make more robust in multithreaded applications.
5449         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
5450         relocatable-prog-wrapper.
5451         (find_executable): Pass an O_CLOEXEC flag to open().
5452         * modules/relocatable-prog (Depends-on): Add 'open'.
5454 2020-05-28  Bruno Haible  <bruno@clisp.org>
5456         getloadavg: Make more robust in multithreaded applications.
5457         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
5458         Simplify use of O_CLOEXEC.
5459         * modules/getloadavg (Depends-on): Add 'open'.
5461 2020-05-28  Bruno Haible  <bruno@clisp.org>
5463         vma-iter: Make more robust in multithreaded applications.
5464         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
5465         open().
5466         * modules/vma-iter (Depends-on): Add 'open'.
5468 2020-05-28  Bruno Haible  <bruno@clisp.org>
5470         truncate: Make more robust in multithreaded applications.
5471         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
5473 2020-05-28  Bruno Haible  <bruno@clisp.org>
5475         pagealign_alloc: Make more robust in multithreaded applications.
5476         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
5477         open().
5478         * modules/pagealign_alloc (Depends-on): Add 'open'.
5480 2020-05-28  Bruno Haible  <bruno@clisp.org>
5482         openat: Make more robust in multithreaded applications.
5483         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
5485 2020-05-28  Bruno Haible  <bruno@clisp.org>
5487         at-internal: Make more robust in multithreaded applications.
5488         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
5489         open().
5491 2020-05-28  Bruno Haible  <bruno@clisp.org>
5493         mountlist: Make more robust in multithreaded applications.
5494         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
5495         open().
5496         * modules/mountlist (Depends-on): Add 'open'.
5498 2020-05-28  Bruno Haible  <bruno@clisp.org>
5500         login_tty: Make more robust in multithreaded applications.
5501         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
5502         * modules/login_tty (Depends-on): Add 'open'.
5504 2020-05-28  Bruno Haible  <bruno@clisp.org>
5506         javacomp: Make more robust in multithreaded applications.
5507         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
5508         open().
5509         * modules/javacomp (Depends-on): Add 'open'.
5511 2020-05-28  Bruno Haible  <bruno@clisp.org>
5513         getprogname: Make more robust in multithreaded applications.
5514         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
5515         * modules/getprogname (Depends-on): Add 'open'.
5517 2020-05-28  Bruno Haible  <bruno@clisp.org>
5519         get_progname_of: Make more robust in multithreaded applications.
5520         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
5521         open().
5522         * modules/get_progname_of (Depends-on): Add 'open'.
5524 2020-05-28  Bruno Haible  <bruno@clisp.org>
5526         get_ppid_of: Make more robust in multithreaded applications.
5527         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
5528         * modules/get_ppid_of (Depends-on): Add 'open'.
5530 2020-05-28  Bruno Haible  <bruno@clisp.org>
5532         get-rusage-as: Make more robust in multithreaded applications.
5533         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
5534         flag to open().
5535         * modules/get-rusage-as (Depends-on): Add 'open'.
5537 2020-05-28  Bruno Haible  <bruno@clisp.org>
5539         crypto/gc: Make more robust in multithreaded applications.
5540         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
5541         * modules/crypto/gc (Depends-on): Add 'open'.
5543 2020-05-28  Bruno Haible  <bruno@clisp.org>
5545         copy-file: Make more robust in multithreaded applications.
5546         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
5547         open().
5549 2020-05-28  Bruno Haible  <bruno@clisp.org>
5551         chown: Make more robust in multithreaded applications.
5552         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
5554 2020-05-28  Bruno Haible  <bruno@clisp.org>
5556         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
5557         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
5559 2020-05-28  Daiki Ueno  <ueno@gnu.org>
5561         fopen-gnu: make 'b' flag can be used with 'e' on Windows
5562         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
5563         specified on Windows.
5564         * tests/test-fopen-gnu.c (DATA): New define.
5565         (main): Add test for reading binary files with an 'e' flag.
5567 2020-05-27  Bruno Haible  <bruno@clisp.org>
5569         Don't assume that UNICODE is not defined.
5570         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
5571         differently if the application defines the macro UNICODE.
5572         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5573         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
5574         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
5575         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
5576         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
5578 2020-05-27  Bruno Haible  <bruno@clisp.org>
5580         Improve pattern for defining _WIN32_WINNT.
5581         Newer versions of the Windows API may not only add, but also remove API
5582         functions. Therefore, when the user is e.g. building for Windows 10, we
5583         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
5584         use of APIs that were present in Windows 8 but removed in Windows 10.
5585         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
5586         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
5587         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
5588         * lib/sethostname.c (_WIN32_WINNT): Likewise.
5589         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
5591 2020-05-27  Bruno Haible  <bruno@clisp.org>
5593         javacomp: Make more robust in multithreaded applications.
5594         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
5595         * modules/javacomp (Depends-on): Add fopen-gnu.
5597 2020-05-27  Bruno Haible  <bruno@clisp.org>
5599         mountlist: Make more robust in multithreaded applications.
5600         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
5601         to fopen.
5602         * modules/mountlist (Depends-on): Add fopen-gnu.
5604 2020-05-27  Bruno Haible  <bruno@clisp.org>
5606         sethostname: Make more robust in multithreaded applications.
5607         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
5608         * modules/sethostname (Depends-on): Add fopen-gnu.
5610 2020-05-27  Bruno Haible  <bruno@clisp.org>
5612         readutmp: Make more robust in multithreaded applications.
5613         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
5614         * modules/readutmp (Depends-on): Add fopen-gnu.
5616 2020-05-27  Bruno Haible  <bruno@clisp.org>
5618         getpass: Make more robust in multithreaded applications.
5619         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
5620         * modules/getpass (Depends-on): Add fopen-gnu.
5622 2020-05-27  Bruno Haible  <bruno@clisp.org>
5624         getloadavg: Make more robust in multithreaded applications.
5625         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
5626         * modules/getloadavg (Depends-on): Add fopen-gnu.
5628 2020-05-27  Bruno Haible  <bruno@clisp.org>
5630         exclude: Make more robust in multithreaded applications.
5631         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
5632         * modules/exclude (Depends-on): Add fopen-gnu.
5634 2020-05-27  Bruno Haible  <bruno@clisp.org>
5636         bitset: Make more robust in multithreaded applications.
5637         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
5638         'e' flag to fopen.
5639         * modules/bitset (Depends-on): Add fopen-gnu.
5641 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5643         read-file: add RF_SENSITIVE flag
5644         * lib/read-file.h (RF_SENSITIVE): New define.
5645         * lib/read-file.c (fread_file, read_file): Take into account of
5646         RF_SENSITIVE flag.
5647         * modules/read-file (Depends-on): Add explicit_bzero.
5648         This adds an alternative behavior of those functions to explicitly
5649         clear the internal memory block when it becomes unused.  This is
5650         useful for reading sensitive information from a file.
5652 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5654         read-file: add flags to modify reading behavior
5655         * lib/read-file.h (RF_BINARY): New define.
5656         (fread_file, read_file): Take FLAGS argument.
5657         (read_binary_file): Remove.
5658         * lib/read-file.c (internal_read_file): Merge into ...
5659         (read_file): ... here.
5660         * modules/read-file-tests (Files): Add "tests/macros.h".
5661         * tests/test-read-file.c (main): Refactor using ASSERT macro.
5662         * NEWS: Mention this change.
5664 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
5666         doc/gnulib-intro.texi: add missing "to" in sentence
5667         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
5668         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
5669         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
5671 2020-05-26  Bruno Haible  <bruno@clisp.org>
5673         count-one-bits: Fix MSVC specific code.
5674         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5675         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
5676         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
5677         using GCC.
5678         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
5679         (__popcnt64): In 32-bit mode, define as an inline function.
5680         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
5682 2020-05-26  Bruno Haible  <bruno@clisp.org>
5684         argz: Avoid name clashes through argz.h.
5685         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5686         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
5687         * lib/argz.h: Don't use __ prefixed identifiers.
5688         (const): Remove definition.
5689         (argz_next): Remove inline definitions.
5691 2020-05-26  Daiki Ueno  <ueno@gnu.org>
5693         read-file: make use of fopen-gnu
5694         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
5695         (read_binary_file): Likewise.
5696         * modules/read-file (Depends-on): Add fopen-gnu.
5698 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5700         getentropy, getrandom: new modules
5701         * MODULES.html.sh (func_all_modules):
5702         * lib/unistd.in.h (getentropy, getrandom):
5703         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
5704         * modules/unistd (unistd.h):
5705         Add support for getentropy, getrandom.
5706         * doc/glibc-functions/getentropy.texi (getentropy):
5707         * doc/glibc-functions/getrandom.texi (getrandom):
5708         These are now fixed on some platforms.
5709         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
5710         * m4/getentropy.m4, m4/getrandom.m4:
5711         * modules/getentropy, modules/getentropy-tests:
5712         * modules/getrandom, modules/getrandom-tests:
5713         * tests/test-getentropy.c, tests/test-getrandom.c:
5714         New files.
5716 2020-05-25  Bruno Haible  <bruno@clisp.org>
5718         Add missing C99 dependencies.
5719         Reported by Paul Smith <psmith@gnu.org> in
5720         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
5721         * modules/assert (Depends-on): Add c99.
5722         * modules/filenamecat-lgpl (Depends-on): Likewise.
5723         * modules/libc-config (Depends-on): Likewise.
5724         * modules/mktime (Depends-on): Likewise.
5725         * modules/random_r (Depends-on): Likewise.
5726         * modules/regex (Depends-on): Likewise.
5727         * modules/scratch_buffer (Depends-on): Likewise.
5728         * modules/timespec-add (Depends-on): Likewise.
5729         * modules/timespec-sub (Depends-on): Likewise.
5730         * modules/verify (Depends-on): Likewise.
5732 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5734         explicit_bzero-tests: pacify -Wmissing-declarations
5735         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
5736         Now static.
5738 2020-05-24  Bruno Haible  <bruno@clisp.org>
5740         fopen-gnu: Add tests.
5741         * tests/test-fopen-gnu.c: New file.
5742         * modules/fopen-gnu-tests: New file.
5744         fopen-gnu: New module.
5745         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
5746         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
5747         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
5748         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
5749         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
5750         * modules/fopen-gnu: New file.
5751         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
5753 2020-05-24  Bruno Haible  <bruno@clisp.org>
5755         open, openat: Really support O_CLOEXEC.
5756         * lib/open.c (open): When have_cloexec is still undecided, do pass a
5757         O_CLOEXEC flag to orig_open.
5758         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
5759         pass a O_CLOEXEC flag to orig_openat.
5760         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
5761         * modules/open-tests (Depends-on): Add fcntl.
5762         * modules/openat-tests (Depends-on): Likewise.
5763         * modules/fcntl-safer-tests (Depends-on): Likewise.
5765 2020-05-24  Bruno Haible  <bruno@clisp.org>
5767         fopen: Fix the trailing slash workaround.
5768         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
5769         write access. Pass the right flags to open().
5770         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
5772 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5774         assure: new macro ‘affirm’
5775         * lib/assure.h: Include verify.h.
5776         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
5777         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
5778         and commentary by Bruno Haible in:
5779         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
5780         * modules/assure (Depends-on:): Add verify.
5782 2020-05-23  Bruno Haible  <bruno@clisp.org>
5784         calloc-gnu: Make test work in non-flat address spaces.
5785         Uses code by Paul Eggert.
5786         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
5787         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
5789 2020-05-23  Bruno Haible  <bruno@clisp.org>
5791         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
5792         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
5793         AC_RUN_IFELSE invocations.
5795 2020-05-23  Bruno Haible  <bruno@clisp.org>
5797         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
5798         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
5799         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
5800         don't have it.
5801         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5802         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
5803         don't have it.
5804         * lib/isnanf-nolibm.h (__has_builtin): New macro.
5805         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5806         it.
5807         * lib/isnanl-nolibm.h (__has_builtin): New macro.
5808         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5809         it.
5810         * lib/math.in.h (__has_builtin): New macro.
5811         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5812         it.
5813         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5814         it.
5815         (isnan): Don't use the builtins on clang versions that don't have
5816         __builtin_isnanf and __builtin_isnanl.
5818 2020-05-23  Bruno Haible  <bruno@clisp.org>
5820         calloc-gnu: Avoid wrong configure results with clang.
5821         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
5822         'volatile', to defeat compiler optimizations.
5824 2020-05-23  Bruno Haible  <bruno@clisp.org>
5826         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
5827         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
5828         'long double' values by reference, with values taken from a statically
5829         allocated array.
5831 2020-05-23  Bruno Haible  <bruno@clisp.org>
5833         findprog-in: Ignore directories.
5834         Reported by Frederick Eaton via Dmitry Goncharov in
5835         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
5836         * lib/findprog-in.c (find_in_given_path): When the file found is a
5837         directory, set errno to EACCES and, during a PATH search, continue
5838         searching.
5839         * modules/findprog-in (Depends-on): Add sys_stat, stat.
5841 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5843         verify: document ‘assume’ better
5844         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
5846 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
5848         gendocs: Clarify licenses for templates.
5849         * doc/gendocs_template: Add a GNU All-Permissive license notice
5850         and bump Parent-Version.
5851         * doc/gendocs_template_min: Add a GNU All-Permissive license
5852         notice and copy the explanatory comment about the license notice
5853         at the bottom from gendocs_template.
5855 2020-05-21  Bruno Haible  <bruno@clisp.org>
5857         group-member: Relicense under LGPLv2+.
5858         Jim Meyering's approval is in
5859         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
5860         Paul Eggert's approval is in
5861         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
5862         Eric Blake's approval is in
5863         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
5864         * modules/group-member (License): Change to LGPLv2+.
5866 2020-05-21  Bruno Haible  <bruno@clisp.org>
5868         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
5869         Reported by Tim Rühsen in
5870         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5871         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
5873 2020-05-21  Bruno Haible  <bruno@clisp.org>
5875         regex: Avoid wrong configure results with "clang -fsanitize=leak".
5876         Reported by Tim Rühsen in
5877         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5878         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
5879         before returning with status 0.
5881 2020-05-21  Bruno Haible  <bruno@clisp.org>
5883         glob: Avoid wrong configure results with "clang -fsanitize=leak".
5884         Reported by Tim Rühsen in
5885         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5886         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
5888 2020-05-21  Bruno Haible  <bruno@clisp.org>
5890         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
5891         Reported by Tim Rühsen in
5892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
5893         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
5894         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
5895         respectively.
5897 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
5899         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
5900         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
5902 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5904         ftoastr: fix ifndef typo
5905         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
5907 2020-05-19  Bruno Haible  <bruno@clisp.org>
5909         havelib: Tweak documentation.
5910         * doc/havelib.texi (Searching for Libraries): Fix typo.
5912 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5914         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
5915         This was needed earlier because modules had to import the main script,
5916         but that is no longer true.  Rename the script so that it is
5917         consistent with all other scripts in gnulib and uses hyphens.
5918         * build-aux/vcs_to_changelog.py: Rename to...
5919         * build-aux/vcs-to-changelog.py: ... this.
5920         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
5921         * modules/vcs-to-changelog: Likewise.
5923 2020-05-17  Bruno Haible  <bruno@clisp.org>
5925         Clarify intended usage of the license file modules.
5926         Reported by Asher Gordon <AsDaGo@posteo.net> in
5927         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
5928         * doc/licenses-texi.texi (License Texinfo sources): Mention the
5929         GNU AGPL. Explain the intended usage of the modules.
5930         * modules/fdl (Notice): Discourage use as a module.
5931         * modules/fdl-1.3 (Notice): Likewise.
5933 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
5935         hash: add hash_xinsert
5936         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
5938 2020-05-16  Bruno Haible  <bruno@clisp.org>
5940         findprog-lgpl: Fix link error (existing since 2008-09-02).
5941         * modules/findprog-lgpl (Makefile.am): Arrange to compile
5942         findprog-lgpl.c, not findprog.c.
5943         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
5944         XNMALLOC.
5946 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
5948         c-stack: pacify -Wunused-result when DEBUG
5949         Problem reported by Marc Nieper-Wißkirchen in:
5950         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
5951         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
5952         Explicitly ignore write failures.
5954 2020-05-13  Jim Meyering  <meyering@fb.com>
5956         announce-gen: improve a comment
5957         * build-aux/announce-gen: Improve comment.
5959 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
5961         xalloc: pacify -Wanalyzer-possible-null-argument
5962         Problem reported for GCC 10.1.0 by Bruno Haible in:
5963         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
5964         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
5965         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
5966         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
5968 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5970         careadlinkat: fix GCC 10 workaround
5971         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
5972         Massage the code so that it’s closer to what it was before
5973         the GCC 10.1.0 workaround was introduced.  This fixes
5974         a loop when !buffer and the bug workaround is in effect.
5975         Remove unnecessary casts.  Defend in a different way
5976         against (buffer && !buffer_size), by adding at least 1
5977         to buf_size each time through the loop.
5979 2020-05-10  Bruno Haible  <bruno@clisp.org>
5981         doc: Mark HP-UX as unsupported.
5982         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
5984 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5986         careadlinkat: limit GCC workaround
5987         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
5988         10.1.0 and later, since the workaround is pretty bad and the GCC
5989         bug should get fixed.
5991 2020-05-10  Bruno Haible  <bruno@clisp.org>
5993         havelib: Enhance documentation.
5994         * doc/havelib.texi (Searching for Libraries): Mention the bad
5995         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
5997 2020-05-10  Bruno Haible  <bruno@clisp.org>
5999         attribute: Clarify list of attributes.
6000         * lib/attribute.h: Reorder the list of attributes, and group them by
6001         purpose.
6003 2020-05-10  Bruno Haible  <bruno@clisp.org>
6005         string: Fix compilation error in C++ mode.
6006         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6007         _GL_WARN_ON_USE.
6008         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6009         instead of _GL_WARN_ON_USE.
6011 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6013         announce-gen: add support for dist-lzip
6014         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6016 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6018         manywarnings: port to GCC 10.1
6019         * build-aux/gcc-warning.spec:
6020         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6021         Add GCC 10.1.0 warnings.
6023         careadlinkat: pacify -Wreturn-local-addr
6024         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6025         Pacify gcc 10’s -Wreturn-local-addr option.
6026         Simplify some of the later code.
6028 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6030         attribute: remove ATTRIBUTE_DEPRECATED
6031         * lib/attribute.h: Improve recently-added comments, mostly
6032         by shortening them (use active voice, etc.).
6033         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6034         Problem reported by Bruno Haible in:
6035         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6037 2020-05-09  Bruno Haible  <bruno@clisp.org>
6039         attribute: Add comments.
6040         * lib/attribute.h: Document each macro.
6042 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6044         bitset: use the attribute module
6045         * modules/bitset: Depend on 'attribute'.
6046         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6047         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6048         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6049         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6051 2020-05-09  Bruno Haible  <bruno@clisp.org>
6053         c-stack: Fix warning when DEBUG is enabled.
6054         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6055         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6056         * lib/c-stack.c: Include <stdio.h>.
6058 2020-05-09  Bruno Haible  <bruno@clisp.org>
6060         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6061         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6062         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6063         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6064         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6065         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6066         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6067         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6068         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6069         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6070         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6071         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6072         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6074 2020-05-09  Bruno Haible  <bruno@clisp.org>
6076         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6077         Reported by Akim Demaille in
6078         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6079         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6080         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6081         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6083 2020-05-09  Bruno Haible  <bruno@clisp.org>
6085         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6086         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6087         that usually comes from m4/gnulib-common.m4.
6088         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6090 2020-05-09  Bruno Haible  <bruno@clisp.org>
6092         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6093         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6094         that usually comes from m4/gnulib-common.m4.
6095         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6096         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6097         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6099 2020-05-09  Bruno Haible  <bruno@clisp.org>
6101         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6102         * lib/uchar.in.h (char16_t): Define as macro if
6103         GNULIB_OVERRIDES_CHAR16_T.
6104         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6105         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6106         (gl_UCHAR_H): Invoke them.
6107         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6108         GNULIB_OVERRIDES_CHAR32_T.
6109         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6110         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6111         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6112         GNULIB_OVERRIDES_CHAR32_T.
6114 2020-05-09  Bruno Haible  <bruno@clisp.org>
6116         Macro tweaks.
6117         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6118         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6120 2020-05-08  Bruno Haible  <bruno@clisp.org>
6122         c32rtomb: Avoid compilation failure on Haiku.
6123         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6124         inline definitions.
6125         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6127 2020-05-08  Bruno Haible  <bruno@clisp.org>
6129         mbrtoc32: Avoid compilation failure on Haiku.
6130         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6131         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6132         AC_CHECK_FUNCS_ONCE.
6133         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6135 2020-05-08  Bruno Haible  <bruno@clisp.org>
6137         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6138         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6140 2020-05-08  Bruno Haible  <bruno@clisp.org>
6142         list: Update documentation.
6143         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6144         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6145         * doc/containers.texi (Container data types): Document the new list
6146         operations and their complexity.
6148 2020-05-08  Bruno Haible  <bruno@clisp.org>
6150         ignore-value tests: Use module 'attribute'.
6151         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6152         * tests/test-ignore-value.c: Include attribute.h.
6153         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6154         * modules/ignore-value-tests (Depends-on): Add attribute.
6156 2020-05-08  Bruno Haible  <bruno@clisp.org>
6158         uniname/uniname: Use module 'attribute'.
6159         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6160         * lib/uniname/uninames.h: Regenerated.
6161         * lib/uniname/uniname.c: Include attribute.h.
6162         * modules/uniname/uniname (Depends-on): Add attribute.
6164 2020-05-08  Bruno Haible  <bruno@clisp.org>
6166         c32rtomb: Use module 'attribute'.
6167         * lib/c32rtomb.c: Include attribute.h.
6168         (FALLTHROUGH): Remove macro.
6169         * modules/c32rtomb (Depends-on): Add attribute.
6171 2020-05-08  Bruno Haible  <bruno@clisp.org>
6173         xsize: Use module 'attribute'.
6174         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6175         * modules/xsize (Depends-on): Add attribute.
6177 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6179         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6181         * lib/attribute.h: Minor style fixes.
6183         Fix version-etc glitch on OpenIndiana
6184         Problem reported by Mats Erik Andersson in:
6185         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6186         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6187         that now clashes with gnulib-common.h.  All uses changed.
6189 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6191         attribute: new module
6192         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6193         * MODULES.html.sh: Add attribute.
6194         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6195         * doc/gnulib.texi (Particular Modules): Add Attributes.
6196         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6197         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6198         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6199         * lib/vasnprintf.c:
6200         Include attribute.h, and let it define FALLTHROUGH.
6201         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6202         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6203         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6204         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6205         This is a copy since Gawk doesn’t use Gnulib.
6206         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6207         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6208         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
6209         Keep the existing FALLTHROUGH definition since Glibc might use it,
6210         and it does no harm to Gnulib’s FALLTHROUGH.
6211         * lib/fts_.h, lib/inttostr.h:
6212         (__GNUC_PREREQ): Remove; no longer needed.
6213         (__attribute_warn_unused_result__): Remove.  All uses
6214         replaced by _GL_ATTRIBUTE_NODISCARD.
6215         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
6216         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
6217         __attribute__ ((__warn_unused_result__)), for forward
6218         compatibility to C2X.
6219         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
6220         _GL_ATTRIBUTE_NODISCARD.
6221         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
6222         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
6223         replaced by gl_COMMON_BODY’s implementation, which has a
6224         slightly different signature.
6225         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
6226         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
6227         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
6228         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
6229         No doubt all uses should be replaced, at some point.
6230         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
6231         (_Noreturn): Use it.
6232         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
6233         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
6234         (_GL_ATTRIBUTE_COLD)
6235         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
6236         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
6237         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
6238         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
6239         (_GL_ATTRIBUTE_MAYBE_UNUSED)
6240         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
6241         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
6242         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
6243         (_GL_ATTRIBUTE_RETURNS_NONNULL)
6244         (_GL_ATTRIBUTE_SENTINEL): New macros.
6245         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
6246         * modules/fnmatch, modules/freopen-safer, modules/fts:
6247         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
6248         * modules/quotearg, modules/savewd:
6249         * modules/unistdio/u16-u16-vasnprintf:
6250         * modules/unistdio/u16-vasnprintf:
6251         * modules/unistdio/u32-u32-vasnprintf:
6252         * modules/unistdio/u32-vasnprintf:
6253         * modules/unistdio/u8-u8-vasnprintf:
6254         * modules/unistdio/u8-vasnprintf:
6255         * modules/unistdio/ulc-vasnprintf:
6256         * modules/unistr/u8-uctomb, modules/vasnprintf:
6257         (Depends-on:): Add attribute module.
6259 2020-05-03  Bruno Haible  <bruno@clisp.org>
6261         bison: Fix today's commit.
6262         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6264 2020-05-03  Bruno Haible  <bruno@clisp.org>
6266         list-c++: Add get_first, get_last, set_first, set_last operations.
6267         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6268         set_first, set_last.
6269         * lib/gl_list.h: Tweak comments.
6271 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6273         bison: rely on bison's %require to check a version requirement
6274         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6275         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6276         enough of not.
6277         So far it is the only know Yacc tool that supports '%require'.
6278         Other yaccs will actually even choke on seeing the -o option after the
6279         input file name.
6280         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6282 2020-05-02  Bruno Haible  <bruno@clisp.org>
6284         list: Add get_first, get_last, set_first, set_last operations.
6285         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6286         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6287         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6289 2020-05-02  Bruno Haible  <bruno@clisp.org>
6291         list: Remove redundant code for remove_first and remove_last operations.
6292         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6293         remove_first, remove_last.
6294         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6295         * lib/gl_array_list.c: Revert last change.
6296         * lib/gl_carray_list.c: Likewise.
6297         * lib/gl_anylinked_list2.h: Likewise.
6298         * lib/gl_linked_list.c: Likewise.
6299         * lib/gl_linkedhash_list.c: Likewise.
6300         * lib/gl_anytree_list2.h: Likewise.
6301         * lib/gl_avltree_list.c: Likewise.
6302         * lib/gl_avltreehash_list.c: Likewise.
6303         * lib/gl_rbtree_list.c: Likewise.
6304         * lib/gl_rbtreehash_list.c: Likewise.
6305         * lib/gl_sublist.c: Likewise.
6307 2020-05-02  Bruno Haible  <bruno@clisp.org>
6309         bison-i18n: Add support for cross-compilation.
6310         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6311         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6312         via Akim Demaille <akim@lrde.epita.fr>.
6313         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6314         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6315         Don't use bison's --print-localedir option when cross-compiling.
6316         Also, fix an error message and a comment.
6318 2020-05-01  Bruno Haible  <bruno@clisp.org>
6320         list: Add remove_first and remove_last operations.
6321         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6322         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6323         * lib/gl_list.h (struct gl_list_implementation): Add fields
6324         remove_first, remove_last.
6325         (gl_list_remove_first, gl_list_remove_last): New functions.
6326         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6327         functions, based on gl_array_remove_at.
6328         (gl_array_list_implementation): Implement the new operations.
6329         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6330         New functions, based on gl_carray_remove_at.
6331         (gl_carray_list_implementation): Implement the new operations.
6332         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6333         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6334         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6335         new operations.
6336         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6337         Likewise.
6338         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6339         New functions, based on gl_tree_remove_at.
6340         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6341         new operations.
6342         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6343         Likewise.
6344         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6345         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6346         Likewise.
6347         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6348         New functions, based on gl_sublist_remove_at.
6349         (gl_sublist_list_implementation): Implement the new operations.
6350         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6351         remove_last.
6352         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6353         gl_list_remove_last.
6354         * tests/test-avltree_list.c (main): Likewise.
6355         * tests/test-avltreehash_list.c (main): Likewise.
6356         * tests/test-carray_list.c (main): Likewise.
6357         * tests/test-linked_list.c (main): Likewise.
6358         * tests/test-linkedhash_list.c (main): Likewise.
6359         * tests/test-rbtree_list.c (main): Likewise.
6360         * tests/test-rbtreehash_list.c (main): Likewise.
6362 2020-05-01  Bruno Haible  <bruno@clisp.org>
6364         parse-datetime: Fix a build failure with an older bison version.
6365         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6366         parse-datetime.tab.c if a suitable version of bison was not found.
6368 2020-05-01  Bruno Haible  <bruno@clisp.org>
6370         bison: New module.
6371         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6372         m4/parse-datetime.m4.
6373         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6374         * modules/bison: New file.
6375         * modules/parse-datetime (Files): Remove m4/bison.m4.
6376         (Depends-on): Add bison.
6378 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6380         Update users.txt.
6381         * users.txt: Add poke.
6383 2020-04-28  Bruno Haible  <bruno@clisp.org>
6385         posix_spawn_file_actions_addfchdir tests: Enhance test.
6386         * tests/test-posix_spawn5.c: Include findprog.h.
6387         (test): New function, extracted from main.
6388         (main): Invoke it. Also, invoke it with a program name such as
6389         "bin/pwd".
6390         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
6391         findprog.
6393 2020-04-28  Bruno Haible  <bruno@clisp.org>
6395         posix_spawn_file_actions_addchdir tests: Enhance test.
6396         * tests/test-posix_spawn4.c: Include findprog.h.
6397         (test): New function, extracted from main.
6398         (main): Invoke it. Also, invoke it with a program name such as
6399         "bin/pwd".
6400         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
6401         findprog.
6403 2020-04-28  Bruno Haible  <bruno@clisp.org>
6405         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
6406         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
6407         access elements of the wrong union member.
6409 2020-04-27  Bruno Haible  <bruno@clisp.org>
6411         getdate: Remove deprecated module.
6412         * modules/getdate: Remove file.
6413         * doc/getdate.texi: Remove file.
6414         * lib/getdate.h: Remove file.
6415         * NEWS: Mention the removal.
6417 2020-04-27  Bruno Haible  <bruno@clisp.org>
6419         realloc: Remove deprecated module.
6420         * modules/realloc: Remove file.
6421         * NEWS: Mention the removal.
6423 2020-04-27  Bruno Haible  <bruno@clisp.org>
6425         calloc: Remove deprecated module.
6426         * modules/calloc: Remove file.
6427         * NEWS: Mention the removal.
6429 2020-04-27  Bruno Haible  <bruno@clisp.org>
6431         malloc: Remove deprecated module.
6432         * modules/malloc: Remove file.
6433         * NEWS: Mention the removal.
6435 2020-04-27  Bruno Haible  <bruno@clisp.org>
6437         fnmatch-posix: Remove deprecated module.
6438         * modules/fnmatch-posix: Remove file.
6439         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
6440         * NEWS: Mention the removal.
6442 2020-04-27  Bruno Haible  <bruno@clisp.org>
6444         pipe: Remove deprecated module.
6445         * modules/pipe: Remove file.
6446         * lib/pipe.h: Remove file.
6447         * NEWS: Mention the removal.
6449 2020-04-27  Bruno Haible  <bruno@clisp.org>
6451         getopt: Remove deprecated module.
6452         * modules/getopt: Remove file.
6453         * NEWS: Mention the removal.
6455 2020-04-27  Bruno Haible  <bruno@clisp.org>
6457         remove-dest-slash: Remove deprecated module.
6458         * modules/rename-dest-slash: Remove file.
6459         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
6460         Update.
6461         * NEWS: Mention the removal.
6463 2020-04-27  Bruno Haible  <bruno@clisp.org>
6465         unictype/bidicategory-*: Remove deprecated modules.
6466         * modules/unictype/bidicategory-all: Remove file.
6467         * modules/unictype/bidicategory-byname: Remove file.
6468         * modules/unictype/bidicategory-name: Remove file.
6469         * modules/unictype/bidicategory-of: Remove file.
6470         * modules/unictype/bidicategory-test: Remove file.
6471         * MODULES.html.sh (Unicode string functions): Update.
6472         * NEWS: Mention the removals.
6474 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6476         Tune fts for FTS_LOGICAL+FTS_NOSTAT
6477         From a suggestion by Askar Safin in:
6478         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
6479         * lib/fts.c (fts_build): If file types are known, optimize
6480         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
6481         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
6482         non-directories.
6484 2020-04-19  Bruno Haible  <bruno@clisp.org>
6486         vasnprintf: Add support for printing wide characters using escapes.
6487         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
6488         (wctomb_fallback): New function.
6489         (local_wctomb): New function.
6490         (local_wcrtomb): New function or macro.
6491         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
6492         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
6493         %lc.
6495 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6497         fts: remove NOSTAT_LEAF_OPTIMIZATION
6498         It caused ‘find’ and ‘du’ to dump core, and it was useful
6499         only for obsolescent Linux filesystems anyway.  Problem reported in:
6500         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
6501         Quite possibly there is still a serious underlying fts bug with
6502         tight-loop-check and mutating file systems, but if so this patch
6503         should cause the bug to be triggered less often.
6504         * lib/fts.c (enum leaf_optimization): Remove
6505         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
6506         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
6507         (leaf_optimization): Remove special cases for ReiserFS and XFS.
6508         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
6509         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
6510         Remove.  All uses removed.
6512 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6514         explicit_bzero: Improve code style.
6515         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
6517 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6519         explicit_bzero: On native Windows, use SecureZeroMemory().
6520         * lib/explicit_bzero.c: Include <windows.h>.
6521         (explicit_bzero): On native Windows, use SecureZeroMemory.
6523 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6525         explicit_bzero: Use memset_s() when available.
6526         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
6527         (explicit_bzero): Use memset_s when available.
6528         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
6530 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6532         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
6533         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
6534         free() that overwrite the memory with canaries.
6536 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
6538         bootstrap: recommend git submodule update --init
6539         Reported by Bruno Haible.
6540         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
6541         * build-aux/bootstrap: recommand "git submodule update --init"
6542         rather than "git submodule init".
6544 2020-04-12  Bruno Haible  <bruno@clisp.org>
6546         explicit_bzero: Add tests.
6547         * tests/test-explicit_bzero.c: New file.
6548         * modules/explicit_bzero-tests: New file.
6550 2020-04-11  Bruno Haible  <bruno@clisp.org>
6552         explicit_bzero: Relicense under LGPLv2+.
6553         Approved by Paul Eggert.
6554         * modules/explicit_bzero (License): Change to LGPLv2+.
6556 2020-04-10  Bruno Haible  <bruno@clisp.org>
6558         findprog, relocatable-prog: Ignore directories during PATH search.
6559         Reported by Frederick Eaton via Dmitry Goncharov in
6560         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6562         * lib/findprog.c (find_in_path): When the file found in a PATH element
6563         is a directory, continue searching.
6564         * modules/findprog (Depends-on): Add sys_stat, stat.
6565         * modules/findprog-lgpl (Depends-on): Likewise.
6567         * lib/progreloc.c (maybe_executable): When the file found in a PATH
6568         element is a directory, continue searching.
6569         * lib/relocwrapper.c: Update comments.
6570         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
6571         (configure.ac-early): New section.
6573 2020-04-10  Bruno Haible  <bruno@clisp.org>
6575         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
6576         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6577         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
6578         * MODULES.html.sh: In a git-less tarball, use the date of the first
6579         ChangeLog entry.
6581 2020-04-04  Bruno Haible  <bruno@clisp.org>
6583         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
6584         * m4/gettext.m4: Fix comments regarding the gettext library.
6585         * m4/intl-thread-locale.m4: Likewise.
6586         * m4/intlmacosx.m4: Likewise.
6587         * m4/lcmessage.m4: Likewise.
6588         * m4/nls.m4: Likewise.
6589         * m4/po.m4: Likewise.
6590         * m4/progtest.m4: Likewise.
6592 2020-04-04  Jim Meyering  <meyering@fb.com>
6594         maint: remove a stray inter-word space in a 6x-repeated comment
6595         Induce the changes by running this:
6596           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
6597         * build-aux/announce-gen: Change "by  perl" to "by perl".
6598         * build-aux/gitlog-to-changelog: Likewise.
6599         * build-aux/prefix-gnulib-mk: Likewise.
6600         * build-aux/update-copyright: Likewise.
6601         * build-aux/useless-if-before-free: Likewise.
6602         * tests/test-update-copyright.sh: Likewise.
6604 2020-03-28  Bruno Haible  <bruno@clisp.org>
6606         Use module 'filename' instead of module 'dosname'.
6608         * lib/at-func.c: Include filename.h instead of dosname.h.
6609         * lib/unlinkat.c: Likewise.
6610         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
6611         * modules/areadlinkat-with-size (Depends-on): Likewise.
6612         * modules/faccessat (Depends-on): Likewise.
6613         * modules/fchmodat (Depends-on): Likewise.
6614         * modules/fchownat (Depends-on): Likewise.
6615         * modules/fstatat (Depends-on): Likewise.
6616         * modules/mkdirat (Depends-on): Likewise.
6617         * modules/mkfifoat (Depends-on): Likewise.
6618         * modules/readlinkat (Depends-on): Likewise.
6619         * modules/selinux-at (Depends-on): Likewise.
6620         * modules/symlinkat (Depends-on): Likewise.
6621         * modules/unlinkat (Depends-on): Likewise.
6622         * modules/utimensat (Depends-on): Likewise.
6624         * lib/at-func2.c: Include filename.h instead of dosname.h.
6625         * modules/linkat (Depends-on): Add filename. Remove dosname.
6626         * modules/renameatu (Depends-on): Likewise.
6628         * lib/canonicalize.c: Include filename.h instead of dosname.h.
6629         * lib/canonicalize-lgpl.c: Likewise.
6630         * modules/canonicalize (Depends-on): Add filename.
6631         * modules/canonicalize-lgpl (Depends-on): Likewise.
6633         * lib/dirname.h: Include filename.h instead of dosname.h.
6634         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
6636         * lib/fchdir.c: Include filename.h instead of dosname.h.
6637         * modules/fchdir (Depends-on): Add filename. Remove dosname.
6639         * lib/openat.c: Include filename.h instead of dosname.h.
6640         * modules/openat (Depends-on): Add filename. Remove dosname.
6642         * lib/rmdir.c: Include filename.h instead of dosname.h.
6643         * modules/rmdir (Depends-on): Add filename. Remove dosname.
6645         * lib/savewd.c: Include filename.h instead of dosname.h.
6646         * modules/savewd (Depends-on): Add filename. Remove dosname.
6648         * lib/unlink.c: Include filename.h instead of dosname.h.
6649         * modules/unlink (Depends-on): Add filename. Remove dosname.
6651         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
6652         * lib/relocwrapper.c: Update comments.
6654         * modules/lstat (Depends-on): Remove dosname.
6656 2020-03-28  Bruno Haible  <bruno@clisp.org>
6658         dosname: Redirect to 'filename'.
6659         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6660         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
6661         * lib/dosname.h: Remove all definitions. Just include filename.h.
6662         * modules/dosname (Status, Notice): Mark as deprecated.
6663         (Depends-on): Add 'filename'.
6665 2020-03-28  Bruno Haible  <bruno@clisp.org>
6667         dosname: Change IS_RELATIVE_FILE_NAME.
6668         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
6669         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
6670         * NEWS: Mention the change.
6672 2020-03-28  Bruno Haible  <bruno@clisp.org>
6674         filename: Copy some definitions from module 'dosname'.
6675         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
6676         (HAS_DEVICE): Document macro.
6677         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
6678         (IS_ABSOLUTE_FILE_NAME): Consider
6679         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
6680         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
6681         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
6682         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
6683         IS_PATH_WITH_DIR.
6684         (DllMain): Update.
6685         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
6686         IS_PATH_WITH_DIR.
6687         (find_executable): Update.
6688         * NEWS: Document the deprecations.
6690 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6692         getopt-posix: port __GETOPT_PREFIX to macOS
6693         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
6694         Define to work around a problem with asm on macOS (Bug#40205).
6696 2020-03-22  Bruno Haible  <bruno@clisp.org>
6698         MODULES.html.sh: Add support for reproducible builds.
6699         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6700         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
6701         * MODULES.html.sh: Print the date of the last gnulib commit, not the
6702         current date.
6704 2020-03-22  Bruno Haible  <bruno@clisp.org>
6706         Several modules: Depend on stat.
6707         * modules/acl-permissions (Depends-on): Add stat.
6708         * modules/canonicalize (Depends-on): Likewise.
6709         * modules/file-has-acl (Depends-on): Likewise.
6710         * modules/fstat (Depends-on): Likewise.
6711         * modules/fstatat (Depends-on): Likewise.
6712         * modules/glob (Depends-on): Likewise.
6713         * modules/javacomp (Depends-on): Likewise.
6714         * modules/linkat (Depends-on): Likewise.
6715         * modules/mkdir (Depends-on): Likewise.
6716         * modules/pt_chown (Depends-on): Likewise.
6717         * modules/ptsname_r (Depends-on): Likewise.
6718         * modules/readlinkat (Depends-on): Likewise.
6719         * modules/rename (Depends-on): Likewise.
6720         * modules/renameatu (Depends-on): Likewise.
6721         * modules/tmpdir (Depends-on): Likewise.
6722         * modules/utimens (Depends-on): Likewise.
6723         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
6724         * modules/same (Depends-on): Remove stat.
6726 2020-03-22  Bruno Haible  <bruno@clisp.org>
6728         acl-permissions: Improve autoconf macro.
6729         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
6730         more reliably.
6732 2020-03-22  Bruno Haible  <bruno@clisp.org>
6734         file-has-acl: Fix module description.
6735         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
6736         (Depends-on): Depend on acl-permissions unconditionally.
6738 2020-03-21  Bruno Haible  <bruno@clisp.org>
6740         unlink: Ensure errno also on native Windows.
6741         * modules/unlink (Depends-on): Add malloc-posix.
6743 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6745         unlink: fix malloc errno typo
6746         Problem reported by Tim Rühsen in:
6747         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
6748         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
6750 2020-03-16  Bruno Haible  <bruno@clisp.org>
6752         *printf-posix: Fix m4 error (regression from 2020-03-08).
6753         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
6754         brackets in AC_COMPILE_IFELSE invocation.
6756 2020-03-08  Bruno Haible  <bruno@clisp.org>
6758         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
6759         * modules/crypto/af_alg (Depends-on): Add fstat.
6760         * modules/renameatu (Depends-on): Likewise.
6761         * modules/same (Depends-on): Likewise.
6762         * modules/term-style-control (Depends-on): Likewise.
6764 2020-03-08  Bruno Haible  <bruno@clisp.org>
6766         *printf-posix: Document why it's overridden on some glibc systems.
6767         Reported by Adrian Bunk <bunk@stusta.de> in
6768         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
6769         * doc/posix-functions/*printf.texi: Document the problem with the %n
6770         directive on some glibc systems.
6771         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
6772         the cross-compilation guesses accordingly.
6774 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6776         open, openat: port to (O_RDWR | O_RDONLY) != 0
6777         Potential portability problem reported by Dan Gohman in:
6778         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
6779         * lib/open.c (open):
6780         * lib/openat.c (rpl_openat):
6781         Don’t assume O_RDONLY is disjoint from O_RDWR.
6783 2020-03-07  Bruno Haible  <bruno@clisp.org>
6785         openat: Fix theoretically possible issue on GNU/Hurd.
6786         Reported by Dan Gohman <sunfish@mozilla.com> in
6787         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
6788         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
6789         ignore the bits that are also set in O_RDONLY.
6791 2020-02-24  Bruno Haible  <bruno@clisp.org>
6793         getloadavg: Don't use /usr/local when cross-compiling on AIX.
6794         Reported by Jens Rehsack <sno@netbsd.org> in
6795         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
6796         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
6797         cross-compiling.
6799 2020-02-24  Bruno Haible  <bruno@clisp.org>
6801         fcntl: Add witness of gnulib override.
6802         Reported by Jens Rehsack <sno@netbsd.org> in
6803         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
6804         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
6805         macros.
6807 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
6809         Update users.txt.
6810         * users.txt: Add datamash, time.
6812 2020-02-23  Bruno Haible  <bruno@clisp.org>
6814         uni*/base: Use 'restrict'.
6815         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
6816         from lib/regex.h.
6817         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
6818         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
6819         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
6820         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
6821         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
6822         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
6823         '_UC_RESTRICT'.
6824         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
6825         u32_conv_to_encoding): Use '_UC_RESTRICT'.
6826         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
6827         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
6828         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
6829         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
6830         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
6831         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
6832         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
6833         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
6834         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
6835         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
6836         '_UC_RESTRICT'.
6837         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
6838         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
6839         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
6840         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
6841         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
6842         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
6843         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
6844         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
6846 2020-02-23  Bruno Haible  <bruno@clisp.org>
6848         glob, spawn: Use improved '_Restrict_' definition.
6849         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
6850         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
6852 2020-02-23  Bruno Haible  <bruno@clisp.org>
6854         crypto/gc: Use 'restrict'.
6855         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
6856         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
6858         crypto/hmac-*: Use 'restrict'.
6859         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
6860         'restrict'.
6861         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
6862         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
6863         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
6864         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
6866         crypto/sm3: Use 'restrict'.
6867         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
6868         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
6870         crypto/*-buffer: Use 'restrict'.
6871         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
6872         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
6874         crypto/sha512-buffer: Use 'restrict'.
6875         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
6876         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
6877         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
6879         crypto/sha256-buffer: Use 'restrict'.
6880         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
6881         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
6882         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
6884         crypto/sha1-buffer: Use 'restrict'.
6885         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
6886         'restrict'.
6887         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
6889         crypto/md5-buffer: Use 'restrict'.
6890         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
6891         'restrict'.
6892         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
6894         crypto/md4: Use 'restrict'.
6895         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
6896         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
6898         crypto/md2: Use 'restrict'.
6899         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
6900         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
6902         crypto/rijndael: Use 'restrict'.
6903         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
6904         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
6905         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
6907         crypto/arctwo: Use 'restrict'.
6908         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
6909         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
6911         crypto/arcfour: Use 'restrict'.
6912         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
6913         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
6915         careadlinkat: Use 'restrict'.
6916         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
6917         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
6918         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
6920         regex-quote: Use 'restrict'.
6921         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
6922         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
6924         system-quote: Use 'restrict'.
6925         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
6926         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
6928         sh-quote: Use 'restrict'.
6929         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
6930         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
6932         quotearg: Use 'restrict'.
6933         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
6934         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
6936         parse-datetime: Use 'restrict'.
6937         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
6938         'restrict'.
6939         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
6941         nstrftime: Use 'restrict'.
6942         * lib/strftime.h (nstrftime): Use 'restrict'.
6943         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
6945         mbstok_r: Use 'restrict'.
6946         * lib/string.in.h (mbstok_r): Use 'restrict'.
6948         xmemcoll: Use 'restrict'.
6949         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
6950         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
6952         memcoll: Use 'restrict'.
6953         * lib/memcoll.h (memcoll): Use 'restrict'.
6954         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
6956         vasnprintf: Use 'restrict'.
6957         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
6958         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
6960         c-vasnprintf: Use 'restrict'.
6961         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
6962         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
6964         c-vsnprintf: Use 'restrict'.
6965         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
6966         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
6968         c-snprintf: Use 'restrict'.
6969         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
6970         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
6972         astrxfrm: Use 'restrict'.
6973         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
6974         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
6976         amemxfrm: Use 'restrict'.
6977         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
6978         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
6980 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6982         fchmodat, lchmod: simplify
6983         It appears that we may have overengineered lchmod and fchmodat,
6984         in that the code was prepared for some hypothetical platforms but
6985         was so complicated that it was hard to understand.  I attempted to
6986         improve the situation by simplifying the code when this
6987         simplification should not hurt on real platforms; we can re-add
6988         complexity later to port to platforms I didn’t know about.
6989         * lib/fchmodat.c (fchmodat):
6990         * lib/lchmod.c (lchmod):
6991         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
6992         around the /proc code that needs it.
6993         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
6994         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
6995         Do not include <config.h> twice.
6996         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
6997         lchmod on any known hosts.
6998         (lchmod): Do not defer to fchmodat, so that the lchmod module
6999         need not depend on the fchmodat module (which is a circular
7000         dependency).  Do not use openat, since ‘open’ suffices.
7001         Coalesce calls to lchmod/chmod.
7002         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7003         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7004         * modules/lchmod (Depends-on, configure.ac):
7005         * modules/sys_stat (Depends-on):
7006         Do not worry about replacing lchmod, since that shouldn’t happen.
7007         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7008         Do not worry about whether lchmod works on non-symlinks,
7009         since every known lchmod works on non-symlinks.
7010         * modules/lchmod (Depends-on):
7011         Remove circular dependency on fchmodat.
7013 2020-02-22  Bruno Haible  <bruno@clisp.org>
7015         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7016         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7017         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7019 2020-02-22  Bruno Haible  <bruno@clisp.org>
7021         Use 'restrict' in all POSIX function declarations.
7022         * lib/iconv.in.h (iconv): Use 'restrict'.
7023         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7024         * lib/monetary.in.h (strfmon_l): Likewise.
7025         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7026         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7027         pthread_mutex_timedlock, pthread_rwlock_init,
7028         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7029         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7030         * lib/search.in.h (tdelete): Likewise.
7031         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7032         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7033         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7034         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7035         Likewise.
7036         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7037         strtoull): Likewise.
7038         * lib/string.in.h (strncat): Likewise.
7039         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7040         recvfrom): Likewise.
7041         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7042         * lib/time.in.h (strftime): Likewise.
7043         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7044         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7045         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7046         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7047         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7048         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7049         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7050         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7051         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7052         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7053         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7054         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7056         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7057         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7058         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7059         other *_h.m4 files.
7060         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7062 2020-02-22  Bruno Haible  <bruno@clisp.org>
7064         Update NEWS.
7065         * NEWS: Mention the last change.
7067 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7069         chmodat, chownat: new modules
7070         These are split from fchmodat, fchownat.  GNU Emacs needs the
7071         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7072         lchmodat.  Split the latter two into a new module chmodat.
7073         Similarly for fchownat.  This the same basic idea for why statat
7074         was split from fstatat on 2013-01-23.
7075         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7076         Rename from FCHMODAT_INLINE.  All uses changed.
7077         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7078         Rename from FCHOWNAT_INLINE.  All uses changed.
7079         * lib/openat.h:
7080         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7081         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7082         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7083         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7084         (configure.ac): Remove fchmodat module indicator.
7085         (Makefile.am): Omit chmodat.c.
7086         (Maintainer): Add self.
7087         * modules/fchownat: Similarly, but for chown.
7088         * tests/test-fchownat.c (BASE): Don't define if already defined.
7089         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7091 2020-02-22  Bruno Haible  <bruno@clisp.org>
7093         users.txt: Add groff.
7094         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7095         * users.txt: Add groff.
7097 2020-02-22  Bruno Haible  <bruno@clisp.org>
7099         gnulib-tool: Ensure copied files are writable.
7100         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7101         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7102         * gnulib-tool (func_ensure_writable): New function.
7103         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7104         func_create_testdir, copy-file): Invoke it after copying a file.
7106 2020-02-22  Bruno Haible  <bruno@clisp.org>
7108         users.txt: Update.
7109         * users.txt: Update URLs to projects that have moved or switched to git.
7110         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7111         over the summary view. Add gawk.
7113 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7115         largefile: remove _DARWIN_USE_64_BIT_INODE
7116         It’s not needed in currently-supported macOS versions, and was
7117         problematic anyway in MacOS X 10.5 which was the only version that
7118         could use it.  Problem reported by Peter Eisentraut in:
7119         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7120         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7121         Don’t define _DARWIN_USE_64_BIT_INODE.
7122         This syncs with Autoconf master.
7124         Add ‘extern "C"’ to count-one-bits.h etc.
7125         This ports these .h files to C++.
7126         Problem reported by Simon Marchi in:
7127         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7128         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7129         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7131 2020-02-19  Bruno Haible  <bruno@clisp.org>
7133         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7134         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7135         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7136         * lib/array-mergesort.h: Accept an optional macro definition
7137         STATIC_FROMTO.
7138         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7140 2020-02-16  Bruno Haible  <bruno@clisp.org>
7142         fchmodat: Make more future-proof.
7143         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7144         NEED_FCHMODAT_NONSYMLINK_FIX.
7145         (gl_PREREQ_FCHMODAT): New macro.
7146         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7147         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7148         without lchmod function.
7149         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7151 2020-02-16  Bruno Haible  <bruno@clisp.org>
7153         lchmod: Make more future-proof.
7154         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7155         (gl_PREREQ_LCHMOD): New macro.
7156         * lib/lchmod.c (orig_lchmod): New function.
7157         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7158         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7159         function.
7160         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7162         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7163         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7165 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7167         xnanosleep: prefer pause, and get remaining time
7168         Problem reported by Vladimir Panteleev in:
7169         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7170         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7171         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7172         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7173         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7174         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7176 2020-02-16  Bruno Haible  <bruno@clisp.org>
7178         lchmod: Improve cross-compilation guess.
7179         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7180         cross-compiling, guess depending on the platform.
7182 2020-02-16  Bruno Haible  <bruno@clisp.org>
7184         fstrcmp: Add API to clean up resources.
7185         Reported by Akim Demaille <akim@lrde.epita.fr> in
7186         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7187         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7188         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7190 2020-02-14  Bruno Haible  <bruno@clisp.org>
7192         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7193         Reported by Christian Biesinger in
7194         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7195         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7196         corresponding module is not enabled.
7197         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7198         prototype if the corresponding module is not enabled.
7200 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7202         fchmodat, lchmod: port to buggy Linux filesystems
7203         Problem reported by Florian Weimer in:
7204         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7205         * lib/fchmodat.c (fchmodat):
7206         * lib/lchmod.c (lchmod):
7207         Don’t assume that chmod on the O_PATH-opened fd will do
7208         the right thing on a symbolic link.
7209         * lib/fchmodat.c (fchmodat):
7210         Don’t attempt to special-case
7211         any flag value other than AT_SYMLINK_NOFOLLOW.
7213 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7215         lchmod: pacify Coverity CID 1491216
7216         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
7217         not complain about unreachable code at the ‘struct stat st;’
7218         declaration.
7220 2020-02-10  Bruno Haible  <bruno@clisp.org>
7222         copysignf: Fix link error on HP-UX with cc.
7223         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
7224         HP-UX, set COPYSIGNF_LIBM to -lm.
7226 2020-02-10  Bruno Haible  <bruno@clisp.org>
7228         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
7229         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
7230         with $(LIB_SEMAPHORE).
7231         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
7232         with $(LIB_SEMAPHORE).
7234 2020-02-10  Bruno Haible  <bruno@clisp.org>
7236         ptsname_r-tests: Avoid unused function warning.
7237         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
7239 2020-02-08  Bruno Haible  <bruno@clisp.org>
7241         lchmod: Add tests.
7242         * tests/test-lchmod.c: New file.
7243         * modules/lchmod-tests: New file.
7245 2020-02-08  Bruno Haible  <bruno@clisp.org>
7247         lchmod: Ensure declaration on HP-UX.
7248         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7249         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7251 2020-02-08  Bruno Haible  <bruno@clisp.org>
7253         fchmodat: Strengthen tests.
7254         * tests/test-fchmodat.c (BASE): New macro.
7255         (main): Use it, to avoid conflicts with other unit tests. Verify that
7256         fchmodat changed the file permission bits.
7258 2020-02-08  Bruno Haible  <bruno@clisp.org>
7260         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7261         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7262         '#undef __need_system_sys_stat_h'.
7264 2020-02-08  Bruno Haible  <bruno@clisp.org>
7266         fchmodat: Improve cross-compilation guesses.
7267         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7268         cross-compiling, guess depending on the platform.
7269         * doc/posix-functions/fchmodat.texi: Clarify.
7271 2020-02-08  Bruno Haible  <bruno@clisp.org>
7273         Fix compilation errors in a testdir created with --with-c++-tests.
7274         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7275         since it does not work any more with g++ >= 4.4.
7277 2020-02-08  Bruno Haible  <bruno@clisp.org>
7279         doc: Update for glibc 2.31.
7280         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7281         * doc/gnulib.texi: Include it.
7282         * doc/pastposix-functions/h_errno.texi: Update.
7283         * doc/posix-functions/*.texi: Likewise.
7285 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7287         mountlist: consider smb3 file systems as remote
7288         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7289         "smb3" as remote.
7291 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7293         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7294         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7295         they act like chmod on non-symlinks.
7296         * NEWS:
7297         * doc/glibc-functions/lchmod.texi (lchmod):
7298         * doc/posix-functions/fchmodat.texi (fchmodat):
7299         Mention this.
7300         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7301         config.h, and undef it after including sys/stat.h the first time.
7302         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7303         sys/stat.h a second time after defining orig_fchmodat.
7304         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7305         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7306         * lib/lchmod.c: New file.
7307         * lib/sys_stat.in.h (fchmodat, lchmod):
7308         Support replacing these functions.
7309         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7310         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7311         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7312         Test that lchmod works on non-symlinks.
7313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7314         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7315         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7316         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7317         * modules/lchmod (Files): Add lib/lchmod.c.
7318         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7319         (configure.ac): Compile lchmod.c if needed.
7320         (lib_SOURCES): Add lchmod.c.
7321         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7322         and REPLACE_LCHMOD.
7323         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7324         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7326 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7328         mountlist: Consider AFS filesystems as remote
7329         df --local relies on the ME_REMOTE macro to determine if a given
7330         mount entry should be considered "local".  There is special logic
7331         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7332         kernel's kafs module or AuriStorFS is treated as a local mount.
7333         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7334         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7336 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7338         Port _Noreturn to older Clang
7339         Problem reported by Jeffery Walton in:
7340         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7341         * lib/_Noreturn.h (_Noreturn):
7342         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7343         Assume _Noreturn works in Clang 3.5 and later.
7344         It is documented to work in Clang 3.5:
7345         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7346         and is not documented in Clang 3.4:
7347         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7348         Apple sets __clang_version__ to a different value, so use
7349         __apple_build_version__ there.  See:
7350         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7352 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7354         test-canonicalize: avoid unused function warning
7355         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7356         with the same guard as that used to protect usage of the null_ptr
7357         function, so that one doesn't get a -Wunused warning.
7358         * tests/test-canonicalize-lgpl.c: Likewise.
7360 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7362         libc-config: port to Apple’s Clang variant
7363         * lib/libc-config.h (__glibc_clang_prereq):
7364         Port to Apple’s Clang variant, which uses a different
7365         numbering scheme for __clang_major__.
7367 2020-02-02  Bruno Haible  <bruno@clisp.org>
7369         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7370         * doc/containers.texi: Document these new modules.
7372 2020-02-02  Bruno Haible  <bruno@clisp.org>
7374         omap-c++: Add tests.
7375         * tests/test-omap-c++.cc: New file.
7376         * modules/omap-c++-tests: New file.
7378         omap-c++: New module.
7379         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7380         * modules/omap-c++: New file.
7382 2020-02-02  Bruno Haible  <bruno@clisp.org>
7384         map-c++: Add tests.
7385         * tests/test-map-c++.cc: New file.
7386         * modules/map-c++-tests: New file.
7388         map-c++: New module.
7389         * lib/gl_map.hh: New file, based on lib/gl_map.h.
7390         * modules/map-c++: New file.
7392 2020-02-02  Bruno Haible  <bruno@clisp.org>
7394         oset-c++: Add tests.
7395         * tests/test-oset-c++.cc: New file.
7396         * modules/oset-c++-tests: New file.
7398         oset-c++: New module.
7399         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
7400         * modules/oset-c++: New file.
7402 2020-02-02  Bruno Haible  <bruno@clisp.org>
7404         set-c++: Add tests.
7405         * tests/test-set-c++.cc: New file.
7406         * modules/set-c++-tests: New file.
7408         set-c++: New module.
7409         * lib/gl_set.hh: New file, based on lib/gl_set.h.
7410         * modules/set-c++: New file.
7412 2020-02-02  Bruno Haible  <bruno@clisp.org>
7414         list-c++: Add tests.
7415         * tests/test-list-c++.cc: New file.
7416         * modules/list-c++-tests: New file.
7418         list-c++: New module.
7419         * lib/gl_list.hh: New file, based on lib/gl_list.h.
7420         * modules/list-c++: New file.
7422 2020-02-02  Bruno Haible  <bruno@clisp.org>
7424         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
7425         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
7426         '_Noreturn'.
7427         * lib/sigpipe-die.h (sigpipe_die): Likewise.
7429 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7431         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
7432         On x86_64 with glibc-2.30, gcc 9.2 is giving:
7433           error: argument 2 value '18446744073709551615'
7434           exceeds maximum object size 9223372036854775807
7435           [-Werror=alloc-size-larger-than=]
7436         The details of this restriction are discussed at:
7437         https://stackoverflow.com/q/42574890/4421
7438         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
7440 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7442         sysctl.h: avoid including on glibc
7443         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
7444         * lib/physmem.c: Likewise.
7446 2020-02-02  Bruno Haible  <bruno@clisp.org>
7448         list, set, oset, map, omap: Avoid imperative voice in documentation.
7449         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
7450         in the specification of functions.
7451         * lib/gl_set.h: Likewise.
7452         * lib/gl_oset.h: Likewise.
7453         * lib/gl_map.h: Likewise.
7454         * lib/gl_omap.h: Likewise.
7455         * lib/gl_*.h: Likewise.
7457 2020-02-01  Bruno Haible  <bruno@clisp.org>
7459         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
7460         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
7461         does.
7463 2020-01-29  Bruno Haible  <bruno@clisp.org>
7465         array-map, hash-map, linkedhash-map: Fix module description.
7466         * modules/array-map (Description): Fix description.
7467         * modules/hash-map (Description): Likewise.
7468         * modules/linkedhash-map (Description): Likewise.
7470 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7472         dfa: do not depend on isblank
7473         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
7474         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
7475         * modules/dfa (Depends-on): Remove isblank.
7476         * modules/isblank: Add a module indicator, for lib/dfa.c.
7478         dfa: do not assume 64-bit int
7479         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
7480         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
7481         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
7482         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
7483         Fall back to 32-bit words.
7484         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
7485         of 4 64-bit args.  All uses changed.
7487 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7489         regex: remove limits-h dependency
7490         * modules/regex (Depends-on): Remove limits-h, since the
7491         code no longer depends on ULONG_WIDTH already being defined.
7493         regex: port to non-GCC pre-IEC-60559
7494         Problem reported by Arnold Robbins in:
7495         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
7496         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
7498 2020-01-25  Bruno Haible  <bruno@clisp.org>
7500         c32isxdigit: Add tests.
7501         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
7502         * tests/test-c32isxdigit.sh: New file.
7503         * modules/c32isxdigit-tests: New file.
7505         c32isxdigit: New module.
7506         * lib/c32isxdigit.c: New file.
7507         * modules/c32isxdigit: New file.
7508         * doc/posix-functions/iswxdigit.texi: Mention the new module.
7510 2020-01-25  Bruno Haible  <bruno@clisp.org>
7512         c32isupper: Add tests.
7513         * tests/test-c32isupper.c: New file.
7514         * tests/test-c32isupper.sh: New file.
7515         * modules/c32isupper-tests: New file.
7517         c32isupper: New module.
7518         * lib/c32isupper.c: New file.
7519         * modules/c32isupper: New file.
7520         * doc/posix-functions/iswupper.texi: Mention the new module.
7522 2020-01-25  Bruno Haible  <bruno@clisp.org>
7524         c32isspace: Add tests.
7525         * tests/test-c32isspace.c: New file.
7526         * tests/test-c32isspace.sh: New file.
7527         * modules/c32isspace-tests: New file.
7529         c32isspace: New module.
7530         * lib/c32isspace.c: New file.
7531         * modules/c32isspace: New file.
7532         * doc/posix-functions/iswspace.texi: Mention the new module.
7534 2020-01-25  Bruno Haible  <bruno@clisp.org>
7536         c32ispunct: Add tests.
7537         * tests/test-c32ispunct.c: New file.
7538         * tests/test-c32ispunct.sh: New file.
7539         * modules/c32ispunct-tests: New file.
7541         c32ispunct: New module.
7542         * lib/c32ispunct.c: New file.
7543         * modules/c32ispunct: New file.
7544         * doc/posix-functions/iswpunct.texi: Mention the new module.
7546 2020-01-25  Bruno Haible  <bruno@clisp.org>
7548         c32isprint: Add tests.
7549         * tests/test-c32isprint.c: New file.
7550         * tests/test-c32isprint.sh: New file.
7551         * modules/c32isprint-tests: New file.
7553         c32isprint: New module.
7554         * lib/c32isprint.c: New file.
7555         * modules/c32isprint: New file.
7556         * doc/posix-functions/iswprint.texi: Mention the new module.
7558 2020-01-25  Bruno Haible  <bruno@clisp.org>
7560         c32islower: Add tests.
7561         * tests/test-c32islower.c: New file.
7562         * tests/test-c32islower.sh: New file.
7563         * modules/c32islower-tests: New file.
7565         c32islower: New module.
7566         * lib/c32islower.c: New file.
7567         * modules/c32islower: New file.
7568         * doc/posix-functions/iswlower.texi: Mention the new module.
7570 2020-01-25  Bruno Haible  <bruno@clisp.org>
7572         c32isgraph: Add tests.
7573         * tests/test-c32isgraph.c: New file.
7574         * tests/test-c32isgraph.sh: New file.
7575         * modules/c32isgraph-tests: New file.
7577         c32isgraph: New module.
7578         * lib/c32isgraph.c: New file.
7579         * modules/c32isgraph: New file.
7580         * doc/posix-functions/iswgraph.texi: Mention the new module.
7582 2020-01-25  Bruno Haible  <bruno@clisp.org>
7584         c32isdigit: Add tests.
7585         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
7586         * tests/test-c32isdigit.sh: New file.
7587         * modules/c32isdigit-tests: New file.
7589         c32isdigit: New module.
7590         * lib/c32isdigit.c: New file.
7591         * modules/c32isdigit: New file.
7592         * doc/posix-functions/iswdigit.texi: Mention the new module.
7594 2020-01-25  Bruno Haible  <bruno@clisp.org>
7596         c32iscntrl: Add tests.
7597         * tests/test-c32iscntrl.c: New file.
7598         * tests/test-c32iscntrl.sh: New file.
7599         * modules/c32iscntrl-tests: New file.
7601         c32iscntrl: New module.
7602         * lib/c32iscntrl.c: New file.
7603         * modules/c32iscntrl: New file.
7604         * doc/posix-functions/iswcntrl.texi: Mention the new module.
7606 2020-01-25  Bruno Haible  <bruno@clisp.org>
7608         c32isblank: Add tests.
7609         * tests/test-c32isblank.c: New file.
7610         * tests/test-c32isblank.sh: New file.
7611         * modules/c32isblank-tests: New file.
7613         c32isblank: New module.
7614         * lib/c32isblank.c: New file.
7615         * modules/c32isblank: New file.
7616         * doc/posix-functions/iswblank.texi: Mention the new module.
7618 2020-01-25  Bruno Haible  <bruno@clisp.org>
7620         c32isalpha: Add tests.
7621         * tests/test-c32isalpha.c: New file.
7622         * tests/test-c32isalpha.sh: New file.
7623         * modules/c32isalpha-tests: New file.
7625         c32isalpha: New module.
7626         * lib/c32isalpha.c: New file.
7627         * modules/c32isalpha: New file.
7628         * doc/posix-functions/iswalpha.texi: Mention the new module.
7630 2020-01-25  Bruno Haible  <bruno@clisp.org>
7632         c32isalnum: Add tests.
7633         * tests/test-c32isalnum.c: New file.
7634         * tests/test-c32isalnum.sh: New file.
7635         * modules/c32isalnum-tests: New file.
7637         c32isalnum: New module.
7638         * lib/c32isalnum.c: New file.
7639         * lib/c32is-impl.h: New file.
7640         * modules/c32isalnum: New file.
7641         * doc/posix-functions/iswalnum.texi: Mention the new module.
7643 2020-01-25  Bruno Haible  <bruno@clisp.org>
7645         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
7646         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
7647         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
7648         c32isupper, c32isxdigit): New declarations.
7649         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
7650         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7651         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7652         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7653         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7654         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
7655         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7656         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7657         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7658         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7659         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
7660         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
7661         c32ispunct, c32isspace, c32isupper, c32isxdigit.
7663 2020-01-25  Bruno Haible  <bruno@clisp.org>
7665         mbchar, wctype: Use the corrected iswxdigit function.
7666         * modules/mbchar (Depends-on): Add iswxdigit.
7667         * modules/wctype (Depends-on): Likewise.
7669         iswxdigit: Add tests.
7670         * tests/test-iswxdigit.c: New file.
7671         * tests/test-iswxdigit.sh: New file.
7672         * modules/iswxdigit-tests: New file.
7674         iswxdigit: New module.
7675         * m4/iswxdigit.m4: New file.
7676         * lib/wctype.in.h (iswxdigit): Potentially override.
7677         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
7678         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
7679         * lib/iswxdigit.c: New file.
7680         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
7681         REPLACE_ISWXDIGIT.
7682         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
7683         REPLACE_ISWXDIGIT.
7684         * modules/iswxdigit: New file.
7685         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
7687 2020-01-25  Bruno Haible  <bruno@clisp.org>
7689         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
7690         Reported by John Donoghue <john.david.donoghue@gmail.com> in
7691         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
7692         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
7693         off_t on mingw, invoke _lseeki64 instead of lseek.
7695 2020-01-25  Bruno Haible  <bruno@clisp.org>
7697         iswdigit tests: Avoid test failure on Cygwin.
7698         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
7699         byte sequence, return 0.
7701         iswdigit: Fix test failure on native Windows.
7702         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
7704         mbchar, wctype: Use the corrected iswdigit function.
7705         * modules/mbchar (Depends-on): Add iswdigit.
7706         * modules/wctype (Depends-on): Likewise.
7708         iswdigit: Add tests.
7709         * tests/test-iswdigit.c: New file.
7710         * tests/test-iswdigit.sh: New file.
7711         * modules/iswdigit-tests: New file.
7713         iswdigit: New module.
7714         * m4/iswdigit.m4: New file.
7715         * lib/wctype.in.h (iswdigit): Potentially override.
7716         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
7717         * lib/iswdigit.c: New file.
7718         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
7719         REPLACE_ISWDIGIT.
7720         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
7721         REPLACE_ISWDIGIT.
7722         * modules/iswdigit: New file.
7723         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
7725 2020-01-25  Bruno Haible  <bruno@clisp.org>
7727         hard-locale tests: Make it easy to reuse the musl test.
7728         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
7729         * modules/hard-locale-tests (Files): Add it.
7730         (configure.ac): Invoke gl_MUSL_LIBC.
7732 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7734         regex: port to Gawk on nonstandard platforms
7735         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
7736         This is useful for Gawk, which does not use the Gnulib stdlib-h
7737         module.  Problem reported by Arnold Robbins in:
7738         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
7740 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7742         regex: fix bug with >=16 subexpressions
7743         * lib/regex_internal.h (struct re_backref_cache_entry):
7744         Use bitset_word_t as the type of eps_reachable_subexps_map,
7745         instead of unsigned short int.  This fixes a bug I introduced
7746         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
7747         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
7748         Remove unused member 'unused'.
7750         regex: simplify definition of BITSET_WORD_BITS
7751         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
7752         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
7753         * lib/regex_internal.h (BITSET_WORD_BITS):
7754         * modules/regex (Depends-on): Add limits-h.
7755         Simplify now that we can use ULONG_WIDTH.
7757 2020-01-20  Bruno Haible  <bruno@clisp.org>
7759         mbrtoc32: Add note about FreeBSD 12.
7760         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
7761         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
7762         affected.
7764 2020-01-20  Bruno Haible  <bruno@clisp.org>
7766         unistr/u8-uctomb: Fix warning.
7767         Reported by Andreas Schwab <schwab@suse.de> in
7768         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
7769         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
7770         (u8_uctomb): Add FALLTHROUGH markers.
7772 2020-01-20  Bruno Haible  <bruno@clisp.org>
7774         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
7775         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
7776         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
7777         (glthread_once): Use it.
7779 2020-01-19  Bruno Haible  <bruno@clisp.org>
7781         threadlib: Disable use of weak symbols on FreeBSD 11.
7782         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7783         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
7784         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
7785         against a bug in FreeBSD 11.
7787 2020-01-19  Bruno Haible  <bruno@clisp.org>
7789         iconv_open: Improve z/OS support.
7790         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
7791         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
7792         Remove mapping for EUC-TW.
7794 2020-01-18  Bruno Haible  <bruno@clisp.org>
7796         Rename ~~gnulib.m4 to zzgnulib.m4.
7797         Suggested by Paul Eggert.
7798         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
7799         * gnulib-tool (func_get_filelist): Update.
7800         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7802 2020-01-18  Bruno Haible  <bruno@clisp.org>
7804         doc: Update license notices.
7805         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
7806         reference to a section or to a "file as part of this distribution".
7808 2020-01-18  Bruno Haible  <bruno@clisp.org>
7810         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
7811         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
7812         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
7813         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
7814         AC_EGREP_CPP.
7816 2020-01-18  Bruno Haible  <bruno@clisp.org>
7818         Ensure Automake does not drop ~~gnulib.m4.
7819         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
7820         * m4/gnulib-common.m4 (gl_COMMON): Require it.
7822 2020-01-18  Bruno Haible  <bruno@clisp.org>
7824         Fix major regression from 2020-01-10.
7825         Reported by Paul Eggert in
7826         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
7827         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
7828         Don't AC_REQUIRE anything.
7829         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
7830         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
7831         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
7832         use ac_compile instead.
7833         (AC_CHECK_DECL): Remove override.
7834         * m4/~~gnulib.m4: New file.
7835         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
7836         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7838 2020-01-17  Bruno Haible  <bruno@clisp.org>
7839             Paul Eggert  <eggert@cs.ucla.edu>
7841         glob: Fix use-after-free bug.
7842         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7843         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
7844         * lib/glob.c (__glob): Delay freeing dirname until after the use of
7845         end_name.
7847 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7849         vcs-to-changelog: Fix parsing of fndecl without args.
7850         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
7851         for empty arguments.
7853 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7855         vcs-to-changelog: Add documentation.
7856         * doc/vcs-to-changelog.texi: New file.
7857         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
7858         section.
7860 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7862         vcs-to-changelog: Allow loading of custom quirks file.
7863         * build-aux/vcs_to_changelog.py: New commandline option -q.
7865 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7867         vcs-to-changelog: Fix formatting of ChangeLog output.
7868         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
7869         output.
7871 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7873         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
7874         Reported in
7875         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
7876         * build-aux/vcstocl/frontend_c.py: Remove shebang.
7878 2020-01-15  Simon Josefsson  <simon@josefsson.org>
7880         crypto/gc-pbkdf2: New module.
7881         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
7882         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
7883         * lib/gc-pbkdf2.c: New file.
7884         * lib/gc-pbkdf2-sha1.c: Use new interface.
7885         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
7886         * modules/crypto/gc-pbkdf2: New file.
7887         * modules/crypto/gc-pbkdf2-tests: New file.
7888         * tests/test-gc-pbkdf2.c: New file.
7890 2020-01-12  Bruno Haible  <bruno@clisp.org>
7892         c32stombs: Add tests.
7893         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
7894         * tests/test-c32stombs-1.sh: New file, based on
7895         tests/test-c32srtombs-1.sh.
7896         * tests/test-c32stombs-2.sh: New file, based on
7897         tests/test-c32srtombs-2.sh.
7898         * tests/test-c32stombs-3.sh: New file, based on
7899         tests/test-c32srtombs-3.sh.
7900         * tests/test-c32stombs-4.sh: New file, based on
7901         tests/test-c32srtombs-4.sh.
7902         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
7904         c32stombs: New module.
7905         * lib/uchar.in.h (c32stombs): New declaration.
7906         * lib/c32stombs.c: New file.
7907         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
7908         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
7909         * modules/c32stombs: New file.
7910         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
7911         * doc/posix-functions/wcstombs.texi: Mention the new module.
7913 2020-01-11  Jim Meyering  <meyering@fb.com>
7915         perl: require the "warnings" module
7916         * m4/perl.m4: Also "use warnings", so we reject the perl found
7917         on at least one IRIX 6.5 system. Reported by Bruno Haible in
7918         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
7920 2020-01-10  Bruno Haible  <bruno@clisp.org>
7922         Fix major regression from 2020-01-04.
7923         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
7924         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
7925         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
7926         AC_DEFUN_ONCE.
7927         (AC_CHECK_DECL): Invoke, not require, it.
7929 2020-01-10  Bruno Haible  <bruno@clisp.org>
7931         c32snrtombs: Add tests.
7932         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
7933         * tests/test-c32snrtombs-1.sh: New file, based on
7934         tests/test-wcsnrtombs1.sh.
7935         * tests/test-c32snrtombs-2.sh: New file, based on
7936         tests/test-wcsnrtombs2.sh.
7937         * tests/test-c32snrtombs-3.sh: New file, based on
7938         tests/test-wcsnrtombs3.sh.
7939         * tests/test-c32snrtombs-4.sh: New file, based on
7940         tests/test-wcsnrtombs4.sh.
7941         * modules/c32snrtombs-tests: New file, based on
7942         modules/wcsnrtombs-tests.
7944         c32snrtombs: New module.
7945         * lib/uchar.in.h (c32snrtombs): New declaration.
7946         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
7947         INTERNAL_STATE, WCRTOMB.
7948         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
7949         * lib/c32snrtombs.c: New file.
7950         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
7951         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
7952         * modules/c32snrtombs: New file.
7953         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
7954         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7956 2020-01-09  Bruno Haible  <bruno@clisp.org>
7958         c32srtombs: Add tests.
7959         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
7960         * tests/test-c32srtombs-1.sh: New file, based on
7961         tests/test-wcsrtombs1.sh.
7962         * tests/test-c32srtombs-2.sh: New file, based on
7963         tests/test-wcsrtombs2.sh.
7964         * tests/test-c32srtombs-3.sh: New file, based on
7965         tests/test-wcsrtombs3.sh.
7966         * tests/test-c32srtombs-4.sh: New file, based on
7967         tests/test-wcsrtombs4.sh.
7968         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
7970         c32srtombs: New module.
7971         * lib/uchar.in.h (c32srtombs): New declaration.
7972         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
7973         INTERNAL_STATE, WCRTOMB.
7974         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
7975         * lib/c32srtombs.c: New file.
7976         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
7977         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
7978         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
7979         * modules/c32srtombs: New file.
7980         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
7981         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
7983 2020-01-08  Bruno Haible  <bruno@clisp.org>
7985         c32tob: Make consistent with mbrtoc32.
7986         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
7987         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
7988         use c32rtomb, not wctob.
7989         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
7990         (Depends-on): Add c32rtomb.
7991         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
7993 2020-01-08  Bruno Haible  <bruno@clisp.org>
7995         c32rtomb: Add tests.
7996         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
7997         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
7998         * tests/test-c32rtomb-w32.c: New file, based on
7999         tests/test-wcrtomb-w32.c.
8000         * tests/test-c32rtomb-w32-1.sh: New file, based on
8001         tests/test-wcrtomb-w32-1.sh.
8002         * tests/test-c32rtomb-w32-2.sh: New file, based on
8003         tests/test-wcrtomb-w32-2.sh.
8004         * tests/test-c32rtomb-w32-3.sh: New file, based on
8005         tests/test-wcrtomb-w32-3.sh.
8006         * tests/test-c32rtomb-w32-4.sh: New file, based on
8007         tests/test-wcrtomb-w32-4.sh.
8008         * tests/test-c32rtomb-w32-5.sh: New file, based on
8009         tests/test-wcrtomb-w32-5.sh.
8010         * tests/test-c32rtomb-w32-6.sh: New file, based on
8011         tests/test-wcrtomb-w32-6.sh.
8012         * tests/test-c32rtomb-w32-7.sh: New file, based on
8013         tests/test-wcrtomb-w32-7.sh.
8014         * modules/c32rtomb-tests: New file.
8016         c32rtomb: New module.
8017         * lib/uchar.in.h (c32rtomb): New declaration.
8018         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8019         * m4/c32rtomb.m4: New file.
8020         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8021         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8022         REPLACE_C32RTOMB.
8023         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8024         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8025         * modules/c32rtomb: New file.
8026         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8027         * doc/posix-functions/c32rtomb.texi: Document the new module.
8028         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8030 2020-01-08  Bruno Haible  <bruno@clisp.org>
8032         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8033         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8034         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8035         but is not working.
8036         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8037         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8038         differ, use the system's mbrtoc32, adding workarounds.
8039         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8040         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8041         Windows problem.
8042         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8043         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8044         use mbrtoc32, not btowc.
8045         * modules/btoc32 (Depends-on): Add mbrtoc32.
8046         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8047         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8048         * modules/mbsrtoc32s (Depends-on): Update conditions.
8049         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8050         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8051         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8052         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8053         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8055 2020-01-07  Bruno Haible  <bruno@clisp.org>
8057         wcrtomb: Make multithread-safe, except possibly on IRIX.
8058         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8059         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8060         WCRTOMB_RETVAL_BUG.
8061         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8062         wctomb only on IRIX.
8064 2020-01-05  Jim Meyering  <meyering@fb.com>
8066         tests: skip thread-using tests when threading is disabled
8067         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8068         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8069         of those, so they are skipped in this case.
8070         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8071         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8072         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8074 2020-01-05  Bruno Haible  <bruno@clisp.org>
8076         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8077         Reported by Jim Meyering in
8078         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8079         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8080         (GNULIB_defined_ptsname_r): New macro.
8081         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8082         (main): Disable the NULL argument test if canonicalize_file_name does
8083         not come from gnulib.
8084         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8085         (main): Disable the NULL argument test if canonicalize_file_name does
8086         not come from gnulib.
8087         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8088         (test_errors): Disable the NULL argument test if ptsname_r does not come
8089         from gnulib.
8091 2020-01-04  Jim Meyering  <meyering@fb.com>
8093         update-copyright: reenable its always-skipped test
8094         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8095         on 2019-06-15. Without those, an internal preliminary test would
8096         fail, causing this test always to be skipped.
8097         Verify that the test is now run and passes via this:
8098           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8100 2020-01-05  Bruno Haible  <bruno@clisp.org>
8102         mbstoc32s: Add tests.
8103         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8104         * tests/test-mbstoc32s-1.sh: New file, based on
8105         tests/test-mbsrtoc32s-1.sh.
8106         * tests/test-mbstoc32s-2.sh: New file, based on
8107         tests/test-mbsrtoc32s-2.sh.
8108         * tests/test-mbstoc32s-3.sh: New file, based on
8109         tests/test-mbsrtoc32s-3.sh.
8110         * tests/test-mbstoc32s-4.sh: New file, based on
8111         tests/test-mbsrtoc32s-4.sh.
8112         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8114         mbstoc32s: New module.
8115         * lib/uchar.in.h (mbstoc32s): New declaration.
8116         * lib/mbstoc32s.c: New file.
8117         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8118         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8119         * modules/mbstoc32s: New file.
8120         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8121         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8123 2020-01-05  Bruno Haible  <bruno@clisp.org>
8125         Tweak recently added tests.
8126         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8127         * tests/test-mbsrtoc32s.c: Likewise.
8128         * tests/test-mbsnrtoc32s.c: Likewise.
8130 2020-01-04  Bruno Haible  <bruno@clisp.org>
8132         mbsnrtoc32s: Add tests.
8133         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8134         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8135         tests/test-mbsnrtowcs1.sh.
8136         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8137         tests/test-mbsnrtowcs2.sh.
8138         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8139         tests/test-mbsnrtowcs3.sh.
8140         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8141         tests/test-mbsnrtowcs4.sh.
8142         * modules/mbsnrtoc32s-tests: New file, based on
8143         modules/mbsnrtowcs-tests.
8145         mbsnrtoc32s: New module.
8146         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8147         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8148         INTERNAL_STATE, MBRTOWC.
8149         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8150         * lib/mbsnrtoc32s.c: New file.
8151         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8152         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8153         * modules/mbsnrtoc32s: New file.
8154         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8155         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8157 2020-01-04  Bruno Haible  <bruno@clisp.org>
8159         mbsrtoc32s tests: Enhance test.
8160         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8161         test strings for UTF-8 and GB18030.
8163 2020-01-04  Bruno Haible  <bruno@clisp.org>
8165         mbsrtoc32s: Fix bug.
8166         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8167         that SMALL_WCHAR_T is defined.
8169 2020-01-04  Bruno Haible  <bruno@clisp.org>
8171         mbsrtoc32s: Add tests.
8172         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8173         * tests/test-mbsrtoc32s-1.sh: New file, based on
8174         tests/test-mbsrtowcs1.sh.
8175         * tests/test-mbsrtoc32s-2.sh: New file, based on
8176         tests/test-mbsrtowcs2.sh.
8177         * tests/test-mbsrtoc32s-3.sh: New file, based on
8178         tests/test-mbsrtowcs3.sh.
8179         * tests/test-mbsrtoc32s-4.sh: New file, based on
8180         tests/test-mbsrtowcs4.sh.
8181         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8183         mbsrtoc32s: New module.
8184         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8185         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8186         INTERNAL_STATE, MBRTOWC.
8187         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8188         * lib/mbsrtoc32s.c: New file.
8189         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8190         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8191         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8192         * modules/mbsrtoc32s: New file.
8193         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8194         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8196 2020-01-04  Bruno Haible  <bruno@clisp.org>
8198         mbrtowc, mbrtoc32: Tighten dependendies.
8199         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8200         REPLACE_MBSTATE_T is 1.
8201         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8202         REPLACE_MBSTATE_T is 0.
8203         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8204         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8205         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8206         REPLACE_MBSTATE_T is 0.
8208 2020-01-04  Bruno Haible  <bruno@clisp.org>
8210         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
8211         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
8212         * modules/uchar (Files): Add stdint.m4.
8213         (Makefile.am): Substitute SMALL_WCHAR_T.
8214         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
8216 2020-01-04  Bruno Haible  <bruno@clisp.org>
8218         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
8219         Reported by Martin Storsjö <martin@martin.st> in
8220         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
8221         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8222         New macros.
8223         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
8225 2020-01-04  Bruno Haible  <bruno@clisp.org>
8227         btoc32: Add tests.
8228         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
8229         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
8230         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
8231         * modules/btoc32-tests: New file, based on modules/btowc-tests.
8233         btoc32: New module.
8234         * lib/uchar.in.h (btoc32): New declaration.
8235         * lib/btoc32.c: New file.
8236         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
8237         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
8238         * modules/btoc32: New file.
8239         * tests/test-uchar-c++.cc: Test the signature of btoc32.
8240         * doc/posix-functions/btowc.texi: Mention the new module.
8242 2020-01-03  Bruno Haible  <bruno@clisp.org>
8244         uchar tests: Avoid compilation error with HP cc.
8245         * tests/test-uchar.c: Disable a test when HP cc is in use.
8247 2020-01-03  Bruno Haible  <bruno@clisp.org>
8249         mbrtoc32: Add tests.
8250         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8251         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8252         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8253         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8254         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8255         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8256         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8257         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8258         tests/test-mbrtowc-w32-1.sh.
8259         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8260         tests/test-mbrtowc-w32-2.sh.
8261         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8262         tests/test-mbrtowc-w32-3.sh.
8263         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8264         tests/test-mbrtowc-w32-4.sh.
8265         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8266         tests/test-mbrtowc-w32-5.sh.
8267         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8268         tests/test-mbrtowc-w32-6.sh.
8269         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8270         tests/test-mbrtowc-w32-7.sh.
8271         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8273         mbrtoc32: New module.
8274         * lib/uchar.in.h (mbrtoc32): New declaration.
8275         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8276         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8277         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8278         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8279         REPLACE_MBRTOC32.
8280         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8281         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8282         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8283         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8284         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8285         $(LIB_MBRTOWC).
8286         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8287         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8289 2020-01-03  Bruno Haible  <bruno@clisp.org>
8291         mbrtowc: Refactor to share code with mbrtoc32.
8292         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8293         * lib/mbrtowc-impl-utf8.h: Likewise.
8294         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8295         mbrtowc-impl.h.
8296         * modules/mbrtowc (Files): Add the new files.
8298 2020-01-03  Jim Meyering  <meyering@fb.com>
8300         doc: fix time.texi wording
8301         * doc/posix-headers/time.texi (time.h): Typo.
8303 2020-01-03  Bruno Haible  <bruno@clisp.org>
8305         mbrtowc: Refactor locale charset dispatching.
8306         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8307         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8308         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8309         localcharset.h, streq.h.
8310         (enc_t): Remove type.
8311         (locale_enc): Remove function.
8312         (cached_locale_enc): Remove variable.
8313         (locale_enc_cached): Remove function.
8314         (mbrtowc): Invoke locale_encoding_classification.
8315         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8316         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8317         lc-charset-dispatch.c.
8318         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8320 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8322         doc: mention 32-bit time_t issue
8323         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8324         * doc/posix-headers/time.texi (time.h): Mention 2038.
8326 2020-01-03  Bruno Haible  <bruno@clisp.org>
8328         mbrtowc: Ensure the mbtowc_lock is unique.
8329         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8330         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8331         lib/setlocale_null.c.
8332         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8333         glthread/lock.h. Include mbtowc-lock.h.
8334         (mbtowc_lock): Remove declaration.
8335         (mbrtowc): Use mbtowc_with_lock.
8336         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8337         threads.h. Set LIB_MBRTOWC.
8338         (gl_PREREQ_MBTOWC_LOCK): New macro.
8339         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8340         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8341         (Depends-on): Remove lock.
8342         (configure.ac): Arrange to compile mbtowc-lock.c.
8343         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8344         * modules/acl (Link): Likewise.
8345         * modules/argmatch (Link): Likewise.
8346         * modules/backup-rename (Link): Likewise.
8347         * modules/backupfile (Link): Likewise.
8348         * modules/closein (Link): Likewise.
8349         * modules/closeout (Link): Likewise.
8350         * modules/copy-file (Link): Likewise.
8351         * modules/csharpcomp (Link): Likewise.
8352         * modules/csharpexec (Link): Likewise.
8353         * modules/dfa (Link): Likewise.
8354         * modules/exclude (Link): Likewise.
8355         * modules/fnmatch (Link): Likewise.
8356         * modules/fnmatch-gnu (Link): Likewise.
8357         * modules/fnmatch-posix (Link): Likewise.
8358         * modules/glob (Link): Likewise.
8359         * modules/human (Link): Likewise.
8360         * modules/javacomp (Link): Likewise.
8361         * modules/javaexec (Link): Likewise.
8362         * modules/javaversion (Link): Likewise.
8363         * modules/mbfile (Link): Likewise.
8364         * modules/mbiter (Link): Likewise.
8365         * modules/mbmemcasecmp (Link): Likewise.
8366         * modules/mbmemcasecoll (Link): Likewise.
8367         * modules/mbrlen (Link): Likewise.
8368         * modules/mbscasecmp (Link): Likewise.
8369         * modules/mbscasestr (Link): Likewise.
8370         * modules/mbschr (Link): Likewise.
8371         * modules/mbscspn (Link): Likewise.
8372         * modules/mbsinit (Link): Likewise.
8373         * modules/mbslen (Link): Likewise.
8374         * modules/mbsncasecmp (Link): Likewise.
8375         * modules/mbsnlen (Link): Likewise.
8376         * modules/mbsnrtowcs (Link): Likewise.
8377         * modules/mbspbrk (Link): Likewise.
8378         * modules/mbspcasecmp (Link): Likewise.
8379         * modules/mbsrchr (Link): Likewise.
8380         * modules/mbsrtowcs (Link): Likewise.
8381         * modules/mbssep (Link): Likewise.
8382         * modules/mbsspn (Link): Likewise.
8383         * modules/mbsstr (Link): Likewise.
8384         * modules/mbstok_r (Link): Likewise.
8385         * modules/mbswidth (Link): Likewise.
8386         * modules/mbuiter (Link): Likewise.
8387         * modules/mkdir-p (Link): Likewise.
8388         * modules/propername (Link): Likewise.
8389         * modules/quote (Link): Likewise.
8390         * modules/quotearg (Link): Likewise.
8391         * modules/quotearg-simple (Link): Likewise.
8392         * modules/regex-quote (Link): Likewise.
8393         * modules/rpmatch (Link): Likewise.
8394         * modules/sh-quote (Link): Likewise.
8395         * modules/system-quote (Link): Likewise.
8396         * modules/trim (Link): Likewise.
8397         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8398         * modules/unistdio/ulc-fprintf (Link): Likewise.
8399         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8400         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8401         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8402         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8403         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8404         * modules/xfreopen (Link): Likewise.
8405         * modules/xmemcoll (Link): Likewise.
8406         * modules/yesno (Link): Likewise.
8407         * modules/regex (Link): Add $(LIB_MBRTOWC).
8408         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
8409         instead of $(LIBTHREAD).
8410         * modules/argmatch-tests (Makefile.am): Likewise.
8411         * modules/closein-tests (Makefile.am): Likewise.
8412         * modules/copy-file-tests (Makefile.am): Likewise.
8413         * modules/dfa-tests (Makefile.am): Likewise.
8414         * modules/fnmatch-tests (Makefile.am): Likewise.
8415         * modules/glob-tests (Makefile.am): Likewise.
8416         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8417         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8418         * modules/mbrtowc-tests (Makefile.am): Likewise.
8419         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8420         * modules/mbscasestr-tests (Makefile.am): Likewise.
8421         * modules/mbschr-tests (Makefile.am): Likewise.
8422         * modules/mbscspn-tests (Makefile.am): Likewise.
8423         * modules/mbsinit-tests (Makefile.am): Likewise.
8424         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8425         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8426         * modules/mbspbrk-tests (Makefile.am): Likewise.
8427         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8428         * modules/mbsrchr-tests (Makefile.am): Likewise.
8429         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8430         * modules/mbsspn-tests (Makefile.am): Likewise.
8431         * modules/mbsstr-tests (Makefile.am): Likewise.
8432         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8433         * modules/quotearg-tests (Makefile.am): Likewise.
8434         * modules/readtokens-tests (Makefile.am): Likewise.
8435         * modules/sh-quote-tests (Makefile.am): Likewise.
8436         * modules/system-quote-tests (Makefile.am): Likewise.
8437         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8438         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8439         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8440         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8441         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8442         * modules/yesno-tests (Makefile.am): Likewise.
8443         * modules/exclude-tests (Makefile.am): Link the programs with
8444         $(LIB_MBRTOWC).
8445         * modules/regex-tests (Makefile.am): Likewise.
8446         * modules/regex-quote-tests (Makefile.am): Likewise.
8448 2020-01-03  Bruno Haible  <bruno@clisp.org>
8450         getopt-posix: Fix compilation failure in testdirs.
8451         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
8452         when the gnulib module 'getopt-posix' is enabled.
8453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
8454         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
8455         module indicator.
8456         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
8458 2020-01-03  Bruno Haible  <bruno@clisp.org>
8460         doc: Mention the 64-bit inode number problem.
8461         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
8462         64-bit inode number problem.
8463         * doc/posix-functions/stat.texi: Mention that this module fixes the
8464         64-bit inode number problem.
8465         * doc/posix-functions/lstat.texi: Likewise.
8466         * doc/posix-functions/fstat.texi: Likewise.
8467         * doc/posix-functions/readdir.texi: Add more details.
8468         * doc/posix-functions/readdir_r.texi: Likewise.
8470 2020-01-02  Bruno Haible  <bruno@clisp.org>
8472         wcrtomb: Add more tests.
8473         * tests/test-wcrtomb-w32.c: Include localcharset.h.
8474         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8475         locale_charset() returns the expected value; otherwise, skip the test.
8476         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
8477         * tests/test-wcrtomb-w32-7.sh: Likewise.
8478         * modules/wcrtomb-tests (Files): Add these files.
8479         (Depends-on): Add localcharset.
8480         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
8482 2020-01-02  Bruno Haible  <bruno@clisp.org>
8484         mbrtowc: Add more tests.
8485         * tests/test-mbrtowc-w32.c: Include localcharset.h.
8486         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8487         locale_charset() returns the expected value; otherwise, skip the test.
8488         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
8489         * tests/test-mbrtowc-w32-7.sh: Likewise.
8490         * modules/mbrtowc-tests (Files): Add these files.
8491         (Depends-on): Add localcharset.
8492         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
8494 2020-01-02  Bruno Haible  <bruno@clisp.org>
8496         mbrtowc: Fix test failures on MSVC (regression by previous commit).
8497         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
8498         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
8499         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
8500         MBRTOWC_STORES_INCOMPLETE_BUG.
8501         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
8503 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8505         doc: mention glibc bug 24269
8506         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
8507         Reformat slightly so that it looks nicer in the Grep manual.
8509 2020-01-02  Bruno Haible  <bruno@clisp.org>
8511         mbrtowc: Don't replace mbstate_t on MSVC.
8512         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
8513         a missing mbsinit function on native Windows.
8514         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
8515         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
8516         MSVC bug.
8517         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
8519 2020-01-02  Bruno Haible  <bruno@clisp.org>
8521         setlocale-null: Avoid crashing the MSVC linker.
8522         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
8523         MSVC.
8525 2020-01-02  Bruno Haible  <bruno@clisp.org>
8527         wchar: Make the HP-UX workaround work on HP-UX 11.31.
8528         * modules/wchar (Depends-on): Add inttypes-incomplete.
8529         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
8530         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
8531         of strtoimax.
8533 2020-01-02  Bruno Haible  <bruno@clisp.org>
8535         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
8536         * lib/mbrtowc.c: Include <stdint.h>.
8537         * modules/mbrtowc (Depends-on): Add stdint.
8539 2020-01-01  Pádraig Brady  <P@draigBrady.com>
8541         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
8542         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
8543         which will auto enable use of openssl, only for >= version 3,
8544         which is newly licensed under the Apache Software License.
8546 2020-01-01  Bruno Haible  <bruno@clisp.org>
8548         mbrtowc: Include function name in macro names.
8549         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
8550         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
8551         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
8552         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
8553         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
8554         C_LOCALE_MAYBE_EILSEQ.
8556 2020-01-01  Bruno Haible  <bruno@clisp.org>
8558         c32tob: New module.
8559         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
8560         (c32tob): New declaration.
8561         * lib/c32tob.c: New file.
8562         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
8563         macros.
8564         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
8565         * modules/uchar (Depends-on): Add snippet/c++defs.
8566         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
8567         uchar.h.
8568         * modules/c32tob: New file.
8569         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
8570         defined.
8571         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
8572         c32tob.
8573         * modules/uchar-c++-tests (Files): Add tests/signature.h.
8574         * doc/posix-functions/wctob.texi: Mention the new module.
8576 2020-01-01  Bruno Haible  <bruno@clisp.org>
8578         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
8579         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
8580         $(LIB_SETLOCALE).
8582 2020-01-01  Bruno Haible  <bruno@clisp.org>
8584         hard-locale tests: Fix a conflict with the C++ tests.
8585         * modules/hard-locale-tests (Makefile.am): Build a program named
8586         'current-locale', not 'locale'.
8588 2020-01-01  Bruno Haible  <bruno@clisp.org>
8590         doc: Update documentation about wchar_t.
8591         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
8592         wchar_t type.
8594 2020-01-01  Bruno Haible  <bruno@clisp.org>
8596         mbrtowc tests: Fix typos.
8597         * tests/test-mbrtowc.c (main): Fix typo.
8598         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
8600 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8602         maint: update copyright notices
8603         Before doing the following changes done by hand, I also ran ‘make
8604         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
8605         to do most of the copyright years automatically.  A few upstream
8606         sources are still in 2019 but these should eventually be changed
8607         automatically too.
8608         * build-aux/declared.sh (func_version):
8609         * build-aux/libtool-next-version (func_version):
8610         * build-aux/run-test (func_version):
8611         Update these notices by hand.  Put just the last year
8612         in output of programs, as per GNU coding standards.
8614 2019-12-31  Bruno Haible  <bruno@clisp.org>
8616         uchar: Add C++ tests.
8617         * tests/test-uchar-c++.cc: New file.
8618         * tests/test-uchar-c++2.cc: New file.
8619         * modules/uchar-c++-tests: New file.
8621         uchar: Add tests.
8622         * tests/test-uchar.c: New file.
8623         * modules/uchar-tests: New file.
8625         uchar: New module.
8626         * lib/uchar.in.h: New file.
8627         * m4/uchar.m4: New file.
8628         * modules/uchar: New file.
8629         * doc/posix-headers/uchar.texi: Mention the new module.
8631 2019-12-30  Jim Meyering  <meyering@fb.com>
8633         localeinfo: ->simple would be wrong for LC_ALL=C
8634         That would lead to using unnecessary and expensive code paths in dfa.c.
8635         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
8636         error that would have made grep many times slower in the C locale.
8637         With this change, and a file created like this:
8638           yes 00 | head -10000000 > in
8639         Running grep as follows becomes more than 40 times faster:
8640           LC_ALL=C grep -Fw 0 in
8642 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8644         doc: document trouble with back-references
8645         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
8647 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8649         doc: use “back-reference” for \1 etc.
8650         * doc/regex.texi: Consistently spell “back-reference” with
8651         a hyphen, since that’s how POSIX does it.
8653 2019-12-26  Jim Meyering  <meyering@fb.com>
8655         test-framework-sh: tighten an internal grep regexp
8656         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
8657         that helps test for a working printf.
8659 2019-12-26  Bruno Haible  <bruno@clisp.org>
8661         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
8662         Reported by Paul Eggert in
8663         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
8664         Simplification by Jim Meyering.
8665         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
8666         octal escape sequence in a UTF-8 locale.
8668 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
8670         mbrtowc: port better to narrow-wchar_t platforms
8671         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
8672         wchar_t is too narrow to represent all the Unicode characters,
8673         consider a byte sequence for an out-of-wchar_t-range character to
8674         be an encoding error.  This fixes grep’s surrogate-pair test
8675         failure on AIX 7.2.
8677 2019-12-24  Bruno Haible  <bruno@clisp.org>
8679         localcharset: Avoid referencing rpl_setlocale on native Windows.
8680         * lib/localcharset.c (setlocale): Undefine.
8682 2019-12-24  Bruno Haible  <bruno@clisp.org>
8684         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
8685         * m4/semaphore.m4: New file.
8686         * modules/lock-tests (Files): Add it.
8687         (configure.ac): Require gl_SEMAPHORE.
8688         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
8690 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
8692         strptime: fix typo in previous patch
8693         Problem and fix reported by Bruno Haible in:
8694         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
8695         * lib/strptime.c (day_of_the_week): Fix paren bug.
8697 2019-12-24  Bruno Haible  <bruno@clisp.org>
8699         setlocale-null: Make it easy to rely on the lock in another library.
8700         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
8701         defined.
8703 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8705         gethrxtime, mktime, nstrftime, strptime: tweak division performance
8706         Performanced analyzed by Bruno Haible in:
8707         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
8708         * config/srclist.txt: Do not sync mktime.c for now.
8709         * lib/mktime.c (shr, ydhms_diff):
8710         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
8711         * lib/strptime.c (day_of_the_week):
8712         * lib/xtime.h (xtime_sec):
8713         Redo with neither ‘%’ nor conditional branches.
8715 2019-12-23  Bruno Haible  <bruno@clisp.org>
8717         setlocale-null: Export the lock function also on non-Windows platforms.
8718         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
8719         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
8720         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
8721         * modules/setlocale-null (configure.ac): Invoke it.
8722         (Files): Add m4/visibility.m4.
8724 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8726         gethrxtime: fix rounding bug with negative args
8727         Problem reported by Bruno Haible in:
8728         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
8729         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
8730         with negative rounding.  Common platforms can compute / and % with
8731         a single instruction, so the simplified code should be shorter and
8732         faster on these platforms anyway.
8734 2019-12-22  Bruno Haible  <bruno@clisp.org>
8736         gethrxtime: remove incorrect overflow detection
8737         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
8738         integer overflow, as it didn’t suffice.  This reverts the xtime.h
8739         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
8740         cannot now see the need for anyway (even in cases where it works),
8741         as the patch is helpful only when the signs of S and NS disagree,
8742         and all callers pass nonnegative values for S and NS.
8744 2019-12-22  Bruno Haible  <bruno@clisp.org>
8746         setlocale-null: Add standalone include file.
8747         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
8748         * lib/locale.in.h: Include setlocale_null.h.
8749         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
8750         setlocale_null): Remove declarations.
8751         * lib/setlocale_null.c: Include setlocale_null.h.
8752         * lib/localename.c: Likewise.
8753         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
8754         (Depends-on): Add snippet/arg-nonnull.
8755         (Include): Allow either "setlocale_null.h" or <locale.h>.
8757 2019-12-22  Bruno Haible  <bruno@clisp.org>
8759         strfmon_l: Fix test failures on FreeBSD and Cygwin.
8760         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
8761         AC_RUN_IFELSE test.
8762         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
8763         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
8764         problem.
8766 2019-12-22  Bruno Haible  <bruno@clisp.org>
8768         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
8769         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
8770         unconditional AC_LIBOBJ.
8771         * modules/selinux-at: Likewise.
8772         * modules/xmemdup0: Likewise.
8773         * modules/xstrtoll: Likewise.
8775 2019-12-22  Bruno Haible  <bruno@clisp.org>
8777         longlong: Mark module obsolete.
8778         * modules/longlong (Status, Notice): New sections.
8780         stdint: Assume that the compiler supports 'long long'.
8781         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
8782         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
8783         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8784         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
8785         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8786         * modules/stdint (Files): Remove longlong.m4.
8787         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
8788         HAVE_UNSIGNED_LONG_LONG_INT.
8790         inttypes-incomplete: Assume that the compiler supports 'long long'.
8791         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8792         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
8793         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8794         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
8795         HAVE_LONG_LONG_INT to be 1.
8796         * modules/inttypes-incomplete (Makefile.am): Don't substitute
8797         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
8799         malloca: Assume that the compiler supports 'long long'.
8800         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
8801         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
8802         * modules/malloca (Files): Remove longlong.m4.
8803         * modules/relocatable-prog-wrapper (Files): Likewise.
8805         atoll: Assume that the compiler supports 'long long'.
8806         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
8807         * modules/atoll (Files): Remove longlong.m4.
8809         strtoll: Assume that the compiler supports 'long long'.
8810         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
8811         * modules/strtoll (Files): Remove longlong.m4.
8813         strtoull: Assume that the compiler supports 'long long'.
8814         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
8815         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8816         * modules/strtoull (Files): Remove longlong.m4.
8818         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
8819         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
8820         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8821         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
8822         AC_TYPE_LONG_LONG_INT.
8823         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
8824         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8825         * modules/strtoimax (Files): Remove longlong.m4.
8826         * modules/strtoumax (Files): Likewise.
8828         xstrtoll: Assume that the compiler supports 'long long'.
8829         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
8830         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
8832         vasnprintf: Assume that the compiler supports 'long long'.
8833         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
8834         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
8835         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8836         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
8837         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
8838         require AC_TYPE_LONG_LONG_INT.
8839         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
8840         gl_PREREQ_VASNPRINTF): Likewise.
8841         * modules/vasnprintf (Files): Remove longlong.m4.
8842         * modules/c-vasnprintf (Files): Likewise.
8843         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8844         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8845         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8846         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8847         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8848         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8849         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8851         gethrxtime: Assume that the compiler supports 'long long'.
8852         * lib/xtime.h (xtime_t): Define to 'long long int' always.
8853         (XTIME_PRECISION): Define to 1000000000 always.
8854         (xtime_make, xtime_sec): Optimize accordingly.
8855         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
8856         * modules/gethrxtime (Files): Remove longlong.m4.
8858         integer_length*: Assume that the compiler supports 'long long'.
8859         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
8860         * modules/integer_length (Files): Remove longlong.m4.
8861         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8862         * modules/integer_length_l (Files): Remove longlong.m4.
8863         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8864         * modules/integer_length_ll (Files): Remove longlong.m4.
8865         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8867         count-one-bits: Assume that the compiler supports 'long long'.
8868         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
8869         * m4/count-one-bits.m4: Remove file.
8870         * modules/count-one-bits (Files): Remove it.
8871         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
8872         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
8873         unconditionally.
8875         count-trailing-zeros: Assume that the compiler supports 'long long'.
8876         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
8877         unconditionally.
8878         * m4/count-trailing-zeros.m4: Remove file.
8879         * modules/count-trailing-zeros (Files): Remove it.
8880         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
8881         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
8882         unconditionally.
8884         count-leading-zeros: Assume that the compiler supports 'long long'.
8885         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
8886         unconditionally.
8887         * m4/count-leading-zeros.m4: Remove file.
8888         * modules/count-leading-zeros (Files): Remove it.
8889         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
8890         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
8891         unconditionally.
8893 2019-12-22  Bruno Haible  <bruno@clisp.org>
8895         localcharset: Update support for OpenBSD.
8896         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
8898 2019-12-21  Bruno Haible  <bruno@clisp.org>
8900         pthread_sigmask: Avoid test failure on NetBSD 8.0.
8901         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
8902         NetBSD.
8903         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
8905 2019-12-21  Bruno Haible  <bruno@clisp.org>
8907         threadlib: Improve code structure.
8908         * m4/threadlib.m4: Reorder macros. Add comments.
8910 2019-12-21  Bruno Haible  <bruno@clisp.org>
8912         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
8913         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
8914         here from m4/threads.m4).
8915         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
8916         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
8917         (gl_STDTHREADLIB): New macro.
8918         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
8919         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
8921 2019-12-21  Bruno Haible  <bruno@clisp.org>
8923         sched_yield: Don't depend on threadlib and yield.
8924         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
8925         LIB_SCHED_YIELD.
8926         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
8927         m4/yield.m4).
8928         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
8929         gl_THREADLIB and gl_YIELD.
8930         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
8931         based on $(LIB_SCHED_YIELD).
8932         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
8933         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8934         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
8935         (Depends-on): Remove threadlib.
8936         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8937         * modules/threads-h (Files): Remove m4/yield.m4.
8938         * modules/pthread-cond-tests (Makefile.am): Link the programs against
8939         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
8940         * modules/pthread-mutex-tests (Makefile.am): Likewise.
8941         * modules/pthread-once-tests (Makefile.am): Likewise.
8942         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
8943         * modules/pthread-tss-tests (Makefile.am): Likewise.
8945 2019-12-21  Bruno Haible  <bruno@clisp.org>
8947         threads-h: Don't depend on threadlib.
8948         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
8949         not gl_THREADLIB_EARLY.
8951 2019-12-21  Bruno Haible  <bruno@clisp.org>
8953         nl_langinfo tests: Fix link error (regression from 2019-12-18).
8954         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
8955         with $(LIB_SETLOCALE).
8957 2019-12-21  Bruno Haible  <bruno@clisp.org>
8959         threadlib: Remove unused dependency (left over from 2019-07-06).
8960         * modules/threadlib (Depends-on): Remove havelib.
8962 2019-12-21  Bruno Haible  <bruno@clisp.org>
8964         New convention for multithread-safety tests.
8965         * tests/test-setlocale_null-mt-one.c: Renamed from
8966         tests/test-setlocale_null-one.c.
8967         * tests/test-setlocale_null-mt-all.c: Renamed from
8968         tests/test-setlocale_null-all.c.
8969         * modules/setlocale-null-tests (Files, Makefile.am): Update.
8971 2019-12-21  Bruno Haible  <bruno@clisp.org>
8973         quotearg tests: Fix conflict with hard-locale tests.
8974         * tests/testlocale: Renamed from tests/locale.
8975         * modules/quotearg-tests (Files): Update.
8976         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
8978 2019-12-21  Bruno Haible  <bruno@clisp.org>
8980         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
8981         Reported by Daniel Richard G. in
8982         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
8983         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
8984         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
8985         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
8986         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
8987         alternative to PTHREAD_RWLOCK_INITIALIZER.
8988         * lib/glthread/lock.c: Likewise.
8990 2019-12-21  Bruno Haible  <bruno@clisp.org>
8992         memcmp tests: Work around the clang bug.
8993         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
8994         the clang optimization.
8996 2019-12-20  Bruno Haible  <bruno@clisp.org>
8998         localcharset: Add support for z/OS encoding names.
8999         * lib/localcharset.h: Mention which encodings are used as locale
9000         encodings on z/OS.
9002 2019-12-20  Bruno Haible  <bruno@clisp.org>
9004         iconv_open: Add support for z/OS encoding names.
9005         Reported by Daniel Richard G. in
9006         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9007         * lib/iconv_open-zos.gperf: New file.
9008         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9009         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9010         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9011         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9012         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9014 2019-12-20  Bruno Haible  <bruno@clisp.org>
9016         doc: Document the problem of the per-thread locale functions on z/OS.
9017         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9018         * doc/posix-functions/newlocale.texi: Likewise.
9019         * doc/posix-functions/duplocale.texi: Likewise.
9020         * doc/posix-functions/freelocale.texi: Likewise.
9022 2019-12-20  Bruno Haible  <bruno@clisp.org>
9024         localename, gettext: Fix host_os value for z/OS.
9025         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9026         cross-configuration code.
9028 2019-12-19  Jim Meyering  <meyering@fb.com>
9030         nstrftime: avoid a shadowing warning
9031         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9032         to avoid shadowing an "i" declared hundreds of lines above.
9034 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9036         dfa: struct dfamust now uses flexible array
9037         * lib/dfa.c: Include flexmember.h.
9038         (dfamust, dfamustfree): Adjust to struct dfamust change.
9039         This saves a call to malloc+free.
9040         * lib/dfa.h (struct dfamust): Make the final member a
9041         flexible array member.
9042         * modules/dfa (Depends-on): Add flexmember.
9044         dfa: fast->small for array elements
9045         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9046         since this type is used in arrays.  This change is more for
9047         documentation than for any practical effect, since the two types
9048         are the same on all known platforms.
9050 2019-12-19  Bruno Haible  <bruno@clisp.org>
9052         iconv tests: Test canonicalized, not system-dependent, encoding names.
9053         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9054         * modules/iconv-tests (Depends-on): Add iconv_open.
9056 2019-12-18  Bruno Haible  <bruno@clisp.org>
9058         localename: Fix test failure on AIX 7.2.
9059         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9060         locales on AIX.
9061         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9062         locales on AIX.
9064 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9066         Improve port of AC_C_RESTRICT to Oracle C++
9067         Problem reported by Christian Biesinger in:
9068         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9069         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9070         Oracle Developer Studio C++ 12.5 or later.
9072 2019-12-18  Bruno Haible  <bruno@clisp.org>
9074         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9075         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9077 2019-12-18  Bruno Haible  <bruno@clisp.org>
9079         localename: Ensure multithread-safety in future changes.
9080         * lib/localename.c (setlocale): Reference the system's setlocale().
9081         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9082         (gl_locale_name_posix): Likewise.
9083         * modules/localename (Depends-on): Add setlocale-null.
9085 2019-12-18  Bruno Haible  <bruno@clisp.org>
9087         setlocale-null: Make API more useful.
9088         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9089         callers changed.
9090         (setlocale_null): New declaration.
9091         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9092         extracted from setlocale_null_unlocked.
9093         (setlocale_null_unlocked): Invoke it.
9094         (setlocale_null_r): Renamed from setlocale_null.
9095         (setlocale_null): New function, extracted from setlocale_mtsafe in
9096         setlocale.c.
9097         * lib/setlocale.c: Don't include <errno.h>.
9098         (setlocale_mtsafe): Invoke setlocale_null.
9099         * lib/setlocale-lock.c: Update comments.
9100         * doc/posix-functions/setlocale.texi: Mention both functions.
9102 2019-12-18  Bruno Haible  <bruno@clisp.org>
9104         localename: Optimize code for native Windows.
9105         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9106         category (not allowed here).
9108 2019-12-18  Bruno Haible  <bruno@clisp.org>
9110         setlocale: Make calls with NULL argument multithread-safe.
9111         * lib/setlocale.c: Include <errno.h>.
9112         (setlocale_mtsafe): New function.
9113         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9114         (setlocale_improved): Renamed from rpl_setlocale.
9115         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9116         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9117         LIB_SETLOCALE.
9118         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9119         (Link): New section.
9120         * tests/locale.c: Undefine setlocale.
9121         * tests/test-setlocale_null-one.c: Likewise.
9122         * tests/test-setlocale_null-all.c: Likewise.
9123         * modules/setlocale-tests (Makefile.am): Link the test programs with
9124         $(LIB_SETLOCALE).
9125         * modules/astrxfrm-tests (Makefile.am): Likewise.
9126         * modules/btowc-tests (Makefile.am): Likewise.
9127         * modules/c-ctype-tests (Makefile.am): Likewise.
9128         * modules/c-snprintf-tests (Makefile.am): Likewise.
9129         * modules/c-strcase-tests (Makefile.am): Likewise.
9130         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9131         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9132         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9133         * modules/dfa-tests (Makefile.am): Likewise.
9134         * modules/duplocale-tests (Makefile.am): Likewise.
9135         * modules/hard-locale-tests (Makefile.am): Likewise.
9136         * modules/localcharset-tests (Makefile.am): Likewise.
9137         * modules/localename-tests (Makefile.am): Likewise.
9138         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9139         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9140         * modules/mbrtowc-tests (Makefile.am): Likewise.
9141         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9142         * modules/mbscasestr-tests (Makefile.am): Likewise.
9143         * modules/mbschr-tests (Makefile.am): Likewise.
9144         * modules/mbscspn-tests (Makefile.am): Likewise.
9145         * modules/mbsinit-tests (Makefile.am): Likewise.
9146         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9147         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9148         * modules/mbspbrk-tests (Makefile.am): Likewise.
9149         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9150         * modules/mbsrchr-tests (Makefile.am): Likewise.
9151         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9152         * modules/mbsspn-tests (Makefile.am): Likewise.
9153         * modules/mbsstr-tests (Makefile.am): Likewise.
9154         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9155         * modules/quotearg-tests (Makefile.am): Likewise.
9156         * modules/regex-tests (Makefile.am): Likewise.
9157         * modules/strfmon_l-tests (Makefile.am): Likewise.
9158         * modules/strtod-tests (Makefile.am): Likewise.
9159         * modules/strtold-tests (Makefile.am): Likewise.
9160         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9161         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9162         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9163         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9164         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9165         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9166         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9167         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9168         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9169         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9170         * modules/wcrtomb-tests (Makefile.am): Likewise.
9171         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9172         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9173         * modules/wcwidth-tests (Makefile.am): Likewise.
9174         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9175         safety fix is also available in module 'setlocale'.
9177 2019-12-18  Bruno Haible  <bruno@clisp.org>
9179         hard-locale: Make multithread-safe.
9180         * lib/hard-locale.h (hard_locale): Move documentation to here.
9181         * lib/hard-locale.c: Don't include <stdlib.h>.
9182         (GLIBC_VERSION): Remove macro.
9183         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9184         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9185         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9186         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9187         (Link): New section.
9188         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9189         $(LIB_HARD_LOCALE).
9191 2019-12-18  Bruno Haible  <bruno@clisp.org>
9193         hard-locale: Avoid test failure on Haiku.
9194         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9196 2019-12-18  Bruno Haible  <bruno@clisp.org>
9198         setlocale-null: Handle NULL result from setlocale.
9199         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9200         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9201         from setlocale or _wsetlocale.
9203 2019-12-18  Bruno Haible  <bruno@clisp.org>
9205         hard-locale: Add test.
9206         * tests/test-hard-locale.c: New file.
9207         * tests/locale.c: New file.
9208         * modules/hard-locale-tests: New file.
9210 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9212         dfa: do not match invalid UTF-8
9213         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
9214         from 5 to 9 tokens; this is needed due to the changes to
9215         add_utf8_anychar.
9216         (charclass_index): 2nd arg is now pointer-to-const.
9217         (add_utf8_anychar): Match only valid UTF-8 byte sequences
9218         instead of allowing overlong encodings or surrogate halves.
9220         dfa: simplify charclass by assuming C99
9221         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
9222         (charclass_word): Now always uint_fast64_t.
9223         (CHARCLASS_PAIR): Remove.
9224         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
9226         fts: tune via calloc
9227         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
9229         dfa: tune via xzalloc
9230         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
9232 2019-12-17  Bruno Haible  <bruno@clisp.org>
9234         localcharset: Fix multithread-safety bug on Windows and OS/2.
9235         * lib/localcharset.h (locale_charset): Clarify when the result becomes
9236         invalid.
9237         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
9238         assemble the result.
9240 2019-12-17  Bruno Haible  <bruno@clisp.org>
9242         localcharset: Optimize code for native Windows.
9243         * lib/localcharset.c (locale_charset): Don't bother calling
9244         setlocale (LC_ALL, NULL) since we're not interested in its result.
9246 2019-12-17  Bruno Haible  <bruno@clisp.org>
9248         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9249         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9250         setlocale.
9251         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9252         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9253         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9255 2019-12-17  Bruno Haible  <bruno@clisp.org>
9257         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9258         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9259         stack-allocated buffer to assemble each result and different static
9260         buffers to return it.
9261         * tests/test-nl_langinfo-mt.c: New file.
9262         * modules/nl_langinfo-tests (Files): Add it.
9263         (Depends-on): Add thread, nanosleep.
9264         (Makefile.am): Build test-nl_langinfo-mt test.
9266 2019-12-17  Bruno Haible  <bruno@clisp.org>
9268         langinfo: Document more details.
9269         * doc/posix-headers/langinfo.texi: List platform details.
9270         * doc/posix-functions/nl_langinfo.texi: Likewise.
9272 2019-12-17  Bruno Haible  <bruno@clisp.org>
9274         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9275         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9276         and Martin Storsjö <martin@martin.st>
9277         in <https://savannah.gnu.org/bugs/?57406>.
9278         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9279         mingw.
9281 2019-12-17  Bruno Haible  <bruno@clisp.org>
9283         glob: Avoid warning on mingw.
9284         Reported by Christian Biesinger <cbiesinger@google.com> in
9285         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9286         * lib/glob.c (__stat64): Undefine first.
9288 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9290         xalloc: tune xzalloc for fresh allocations
9291         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9292         because when the memory is freshly allocated from the OS via sbrk
9293         or mmap, calloc can avoid doing the memset.
9295         dfa: new function dfacopysyntax
9296         * lib/dfa.c (struct dfa): Move syntax member later so
9297         that dfacopysyntax can easily clear earlier members.
9298         (dfacopysyntax): New function, used by Gawk.
9300 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9302         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9303         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9304         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9305         if not already defined.
9307         dfa: remove one dependency on MB_CUR_MAX
9308         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9310         dfa: remove struct lexer_state.cur_mb_len
9311         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9312         as it’s not needed and the code is simpler without it.
9313         All uses removed.
9315 2019-12-16  Bruno Haible  <bruno@clisp.org>
9317         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9318         Reported by Arnold Robbins <arnold@skeeve.com>.
9319         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9320         copied from lib/glthread/lock.h.
9321         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9322         (setlocale_null_with_lock): If pthread_in_use() is false, use
9323         setlocale_null_unlocked directly.
9324         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9325         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9326         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9327         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9328         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9329         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9331 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9333         dfa: make dfasyntax thread-safe
9334         Problem reported by Bruno Haible in:
9335         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9336         * lib/dfa.c: Do not include locale.h.
9337         (struct dfa): Remove simple_locale member.
9338         All uses replaced by localeinfo.simple.
9339         (using_simple_locale): Remove; now present (with some
9340         changes) in localeinfo.c.
9341         (dfasyntax): No need to initialize removed member.
9343         localeinfo: record whether locale is simple
9344         * lib/localeinfo.c (using_simple_locale): New function,
9345         copied here from lib/dfa.c but with a change: it uses
9346         strcoll for its heuristic, instead of using setlocale.
9347         This lets it be thread-safe.
9348         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9350 2019-12-15  Bruno Haible  <bruno@clisp.org>
9352         duplocale: Fix multithread-safety bug on AIX.
9353         * lib/duplocale.c: Don't include <stdlib.h>.
9354         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9355         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9356         Set LIB_DUPLOCALE.
9357         * modules/duplocale (Depends-on): Add setlocale-null.
9358         (Link): New section.
9359         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9360         $(LIB_DUPLOCALE).
9362 2019-12-15  Bruno Haible  <bruno@clisp.org>
9364         setlocale-null: Add tests.
9365         * tests/test-setlocale_null.c: New file.
9366         * tests/test-setlocale_null-one.c: New file.
9367         * tests/test-setlocale_null-all.c: New file.
9368         * modules/setlocale-null-tests: New file.
9370         setlocale-null: New module.
9371         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9372         setlocale_null): New declarations.
9373         * lib/setlocale_null.c: New file.
9374         * lib/setlocale-lock.c: New file.
9375         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9376         * m4/setlocale_null.m4: New file.
9377         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9378         GNULIB_SETLOCALE_NULL.
9379         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9380         * modules/setlocale-null: New file.
9381         * doc/posix-functions/setlocale.texi: Mention the new module.
9383 2019-12-15  Bruno Haible  <bruno@clisp.org>
9385         lock tests: Skip test when no multithreading is enabled.
9386         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
9388 2019-12-14  Bruno Haible  <bruno@clisp.org>
9390         locale, duplocale, localename: Fix last patch.
9391         Reported by Daniel Richard G. in
9392         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
9393         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
9394         Don't define if locale_t does not exist.
9396 2019-12-13  Bruno Haible  <bruno@clisp.org>
9398         locale, duplocale, localename: Fix errors if locale_t does not exist.
9399         Reported by Daniel Richard G. in
9400         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
9401         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
9402         macros.
9403         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
9404         HAVE_NEWLOCALE.
9405         * tests/test-localename.c: Likewise.
9406         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
9407         HAVE_DUPLOCALE.
9408         * tests/test-locale-c++.cc: Likewise.
9410 2019-12-13  Bruno Haible  <bruno@clisp.org>
9412         wcstok: Fix test failure on HP-UX.
9413         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
9414         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
9416 2019-12-12  Bruno Haible  <bruno@clisp.org>
9418         strtod, strtold tests: Avoid test failure on AIX 7.2.
9419         * tests/test-strtod1.c (main): Allow implementations in which ',' and
9420         '.' both are radix characters.
9421         * tests/test-strtold1.c (main): Likewise.
9423 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9425         dfa: prefer ptrdiff_t for API, too
9426         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
9427         but do this only for internal use for now.
9428         * NEWS: Mention the API change.
9429         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
9430         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
9431         values known to be nonnegative.
9432         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
9433         Prefer idx_t or ptrdiff_t to size_t for API.
9434         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
9435         Prefer ptrdiff_t to size_t for API.
9437         stdalign: port to xlclang 16.01
9438         Problem reportd by Bruno Haible in:
9439         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
9440         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
9441         ((__aligned__ (...))) with xlclang, as a top-level
9442         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
9443         xlclang version 16.01.0000.0001; the alignment directive is ignored.
9445 2019-12-12  Bruno Haible  <bruno@clisp.org>
9447         duplocale: Fix test failure on AIX 7.2 with xlclang.
9448         * lib/duplocale.c: Include <stdlib.h>.
9449         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
9450         value.
9452 2019-12-12  Bruno Haible  <bruno@clisp.org>
9454         stddef: Document the AIX xlc issue.
9455         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
9457 2019-12-12  Bruno Haible  <bruno@clisp.org>
9459         duplocale: Don't attempt to override if locale_t does not exist.
9460         Reported by Daniel Richard G. in
9461         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
9462         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
9463         HAVE_DUPLOCALE to 0.
9465 2019-12-12  Bruno Haible  <bruno@clisp.org>
9467         wcwidth: Avoid test failure on AIX 7.2.
9468         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
9469         negative.
9470         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
9472 2019-12-12  Bruno Haible  <bruno@clisp.org>
9474         ilogbl: Work around Cygwin bug.
9475         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
9476         correct.
9477         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
9479 2019-12-12  Bruno Haible  <bruno@clisp.org>
9481         strtold: Work around Cygwin bug.
9482         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
9483         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
9484         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
9485         STRTOLD_HAS_UNDERFLOW_BUG is defined.
9486         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
9488 2019-12-12  Bruno Haible  <bruno@clisp.org>
9490         strtold: Fix autoconf test.
9491         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
9493 2019-12-11  Bruno Haible  <bruno@clisp.org>
9495         fsync tests: Skip test that is known to fail.
9496         * doc/posix-functions/fsync.texi: Update list of platforms.
9497         * tests/test-fsync.c (main): Skip test with read-only file descriptors
9498         that is known to fail on AIX and Cygwin.
9500 2019-12-11  Bruno Haible  <bruno@clisp.org>
9502         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
9503         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
9504         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
9505         HAVE_GETADDRINFO as a C macro.
9506         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
9507         declare as replacement functions.
9508         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
9509         define as no-op overrides.
9510         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
9511         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
9512         * modules/getaddrinfo (Depends-on, configure.ac): Test
9513         REPLACE_GETADDRINFO.
9514         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
9515         problem.
9516         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
9517         convention problems.
9519 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9521         dfa: prefer signed integers for internals
9522         Signed integers can be checked more easily for integer overflow.
9523         * lib/dfa.c (position, struct lexer_state, struct parser_state)
9524         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
9525         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
9526         (nsubtoks, copytoks, closure, alloc_position_set, delete)
9527         (replace, state_index, epsclosure, charclass_context)
9528         (state_separate_contexts, merge_nfa_state, dfaoptimize)
9529         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
9530         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
9531         (comsubs, inboth, allocmust):
9532         Prefer a signed to an unsigned integer when calculating indexes,
9533         unless the integer is part of the external API (a bigger deal,
9534         and to be done later).
9536         dfa: fix index overflow
9537         * lib/dfa.c (compare): Avoid integer overflow when analyzing
9538         very large regular expressions.
9540         dfa: update commentary for previous change
9541         * NEWS: Mention the change.
9542         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
9544 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9546         dfa: separate parse and compile phase
9547         ‘dfamust’ must be called after parsing and before tokens are
9548         reordered, but both are executed in the compilation phase.
9549         Token reordering was introduced in Gnulib commit
9550         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
9551         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
9552         * lib/dfa.c (dfaparse): Change it to global function.
9553         (dfacomp): If first argument is NULL, skip parse.
9554         * lib/dfa.h: (dfaparse): Add a prototype.
9556 2019-12-11  Bruno Haible  <bruno@clisp.org>
9558         unistd tests: Fix link error on MSVC.
9559         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
9560         $(LIB_GETLOGIN).
9562 2019-12-11  Bruno Haible  <bruno@clisp.org>
9564         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
9565         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
9566         and POSIX substitutes are supported in C++ mode.
9567         * NEWS: Likewise.
9569 2019-12-11  Bruno Haible  <bruno@clisp.org>
9571         stddef: Fix compilation error in C++ mode on MSVC.
9572         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
9573         instead, include <cstddef>.
9575 2019-12-11  Bruno Haible  <bruno@clisp.org>
9577         unistd: Fix compilation error in C++ mode on MSVC.
9578         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
9579         does not have <unistd.h>.
9581 2019-12-11  Bruno Haible  <bruno@clisp.org>
9583         locale: Fix compilation error in C++ mode on MSVC.
9584         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
9585         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
9586         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
9587         int_n_sep_by_space): Define as macros on MSVC.
9589 2019-12-11  Bruno Haible  <bruno@clisp.org>
9591         wchar: Fix compilation error in C++ mode on MSVC.
9592         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
9594 2019-12-11  Bruno Haible  <bruno@clisp.org>
9596         pthread-thread: Fix compilation error in C++ mode on MSVC.
9597         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
9598         _GL_CXXALIAS_RPL invocation.
9600 2019-12-08  Bruno Haible  <bruno@clisp.org>
9602         Fix compilation errors in C++ mode on Haiku.
9603         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
9604         non-glibc systems.
9605         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
9606         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9607         posix_spawnattr_setschedparam): Likewise.
9608         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
9609         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9610         * lib/unistd.in.h (usleep): Likewise.
9612 2019-12-08  Bruno Haible  <bruno@clisp.org>
9614         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
9615         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
9616         * modules/fseeko (configure.ac-early): Require it instead of
9617         AC_FUNC_FSEEKO.
9618         * modules/ftello (configure.ac-early): Likewise.
9619         * modules/fflush (configure.ac-early): Likewise.
9621 2019-12-08  Bruno Haible  <bruno@clisp.org>
9623         Fix compilation error in C++ mode on HP-UX 11.
9624         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
9625         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
9627 2019-12-08  Bruno Haible  <bruno@clisp.org>
9629         Fix compilation errors on HP-UX 11/ia64.
9630         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
9631         _GL_FUNCDECL_SYS.
9633 2019-12-08  Bruno Haible  <bruno@clisp.org>
9635         Fix compilation error in C++ mode on OpenBSD.
9636         * lib/signal.in.h (signal): Declare on OpenBSD.
9638 2019-12-08  Bruno Haible  <bruno@clisp.org>
9640         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
9641         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
9642         instead of #error.
9644 2019-12-08  Bruno Haible  <bruno@clisp.org>
9646         Fix compilation errors in C++ mode on FreeBSD.
9647         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
9648         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
9649         * lib/threads.in.h (thrd_exit): Likewise.
9650         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
9652 2019-12-08  Bruno Haible  <bruno@clisp.org>
9654         Fix compilation errors in C++ mode on macOS and FreeBSD.
9655         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
9656         or FreeBSD with clang, use the approach without C preprocessor macro.
9658 2019-12-07  Bruno Haible  <bruno@clisp.org>
9660         Fix compilation errors in C++ mode on AIX with xlclang++.
9661         Reported by Christian Biesinger <cbiesinger@google.com> in
9662         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9663         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
9665 2019-12-07  Bruno Haible  <bruno@clisp.org>
9667         Document compilation error in C++ mode on NetBSD 8.0.
9668         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
9670 2019-12-07  Bruno Haible  <bruno@clisp.org>
9672         Fix compilation errors in C++ mode on Solaris 10.
9673         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
9674         to non-empty on Solaris with a non-GCC compiler.
9675         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
9677 2019-12-07  Bruno Haible  <bruno@clisp.org>
9679         Reword NEWS entry.
9680         * NEWS: Reword the latest NEWS entry.
9682 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
9684         Move xstrtol_fatal to a new xstrtol-error module.
9685         * lib/xstrtol.h: Stop including <getopt.h>.
9686         (xstrtol_fatal): Move ...
9687         * lib/xstrtol-error.h: ... here.  New file.
9688         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
9689         * tests/test-xstrtol.c: Likewise.
9690         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
9691         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
9692         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
9693         * modules/xstrtol-error: New file.
9694         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
9695         * MODULES.html.sh: Add xstrtol-error.
9696         * NEWS: Document the change.
9698 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9700         nstrftime: better width support for %N, %z
9701         * lib/nstrftime.c (width_add, width_add1, width_cpy):
9702         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
9703         a new WIDTH parameter.
9704         (add, add1, cpy): Use these macros.
9705         (width_add): Do not treat digits == 0 as a special case,
9706         do not pad if padding is ‘-’, and do not use a negative width.
9707         (__strftime_internal): Redo formatting of nanoseconds and numeric
9708         timezones to avoid buffer misuse in unusual cases, and so that
9709         widths make more sense.  Add support for widths greater than 9 to
9710         the %N format; they are zero filled on the right.
9711         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
9713 2019-12-05  Bruno Haible  <bruno@clisp.org>
9715         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
9716         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
9717         set REPLACE_ISFINITE to 1.
9718         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
9719         REPLACE_ISINF to 1.
9720         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
9721         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
9722         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9723         * lib/threads.in.h (call_once): Likewise.
9724         * lib/iconv.in.h (iconv): Likewise.
9726 2019-12-05  Bruno Haible  <bruno@clisp.org>
9728         wchar: Add more C++ tests.
9729         Reported by Christian Biesinger <cbiesinger@google.com> in
9730         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9731         * tests/test-wchar-c++3.cc: New file.
9732         * modules/wchar-c++-tests (Files): Add it.
9733         (Makefile.am): Compile it.
9735 2019-12-05  Bruno Haible  <bruno@clisp.org>
9737         Add more C++ tests.
9739         assert-h: Add C++ tests.
9740         * tests/test-assert-h-c++.cc: New file.
9741         * tests/test-assert-h-c++2.cc: New file.
9742         * modules/assert-h-c++-tests: New file.
9743         * modules/assert-h-tests: New file.
9745         ctype: Add C++ tests.
9746         * tests/test-ctype-c++.cc: New file.
9747         * tests/test-ctype-c++2.cc: New file.
9748         * modules/ctype-c++-tests: New file.
9749         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
9751         errno: Add C++ tests.
9752         * tests/test-errno-c++.cc: New file.
9753         * tests/test-errno-c++2.cc: New file.
9754         * modules/errno-c++-tests: New file.
9755         * modules/errno-tests (Depends-on): Add errno-c++-tests.
9757         float: Add C++ tests.
9758         * tests/test-float-c++.cc: New file.
9759         * tests/test-float-c++2.cc: New file.
9760         * modules/float-c++-tests: New file.
9761         * modules/float-tests (Depends-on): Add float-c++-tests.
9763         inttypes: Add more C++ tests.
9764         * tests/test-inttypes-c++2.cc: New file.
9765         * modules/inttypes-c++-tests (Files): Add it.
9766         (Makefile.am): Compile it.
9768         limits-h: Add C++ tests.
9769         * tests/test-limits-h-c++.cc: New file.
9770         * tests/test-limits-h-c++2.cc: New file.
9771         * modules/limits-h-c++-tests: New file.
9772         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
9774         stdarg: Add C++ tests.
9775         * tests/test-stdarg-c++.cc: New file.
9776         * tests/test-stdarg-c++2.cc: New file.
9777         * modules/stdarg-c++-tests: New file.
9778         * modules/stdarg-tests: New file.
9780         stdbool: Add C++ tests.
9781         * tests/test-stdbool-c++.cc: New file.
9782         * tests/test-stdbool-c++2.cc: New file.
9783         * modules/stdbool-c++-tests: New file.
9784         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
9786         stddef: Add C++ tests.
9787         * tests/test-stddef-c++.cc: New file.
9788         * tests/test-stddef-c++2.cc: New file.
9789         * modules/stddef-c++-tests: New file.
9790         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
9792         stdint: Add C++ tests.
9793         * tests/test-stdint-c++.cc: New file.
9794         * tests/test-stdint-c++2.cc: New file.
9795         * modules/stdint-c++-tests: New file.
9796         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
9798         wchar: Add more C++ tests.
9799         * tests/test-wchar-c++2.cc: New file.
9800         * modules/wchar-c++-tests (Files): Add it.
9801         (Makefile.am): Compile it.
9803         wctype-h: Add more C++ tests.
9804         * tests/test-wctype-h-c++2.cc: New file.
9805         * modules/wctype-h-c++-tests (Files): Add it.
9806         (Makefile.am): Compile it.
9808 2019-12-04  Bruno Haible  <bruno@clisp.org>
9810         Fix compilation errors in C++ mode with xlclang++ on AIX.
9811         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
9812         C++ mode on AIX.
9813         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
9814         without C preprocessor macro.
9815         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
9816         _GL_CXXALIAS_SYS.
9817         * lib/threads.in.h (thrd_exit): Likewise.
9819 2019-12-04  Bruno Haible  <bruno@clisp.org>
9821         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
9822         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
9823         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
9825 2019-12-04  Bruno Haible  <bruno@clisp.org>
9827         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
9828         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
9829         _GL_CXXALIASWARN invocation on non-glibc systems.
9830         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
9831         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
9832         iswctype, towlower, towupper): Likewise.
9834 2019-12-03  Bruno Haible  <bruno@clisp.org>
9836         Avoid hassles caused by [[noreturn]] in C++.
9837         Reported by Christian Biesinger <cbiesinger@google.com> in
9838         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
9839         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
9840         * lib/_Noreturn.h: Likewise.
9842 2019-12-02  Bruno Haible  <bruno@clisp.org>
9844         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
9845         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
9846         LIBMULTITHREAD.
9847         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
9848         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
9849         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
9850         gl_THREADLIB.
9851         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
9853 2019-12-02  Bruno Haible  <bruno@clisp.org>
9855         Fix some more link errors with --enable-threads=isoc.
9856         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
9857         * modules/pthread-rwlock (Depends-on): Likewise.
9859 2019-12-02  Bruno Haible  <bruno@clisp.org>
9861         Fix link errors with --enable-threads=posix on AIX.
9862         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
9863         program with $(LIBTHREAD).
9864         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
9865         program with $(LIBTHREAD).
9867 2019-12-02  Bruno Haible  <bruno@clisp.org>
9869         Fix link errors with --enable-threads=posix on AIX.
9870         * modules/mbrtowc (Link): New section.
9871         * modules/acl (Link): Likewise.
9872         * modules/argmatch (Link): Likewise.
9873         * modules/backup-rename (Link): Likewise.
9874         * modules/backupfile (Link): Likewise.
9875         * modules/closein (Link): Likewise.
9876         * modules/closeout (Link): Likewise.
9877         * modules/copy-file (Link): Likewise.
9878         * modules/csharpcomp (Link): Likewise.
9879         * modules/csharpexec (Link): Likewise.
9880         * modules/dfa (Link): Likewise.
9881         * modules/exclude (Link): Likewise.
9882         * modules/fnmatch (Link): Likewise.
9883         * modules/fnmatch-gnu (Link): Likewise.
9884         * modules/fnmatch-posix (Link): Likewise.
9885         * modules/glob (Link): Likewise.
9886         * modules/human (Link): Likewise.
9887         * modules/javacomp (Link): Likewise.
9888         * modules/javaexec (Link): Likewise.
9889         * modules/javaversion (Link): Likewise.
9890         * modules/mbfile (Link): Likewise.
9891         * modules/mbiter (Link): Likewise.
9892         * modules/mbmemcasecmp (Link): Likewise.
9893         * modules/mbmemcasecoll (Link): Likewise.
9894         * modules/mbrlen (Link): Likewise.
9895         * modules/mbscasecmp (Link): Likewise.
9896         * modules/mbscasestr (Link): Likewise.
9897         * modules/mbschr (Link): Likewise.
9898         * modules/mbscspn (Link): Likewise.
9899         * modules/mbsinit (Link): Likewise.
9900         * modules/mbslen (Link): Likewise.
9901         * modules/mbsncasecmp (Link): Likewise.
9902         * modules/mbsnlen (Link): Likewise.
9903         * modules/mbsnrtowcs (Link): Likewise.
9904         * modules/mbspbrk (Link): Likewise.
9905         * modules/mbspcasecmp (Link): Likewise.
9906         * modules/mbsrchr (Link): Likewise.
9907         * modules/mbsrtowcs (Link): Likewise.
9908         * modules/mbssep (Link): Likewise.
9909         * modules/mbsspn (Link): Likewise.
9910         * modules/mbsstr (Link): Likewise.
9911         * modules/mbstok_r (Link): Likewise.
9912         * modules/mbswidth (Link): Likewise.
9913         * modules/mbuiter (Link): Likewise.
9914         * modules/mkdir-p (Link): Likewise.
9915         * modules/propername (Link): Likewise.
9916         * modules/quote (Link): Likewise.
9917         * modules/quotearg (Link): Likewise.
9918         * modules/quotearg-simple (Link): Likewise.
9919         * modules/regex-quote (Link): Likewise.
9920         * modules/rpmatch (Link): Likewise.
9921         * modules/sh-quote (Link): Likewise.
9922         * modules/system-quote (Link): Likewise.
9923         * modules/trim (Link): Likewise.
9924         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9925         * modules/unistdio/ulc-fprintf (Link): Likewise.
9926         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9927         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9928         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9929         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9930         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9931         * modules/xfreopen (Link): Likewise.
9932         * modules/xmemcoll (Link): Likewise.
9933         * modules/yesno (Link): Likewise.
9934         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
9935         * modules/argmatch-tests (Makefile.am): Likewise.
9936         * modules/closein-tests (Makefile.am): Likewise.
9937         * modules/copy-file-tests (Makefile.am): Likewise.
9938         * modules/dfa-tests (Makefile.am): Likewise.
9939         * modules/fnmatch-tests (Makefile.am): Likewise.
9940         * modules/glob-tests (Makefile.am): Likewise.
9941         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9942         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9943         * modules/mbrtowc-tests (Makefile.am): Likewise.
9944         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9945         * modules/mbscasestr-tests (Makefile.am): Likewise.
9946         * modules/mbschr-tests (Makefile.am): Likewise.
9947         * modules/mbscspn-tests (Makefile.am): Likewise.
9948         * modules/mbsinit-tests (Makefile.am): Likewise.
9949         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9950         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9951         * modules/mbspbrk-tests (Makefile.am): Likewise.
9952         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9953         * modules/mbsrchr-tests (Makefile.am): Likewise.
9954         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9955         * modules/mbsspn-tests (Makefile.am): Likewise.
9956         * modules/mbsstr-tests (Makefile.am): Likewise.
9957         * modules/quotearg-tests (Makefile.am): Likewise.
9958         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9959         * modules/readtokens-tests (Makefile.am): Likewise.
9960         * modules/regex-quote-tests (Makefile.am): Likewise.
9961         * modules/sh-quote-tests (Makefile.am): Likewise.
9962         * modules/system-quote-tests (Makefile.am): Likewise.
9963         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9964         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9965         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9966         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9967         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9968         * modules/yesno-tests (Makefile.am): Likewise.
9970 2019-12-02  Bruno Haible  <bruno@clisp.org>
9972         Simplify link sections.
9973         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
9974         * modules/lock (Link): Likewise.
9975         * modules/cond (Link): Likewise.
9976         * modules/tls (Link): Likewise.
9977         * modules/yield (Link): Likewise.
9978         * modules/regex (Link): Likewise.
9979         * modules/localename (Link): Likewise.
9980         * modules/unicase/locale-language (Link): Likewise.
9981         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
9983 2019-12-02  Bruno Haible  <bruno@clisp.org>
9985         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
9986         * tests/test-thread_self.c (main): Disable test on AIX.
9988 2019-12-01  Bruno Haible  <bruno@clisp.org>
9990         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
9991         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
9992         gl_THREADLIB_EARLY_BODY.
9993         (gl_THREADLIB_EARLY_BODY): Invoke it.
9994         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
9995         (gl_THREADLIB_BODY): Invoke it.
9996         (gl_PTHREADLIB): New macro.
9997         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
9998         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
9999         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10000         * modules/pthread-h (Files): Add threadlib.m4.
10001         (Depends-on): Remove threadlib.
10002         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10003         and _THREAD_SAFE here.
10004         (Link): Use LIBPTHREAD, not LIBTHREAD.
10005         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10006         LIBMULTITHREAD.
10007         * modules/pthread-once (Link): Likewise.
10008         * modules/pthread-mutex (Link): Likewise.
10009         * modules/pthread-rwlock (Link): Likewise.
10010         * modules/pthread-cond (Link): Likewise.
10011         * modules/pthread-tss (Link): Likewise.
10012         * modules/pthread-spin (Link): Likewise.
10013         * modules/pthread (Link): Likewise.
10014         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10015         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10016         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10017         test_pthread_once2_LDADD): Likewise.
10018         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10019         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10020         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10021         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10023 2019-12-01  Bruno Haible  <bruno@clisp.org>
10025         cond: State linking requirements.
10026         * modules/cond (Link): New section.
10028 2019-12-01  Bruno Haible  <bruno@clisp.org>
10030         threadlib: Remove unnecessary file (left over from 2019-07-06).
10031         * modules/threadlib (Files): Remove config.rpath.
10033 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10035         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10036         Reported by Dagobert Michelsen <dam@opencsw.org> in
10037         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10038         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10039         list of strings instead of one string.
10040         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10041         * pygnulib/GLImport.py (execute): Likewise.
10043 2019-11-27  Bruno Haible  <bruno@clisp.org>
10045         openpty, forkpty: Fix build error on Solaris 11.4.
10046         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10047         also in <termios.h>.
10048         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10049         of the function also in <termios.h>.
10050         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10051         * doc/glibc-functions/forkpty.texi: Likewise.
10053 2019-11-27  Bruno Haible  <bruno@clisp.org>
10055         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10056         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10057         --enable-threads=isoc and --enable-threads=isoc+posix.
10058         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10059         When both the ISO C and the POSIX threads API are available, choose
10060         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10061         --enable-threads=isoc+posix was specified. When only the ISO C threads
10062         API is available and --enable-threads=iso was specified, choose
10063         USE_ISOC_THREADS.
10064         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10065         USE_ISOC_AND_POSIX_THREADS.
10066         * lib/glthread/lock.c: Likewise.
10067         * lib/glthread/cond.h: Likewise.
10068         * lib/glthread/cond.c: Likewise.
10069         * lib/glthread/tls.h: Likewise.
10070         * lib/glthread/tls.c: Likewise.
10071         * lib/glthread/yield.h: Likewise.
10072         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10073         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10074         * lib/glthread/thread.c: Likewise.
10075         * lib/glthread/threadlib.c: Likewise.
10076         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10077         USE_ISOC_AND_POSIX_THREADS.
10078         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10079         USE_ISOC_AND_POSIX_THREADS.
10080         * tests/test-tls.c: Likewise.
10081         * tests/test-thread_create.c (main): Likewise.
10082         * tests/test-pthread-cond.c: Likewise.
10083         * tests/test-pthread-mutex.c: Likewise.
10084         * tests/test-pthread-once2.c: Likewise.
10085         * tests/test-pthread-rwlock.c: Likewise.
10086         * tests/test-pthread-tss.c: Likewise.
10087         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10088         USE_POSIX_THREADS.
10090 2019-11-24  Bruno Haible  <bruno@clisp.org>
10092         mbrtowc: Modernize autoconf test.
10093         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10094         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10095         try a UTF-8 locale.
10096         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10098 2019-11-24  Bruno Haible  <bruno@clisp.org>
10100         Fix errors in C++ mode on mingw.
10101         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10102         instead of _GL_CXXALIAS_SYS.
10103         * lib/signal.in.h (pthread_sigmask): Likewise.
10104         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10105         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10106         Likewise.
10107         * lib/wchar.in.h (btowc): Likewise.
10109 2019-11-24  Bruno Haible  <bruno@clisp.org>
10111         sys_time: Fix errors in C++ mode on mingw.
10112         * lib/sys_time.in.h (timeval): Restore the redirection
10113         '#define timeval rpl_timeval', for when the symbol timeval is being used
10114         outside the 'gnulib' namespace.
10115         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10116         'struct timeval'.
10118 2019-11-24  Bruno Haible  <bruno@clisp.org>
10120         iswctype: Fix errors in C++ mode on mingw.
10121         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10122         is 1.
10123         * lib/iswctype.c (iswctype): Add another implementation, for the
10124         GNULIB_defined_wint_t case.
10125         * modules/iswctype (configure.ac): Compile iswctype.c also if
10126         GNULIB_OVERRIDES_WINT_T is 1.
10128 2019-11-24  Bruno Haible  <bruno@clisp.org>
10130         windows-timedmutex: Fix errors in C++ mode on mingw.
10131         * lib/windows-timedmutex.h: Add closing brace.
10133 2019-11-24  Bruno Haible  <bruno@clisp.org>
10135         Fix errors in C++ mode on Cygwin.
10136         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10137         _GL_CXXALIAS_SYS.
10139 2019-11-24  Bruno Haible  <bruno@clisp.org>
10141         time_r: Fix for mingw (regression from 2019-11-16).
10142         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10143         AC_LINK_IFELSE test only if the function does not appear to exist.
10145 2019-11-24  Bruno Haible  <bruno@clisp.org>
10147         wcstok: Add tests.
10148         * tests/test-wcstok.c: New file.
10149         * modules/wcstok-tests: New file.
10151 2019-11-24  Bruno Haible  <bruno@clisp.org>
10153         wcstok: Work around wrong signature on native Windows.
10154         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10155         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10156         REPLACE_WCSTOK.
10157         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10158         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10159         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10160         * doc/posix-functions/wcstok.texi: Mention the problem.
10162 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10164         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10165         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10166         remove workaround for GCC bug 91450 as the bug should be fixed
10167         there too.
10169 2019-11-21  Bruno Haible  <bruno@clisp.org>
10171         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10172         Reported by Christian Biesinger <cbiesinger@google.com> in
10173         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10174         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10175         non-glibc systems.
10176         * lib/locale.in.h (localeconv, setlocale): Likewise.
10177         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10178         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10179         rint, round, trunc): Likewise.
10180         * lib/monetary.in.h (strfmon_l): Likewise.
10181         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10182         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10183         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10184         pthread_spin_destroy): Likewise.
10185         * lib/signal.in.h (raise, signal): Likewise.
10186         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10187         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10188         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10189         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10190         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10191         Likewise.
10192         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10193         Likewise.
10194         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10195         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10196         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10197         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10198         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10199         wcsftime): Likewise.
10200         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10202 2019-11-21  Bruno Haible  <bruno@clisp.org>
10204         Fix various errors in _GL_CXXALIAS_SYS invocations.
10205         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10206         _GL_CXXALIAS_SYS.
10207         * lib/pthread.in.h (pthread_mutexattr_gettype,
10208         pthread_mutexattr_getrobust): Likewise.
10209         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
10210         * lib/sys_socket.in.h (recv, send): Likewise.
10211         * lib/unistd.in.h (getdtablesize): Likewise.
10212         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
10213         'struct timeval'.
10215 2019-11-21  Bruno Haible  <bruno@clisp.org>
10217         math tests: Update after 2019-08-28 change.
10218         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
10219         return type of 'bool', not 'int'.
10221 2019-11-21  Bruno Haible  <bruno@clisp.org>
10223         pthread-spin: Fix errors in C++ mode.
10224         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
10225         functions as nonexistent when <pthread.h> exists but does not define
10226         the pthread_spinlock_t type.
10228 2019-11-21  Bruno Haible  <bruno@clisp.org>
10230         pthread-mutex: Fix errors in C++ mode.
10231         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
10232         pthread_mutexattr_getrobust exists. If not, define
10233         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10234         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
10235         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
10236         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10237         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
10238         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
10239         definition.
10241 2019-11-19  Bruno Haible  <bruno@clisp.org>
10243         threads-h tests: Fix typo.
10244         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
10246 2019-11-19  Bruno Haible  <bruno@clisp.org>
10248         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10249         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10250         to 'const pthread_attr_t *'.
10251         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10252         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10254 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10256         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10257         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10258         work around GCC bug 91450 as the bug should be fixed there.
10260 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10262         glob: get closer to glibc glob.c
10263         Omit differences from glibc when the differences don’t matter.
10264         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10265         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10266         (glob_lstat): New function.
10267         (glob_in_dir): Use it.
10268         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10269         Use changed.
10271 2019-11-18  Bruno Haible  <bruno@clisp.org>
10273         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10274         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10275         UINTPTR_MAX): Consider _WIN64.
10276         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10277         a pointer.
10279 2019-11-18  Bruno Haible  <bruno@clisp.org>
10281         stdint: Fix value of WINT_MAX when we override wint_t.
10282         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10283         when GNULIB_OVERRIDES_WINT_T is 1.
10285 2019-11-18  Bruno Haible  <bruno@clisp.org>
10287         vcs-to-changelog: New module.
10288         * modules/vcs-to-changelog: New file.
10289         * MODULES.html.sh (func_all_modules): Add it.
10291 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10293         vcs-to-changelog: New script to generate ChangeLog-like output.
10294         Discussion:
10295         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10296         * build-aux/vcs_to_changelog.py: New file.
10297         * build-aux/vcstocl/frontend_c.py: New file.
10298         * build-aux/vcstocl/misc_util.py: New file.
10299         * build-aux/vcstocl/vcs_git.py: New file.
10301 2019-11-18  Bruno Haible  <bruno@clisp.org>
10303         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10304         Reported by Keith Marshall <keith@users.osdn.me> in
10305         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10306         and <https://osdn.net/projects/mingw/ticket/39677>.
10307         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10308         already been defined by mingw's <crtdefs.h>.
10310 2019-11-18  Bruno Haible  <bruno@clisp.org>
10312         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10313         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10314         conditionally enabled.
10316 2019-11-18  Bruno Haible  <bruno@clisp.org>
10318         gc: Mirror libgcrypt.m4 from libgcrypt.
10319         * config/srclistvars.sh (LIBGCRYPT): New variable.
10320         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10322 2019-11-17  Bruno Haible  <bruno@clisp.org>
10324         locale, localename: Improve z/OS support.
10325         Reported by Daniel Richard G. in
10326         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10327         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10328         gl_LOCALE_H.
10329         (gl_LOCALE_H): Require it.
10330         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10331         defined, don't even check for newlocale, duplocale, freelocale.
10332         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10333         locale_t is not defined.
10335 2019-11-17  Bruno Haible  <bruno@clisp.org>
10337         havelib: Make libdirstems processing more flexible.
10338         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10339         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10340         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10341         patch from 2017-02-19).
10342         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10343         libdirs, even when the first one exists as a directory.
10345 2019-11-17  Bruno Haible  <bruno@clisp.org>
10347         havelib: Match the bitness when searching for libraries.
10348         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10349         acl_is_expected_elfclass.
10350         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10351         file exists, in ELF, also test whether it has the ELF class that
10352         corresponds to the host's bitness.
10354 2019-11-17  Bruno Haible  <bruno@clisp.org>
10356         host-cpu-c-abi: Add support for unknown CPUs.
10357         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10358         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10359         32-bit or 64-bit.
10361 2019-11-17  Bruno Haible  <bruno@clisp.org>
10363         havelib: Remove redundant code.
10364         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10365         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10367 2019-11-17  Bruno Haible  <bruno@clisp.org>
10369         havelib: Fix a bug in dependency processing.
10370         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10371         of .la files, don't overwrite the value of additional_libdir for the
10372         next rounds.
10374 2019-11-16  Bruno Haible  <bruno@clisp.org>
10376         wctype-h: When overriding wint_t, override also the related functions.
10377         Reported by Christian Biesinger <cbiesinger@google.com> in
10378         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10379         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10380         REPLACE_ISWCNTRL to 1.
10381         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
10382         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
10383         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
10384         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
10385         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
10386         on mingw.
10387         * doc/posix-headers/wctype.texi: Likewise.
10389 2019-11-16  Bruno Haible  <bruno@clisp.org>
10391         time_r: Fix for mingw.
10392         Reported by Christian Biesinger <cbiesinger@google.com> in
10393         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
10394         * lib/time.in.h: On mingw, include <unistd.h>.
10395         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
10396         <time.h>. Test for localtime_r in a way that works when it is defined
10397         as an inline function.
10399 2019-11-13  Bruno Haible  <bruno@clisp.org>
10401         havelib: Revert last change.
10402         * build-aux/config.rpath: Revert last change. We can add msys2 support
10403         when it has been added to libtool.m4 upstream.
10405 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10407         config: add msys support
10408         Requested by Arnold Robbins in:
10409         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
10410         He also requested a change to config.guess, which I’ll forward
10411         upstream.
10412         * build-aux/ar-lib (func_file_conv):
10413         * build-aux/compile (func_file_conv):
10414         * build-aux/config.rpath (wl, with_gnu_ld)
10415         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
10416         Treat msys like cygwin.
10418 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10420         regex: now back in sync with glibc
10421         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
10422         regexec.c got merged into glibc and are now copies again.
10424 2019-10-27  Bruno Haible  <bruno@clisp.org>
10426         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
10427         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
10428         statement.
10429         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
10430         32-bit CPUs.
10432 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10434         timespec-add, timespec-sub: simplify
10435         * lib/timespec-add.c (timespec_add):
10436         * lib/timespec-sub.c (timespec_sub):
10437         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10438         work on unsigned integers.
10440 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10442         nstrftime: speed up integer overflow checking
10443         * lib/nstrftime.c: Include intprops.h.
10444         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
10445         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
10446         instead of doing it by hand.
10447         * modules/nstrftime (Depends-on): Add intprops.
10449         Port better to GCC under macOS
10450         Work around macOS header that has ‘#define __has_builtin(x) 0’
10451         when compiled by GCC.  Apple really, really doesn’t want you to
10452         use GCC, apparently.  Rroblem reported by Akim Demaille in:
10453         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
10454         The fix is to not trust __has_builtin when being compiled by
10455         recent-enough GCC.
10456         * lib/intprops.h (__has_builtin)
10457         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10458         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
10459         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
10460         Remove.  All uses removed.
10461         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
10462         directly, if defined and if not newer GCC.
10463         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
10464         New macro, that use __has_builtin directly, if defined and if
10465         not newer GCC.
10466         (assume): Use them.
10468 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
10470         maintainer-makefile: update rule for argmatch.
10471         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
10473 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
10475         bitset: let freeing functions accept NULL.
10476         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
10477         given NULL.
10478         * lib/bitset.h: Document that.
10479         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
10481 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
10483         inttypes: use more-robust test for int range
10484         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
10485         Problem reported by Dagobert Michelsen in:
10486         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
10487         * lib/inttypes.in.h: Rely only on limits.h when checking
10488         int range.
10490 2019-10-15  Bruno Haible  <bruno@clisp.org>
10492         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
10493         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
10494         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
10495         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
10496         term_ostream_set_hyperlink): New functions.
10497         (term_styled_ostream_get_hyperlink_ref,
10498         term_styled_ostream_get_hyperlink_id,
10499         term_styled_ostream_set_hyperlink): New function aliases.
10501 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10503         update-copyright: use en dashes in .texi ranges
10504         * build-aux/update-copyright: Match year ranges like "1998--2019",
10505         which are used in the Autoconf manual.  Also, update ranges in
10506         .tex, .texi, and .texinfo files to use en dashes instead of
10507         hyphens.
10509 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10511         * config/srclist.txt: Remove posix/regex_internal.c for now.
10513 2019-10-13  Bruno Haible  <bruno@clisp.org>
10515         git-version-gen: Allow 'snapshot' as .tarball-version contents.
10516         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
10517         contents to the empty string.
10519 2019-10-12  Bruno Haible  <bruno@clisp.org>
10521         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
10522         * tests/test-intprops.c (main): Disable two more tests when using
10523         HP-UX cc.
10525 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10527         Simplify and regularize regex use of ‘assert’
10528         Also, tell GCC about the asserts even when compiling without
10529         debugging, to give it further optimization opportunities.
10530         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
10531         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
10532         (parse_expression, parse_bracket_exp):
10533         * lib/regex_internal.c (build_wcs_buffer)
10534         (build_wcs_upper_buffer, re_string_reconstruct)
10535         (re_string_context_at):
10536         * lib/regexec.c (re_search_stub, re_copy_regs)
10537         (re_search_internal, prune_impossible_nodes, check_matching)
10538         (check_halt_state_context, set_regs, sift_states_backward)
10539         (build_sifted_states, transit_state_mb, transit_state_bkref)
10540         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10541         (match_ctx_add_subtop):
10542         Use it instead of plain ‘assert’.
10544 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10546         regex: omit debug assignment when not debugging
10547         * lib/regexec.c (re_search_internal) [!DEBUG]:
10548         Remove unnecessary assignment.
10550         regex: tell compiler there’s at most 256 arcs out
10551         Partly this is to help the reader (and maybe help GCC);
10552         partly this is to pacify Coverity.
10553         * lib/regex_internal.h: Include verify.h.
10554         * lib/regexec.c (group_nodes_into_DFAstates):
10555         Tell the compiler that ndests cannot exceed SBC_MAX.
10556         * modules/regex (Depends-on): Add ‘verify’.
10558         regex: simplify by assuming C99
10559         * config/srclist.txt: Comment out regex_internal.h and regexec.c
10560         temporarily.
10561         * lib/regex_internal.h (lock_define, re_match_context_t):
10562         Simplify by assuming C99 macros and const.
10563         * lib/regexec.c (re_search_internal): Simplify by assuming C99
10564         initializers.  Remove unnecessary assignment, as mctx is now
10565         safely initialized earlier.
10567         regex: avoid copying of uninitialized storage
10568         * config/srclist.txt: Comment out regcomp.c temporarily.
10569         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
10570         Initialize even when not checking for lint, as the behavior is
10571         arguably undefined otherwise and Coverity warns about it.
10573 2019-10-06  Bruno Haible  <bruno@clisp.org>
10575         access tests: Fix test failure when run as root.
10576         * tests/test-access.c: Include root-uid.h.
10577         (geteuid): Define fallback.
10578         (main): Don't expect that writing to a read-only file would fail when
10579         running as root. Also, remove the created files at the end.
10580         * modules/access-tests (Depends-on): Add root-uid.
10581         (configure.ac): Test whether geteuid exists.
10583 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
10585         users.txt: add GNU nano
10586         Nano has been making use of gnulib since March 2017, version 2.8.0.
10588 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10590         bootstrap: simplify debugging of wget failures
10591         Problem reported by Tim Rühsen in:
10592         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
10593         * build-aux/bootstrap (po_download_command_format):
10594         Invoke wget with -nv instead of -q, to make debugging easier.
10596 2019-09-29  Bruno Haible  <bruno@clisp.org>
10598         avltree-list: Fix compilation warning (introduced on 2014-09-16).
10599         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
10600         'const' attribute.
10602 2019-09-29  Bruno Haible  <bruno@clisp.org>
10604         fbufmode: Fix compilation error on glibc >= 2.28 systems.
10605         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
10607 2019-09-28  Bruno Haible  <bruno@clisp.org>
10609         Update comments that refer to POSIX.
10610         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
10611         sentence about trailing slashes.
10612         * lib/fflush.c: Clarify the reasoning.
10613         * tests/test-fflush2.c: Cite the relevant sentence.
10615 2019-09-28  Bruno Haible  <bruno@clisp.org>
10617         access: Document limitations on Windows.
10618         Suggested by Zaretskii <eliz@gnu.org>.
10619         * doc/posix-functions/access.texi: Mention two limitations on Windows.
10621 2019-09-28  Bruno Haible  <bruno@clisp.org>
10623         findprog-in: Fix comment.
10624         Reported by Eli Zaretskii <eliz@gnu.org>.
10625         * lib/findprog.h (find_in_given_path): Extend description of EACCES
10626         condition.
10627         * lib/stat.c (rpl_stat): Fix typo in comment.
10628         * lib/utime.c (_gl_utimens_windows): Likewise.
10630 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10632         Update URLs and associated text
10633         (Thanks to Bruno Haible for proofreading this patch.)
10634         Prefer https: to http: in URLs where either will do, for the usual
10635         security reasons.  I also updated broken and/or moved URLs
10636         discovered during the process. In a few places I had to resort to
10637         archive.org, since I didn't find the originals elsewhere.
10639 2019-09-15  Paul Smith  <psmith@gnu.org>
10640             Bruno Haible  <bruno@clisp.org>
10642         findprog-in: Set errno when the search fails.
10643         * lib/findprog-in.c: Include <errno.h>.
10644         (find_in_given_path): Set errno before returning NULL.
10645         * lib/findprog.h (find_in_given_path): Update comment accordingly.
10646         Define the term "slash".
10648 2019-09-15  Bruno Haible  <bruno@clisp.org>
10650         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
10651         * modules/findprog (Depends-on): Add access.
10652         * modules/findprog-lgpl (Depends-on): Likewise.
10653         * modules/findprog-in (Depends-on): Likewise.
10655 2019-09-15  Bruno Haible  <bruno@clisp.org>
10657         access: Add tests.
10658         * tests/test-access.c: New file.
10659         * modules/access-tests: New file.
10661         access: New module.
10662         * lib/unistd.in.h (access): New declaration.
10663         * lib/access.c: New file.
10664         * m4/access.m4: New file.
10665         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
10666         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
10667         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
10668         REPLACE_ACCESS.
10669         * modules/access: New file.
10670         * tests/test-unistd-c++.cc (access): Check signature.
10671         * doc/posix-functions/access.texi: Mention the new module.
10673 2019-09-15  Bruno Haible  <bruno@clisp.org>
10675         fcntl-h: Fix compilation error of creat.c on MSVC.
10676         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
10677         defined.
10679 2019-09-15  Bruno Haible  <bruno@clisp.org>
10681         creat: Add tests.
10682         * tests/test-creat.c: New file, based on tests/test-open.h.
10683         * modules/creat-tests: New file.
10685         creat: New module.
10686         * lib/fcntl.in.h (creat): New declaration.
10687         * lib/creat.c: New file, based on lib/open.c.
10688         * m4/creat.m4: New file.
10689         * m4/open-slash.m4: New file, extracted from m4/open.m4.
10690         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
10691         Invoke gl_OPEN_TRAILING_SLASH_BUG.
10692         * modules/open (Files): Add m4/open-slash.m4.
10693         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
10694         REPLACE_CREAT.
10695         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
10696         * modules/creat: New file.
10697         * tests/test-fcntl-h-c++.cc (creat): Check signature.
10698         * doc/posix-functions/creat.texi: Mention the new module.
10700 2019-09-15  Bruno Haible  <bruno@clisp.org>
10702         open tests: Enhance test.
10703         * tests/test-open.h (test_open): Test the creation of an executable
10704         regular file. Also improve initial cleanup.
10706 2019-09-15  Bruno Haible  <bruno@clisp.org>
10708         intprops tests: Avoid build failure with HP-UX cc.
10709         * tests/test-intprops.c: Disable a check that makes HP cc choke with
10710         "error 4018: Macro param too large after substitution - use -H option.".
10712 2019-09-14  Bruno Haible  <bruno@clisp.org>
10714         Make autoconf tests work with -Werror=implicit-function-declaration.
10715         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
10716         towupper() declaration.
10717         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
10718         declaration.
10720 2019-09-14  Bruno Haible  <bruno@clisp.org>
10722         findprog-in: Better mimic the system on native Windows.
10723         Reported by Paul Smith <psmith@gnu.org>.
10724         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
10725         non-empty suffixes when the file name already contains a '.'.
10727 2019-09-10  Bruno Haible  <bruno@clisp.org>
10729         wctob: Fix autoconf test.
10730         Based on patch by Florian Weimer <fweimer@redhat.com>.
10731         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
10733 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
10735         xhash: provide hash_xinitialize.
10736         Suggested by Egor Pugin <egor.pugin@gmail.com>
10737         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
10738         * modules/xhash, lib/xhash.c: New.
10739         * lib/hash.h (hash_xinitialize): New.
10741 2019-09-09  Bruno Haible  <bruno@clisp.org>
10743         findprog-in: Make exec optimization optional.
10744         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
10745         (find_in_given_path): Add optimize_for_exec parameter.
10746         * lib/findprog-in.c (find_in_given_path): Likewise.
10748 2019-09-08  Bruno Haible  <bruno@clisp.org>
10750         Add option to assume the best, not the worst, when cross-compiling.
10751         Suggested by Jonas Termansen <sortie@maxsi.org>.
10752         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
10753         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
10754         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
10755         lt_cv_sys_argz_works.
10756         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
10757         ac_cv_func_calloc_0_nonnull.
10758         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
10759         --enable-cross-guesses for gl_cv_func_realpath_works.
10760         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
10761         gl_cv_func_cbrtl_ieee.
10762         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
10763         gl_cv_func_ceil_ieee.
10764         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
10765         gl_cv_func_ceilf_ieee.
10766         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
10767         gl_cv_func_ceill_ieee.
10768         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
10769         ac_cv_func_chown_works.
10770         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
10771         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
10772         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
10773         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
10774         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
10775         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
10776         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
10777         gl_cv_func_expl_works.
10778         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
10779         gl_cv_func_expm1_ieee.
10780         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
10781         gl_cv_func_expm1l_works.
10782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
10783         gl_cv_func_open_directory_works.
10784         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
10785         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
10786         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
10787         gl_cv_func_fchownat_empty_filename_works.
10788         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
10789         gl_cv_func_fdopendir_works.
10790         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
10791         gl_cv_func_floor_ieee.
10792         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
10793         gl_cv_func_floorf_ieee.
10794         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
10795         gl_cv_func_fma_works.
10796         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
10797         gl_cv_func_fmaf_works.
10798         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
10799         gl_cv_func_fmal_works.
10800         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
10801         gl_cv_func_fmod_ieee.
10802         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
10803         gl_cv_func_fmodf_ieee.
10804         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
10805         gl_cv_func_fmodl_ieee.
10806         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
10807         gl_cv_func_fpurge_works.
10808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
10809         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
10810         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
10811         gl_cv_func_getcwd_null.
10812         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
10813         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
10814         gl_cv_func_working_getdelim.
10815         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10816         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
10817         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10818         gl_cv_func_getgroups_works.
10819         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
10820         am_cv_func_working_getline.
10821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
10822         for gl_cv_func_getopt_gnu.
10823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
10824         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
10825         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
10826         gl_cv_func_hypot_ieee.
10827         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
10828         gl_cv_func_hypotf_ieee.
10829         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
10830         gl_cv_func_hypotl_ieee.
10831         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
10832         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
10833         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
10834         gl_cv_func_link_works.
10835         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
10836         gl_cv_func_linkat_slash.
10837         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
10838         gl_cv_func_log_ieee.
10839         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
10840         gl_cv_func_logf_ieee.
10841         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
10842         gl_cv_func_logl_works.
10843         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
10844         gl_cv_func_log10_ieee.
10845         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
10846         gl_cv_func_log10f_ieee.
10847         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
10848         gl_cv_func_log10l_works.
10849         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
10850         gl_cv_func_log1p_ieee.
10851         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
10852         gl_cv_func_log1pf_ieee.
10853         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
10854         gl_cv_func_log1pl_ieee.
10855         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
10856         gl_cv_func_log2_ieee.
10857         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
10858         gl_cv_func_log2f_ieee.
10859         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
10860         --enable-cross-guesses for
10861         gl_cv_func_lstat_dereferences_slashed_symlink.
10862         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
10863         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
10864         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
10865         gl_cv_C_locale_sans_EILSEQ.
10866         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
10867         gl_cv_func_memchr_works.
10868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
10869         gl_cv_func_memmem_works_always.
10870         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
10871         gl_cv_func_memmem_works_fast.
10872         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
10873         gl_cv_func_mkdir_trailing_slash_works,
10874         gl_cv_func_mkdir_trailing_dot_works.
10875         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
10876         gl_cv_func_mkfifo_works.
10877         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
10878         gl_cv_func_mknod_works.
10879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
10880         gl_cv_func_working_mkstemp.
10881         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
10882         gl_cv_func_working_mktime.
10883         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
10884         gl_cv_func_modf_ieee.
10885         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
10886         gl_cv_func_modff_ieee.
10887         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
10888         gl_cv_func_modfl_ieee.
10889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
10890         gl_cv_func_nanosleep.
10891         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
10892         gl_cv_func_perror_works.
10893         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
10894         gl_cv_func_printf_sizes_c99.
10895         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
10896         gl_cv_func_printf_infinite.
10897         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
10898         gl_cv_func_printf_infinite_long_double.
10899         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
10900         gl_cv_func_printf_directive_a.
10901         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
10902         gl_cv_func_printf_directive_f.
10903         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
10904         gl_cv_func_printf_flag_zero.
10905         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
10906         gl_cv_func_printf_enomem.
10907         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
10908         gl_cv_func_snprintf_truncation_c99.
10909         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
10910         gl_cv_func_snprintf_retval_c99.
10911         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
10912         gl_cv_func_snprintf_directive_n.
10913         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
10914         gl_cv_func_vsnprintf_zerosize_c99.
10915         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
10916         gl_cv_func_pselect_detects_ebadf.
10917         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
10918         Obey --enable-cross-guesses for
10919         gl_cv_pthread_rwlock_rdlock_prefer_writer.
10920         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
10921         gl_cv_func_ptsname_sets_errno.
10922         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
10923         gl_cv_func_svid_putenv.
10924         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
10925         gl_cv_func_readlink_works.
10926         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
10927         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
10928         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
10929         gl_cv_func_re_compile_pattern_working.
10930         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
10931         gl_cv_func_remainder_ieee.
10932         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
10933         gl_cv_func_remainderf_ieee.
10934         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
10935         gl_cv_func_remainderl_ieee.
10936         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
10937         gl_cv_func_rintl_works.
10938         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
10939         gl_cv_func_rmdir_works.
10940         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
10941         gl_cv_func_round_ieee.
10942         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
10943         gl_cv_func_roundf_ieee.
10944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
10945         gl_cv_func_roundl_ieee.
10946         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
10947         gl_cv_func_select_detects_ebadf.
10948         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
10949         gl_cv_func_setenv_works.
10950         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
10951         gl_cv_func_unsetenv_works.
10952         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
10953         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
10954         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
10955         gl_cv_func_sleep_works.
10956         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
10957         gl_cv_func_stat_file_slash.
10958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
10959         gl_cv_func_stpncpy.
10960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
10961         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
10962         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
10963         gl_cv_func_strcasestr_linear.
10964         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
10965         gl_cv_func_working_strerror.
10966         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
10967         gl_cv_func_strerror_0_works.
10968         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
10969         --enable-cross-guesses for gl_cv_func_strerror_r_works.
10970         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
10971         gl_cv_func_strstr_works_always.
10972         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
10973         gl_cv_func_strstr_linear.
10974         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
10975         gl_cv_func_strtod_works.
10976         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
10977         gl_cv_func_strtold_works.
10978         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
10979         gl_cv_func_symlink_works.
10980         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
10981         gl_cv_func_symlinkat_works.
10982         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
10983         gl_cv_func_trunc_ieee.
10984         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
10985         gl_cv_func_truncf_ieee.
10986         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
10987         gl_cv_func_truncl_ieee.
10988         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
10989         gl_cv_func_tzset_clobber.
10990         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
10991         gl_cv_func_ungetc_works.
10992         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
10993         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
10994         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
10995         gl_cv_func_usleep_works.
10996         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
10997         gl_cv_func_futimesat_works.
10998         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
10999         gl_cv_func_working_utimes.
11000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11001         gl_cv_func_wcwidth_works.
11002         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11003         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11004         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11005         links for testing. Obey --enable-cross-guesses for
11006         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11007         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11009 2019-09-08  Bruno Haible  <bruno@clisp.org>
11011         Clarify that cross-compilation guesses are guesses.
11012         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11013         cross-compiling.
11015 2019-09-08  Bruno Haible  <bruno@clisp.org>
11017         chown: Fix configure output (regression from 2019-03-23).
11018         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11019         gl_cv_func_chown_follows_symlink variable.
11021 2019-09-08  Bruno Haible  <bruno@clisp.org>
11023         findprog-in: New module.
11024         Suggested by Paul Smith <psmith@gnu.org>.
11025         * lib/findprog.h (find_in_given_path): New declaration.
11026         * lib/findprog-in.c: New file, based on lib/findprog.c.
11027         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11028         * modules/findprog-in: New file.
11030 2019-09-08  Bruno Haible  <bruno@clisp.org>
11032         findprog: Remove unused dependency.
11033         * modules/findprog (Depends-on): Remove strdup.
11035 2019-09-08  Bruno Haible  <bruno@clisp.org>
11037         findprog: Remove test that is obsolete since 2006-04-24.
11038         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11040 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11042         bitset: style changes
11043         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11044         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11045         xzalloc to xcalloc.
11046         Suggested by Paul Eggert.
11048 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11050         bitset: check memory allocation
11051         Reported by 江 祖铭 (Zu-Ming Jiang).
11052         With help from Paul Eggert.
11053         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11054         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11055         instead of realloc.
11056         When shrinking, accept failures.
11057         * lib/bitset/vector.c (vbitset_resize): Likewise.
11059 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11061         scratch_buffer: sync from glibc
11062         * config/srclist.txt: Add the scratch_buffer source
11063         code from glibc, since these should be in sync.
11064         Autoupdate.
11066 2019-09-07  Bruno Haible  <bruno@clisp.org>
11068         doc: Update for glibc 2.30.
11069         * doc/glibc-functions/gettid.texi: New file.
11070         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11071         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11072         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11073         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11074         * doc/glibc-functions/sem_clockwait.texi: New file.
11075         * doc/glibc-functions/tgkill.texi: New file.
11076         * doc/glibc-functions/twalk_r.texi: New file.
11077         * doc/gnulib.texi: Include them.
11078         (Glibc semaphore.h): New section.
11079         * doc/pastposix-functions/h_errno.texi: Update.
11080         * doc/posix-functions/*.texi: Likewise.
11082 2019-09-06  Bruno Haible  <bruno@clisp.org>
11084         symlink tests: Avoid test failure on Linux with Lustre file system.
11085         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11086         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11087         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11089 2019-09-01  Bruno Haible  <bruno@clisp.org>
11091         gitsub.sh: Add support for shallow-cloning of subdirectories.
11092         * top/gitsub.sh (func_usage): Document allowed git options with
11093         'git pull'.
11094         (func_pull): Accept GIT_OPTIONS argument.
11095         (pull): Parse git options before complaining about too many arguments.
11096         Pass the git options to func_pull.
11098 2019-08-29  Bruno Haible  <bruno@clisp.org>
11100         lock: Fix cross-compilation guesses.
11101         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11102         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11103         platforms.
11105 2019-08-28  Bruno Haible  <bruno@clisp.org>
11107         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11108         Reported by Martin Storsjö <martin@martin.st> in
11109         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11110         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11111         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11112         files from GCC 6 or newer, use an override through '#define', because
11113         the inline definitions in the platform's <cmath> cannot be overridden
11114         in another way.
11116 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11118         Revert macOS INT_MULTIPLY_WRAPV patch
11119         Problem reported by Bruno Haible in:
11120         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11121         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11122         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11123         Go back to working around the Clang bug on macOS.
11125 2019-08-27  Bruno Haible  <bruno@clisp.org>
11127         libtool-next-version: Fix error output.
11128         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11129         name.
11131 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11133         Speed up INT_MULTIPLY_WRAPV on macOS
11134         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11135         Mattias Engdegård says it’s safe to assume the relevant library
11136         is always available there.
11137         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11138         New temporary internal macro.
11139         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11140         No need to work around the Clang bug on macOS.
11142 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11144         intprops.h, verify.h: port better to clang
11145         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11146         with Clang.  Problem reported privately by Mattias Engdegård.
11147         Also, insulate intprops.h and verify.h better against each other’s
11148         definitions of __has_builtin on non-Clang hosts.
11149         * lib/intprops.h (__has_builtin): Define a temporary substitute
11150         if __has_builtin is not already defined.
11151         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11152         New temporary internal macros.
11153         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11154         Now two separate macros, replacing the old
11155         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11156         __builtin_mul_overflow is like the rest.  All uses changed.
11157         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11158         Adjust to above changes.
11159         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11160         longer relevant.  All uses changed.
11161         * lib/verify.h (__has_builtin): Treat like intprops.h,
11162         so that the two .h files do not collide with each other.
11163         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11164         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11166 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11168         intprops: say why not Clang __builtin_add_overflow
11169         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11170         Mention Clang in comment, responding to a query from
11171         Mattias Engdegård.
11173 2019-08-24  Bruno Haible  <bruno@clisp.org>
11175         doc: Document most of the files outside of modules.
11176         * doc/gnulib.texi (Build Infrastructure Files,
11177         Release Management Files): New chapters.
11179 2019-08-24  Bruno Haible  <bruno@clisp.org>
11181         bootstrap: Keep in sync with the 'gettext' module.
11182         Reported by Assaf Gordon in
11183         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11184         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11185         * build-aux/po/remove-potcdate.sin: Likewise.
11187 2019-08-24  Bruno Haible  <bruno@clisp.org>
11189         crypto/gc-sha512: Add tests.
11190         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11191         * modules/crypto/gc-sha512-tests: New file.
11193         crypto/gc-sha256: Add tests.
11194         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11195         * modules/crypto/gc-sha256-tests: New file.
11197         crypto/gc-sha256, crypto/gc-sha512: New modules.
11198         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11199         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11200         (MAX_DIGEST_SIZE): Set to 64.
11201         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11202         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11203         (gc_sha256, gc_sha512): New functions.
11204         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11205         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11206         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11208 2019-08-24  Bruno Haible  <bruno@clisp.org>
11210         crypto/gc-sha1 tests: Improve output when the test fails.
11211         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
11212         output.
11214 2019-08-24  Bruno Haible  <bruno@clisp.org>
11216         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
11217         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
11218         LIBGCRYPT_HAS_MD_SM3.
11219         * lib/gc-libgcrypt.c: Include sm3.h.
11220         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
11221         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
11222         implementation if libgcrypt does not support SM3.
11224 2019-08-24  Bruno Haible  <bruno@clisp.org>
11226         crypto/gc-md2: Optimize and clarify code.
11227         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
11228         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
11229         is not needed.
11231 2019-08-24  Bruno Haible  <bruno@clisp.org>
11233         crypto/gc-md2: Add comment.
11234         * lib/gc-libgcrypt.c: Add comment.
11236 2019-08-24  Bruno Haible  <bruno@clisp.org>
11238         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
11239         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
11240         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
11241         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
11242         variable.
11244 2019-08-24  Bruno Haible  <bruno@clisp.org>
11246         crypto/gc: Fix link error with --with-libgcrypt.
11247         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
11248         AC_LIB_HAVE_LINKFLAGS invocation.
11250 2019-08-24  Bruno Haible  <bruno@clisp.org>
11252         crypto/gc: Access the module indicators correctly.
11253         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11254         * lib/gc-libgcrypt.c: Likewise.
11256 2019-08-24  Bruno Haible  <bruno@clisp.org>
11258         crypto/gc: Fix configuration with --with-libgcrypt.
11259         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11260         * modules/crypto/gc (Files): Add it.
11261         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11263 2019-08-24  Bruno Haible  <bruno@clisp.org>
11265         Remove unused file.
11266         * m4/stat-macros.m4: Remove file.
11268 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11270         New strip-trailing-space option for srclist-update
11271         * config/srclist-update (fixfile): Support new option.
11272         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11273         Use it.
11275 2019-08-20  Eric Blake  <eblake@redhat.com>
11277         accept4: Support SOCK_NONBLOCK, if defined
11278         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11280         accept4: Fix compilation when native accept4() exists.
11281         Reported by Richard W.M. Jones <rjones@redhat.com> in
11282         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11283         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11285 2019-08-18  Bruno Haible  <bruno@clisp.org>
11287         Defeat -flto GCC optimization in math autoconf tests.
11288         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11289         at <https://savannah.gnu.org/bugs/?56109>.
11290         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11291         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11292         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11293         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11294         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11295         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11296         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11297         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11298         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11299         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11300         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11301         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11303 2019-08-17  Bruno Haible  <bruno@clisp.org>
11305         windows-spin: Implement declared functions.
11306         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11307         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11308         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11309         name.
11311 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11313         intprops: port to Oracle Developer Studio 12.6
11314         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11315         typos that were in a section not compiled by GCC.
11317 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11319         intprops: support uchar, ushort _WRAPV dests
11320         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11321         when __builtin_add_overflow etc. and _Generic are not used.
11322         (_GL_INT_OP_WRAPV): Use it to support destinations that
11323         are unsigned char or unsigned short, even in compilers
11324         that lack __typeof__ and are not C11-compatible.
11326         intprops: pacify picky GCC
11327         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11328         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11329         possibly-incorrect result.
11330         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11331         about (A) used as a boolean, when A is an expression like 3 * 4.
11333         intprops: support unsigned *_WRAPV results
11334         Add support for unsigned, unsigned long, and unsigned long long
11335         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11336         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11337         bug with unsigned inputs reported by Eli Zaretskii in:
11338         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11339         * config/srclist.txt: Break the glibc connection for intprops.h
11340         temporarily, while more testing is done in Gnulib-using apps.
11341         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11342         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11343         Support unsigned results no narrower than unsigned int.  Report
11344         overflow correctly if some arguments are unsigned.
11345         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11346         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11347         the right thing with narrow args.
11348         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11349         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11350         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11351         * tests/test-intprops.c: Check for bugs and test new behavior.
11353 2019-08-14  Bruno Haible  <bruno@clisp.org>
11355         get_progname_of: New module.
11356         * lib/get_progname_of.h: New file.
11357         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11358         * lib/getprogname.c (getprogname): Tweak coding style.
11359         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11360         * modules/get_progname_of: New file.
11362 2019-08-14  Bruno Haible  <bruno@clisp.org>
11364         get_ppid_of: New module.
11365         * lib/get_ppid_of.h: New file.
11366         * lib/get_ppid_of.c: New file.
11367         * modules/get_ppid_of: New file.
11369 2019-08-13  Bruno Haible  <bruno@clisp.org>
11371         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11372         * tests/test-libtextstyle.c (main): Do not emit styling when the
11373         environment variable NO_COLOR is set.
11375 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11377         verify: improve diagnostic quality in recent GCC
11378         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11379         useful line number containing the top-level caller of the macro.
11380         So, bring back the older way of issuing a diagnostic containing
11381         the top-level call’s arg, so that it is easier to diagnose
11382         ‘verify’ failures with recent GCC.
11383         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
11384         Bring back DIAGNOSTIC arg.  All callers changed.
11385         (verify): Just use _GL_VERIFY.
11387 2019-08-11  Bruno Haible  <bruno@clisp.org>
11389         localcharset: Add more aliases for OS/2.
11390         Based on patch by KO Myung-Hun <komh78@gmail.com> in
11391         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
11392         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
11394 2019-08-10  Eric Blake  <eblake@redhat.com>
11396         configmake: Update advice on usage.
11397         * modules/configmake (Include): No longer necessary to include
11398         last, since configmake.h itself worries about collision avoidance.
11400 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
11402         parse-datetime: fix 'T' military timezone handling
11403         * lib/parse-datetime.y (zone):
11404         follow-up to the previous commit: the 'T' case is handled outside the
11405         conversion table (used as either military timezone UTC-7 or ISO8601
11406         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
11407         timezone letters.
11409 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11411         parse-datetime: fix military timezone letters
11412         Problem and trivial fix reported by Neil Hoggarth in:
11413         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
11414         * lib/parse-datetime.y (military_table):
11415         Do it the right way, not the RFC 822 way.
11417 2019-08-08  Eric Blake  <eblake@redhat.com>
11419         configmake: Avoid namespace pollution issue on mingw.
11420         * modules/configmake (Makefile.am): If the project uses
11421         <winsock2.h>, include that header before defining DATADIR.
11423 2019-07-28  Bruno Haible  <bruno@clisp.org>
11425         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
11426         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11428 2019-07-24  Bruno Haible  <bruno@clisp.org>
11430         pthread-h: Fix definitions of types and macros on mingw.
11431         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
11432         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
11433         not in use.
11434         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
11435         'pthread-once' is not in use.
11436         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
11437         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
11438         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
11439         in use.
11440         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
11441         Define also when module 'pthread-rwlock' is not in use.
11442         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
11443         also when module 'pthread-cond' is not in use.
11444         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
11445         'pthread-tss' is not in use.
11446         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
11447         use.
11449 2019-07-24  Simon Josefsson  <simon@josefsson.org>
11451         crypto/gc: Cope with libgcrypt without SM3.
11452         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
11454 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11456         backupfile: fix resource leak on memory failure
11457         Problem found by Coverity (CID 1484214).
11458         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
11460 2019-07-22  Bruno Haible  <bruno@clisp.org>
11462         Avoid missing-declarations warning in various tests.
11463         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
11464         test6, test_optional, test7, test8, test9, test10, test11, test12,
11465         test13, test14, test15, test_fun): Declare static.
11466         * tests/test-cnd.c (test_cnd_wait): Likewise.
11467         * tests/test-cond.c (test_cond): Likewise.
11469 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11471         pthread tests: Avoid missing-declarations warning.
11472         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
11474 2019-07-19  Bruno Haible  <bruno@clisp.org>
11476         parse-datetime: Avoid warnings from bison versions >= 3.3.
11477         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
11478         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
11480 2019-07-19  Bruno Haible  <bruno@clisp.org>
11482         parse-datetime: Require Bison 2.4 or newer.
11483         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
11484         Code taken from gettext's intl.m4.
11485         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
11486         of YACC.
11488 2019-07-19  Bruno Haible  <bruno@clisp.org>
11490         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
11491         * lib/areadlink-with-size.c: Include <string.h>.
11492         * lib/areadlinkat-with-size.c: Likewise.
11493         * lib/xgethostname.c: Likewise.
11494         * lib/xgetdomainname.c: Likewise.
11496 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
11498         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
11499         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
11500         "%pure-parser".  The former is available since Bison 2.3b (2008),
11501         while the latter is marked as obsolete since version 3.4 (May 2019).
11503 2019-07-16  Bruno Haible  <bruno@clisp.org>
11505         update-copyright: Make it work again (regression from 2019-06-15).
11506         Reported by Brian C. Lane <bcl@redhat.com>.
11507         * build-aux/update-copyright: Add back the -0777, -p, -i options.
11509 2019-07-14  Bruno Haible  <bruno@clisp.org>
11511         doc: Update info about <pthread.h>.
11512         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
11513         of 'pthread'.
11515 2019-07-14  Bruno Haible  <bruno@clisp.org>
11517         pthread_sigmask tests: Use new multithread modules.
11518         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
11519         glthread/thread.h.
11520         (main_thread, killer_thread): Change type to pthread_t.
11521         (main): Update accordingly.
11522         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
11523         thread.
11525 2019-07-14  Bruno Haible  <bruno@clisp.org>
11527         pthread-tss: Add tests.
11528         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
11529         tests/test-tss.c.
11530         * modules/pthread-tss-tests: New file.
11532 2019-07-14  Bruno Haible  <bruno@clisp.org>
11534         pthread-cond: Add tests.
11535         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
11536         tests/test-cnd.c.
11537         * modules/pthread-cond-tests: New file.
11539 2019-07-14  Bruno Haible  <bruno@clisp.org>
11541         pthread-rwlock: Add tests.
11542         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
11543         * modules/pthread-rwlock-tests: New file.
11545 2019-07-14  Bruno Haible  <bruno@clisp.org>
11547         pthread-mutex: Add tests.
11548         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
11549         tests/test-mtx.c.
11550         * modules/pthread-mutex-tests: New file.
11552 2019-07-14  Bruno Haible  <bruno@clisp.org>
11554         pthread-once: Add tests.
11555         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
11556         tests/test-call_once.c.
11557         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
11558         tests/test-mtx.c.
11559         * modules/pthread-once-tests: New file.
11561 2019-07-14  Bruno Haible  <bruno@clisp.org>
11563         pthread-thread: Add tests.
11564         * tests/test-pthread-thread.c: New file, based on
11565         tests/test-thread_create.c and tests/test-thrd_create.c.
11566         * modules/pthread-thread-tests: New file.
11568 2019-07-14  Bruno Haible  <bruno@clisp.org>
11570         pthread: Turn into a convenience module.
11571         * lib/pthread.in.h: Remove declarations for extern inline functions.
11572         * lib/pthread.c: Remove file.
11573         * modules/pthread (Files): Remove it.
11574         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
11575         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
11576         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
11577         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
11578         GNULIB_PTHREAD.
11579         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
11581 2019-07-14  Bruno Haible  <bruno@clisp.org>
11583         pthread-spin: New module.
11584         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
11585         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
11586         inline definitions.
11587         * lib/pthread-spin.c: New file.
11588         * m4/pthread-spin.m4: New file.
11589         * modules/pthread-spin: New file.
11590         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
11591         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
11592         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
11593         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
11594         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
11596 2019-07-14  Bruno Haible  <bruno@clisp.org>
11598         pthread-tss: New module.
11599         * lib/pthread-tss.c: New file.
11600         * m4/pthread-tss.m4: New file.
11601         * modules/pthread-tss: New file.
11602         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
11603         * doc/posix-functions/pthread_setspecific.texi: Likewise.
11604         * doc/posix-functions/pthread_getspecific.texi: Likewise.
11605         * doc/posix-functions/pthread_key_delete.texi: Likewise.
11607 2019-07-14  Bruno Haible  <bruno@clisp.org>
11609         pthread-cond: New module.
11610         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
11611         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
11612         * lib/pthread-cond.c: New file.
11613         * m4/pthread-cond.m4: New file.
11614         * modules/pthread-cond: New file.
11615         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
11616         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
11617         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
11618         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
11619         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
11620         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
11621         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
11622         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
11624 2019-07-14  Bruno Haible  <bruno@clisp.org>
11626         pthread-rwlock: New module.
11627         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
11628         * m4/pthread-rwlock.m4: New file.
11629         * modules/pthread-rwlock: New file.
11630         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
11631         and the Android problem.
11632         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
11633         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
11634         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
11635         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
11636         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
11637         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
11638         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
11639         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
11640         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
11641         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
11643 2019-07-14  Bruno Haible  <bruno@clisp.org>
11645         pthread-mutex: New module.
11646         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
11647         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
11648         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
11649         pthread_mutex_unlock): Remove inline definitions.
11650         * lib/pthread-mutex.c: New file.
11651         * m4/pthread-mutex.m4: New file.
11652         * modules/pthread-mutex: New file.
11653         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
11654         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
11655         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
11656         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
11657         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11658         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11659         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
11660         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
11661         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
11662         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
11663         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
11664         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
11666 2019-07-14  Bruno Haible  <bruno@clisp.org>
11668         pthread-once: New module.
11669         * lib/pthread-once.c: New file.
11670         * m4/pthread-once.m4: New file.
11671         * modules/pthread-once: New file.
11672         * doc/posix-functions/pthread_once.texi: Mention the new module.
11674 2019-07-14  Bruno Haible  <bruno@clisp.org>
11676         pthread-thread: New module.
11677         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
11678         inline definitions.
11679         * lib/pthread-thread.c: New file.
11680         * m4/pthread-thread.m4: New file.
11681         * modules/pthread-thread: New file.
11682         * doc/posix-functions/pthread_create.texi: Mention the new module.
11683         * doc/posix-functions/pthread_attr_init.texi: Likewise.
11684         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
11685         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
11686         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
11687         * doc/posix-functions/pthread_self.texi: Likewise.
11688         * doc/posix-functions/pthread_equal.texi: Likewise.
11689         * doc/posix-functions/pthread_detach.texi: Likewise.
11690         * doc/posix-functions/pthread_join.texi: Likewise.
11691         * doc/posix-functions/pthread_exit.texi: Likewise.
11693 2019-07-14  Bruno Haible  <bruno@clisp.org>
11695         pthread-h: Prepare for adding new modules.
11696         * lib/pthread.in.h: Define the types and macros for each of the
11697         facilities separately.
11698         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
11699         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11700         HAVE_PTHREAD_PROCESS_SHARED.
11701         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
11702         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11703         HAVE_PTHREAD_PROCESS_SHARED.
11704         * modules/pthread-h (Makefile.am): Substitute
11705         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
11706         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
11708 2019-07-14  Bruno Haible  <bruno@clisp.org>
11710         pthread-h: Add declarations of essential pthread functions.
11711         * lib/pthread.in.h: Include snippets.
11712         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
11713         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
11714         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
11715         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
11716         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
11717         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
11718         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
11719         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
11720         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
11721         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
11722         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
11723         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
11724         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
11725         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
11726         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
11727         pthread_key_create, pthread_setspecific, pthread_getspecific,
11728         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
11729         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
11730         declarations.
11731         (pthread_mutex_timedlock): Move declaration.
11732         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
11733         declared.
11734         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
11735         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
11736         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
11737         HAVE_* and REPLACE_* variables for the new functions.
11738         * modules/pthread-h (Depends-on): Add snippet/c++defs,
11739         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
11740         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
11741         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
11742         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
11743         variables for the new functions. Split the sed script, to avoid the
11744         limit of 99 commands of HP-UX sed.
11745         * tests/test-pthread-c++.cc: Check the signature of the new functions.
11747 2019-07-14  Bruno Haible  <bruno@clisp.org>
11749         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
11750         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
11751         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
11752         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
11753         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
11754         * modules/pthread-h (Depends-on): Add threadlib.
11755         (Link): Change to $(LIBTHREAD).
11756         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
11757         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
11759 2019-07-14  Bruno Haible  <bruno@clisp.org>
11761         pthread-h: Add C++ tests.
11762         * tests/test-pthread-c++.cc: New file.
11763         * modules/pthread-h-c++-tests: New file.
11765 2019-07-14  Bruno Haible  <bruno@clisp.org>
11767         pthread-h: Add tests.
11768         * tests/test-pthread.c: New file.
11769         * modules/pthread-h-tests: New file.
11771 2019-07-14  Bruno Haible  <bruno@clisp.org>
11773         pthread-h: New module.
11774         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
11775         is 1.
11776         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
11777         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
11778         <pthread.h> pollutes the namespace; instead, prepare for generating a
11779         pthread.h always. Substitute HAVE_PTHREAD_H here.
11780         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
11781         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
11782         * modules/pthread-h: New file, based on modules/pthread.
11783         * modules/pthread: Rely on 'pthread-h'.
11784         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
11785         Update.
11786         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
11787         pthread.
11789 2019-07-14  Bruno Haible  <bruno@clisp.org>
11791         sched_yield: New module.
11792         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
11793         (sched_yield): New declaration.
11794         * lib/sched_yield.c: New file.
11795         * m4/sched_yield.m4: New file.
11796         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
11797         provide a replacement sched.h always. Test whether sched_yield is
11798         declared.
11799         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
11800         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
11801         (Makefile.am): Provide a replacement sched.h always. Substitute
11802         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
11803         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
11804         * modules/sched_yield: New file.
11805         * doc/posix-functions/sched_yield.texi: Mention the new module.
11807 2019-07-14  Bruno Haible  <bruno@clisp.org>
11809         windows-spin: New module.
11810         * lib/windows-spin.h: New file.
11811         * lib/windows-spin.c: New file.
11812         * modules/windows-spin: New file.
11814 2019-07-14  Bruno Haible  <bruno@clisp.org>
11816         windows-timedrwlock: New module.
11817         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
11818         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
11819         windows-cond.c.
11820         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
11821         redefinition conflict with windows-timedrwlock.h.
11822         * modules/windows-timedrwlock: New file.
11824 2019-07-14  Bruno Haible  <bruno@clisp.org>
11826         windows-rwlock: New module.
11827         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
11828         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
11829         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
11830         windows-initguard.h.
11831         (gl_rwlock_t): Define using glwthread_rwlock_t.
11832         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
11833         (glthread_rwlock_init): Define using glwthread_rwlock_init.
11834         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
11835         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
11836         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
11837         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
11838         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
11839         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
11840         glthread_rwlock_destroy_func): Remove declarations.
11841         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
11842         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
11843         gl_waitqueue_notify_all, glthread_rwlock_init_func,
11844         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
11845         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
11846         functions.
11847         * modules/windows-rwlock: New file.
11848         * modules/lock (Depends-on): Add windows-rwlock.
11850 2019-07-14  Bruno Haible  <bruno@clisp.org>
11852         windows-thread: Add support for creating a thread in detached state.
11853         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
11854         (glwthread_thread_create): Add attr argument.
11855         * lib/windows-thread.c (glwthread_thread_create): Likewise.
11856         * lib/glthread/thread.h (glthread_create): Update.
11857         * lib/thrd.c (thrd_create): Update.
11859 2019-07-14  Bruno Haible  <bruno@clisp.org>
11861         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
11862         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
11863         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
11864         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
11865         * lib/windows-mutex.h: Update.
11866         * lib/windows-recmutex.h: Likewise.
11867         * lib/windows-timedmutex.h: Likewise.
11868         * lib/windows-timedrecmutex.h: Likewise.
11869         * lib/windows-cond.h: Likewise.
11870         * lib/glthread/lock.h: Likewise.
11871         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
11872         lib/windows-spinlock.h.
11873         * modules/windows-recmutex (Files): Likewise.
11874         * modules/windows-timedmutex (Files): Likewise.
11875         * modules/windows-timedrecmutex (Files): Likewise.
11876         * modules/windows-cond (Files): Likewise.
11877         * modules/threads-h (Files): Likewise.
11879 2019-07-14  Bruno Haible  <bruno@clisp.org>
11881         doc: Fix info about pthread API in HP-UX.
11882         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
11884 2019-07-14  Bruno Haible  <bruno@clisp.org>
11886         threads-h: Fix generation of threads.h.
11887         * modules/threads-h (Makefile.am): Insert the required header file
11888         snippets.
11890 2019-07-09  Bruno Haible  <bruno@clisp.org>
11892         striconveh test: Fix a compilation failure when iconv is not available.
11893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11894         * tests/test-striconveh.c (main): Move iconv_close invocations inside
11895         HAVE_ICONV.
11897 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
11899         argmatch: adjust columns for help2man.
11900         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
11901         requires column 20 or more, return 20.
11903 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11905         areadlink-with-size: avoid realloc when size==0
11906         * lib/areadlink-with-size.c (areadlink_with_size):
11907         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
11908         Reallocate at the end to the actual size, to avoid memory waste,
11909         as suggested by Bruno Haible.  But when the guessed size is zero -
11910         useful when the size is unknown - do the initial small readlink
11911         into the stack, to avoid that realloc in the usual case.
11913 2019-07-06  Pádraig Brady  <P@draigBrady.com>
11915         areadlink-with-size: guess a buffer size with 0 size
11916         The size is usually taken from st_size, which can be zero,
11917         resulting in inefficient operation.
11918         Instead let zero select an initial memory allocation
11919         of 128 bytes, which most symlinks fit within.
11920         * lib/areadlink-with-size.c (areadlink_with_size):
11921         Start with a 128 byte buffer, for SIZE == 0.
11922         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
11924 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
11926         Replace manually crafted hex regexes with [:xdigit:]
11927         * build-aux/gitlog-to-changelog (parse_amend_file)
11928         (git_dir_option):
11929         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
11930         This patch is backported from Emacs (Bug#36167).
11932 2019-07-06  Bruno Haible  <bruno@clisp.org>
11934         error: Fix documentation.
11935         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
11936         module provides.
11937         * doc/glibc-functions/error_message_count.texi: Likewise.
11938         * doc/glibc-functions/error_one_per_line.texi: Likewise.
11939         * doc/glibc-functions/error_print_progname.texi: Likewise.
11941 2019-07-06  Bruno Haible  <bruno@clisp.org>
11943         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
11944         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
11945         and older is unsupported.
11946         * doc/**/*.texi: Update.
11948 2019-07-06  Bruno Haible  <bruno@clisp.org>
11950         doc: Remove documentation of Linux libc5 as a supported platform.
11951         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
11952         to Linux libc5.
11953         * doc/posix-functions/iswalpha.texi: Likewise.
11954         * doc/posix-functions/iswblank.texi: Likewise.
11955         * doc/posix-functions/iswcntrl.texi: Likewise.
11956         * doc/posix-functions/iswdigit.texi: Likewise.
11957         * doc/posix-functions/iswgraph.texi: Likewise.
11958         * doc/posix-functions/iswlower.texi: Likewise.
11959         * doc/posix-functions/iswprint.texi: Likewise.
11960         * doc/posix-functions/iswpunct.texi: Likewise.
11961         * doc/posix-functions/iswspace.texi: Likewise.
11962         * doc/posix-functions/iswupper.texi: Likewise.
11963         * doc/posix-functions/iswxdigit.texi: Likewise.
11964         * doc/posix-functions/snprintf.texi: Likewise.
11965         * doc/posix-functions/vsnprintf.texi: Likewise.
11967 2019-07-06  Bruno Haible  <bruno@clisp.org>
11969         doc: Remove documentation of Tandem/NSK as a supported platform.
11970         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
11971         Tandem/NSK.
11972         * doc/**/*.texi: Update.
11974 2019-07-06  Bruno Haible  <bruno@clisp.org>
11976         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
11977         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
11978         and older is unsupported.
11979         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
11980         Mac OS X 10.4 and older.
11981         * doc/posix-functions/asinl.texi: Likewise.
11982         * doc/posix-functions/atanl.texi: Likewise.
11983         * doc/posix-functions/cosl.texi: Likewise.
11984         * doc/posix-functions/expl.texi: Likewise.
11985         * doc/posix-functions/frexpl.texi: Likewise.
11986         * doc/posix-functions/gettimeofday.texi: Likewise.
11987         * doc/posix-functions/logl.texi: Likewise.
11988         * doc/posix-functions/mkstemp.texi: Likewise.
11989         * doc/posix-functions/sinl.texi: Likewise.
11990         * doc/posix-functions/sqrtl.texi: Likewise.
11991         * doc/posix-functions/tanl.texi: Likewise.
11992         * doc/posix-functions/wcswidth.texi: Likewise.
11993         * doc/**/*.texi: Update.
11995 2019-07-06  Bruno Haible  <bruno@clisp.org>
11997         doc: Remove documentation of AIX 4 as a supported platform.
11998         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
11999         unsupported.
12000         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12001         workarounds.
12002         * doc/posix-functions/strnlen.texi: Likewise.
12003         * doc/posix-headers/inttypes.texi: Likewise.
12004         * doc/**/*.texi: Update.
12006 2019-07-06  Bruno Haible  <bruno@clisp.org>
12008         doc: Remove documentation of HP-UX 10 as a supported platform.
12009         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12010         unsupported.
12011         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12012         workarounds.
12013         * doc/posix-functions/gmtime_r.texi: Likewise.
12014         * doc/posix-functions/localtime_r.texi: Likewise.
12015         * doc/posix-functions/mkstemp.texi: Likewise.
12016         * doc/**/*.texi: Update.
12018 2019-07-06  Bruno Haible  <bruno@clisp.org>
12020         doc: Remove documentation of Interix 3.5 as a supported platform.
12021         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12022         unsupported.
12023         * doc/posix-functions/select.texi: Don't mention Interix specific
12024         workarounds.
12025         * doc/posix-headers/signal.texi: Likewise.
12026         * doc/**/*.texi: Update.
12028 2019-07-06  Bruno Haible  <bruno@clisp.org>
12030         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12031         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12032         unsupported.
12033         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12034         workarounds.
12035         * doc/posix-functions/nl_langinfo.texi: Likewise.
12036         * doc/posix-functions/remainder.texi: Likewise.
12037         * doc/posix-functions/towlower.texi: Likewise.
12038         * doc/posix-functions/towupper.texi: Likewise.
12039         * doc/posix-functions/vsnprintf.texi: Likewise.
12040         * doc/posix-functions/wcscat.texi: Likewise.
12041         * doc/posix-functions/wcschr.texi: Likewise.
12042         * doc/posix-functions/wcscmp.texi: Likewise.
12043         * doc/posix-functions/wcscpy.texi: Likewise.
12044         * doc/posix-functions/wcscspn.texi: Likewise.
12045         * doc/posix-functions/wcslen.texi: Likewise.
12046         * doc/posix-functions/wcsncat.texi: Likewise.
12047         * doc/posix-functions/wcsncmp.texi: Likewise.
12048         * doc/posix-functions/wcsncpy.texi: Likewise.
12049         * doc/posix-functions/wcspbrk.texi: Likewise.
12050         * doc/posix-functions/wcsrchr.texi: Likewise.
12051         * doc/posix-functions/wcsspn.texi: Likewise.
12052         * doc/posix-headers/langinfo.texi: Likewise.
12053         * doc/posix-headers/signal.texi: Likewise.
12054         * doc/posix-headers/wchar.texi: Likewise.
12055         * doc/posix-headers/wctype.texi: Likewise.
12056         * doc/**/*.texi: Update.
12058 2019-07-05  Bruno Haible  <bruno@clisp.org>
12060         doc: Remove documentation of OSF/1 as supported platform.
12061         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12062         unsupported.
12063         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12064         workarounds.
12065         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12066         * doc/glibc-functions/ptsname_r.texi: Likewise.
12067         * doc/posix-functions/ceil.texi: Likewise.
12068         * doc/posix-functions/ceilf.texi: Likewise.
12069         * doc/posix-functions/ceill.texi: Likewise.
12070         * doc/posix-functions/fchdir.texi: Likewise.
12071         * doc/posix-functions/floor.texi: Likewise.
12072         * doc/posix-functions/floorf.texi: Likewise.
12073         * doc/posix-functions/fmod.texi: Likewise.
12074         * doc/posix-functions/fmodf.texi: Likewise.
12075         * doc/posix-functions/fmodl.texi: Likewise.
12076         * doc/posix-functions/log.texi: Likewise.
12077         * doc/posix-functions/logf.texi: Likewise.
12078         * doc/posix-functions/logl.texi: Likewise.
12079         * doc/posix-functions/log10.texi: Likewise.
12080         * doc/posix-functions/log10f.texi: Likewise.
12081         * doc/posix-functions/log10l.texi: Likewise.
12082         * doc/posix-functions/log2.texi: Likewise.
12083         * doc/posix-functions/log2f.texi: Likewise.
12084         * doc/posix-functions/log2l.texi: Likewise.
12085         * doc/posix-functions/mbrtowc.texi: Likewise.
12086         * doc/posix-functions/recv.texi: Likewise.
12087         * doc/posix-functions/recvfrom.texi: Likewise.
12088         * doc/posix-functions/remainder.texi: Likewise.
12089         * doc/posix-functions/remainderf.texi: Likewise.
12090         * doc/posix-functions/remainderl.texi: Likewise.
12091         * doc/posix-functions/round.texi: Likewise.
12092         * doc/posix-functions/roundf.texi: Likewise.
12093         * doc/posix-functions/roundl.texi: Likewise.
12094         * doc/posix-functions/send.texi: Likewise.
12095         * doc/posix-functions/sendto.texi: Likewise.
12096         * doc/posix-functions/setenv.texi: Likewise.
12097         * doc/posix-functions/snprintf.texi: Likewise.
12098         * doc/posix-functions/tcgetsid.texi: Likewise.
12099         * doc/posix-functions/trunc.texi: Likewise.
12100         * doc/posix-functions/truncf.texi: Likewise.
12101         * doc/posix-functions/truncl.texi: Likewise.
12102         * doc/posix-functions/ttyname_r.texi: Likewise.
12103         * doc/posix-functions/unsetenv.texi: Likewise.
12104         * doc/posix-functions/wcsrtombs.texi: Likewise.
12105         * doc/posix-headers/sys_select.texi: Likewise.
12106         * doc/posix-headers/wchar.texi: Likewise.
12107         * doc/posix-headers/wctype.texi: Likewise.
12108         * doc/**/*.texi: Update.
12110 2019-07-05  Bruno Haible  <bruno@clisp.org>
12112         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12113         * doc/**/*.texi: Update.
12115 2019-07-05  Bruno Haible  <bruno@clisp.org>
12117         doc: Remove documentation of Solaris 8 and older as supported platforms.
12118         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12119         unsupported.
12120         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12121         workarounds.
12122         * doc/posix-functions/memcmp.texi: Likewise.
12123         * doc/posix-functions/rename.texi: Likewise.
12124         * doc/posix-functions/tzset.texi: Likewise.
12125         * doc/posix-headers/wctype.texi: Likewise.
12126         * doc/**/*.texi: Update.
12128 2019-07-05  Bruno Haible  <bruno@clisp.org>
12130         doc: Remove documentation of Interix 3.5 as a supported platform.
12131         * doc/**/*.texi: Update.
12133 2019-07-05  Bruno Haible  <bruno@clisp.org>
12135         doc: Remove documentation of BeOS as a supported platform.
12136         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12137         unsupported.
12138         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12139         * doc/posix-functions/getdelim.texi: Likewise.
12140         * doc/**/*.texi: Update.
12142 2019-07-05  Bruno Haible  <bruno@clisp.org>
12144         thread, lock, cond, tls: Remove support for Pth threads.
12145         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12146         --enable-threads=pth any more.
12147         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12148         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12149         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12150         threads and ISO C11 threads.
12151         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12152         * lib/glthread/lock.h: Likewise.
12153         * lib/glthread/lock.c: Likewise.
12154         * lib/glthread/cond.h: Likewise.
12155         * lib/glthread/cond.c: Likewise.
12156         * lib/glthread/tls.h: Likewise.
12157         * lib/glthread/tls.c: Likewise.
12158         * lib/glthread/yield.h: Likewise.
12159         * lib/regex_internal.h: Likewise.
12160         * tests/test-thread_create.c: Likewise.
12161         * tests/test-lock.c: Likewise.
12162         * tests/test-cond.c: Likewise.
12163         * tests/test-tls.c: Likewise.
12164         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12165         (main): Sleep without calling gl_thread_yield.
12167 2019-07-05  Bruno Haible  <bruno@clisp.org>
12169         thread, lock, cond, tls: Remove support for old Solaris threads.
12170         Solaris >= 2.5.1 has POSIX threads.
12171         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12172         --enable-threads=solaris any more.
12173         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12174         * lib/glthread/thread.c: Update comment.
12175         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12176         * lib/glthread/lock.h: Likewise.
12177         * lib/glthread/lock.c: Likewise.
12178         * lib/glthread/cond.h: Likewise.
12179         * lib/glthread/cond.c: Likewise.
12180         * lib/glthread/tls.h: Likewise.
12181         * lib/glthread/tls.c: Likewise.
12182         * lib/glthread/yield.h: Likewise.
12183         * lib/regex_internal.h: Likewise.
12184         * tests/test-thread_create.c: Likewise.
12185         * tests/test-lock.c: Likewise.
12186         * tests/test-cond.c: Likewise.
12187         * tests/test-tls.c: Likewise.
12189 2019-07-05  Bruno Haible  <bruno@clisp.org>
12191         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12192         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12193         needed size is equal to the allocated size.
12194         * lib/getcwd.c (__getcwd): Likewise.
12196 2019-07-05  Bruno Haible  <bruno@clisp.org>
12198         xgetdomainname: Don't return an excessive memory allocation.
12199         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12200         before returning it.
12202 2019-07-05  Bruno Haible  <bruno@clisp.org>
12204         xgethostname: Don't return an excessive memory allocation.
12205         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12206         returning it.
12208 2019-07-05  Bruno Haible  <bruno@clisp.org>
12210         areadlinkat-with-size: Don't return an excessive memory allocation.
12211         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
12212         before returning it.
12214 2019-07-05  Bruno Haible  <bruno@clisp.org>
12216         areadlink-with-size: Don't return an excessive memory allocation.
12217         Reported by Andreas Dilger <adilger@whamcloud.com>.
12218         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
12219         before returning it.
12221 2019-07-03  Bruno Haible  <bruno@clisp.org>
12223         renameatu: Fix test failure on MSVC.
12224         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
12225         empty string.
12227 2019-07-03  Bruno Haible  <bruno@clisp.org>
12229         mbrtowc: Fix invalid use of mbtowc() on MSVC.
12230         * lib/mbrtowc.c: Include glthread/lock.h.
12231         (mbtowc_lock): New variable.
12232         (mbrtowc): Treat UTF-8 encoding without locking. For the other
12233         encodings, explicitly reset the internal state of mbtowc, and protect
12234         this through a lock.
12235         * modules/mbrtowc (Depends-on): Add lock.
12237 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
12239         argmatch: don't define _ in the header.
12240         Reported by Jim Meyering.
12241         * lib/argmatch.h (N_, _): Don't define.
12242         Use gettext instead.
12243         * lib/argmatch.h (_): Define.
12244         * tests/test-argmatch.c (N_): Define.
12246 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12248         verify: document ‘assume’ better
12249         * lib/verify.h: Reword doc (Bug#36370).
12251 2019-07-02  Bruno Haible  <bruno@clisp.org>
12253         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12254         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12255         "CPutf8".
12256         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12258 2019-07-02  Bruno Haible  <bruno@clisp.org>
12260         getcwd: Fix crash when invoked with size = 0 on MSVC.
12261         * lib/getcwd.c: Include msvc-inval.h.
12262         (getcwd_nothrow): New function/macro.
12263         (getcwd_system): New macro.
12264         (__getcwd): Use it instead of getcwd.
12265         * modules/getcwd (Depends-on): Add msvc-inval.
12266         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12268 2019-07-02  Bruno Haible  <bruno@clisp.org>
12270         nonblocking-pipe tests: Fix test failure on MSVC.
12271         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12272         native Windows.
12274 2019-07-02  Bruno Haible  <bruno@clisp.org>
12276         usleep: Implement with millisecond resolution on native Windows.
12277         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12278         * doc/pastposix-functions/usleep.texi: Update accordingly.
12280 2019-07-02  Bruno Haible  <bruno@clisp.org>
12282         lstat tests: Fix test failure on MSVC.
12283         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12284         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12286 2019-07-02  Bruno Haible  <bruno@clisp.org>
12288         stat tests: Fix test failure on MSVC.
12289         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12290         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12292 2019-07-02  Bruno Haible  <bruno@clisp.org>
12294         getaddrinfo tests: Fix test failure on MSVC.
12295         * tests/test-getaddrinfo.c: Include sockets.h.
12296         (main): Invoke gl_sockets_startup.
12297         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12299 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12301         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12302         * lib/poll.c: Call Windows native select() with Windows native timeval.
12304 2019-06-30  Bruno Haible  <bruno@clisp.org>
12306         argmatch: Fix compilation errors.
12307         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12308         * tests/test-argmatch.c (main): Update after last-minute function names
12309         change.
12311 2019-06-30  Bruno Haible  <bruno@clisp.org>
12313         Include <stdlib.h> when needed.
12314         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12315         * lib/fcntl.c: Likewise.
12316         * lib/mbscasestr.c: Likewise.
12317         * lib/mbssep.c: Likewise.
12318         * lib/mbsstr.c: Likewise.
12319         * lib/openat.c: Include <stdlib.h>, needed for free().
12320         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12321         abort().
12323 2019-06-30  Bruno Haible  <bruno@clisp.org>
12325         Include <stdlib.h> when needed.
12326         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12327         * lib/faccessat.c: Likewise.
12328         * lib/fchmodat.c: Likewise.
12329         * lib/fchownat.c: Likewise.
12330         * lib/fstatat.c: Likewise.
12331         * lib/mkfifoat.c: Likewise.
12332         * lib/mknodat.c: Likewise.
12333         * lib/readlinkat.c: Likewise.
12334         * lib/symlinkat.c: Likewise.
12335         * lib/utimensat.c: Likewise.
12336         * lib/mkdirat.c: Likewise. Include also the specification header.
12338 2019-06-30  Bruno Haible  <bruno@clisp.org>
12340         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12341         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12342         from gl_PREREQ_SYS_H_SOCKET.
12343         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12345         gl_PREREQ_SYS_H_WS2TCPIP.
12346         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12347         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12348         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12350 2019-06-30  Bruno Haible  <bruno@clisp.org>
12352         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12353         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12354         REPLACE_INET_NTOP to 1 always.
12355         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12356         REPLACE_INET_PTON to 1 always.
12358 2019-06-30  Bruno Haible  <bruno@clisp.org>
12360         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12361         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12362         not REPLACE_INET_NTOP.
12364 2019-06-30  Bruno Haible  <bruno@clisp.org>
12366         poll: Add comment.
12367         * lib/poll.c: Add comment about WSAPoll.
12369 2019-06-30  Bruno Haible  <bruno@clisp.org>
12371         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12372         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12373         * lib/poll.in.h: Include <winsock2.h>.
12374         (POLL*, pollfd): Override on native Windows.
12375         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12376         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12377         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12379 2019-06-28  Bruno Haible  <bruno@clisp.org>
12381         accept4: Fix compilation error on OpenIndiana.
12382         Reported by Michal Nowak <mnowak@startmail.com>
12383         via Mark H Weaver <mhw@netris.org>.
12384         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
12385         whether it exists as a function.
12387 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12389         strverscmp: sync from glibc
12390         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
12391         comments, include libc-config.h, define __strverscmp to be
12392         strverscmp, and don’t assume types line uint8_t and int8_t that
12393         that C99 doesn’t guarantee.
12394         [!_LIBC]: Include libc-config.h; define __strverscmp.
12395         Include stdint.h.
12396         (__strverscmp): Assume C99.  Use uint_least8_t
12397         and int_least8_t instead of unsigned char and signed char.
12398         * modules/strverscmp (Depends-on): Add libc-config, stdint.
12400 2019-06-25  Bruno Haible  <bruno@clisp.org>
12402         tss tests: Add tests for destructors and races.
12403         * tests/test-tss.c (worker_thread): Fix typo in debug message.
12404         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
12405         functions.
12406         (main): Invoke them.
12407         * modules/tls-tests (Depends-on): Add mtx.
12409 2019-06-25  Bruno Haible  <bruno@clisp.org>
12411         tls tests: Add tests for destructors and races.
12412         * tests/test-tls.c: Include glthread/lock.h.
12413         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
12414         functions.
12415         (main): Invoke them.
12416         * modules/tls-tests (Depends-on): Add lock.
12418 2019-06-25  Bruno Haible  <bruno@clisp.org>
12420         windows-tls: Implement TLS key destructors for native Windows.
12421         * lib/windows-tls.h (glwthread_tls_process_destructors): New
12422         declaration.
12423         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
12424         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
12425         (dtor_table_init_once, dtor_table_lock: New variables.
12426         (struct dtor): New type.
12427         (dtor_table, dtors_count, dtors_used, dtors_allocated,
12428         dtor_processing_threads): New variables.
12429         (dtor_table_initialize, dtor_table_ensure_initialized,
12430         dtor_table_shrink_used, glwthread_tls_process_destructors): New
12431         functions.
12432         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
12433         handle non-NULL destructors.
12434         * modules/windows-tls (Depends-on): Add windows-once.
12435         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
12436         Use the functions declared in windows-tls.h.
12437         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
12438         GLWTHREAD_DESTRUCTOR_ITERATIONS.
12439         * lib/windows-thread.c: Include windows-tls.h.
12440         (wrapper_func, glwthread_thread_exit): Invoke
12441         glwthread_tls_process_destructors.
12442         * modules/windows-thread (Depends-on): Add windows-tls.
12444 2019-06-25  Bruno Haible  <bruno@clisp.org>
12446         threadlib: Avoid autoconf warning "was expanded before it was required".
12447         * modules/threadlib (configure.ac): Require gl_THREADLIB.
12449 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
12451         argmatch: remove duplicate const qualifier
12452         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
12454 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12456         unistd: stddef.h and sys/types.h namespace cleanup
12457         * lib/unistd.in.h [__GLIBC__]:
12458         Do not include stddef.h or sys/types.h.
12459         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
12460         supposed to declare off_t and ssize_t.  Problem found when looking
12461         at why @GNULIB_PWRITE@ was different from the newly-added
12462         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
12464 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12466         maintainer-makefile: restore portability to non-GNU awks
12467         Reported by Tim Rühsen.
12468         * top/maint.mk (AWK): New variable.  Use it.
12469         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
12471 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12473         Document setvbuf _IOLBF problem
12474         * doc/posix-functions/setvbuf.texi (setvbuf):
12475         Document MS-Windows portability problem with _IOLBF.
12477         Document lseek SEEK_DATA/SEEK_HOLE
12478         * doc/posix-functions/lseek.texi (lseek):
12479         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
12481 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12483         argmatch: put all the docs member last.
12484         Reported by Bruno Haible.
12485         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
12486         member before the docs done.
12487         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
12489 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
12491         argmatch: add support to generate the usage message.
12492         * lib/argmatch.c: Move some #includes and gettext support to...
12493         * lib/argmatch.h: here.
12494         (ARGMATCH_DEFINE_GROUP): New macro.
12495         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
12496         (argmatch_backup_group): New.
12497         (CHECK): New.
12498         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
12499         argmatch_backup_argument and argmatch_backup_usage.
12500         * modules/argmatch: We depend on c99.
12501         * doc/argmatch.texi (Recognizing Option Arguments): New.
12502         * doc/gnulib.texi: Use it.
12504 2019-06-21  Bruno Haible  <bruno@clisp.org>
12506         thrd: Add comment.
12507         * lib/thrd.c (pthread_main_func): Add comment.
12509 2019-06-21  Bruno Haible  <bruno@clisp.org>
12511         threads-h: Define 'thread_local' if and only if it actually works.
12512         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
12513         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
12514         Oracle Solaris Studio C. Compile a simple program, to see whether
12515         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
12516         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
12517         * lib/threads.in.h (thread_local): Undefine if it does not work.
12518         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
12519         (Link): Mention LIBTHREADLOCAL.
12520         * tests/test-threads.c: Don't check that thread_local is defined.
12521         * tests/test-thread_local.c: New file.
12522         * modules/threads-h-tests (Files): Add it and macros.h.
12523         (Depends-on): Add thrd and stdint.
12524         (configure.ac): Test whether 'alarm' is declared.
12525         (Makefile.am): Arrange to build and link test-thread_local.
12526         * doc/posix-headers/threads.texi: Mention the platforms that don't
12527         support 'thread_local'.
12529 2019-06-20  Bruno Haible  <bruno@clisp.org>
12531         threads-h: Simplify link dependencies.
12532         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
12533         Don't set LTLIBSTDTHREAD.
12534         * modules/thrd (Link): Simplify accordingly.
12535         * modules/mtx (Link): Likewise.
12536         * modules/cnd (Link): Likewise.
12537         * modules/tss (Link): Likewise.
12538         * modules/threads (Link): Likewise.
12540 2019-06-20  Bruno Haible  <bruno@clisp.org>
12542         threads-h: Fix link error on FreeBSD 11.
12543         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
12544         also with -lpthread.
12546 2019-06-20  Bruno Haible  <bruno@clisp.org>
12548         threadlib: Fix typo (regression from today).
12549         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
12551 2019-06-20  Bruno Haible  <bruno@clisp.org>
12553         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
12554         * lib/windows-thread.c: Include <errno.h>.
12555         * lib/windows-tls.c: Likewise.
12557 2019-06-20  Bruno Haible  <bruno@clisp.org>
12559         tss tests: Small improvement.
12560         * tests/test-tss.c (test_tss): Pass a different id to each thread.
12562 2019-06-20  Bruno Haible  <bruno@clisp.org>
12564         threads: New module.
12565         * modules/threads: New file.
12567 2019-06-20  Bruno Haible  <bruno@clisp.org>
12569         tss: Add tests.
12570         * tests/test-tss.c: New file, based on tests/test-tls.c.
12571         * modules/tss-tests: New file.
12573 2019-06-20  Bruno Haible  <bruno@clisp.org>
12575         cnd: Add tests.
12576         * tests/test-cnd.c: New file, based on tests/test-cond.c.
12577         * modules/cnd-tests: New file.
12579 2019-06-20  Bruno Haible  <bruno@clisp.org>
12581         mtx: Add tests.
12582         * tests/test-mtx.c: New file, based on tests/test-lock.c.
12583         * tests/test-call_once.c: New file, based on tests/test-once.c.
12584         * modules/mtx-tests: New file.
12586 2019-06-20  Bruno Haible  <bruno@clisp.org>
12588         thrd: Add tests.
12589         * tests/test-thrd_create.c: New file, based on
12590         tests/test-thread_create.c.
12591         * tests/test-thrd_current.c: New file, based on
12592         tests/test-thread_self.c.
12593         * modules/thrd-tests: New file.
12595 2019-06-20  Bruno Haible  <bruno@clisp.org>
12597         tss: New module.
12598         * lib/tss.c: New file.
12599         * modules/tss: New file.
12600         * doc/posix-functions/tss_create.texi: Mention the new module.
12601         * doc/posix-functions/tss_set.texi: Likewise.
12602         * doc/posix-functions/tss_get.texi: Likewise.
12603         * doc/posix-functions/tss_delete.texi: Likewise.
12605 2019-06-20  Bruno Haible  <bruno@clisp.org>
12607         cnd: New module.
12608         * lib/cnd.c: New file.
12609         * modules/cnd: New file.
12610         * doc/posix-functions/cnd_init.texi: Mention the new module.
12611         * doc/posix-functions/cnd_wait.texi: Likewise.
12612         * doc/posix-functions/cnd_timedwait.texi: Likewise.
12613         * doc/posix-functions/cnd_signal.texi: Likewise.
12614         * doc/posix-functions/cnd_broadcast.texi: Likewise.
12615         * doc/posix-functions/cnd_destroy.texi: Likewise.
12617 2019-06-20  Bruno Haible  <bruno@clisp.org>
12619         mtx: New module.
12620         * lib/mtx.c: New file.
12621         * modules/mtx: New file.
12622         * doc/posix-functions/call_once.texi: Mention the new module.
12623         * doc/posix-functions/mtx_init.texi: Likewise.
12624         * doc/posix-functions/mtx_lock.texi: Likewise.
12625         * doc/posix-functions/mtx_trylock.texi: Likewise.
12626         * doc/posix-functions/mtx_timedlock.texi: Likewise.
12627         * doc/posix-functions/mtx_unlock.texi: Likewise.
12628         * doc/posix-functions/mtx_destroy.texi: Likewise.
12630 2019-06-20  Bruno Haible  <bruno@clisp.org>
12632         thrd: New module.
12633         * lib/thrd.c: New file.
12634         * m4/thrd.m4: New file.
12635         * modules/thrd: New file.
12636         * doc/posix-functions/thrd_current.texi: Mention the new module.
12637         * doc/posix-functions/thrd_detach.texi: Likewise.
12638         * doc/posix-functions/thrd_equal.texi: Likewise.
12639         * doc/posix-functions/thrd_exit.texi: Likewise.
12640         * doc/posix-functions/thrd_sleep.texi: Likewise.
12641         * doc/posix-functions/thrd_yield.texi: Likewise.
12642         * doc/posix-functions/thrd_create.texi: Mention the new module and the
12643         AIX bug.
12644         * doc/posix-functions/thrd_join.texi: Mention the new module and the
12645         AIX and Solaris bugs.
12647 2019-06-20  Bruno Haible  <bruno@clisp.org>
12649         threads-h: Add tests.
12650         * tests/test-threads.c: New file.
12651         * modules/threads-h-tests: New file.
12652         * tests/test-threads-c++.cc: New file.
12653         * modules/threads-h-c++-tests: New file.
12655 2019-06-20  Bruno Haible  <bruno@clisp.org>
12657         threads-h: New module.
12658         * lib/threads.in.h: New file.
12659         * m4/threads.m4: New file.
12660         * m4/yield.m4 (gl_YIELD): Update comment.
12661         * modules/threads-h: New file.
12662         * modules/yields (configure.ac): Use AC_REQUIRE.
12663         * doc/posix-headers/threads.texi: Mention the new module and the AIX
12664         bugs.
12666 2019-06-20  Bruno Haible  <bruno@clisp.org>
12668         windows-thread: New module.
12669         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
12670         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
12671         * lib/glthread/thread.h: Include windows-thread.h.
12672         (gl_thread_t): Define using glwthread_thread_t.
12673         (glthread_create): Define using glwthread_thread_create.
12674         (glthread_join): Define using glwthread_thread_join.
12675         (gl_thread_self): Define using glwthread_thread_self.
12676         (gl_thread_exit): Define using glwthread_thread_exit.
12677         (glthread_create_func, glthread_join_func, gl_thread_self_func,
12678         gl_thread_exit_func): Remove declarations.
12679         * lib/glthread/thread.c (self_key): Remove variable.
12680         (do_init_self_key, init_self_key): Remove functions.
12681         (struct gl_thread_struct): Remove type.
12682         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
12683         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
12684         functions.
12685         * modules/windows-thread: New file.
12686         * modules/thread (Depends-on): Add windows-thread.
12688 2019-06-20  Bruno Haible  <bruno@clisp.org>
12690         windows-tls: New module.
12691         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
12692         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
12693         * lib/glthread/tls.h: Include windows-tls.h.
12694         (gl_tls_key_t): Define using glwthread_tls_key_t.
12695         * modules/windows-tls: New file.
12696         * modules/tls (Depends-on): Add windows-tls.
12698 2019-06-20  Bruno Haible  <bruno@clisp.org>
12700         windows-cond: New module.
12701         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
12702         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
12703         * lib/glthread/cond.h: Include windows-cond.h.
12704         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
12705         (gl_cond_t): Define using glwthread_cond_t.
12706         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
12707         (glthread_cond_init): Define using glwthread_cond_init.
12708         (glthread_cond_wait): Define using glwthread_cond_wait.
12709         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
12710         (glthread_cond_signal): Define using glwthread_cond_signal.
12711         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
12712         (glthread_cond_destroy): Define using glwthread_cond_destroy.
12713         (glthread_cond_init_func, glthread_cond_wait_func,
12714         glthread_cond_timedwait_func, glthread_cond_signal_func,
12715         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12716         declarations.
12717         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
12718         types.
12719         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
12720         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
12721         glthread_cond_init_func, glthread_cond_wait_func,
12722         glthread_cond_timedwait_func, glthread_cond_signal_func,
12723         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12724         functions.
12725         * modules/windows-cond: New file.
12726         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
12728 2019-06-20  Bruno Haible  <bruno@clisp.org>
12730         windows-timedrecmutex: New module.
12731         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
12732         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
12733         * modules/windows-timedrecmutex: New file.
12735 2019-06-20  Bruno Haible  <bruno@clisp.org>
12737         windows-timedmutex: New module.
12738         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
12739         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
12740         * modules/windows-timedmutex: New file.
12742 2019-06-20  Bruno Haible  <bruno@clisp.org>
12744         windows-recmutex: New module.
12745         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
12746         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
12747         * lib/glthread/lock.h: Include windows-recmutex.h.
12748         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
12749         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
12750         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
12751         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
12752         (glthread_recursive_lock_unlock): Define using
12753         glwthread_recmutex_unlock.
12754         (glthread_recursive_lock_destroy): Define using
12755         glwthread_recmutex_destroy.
12756         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
12757         glthread_recursive_lock_unlock_func,
12758         glthread_recursive_lock_destroy_func): Remove declarations.
12759         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
12760         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
12761         glthread_recursive_lock_destroy_func): Remove functions.
12762         * modules/windows-recmutex: New file.
12763         * modules/lock (Depends-on): Add windows-recmutex.
12765 2019-06-20  Bruno Haible  <bruno@clisp.org>
12767         windows-mutex: New module.
12768         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
12769         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
12770         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
12771         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
12772         (gl_spinlock_t): Remove type.
12773         (gl_lock_t): Define using glwthread_mutex_t.
12774         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
12775         (glthread_lock_init): Define using glwthread_mutex_init.
12776         (glthread_lock_lock): Define using glwthread_mutex_lock.
12777         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
12778         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
12779         (glthread_lock_init_func, glthread_lock_lock_func,
12780         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12781         declarations.
12782         Use glwthread_spinlock_t instead of gl_spinlock_t.
12783         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
12784         GLWTHREAD_SPINLOCK_INIT.
12785         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
12786         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12787         functions.
12788         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
12789         gl_spinlock_t.
12790         * modules/windows-mutex: New file.
12791         * modules/lock (Depends-on): Add windows-mutex.
12793 2019-06-20  Bruno Haible  <bruno@clisp.org>
12795         windows-once: New module.
12796         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
12797         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
12798         * lib/glthread/lock.h: Include windows-once.h.
12799         (gl_once_t): Define using glwthread_once_t.
12800         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
12801         (glthread_once): Define using glwthread_once.
12802         (glthread_once_func): Remove declaration.
12803         * lib/glthread/lock.c (glthread_once_func): Remove function.
12804         * modules/windows-once: New file.
12805         * modules/lock (Depends-on): Add windows-once.
12807 2019-06-20  Bruno Haible  <bruno@clisp.org>
12809         lock, cond: Avoid possible counter wraparound on Windows.
12810         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
12811         field of the guard unchanged if it was already positive.
12812         (glthread_rwlock_rdlock_func): Likewise.
12813         (glthread_rwlock_wrlock_func): Likewise.
12814         (glthread_recursive_lock_lock_func): Likewise.
12815         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
12816         (glthread_cond_timedwait_func): Likewise.
12818 2019-06-20  Bruno Haible  <bruno@clisp.org>
12820         cond: Make glthread_cond_timedwait more reliable on Windows.
12821         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
12822         condition variable before looking at the current time.
12824 2019-06-20  Bruno Haible  <bruno@clisp.org>
12826         pthread_mutex_timedlock: New module.
12827         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
12828         new declaration.
12829         * lib/pthread_mutex_timedlock.c: New file.
12830         * m4/pthread_mutex_timedlock.m4: New file.
12831         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
12832         whether pthread_mutex_timedlock is declared.
12833         (gl_PTHREAD_MODULE_INDICATOR): New macro.
12834         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12835         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12836         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
12837         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12838         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12839         * modules/pthread_mutex_timedlock: New file.
12840         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
12841         module.
12843 2019-06-20  Bruno Haible  <bruno@clisp.org>
12845         thread, lock, cond, tls: Recognize C11 multithreaded applications.
12846         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
12847         * lib/glthread/thread.h (c11_threads_in_use): New macro.
12848         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12849         * lib/glthread/lock.h (c11_threads_in_use): New macro.
12850         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12851         * lib/glthread/cond.h (c11_threads_in_use): New macro.
12852         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12853         * lib/glthread/tls.h (c11_threads_in_use): New macro.
12854         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12856 2019-06-20  Bruno Haible  <bruno@clisp.org>
12858         tls tests: Small improvements.
12859         * tests/test-tls.c: Include <stdint.h>.
12860         (worker_thread): Avoid gcc warning on 64-bit mingw.
12861         (test_tls): Pass a different id to each thread.
12862         * modules/tls-tests (Depends-on): Add stdint.
12864 2019-06-20  Bruno Haible  <bruno@clisp.org>
12866         cond tests: Simplify.
12867         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
12869 2019-06-20  Bruno Haible  <bruno@clisp.org>
12871         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
12872         * tests/test-lock.c (test_once): Don't reference fire_signal if
12873         !ENABLE_LOCKING.
12875 2019-06-19  Bruno Haible  <bruno@clisp.org>
12877         nanosleep: Relicense under LGPLv2+.
12878         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
12879         * modules/nanosleep (License): Change to LGPLv2+.
12881 2019-06-19  Bruno Haible  <bruno@clisp.org>
12883         Reorder pieces of header in perl scripts.
12884         The desired order is
12885         - Prologue part 1 (2 lines with #!)
12886         - Program short description
12887         - Copyright and license notice
12888         - Written-by notice
12889         - Program short description (optional)
12890         - Program long description (optional)
12891         - Prologue part 2
12892         - Time stamp
12893         - Code
12894         Reported by Paul Eggert.
12895         * build-aux/announce-gen: Reorder header.
12896         * build-aux/gitlog-to-changelog: Likewise.
12897         * build-aux/useless-if-before-free: Likewise.
12898         * build-aux/prefix-gnulib-mk: Add copyright notice and short
12899         description.
12900         * build-aux/update-copyright: Likewise. Add short description. Bump
12901         time-stamp-line-limit to 200.
12903 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12905         verify-tests: work around xlc bug
12906         Problem reported by Bruno Haible in:
12907         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
12908         * tests/test-verify.c (item): Move the arithmetic inside the
12909         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
12911 2019-06-16  Bruno Haible  <bruno@clisp.org>
12913         Restore Emacs time-stamp hook applicability.
12914         Reported by Darshit Shah <darnir@gnu.org>.
12915         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
12916         * build-aux/announce-gen: Likewise.
12917         * build-aux/gitlog-to-changelog: Likewise.
12918         * build-aux/prefix-gnulib-mk: Likewise.
12919         * build-aux/update-copyright: Likewise.
12921 2019-06-15  Bruno Haible  <bruno@clisp.org>
12923         Fix scripts to have valid executable format on Alpine Linux.
12924         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12925         Idea by Paul Eggert.
12926         * build-aux/useless-if-before-free: Use a prologue that starts with
12927         '#!/bin/sh'.
12928         * build-aux/announce-gen: Likewise.
12929         * build-aux/gitlog-to-changelog: Likewise.
12930         * build-aux/prefix-gnulib-mk: Likewise.
12931         * build-aux/update-copyright: Likewise.
12932         * tests/test-update-copyright.sh: Update test program accordingly.
12934 2019-06-10  Bruno Haible  <bruno@clisp.org>
12936         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
12937         Reported by Nikita Ermakov <arei@altlinux.org> in
12938         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
12939         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
12940         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
12942 2019-06-10  Bruno Haible  <bruno@clisp.org>
12944         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
12945         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
12946         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
12947         a copy of the path argument.
12948         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
12949         it.
12951 2019-06-10  Bruno Haible  <bruno@clisp.org>
12953         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
12954         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
12955         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
12956         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
12957         a copy of the path argument.
12958         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
12959         it.
12961 2019-06-10  Bruno Haible  <bruno@clisp.org>
12963         posix_spawn_file_actions_addfchdir: Add tests.
12964         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
12965         * tests/test-posix_spawn5.c: New file.
12966         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
12968 2019-06-10  Bruno Haible  <bruno@clisp.org>
12970         posix_spawn_file_actions_addfchdir: New module.
12971         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
12972         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
12973         union member 'fchdir_action'.
12974         * lib/spawn_faction_addfchdir.c: New file.
12975         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
12976         * m4/posix_spawn_faction_addfchdir.m4: New file.
12977         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
12978         'posix_spawn_file_actions_addfchdir' is present and whether
12979         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
12980         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
12981         posix_spawn_file_actions_addfchdir is declared.
12982         (gl_SPAWN_H_DEFAULTS): Initialize
12983         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12984         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12985         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
12986         * modules/spawn (Makefile.am): Substitute
12987         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12988         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
12989         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
12990         * modules/posix_spawn_file_actions_addfchdir: New file.
12991         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
12992         signature.
12993         * doc/posix-functions/posix_spawn.texi: Mention the new module.
12994         * doc/posix-functions/posix_spawnp.texi: Likewise.
12995         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
12996         Likewise.
12998 2019-06-10  Bruno Haible  <bruno@clisp.org>
13000         doc: Document existence of posix_spawn_file_actions_addchdir module.
13001         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13002         the posix_spawn_file_actions_addchdir module.
13004 2019-06-10  Bruno Haible  <bruno@clisp.org>
13006         posix_spawn-internal: Fix module description.
13007         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13008         from here...
13009         * modules/posix_spawnp (configure.ac): ... and here...
13010         * modules/posix_spawn-internal (configure.ac): ... to here.
13012 2019-06-10  Bruno Haible  <bruno@clisp.org>
13014         doc: Update and improve documentation of glibc functions.
13015         This is a series of commits that
13016         - updates the documentation to the state of glibc 2.29,
13017         - adds references to Linux man pages and glibc documentation,
13018         - marks Linux specific functions as such.
13019         These are the commits:
13020         doc: Update after removal of crypt functions from glibc 2.28.
13021         doc: Remove mention of function vm86 (does not exist on x86_64).
13022         doc: Remove mention of functions that are gone from glibc.
13023         doc: Mention that glibc no longer provides h_errno.
13024         doc: Mention the availability of specific functions in glibc versions.
13025         doc: Mention eaccess.
13026         doc: Add references to Linux man pages.
13027         doc: Add references to glibc documentation.
13028         doc: Mention inotify_* functions.
13029         doc: Mention ppoll.
13030         doc: Mention sched_getcpu.
13031         doc: Mention sync_file_range.
13032         doc: Mention epoll_pwait.
13033         doc: Mention eventfd, eventfd_read, eventfd_write.
13034         doc: Mention signalfd.
13035         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13036         doc: Mention epoll_create1.
13037         doc: Mention getauxval.
13038         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13039         doc: Mention nextdown, nextup.
13040         doc: Mention more ISO TS 18661-1 <math.h> functions.
13041         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13042         doc: Mention getrandom, getentropy.
13043         doc: Mention strfromf, strfromd, strfroml.
13044         doc: Mention preadv2, pwritev2.
13045         doc: Mention copy_file_range.
13046         doc: Mention memfd_create.
13047         doc: Mention mlock2.
13048         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13049         doc: Mention more ISO TS 18661-1 <math.h> functions.
13050         doc: Mention renameat2.
13051         doc: Mention statx.
13052         doc: Mention the ISO C11 multithreading header and functions.
13053         doc: Mention getcpu.
13054         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13055         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13056         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13057         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13058         doc: Some glibc functions also exist on Solaris 11.
13059         doc: Some glibc functions also exist on Solaris 11.4.
13060         doc: Some glibc functions also exist on FreeBSD.
13061         doc: Some glibc functions also exist on BeOS.
13062         doc: Some glibc functions also exist on Haiku.
13063         doc: Mark functions which exist only on Linux.
13064         doc: Mark functions which exist only on Linux and illumos.
13066 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13068         copy-file: fix typo
13069         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13071         copy-file-range: simplify into a stub
13072         Based on a comment by Florian Weimer in:
13073         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13074         It turns out that Emacs (which will use this module) won’t need an
13075         emulation and I suspect other programs won’t either, because these
13076         programs will need to fall back on read+write anyway.  Perhaps I
13077         am wrong and other programs will be able to use an emulation; if
13078         so, this patch can be reverted.
13079         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13080         Just call it copy_file_range.
13081         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13082         Check via AC_LINK_IFELSE.
13083         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13085 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13087         copy-file: prefer copy_file_range
13088         * lib/copy-file.c: Do not include xalloc.h.
13089         (qcopy_file_preserving): Allocate a buffer only if
13090         copy_file_range does not suffice.  If the allocation fails
13091         don't give up; just use a small stack-based buffer.
13092         Prefer copy_file_range if it works.
13093         * modules/copy-file (Depends-on): Add copy-file-range.
13094         Remove xalloc.
13096         copy-file-range: new module
13097         * MODULES.html.sh: Add copy-file-range.
13098         * lib/copy-file-range.c, m4/copy-file-range.m4:
13099         * modules/copy-file-range: New files.
13100         * lib/unistd.in.h (copy_file_range): Declare.
13101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13102         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13103         * modules/unistd (unistd.h): Substitute them.
13105 2019-05-28  Bruno Haible  <bruno@clisp.org>
13107         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13108         Reported by KO Myung-Hun <komh78@gmail.com> in
13109         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13110         * lib/binary-io.h (__gl_setmode_check): Remove function.
13111         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13112         * lib/binary-io.c (__gl_setmode_check): Remove function.
13113         (set_binary_mode): Define here on DJGPP and EMX. Inline
13114         __gl_setmode_check. In case of a tty, don't return an error code.
13116 2019-05-28  James Youngman  <jay@gnu.org>
13118         dirent-safer: Make opendir_safer usable from C++.
13119         * lib/dirent-safer.h: use extern "C".
13121 2019-05-28  James Youngman  <jay@gnu.org>
13123         canonicalize: Make canonicalize_filename_mode usable from C++.
13124         * lib/canonicalize.h: use extern "C".
13126 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13128         prefix-gnulib-mk: Fix CPPFLAGS migration.
13129         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13130         _a part of the library name.
13132 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13134         flexmember: update comments again
13135         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13137         flexmember: update comment
13138         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13140 2019-05-20  Bruno Haible  <bruno@clisp.org>
13142         setlocale: Improve fallback on macOS.
13143         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13144         invocation.
13145         (locales_with_principal_territory): New array.
13146         (langcmp, get_main_locale_with_same_language): New functions.
13147         (locales_with_principal_language): New array.
13148         (terrcmp, get_main_locale_with_same_territory): New functions.
13149         (rpl_setlocale): When setlocale_single failed, try again with a locale
13150         that is more likely to exist. Don't warn if the environment variable
13151         SETLOCALE_VERBOSE is not set.
13153 2019-05-19  Bruno Haible  <bruno@clisp.org>
13155         localename: Fix default on macOS.
13156         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13157         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13158         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13159         HAVE_CFLOCALECOPYCURRENT.
13160         * lib/localename.h (gl_locale_name_default): Update.
13162 2019-05-19  Karl Berry  <karl@freefriends.org>
13164         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13165         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13166         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13168 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13170         maintainer-makefile: catch uses of $< in non-implicit rules
13171         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13173 2019-05-18  Bruno Haible  <bruno@clisp.org>
13175         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13176         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13177         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13178         gl_use_threads accordingly.
13180 2019-05-18  Bruno Haible  <bruno@clisp.org>
13182         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13183         Reported by Tim Rühsen in
13184         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13185         and Michele Locati in
13186         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13187         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13188         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13189         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13190         in use and regardless which threads API is chosen.
13192 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13194         close-stream, closein, closeout: simplify
13195         I noticed this opportunity for simplification while drafting a
13196         new, related module that I haven’t had time to finish yet.
13197         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13198         * modules/close-stream (Files): Remove m4/close-stream.m4.
13199         (configure.ac): Omit gl_CLOSE_STREAM.
13200         * modules/closein (Files): Remove m4/closein.m4
13201         (configure.ac): Omit gl_CLOSEIN.
13202         * modules/closeout (Files): Remove m4/closeout.m4.
13203         (configure.ac): Omit gl_CLOSEOUT.
13205 2019-05-12  Bruno Haible  <bruno@clisp.org>
13207         libtool-next-version: New program.
13208         * build-aux/libtool-next-version: New file.
13210 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
13211             Bruno Haible  <bruno@clisp.org>
13213         version-etc: Ease translation.
13214         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
13215         URLs and formatting newlines out of translatable string.
13217 2019-05-11  Bruno Haible  <bruno@clisp.org>
13219         gnupload: Explain how to create symlinks.
13220         * build-aux/gnupload (usage): Add an example that creates symlinks.
13222 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13224         fpucw: port to gcc -pedantic
13225         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
13226         Use __extension__ if using ({ ... }).
13228         crypto/af_alg: port to strict C compilers
13229         * lib/af_alg.c: Include af_alg.h regardless, so that the
13230         compilation unit is nonempty.
13232 2019-05-10  Bruno Haible  <bruno@clisp.org>
13234         base64: Avoid false positive warning from Coverity.
13235         Reported by Kamil Dudka <kdudka@redhat.com>.
13236         Idea by Paul Eggert.
13237         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
13238         '& 0x3f' to the array index expressions. This convinces Coverity that
13239         there is no out-of-bounds array reference, regardless of the input.
13241 2019-05-09  Bruno Haible  <bruno@clisp.org>
13243         gettext: Update to gettext 0.20.
13244         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
13245         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
13246         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
13247         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
13248         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13249         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13250         (configure.ac): Request infrastructure compatible with gettext 0.20.
13251         * m4/glibc2.m4: Remove file.
13252         * m4/intdiv0.m4: Remove file.
13253         * m4/intl.m4: Remove file.
13254         * m4/intldir.m4: Remove file.
13255         * m4/intmax.m4: Remove file.
13256         * m4/printf-posix.m4: Remove file.
13257         * m4/uintmax_t.m4: Remove file.
13258         * m4/gettext.m4: Update from gettext 0.20.
13259         * m4/po.m4: Likewise.
13261 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13263         verify: remove verify_true
13264         * NEWS: Mention this.
13265         * lib/verify.h (verify_true): Remove.
13266         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13268         Support C2X and C++17 static_assert
13269         C2X and C++17 finally added support for a simple, single-argument
13270         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13271         doing back in 2005.  Implement static_assert on older platforms.
13272         The only remaining advantage of ‘verify’ is a shorter name.
13273         * doc/posix-headers/assert.texi (assert.h):
13274         * doc/verify.texi (Compile-time Assertions):
13275         Modernize for C2X and C++17.
13276         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13277         New macros.
13278         (_GL_HAVE__STATIC_ASSERT): Remove.
13279         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13280         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13281         string.  All callers changed.
13282         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13283         are used.  All callers changed.
13284         (_Static_assert): Allow either 1 or 2 args, and define if
13285         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13286         !_GL_HAVE__STATIC_ASSERT.
13287         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13288         of defining if !_GL_HAVE_STATIC_ASSERT.
13289         (verify_expr, verify): Don’t bother trying to copy the expression
13290         into the diagnostic, since 1-argument static_assert doesn’t.
13291         (verify): Prefer 1-argument _Static_assert if it works.
13292         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13294 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13296         Fix _GL_HAVE__STATIC_ASSERT typo
13297         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13298         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13300 2019-05-05  Bruno Haible  <bruno@clisp.org>
13302         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13303         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13304         via Akim Demaille <akim.demaille@gmail.com>.
13305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13306         en_US.UTF-8 locale, since that is more likely to be present than an
13307         fr_FR.UTF-8 locale.
13308         * tests/test-wcwidth.c (main): Check the width of U+2202.
13309         * doc/posix-functions/wcwidth.texi: Mention the issue.
13311 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13313         Port manywarnings to GCC 9
13314         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13315         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13316         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13317         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13318         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13319         --help=warnings output.
13320         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13321         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13322         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13324 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13326         Sync lib/mktime-internal.h from glibc
13327         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13328         * lib/mktime-internal.h: Autoupdate.
13330 2019-04-28  Bruno Haible  <bruno@clisp.org>
13332         tls tests: Prevent that the test takes too long.
13333         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13334         (main): Let the test fail if it takes more than 10 minutes.
13335         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13337 2019-04-27  Bruno Haible  <bruno@clisp.org>
13339         lock tests: Prevent that the test takes too long.
13340         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13341         (main): Let the test fail if it takes more than 10 minutes.
13342         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13344 2019-04-27  Bruno Haible  <bruno@clisp.org>
13346         localename: Fix crash on mingw (regression from 2018-11-23).
13347         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13348         locale name that is null.
13350 2019-04-27  Bruno Haible  <bruno@clisp.org>
13352         Fix gcc warnings on 64-bit mode mingw.
13353         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13354         * lib/gl_array_list.c: Likewise.
13355         * lib/gl_array_map.c: Likewise.
13356         * lib/gl_array_set.c: Likewise.
13357         * lib/gl_carray_list.c: Likewise.
13358         * lib/gl_sublist.c: Likewise.
13359         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13360         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13361         * lib/gl_hash_map.c (uintptr_t): Likewise.
13362         * lib/gl_hash_set.c (uintptr_t): Likewise.
13363         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13364         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13365         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13366         * lib/iconv.c (uintptr_t): Likewise.
13367         * lib/iconv_close.c (uintptr_t): Likewise.
13368         * tests/test-lock.c: Include <stdint.h>.
13369         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13370         'long'.
13371         * modules/clean-temp (Depends-on): Add stdint.
13372         * modules/array-list (Depends-on): Likewise.
13373         * modules/array-map (Depends-on): Likewise.
13374         * modules/array-set (Depends-on): Likewise.
13375         * modules/carray-list (Depends-on): Likewise.
13376         * modules/sublist (Depends-on): Likewise.
13377         * modules/lock-tests (Depends-on): Likewise.
13379 2019-04-27  Bruno Haible  <bruno@clisp.org>
13381         error: Tweak indentation.
13382         * lib/error.c: Correct indentation.
13384 2019-04-27  Bruno Haible  <bruno@clisp.org>
13386         term-style-control: Fix gcc warning on mingw.
13387         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
13388         of i.
13390 2019-04-26  Bruno Haible  <bruno@clisp.org>
13392         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
13393         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
13395 2019-04-26  Bruno Haible  <bruno@clisp.org>
13397         relocatable-prog: Fix gcc warning on mingw.
13398         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
13399         on EMX.
13401 2019-04-02  Bruno Haible  <bruno@clisp.org>
13403         gitsub.sh: New file.
13404         * top/gitsub.sh: New file.
13406 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
13408         argmatch: use void* for raw memory pointers
13409         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
13410         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
13411         to "values", keep char* for strings.
13413 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
13415         prefix-gnulib-mk: fix the support for gnulib-po
13416         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
13417         Don't touch HAVE_* variables.
13418         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
13420 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
13422         di-set: allow free with 'ino_map' being NULL.
13423         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
13424         is NULL.  Bug introduced in commit 3703dbbe88dd.
13425         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
13426         as a test.
13428 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
13430         * lib/str-two-way.h: Fix comment typo.
13432 2019-04-13  Bruno Haible  <bruno@clisp.org>
13434         x-to-1: Restore ability to use original calling convention.
13435         * build-aux/x-to-1.in: Add comments. Accept the original form of
13436         HELP2MAN argument as well as the form expected since 2012-12-12.
13438 2019-04-13  Bruno Haible  <bruno@clisp.org>
13440         x-to-1: Avoid failure due to missing perl modules.
13441         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
13442         needs are installed.
13444 2019-04-13  Bruno Haible  <bruno@clisp.org>
13446         openmp-init: New module.
13447         * modules/openmp-init: New file.
13448         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
13449         the changes from 2019-04-09.
13451 2019-04-12  Bruno Haible  <bruno@clisp.org>
13453         signbit: Fix compilation error when gnulib's math.h exists twice.
13454         * lib/math.in.h (GNULIB_defined_signbit): New macro.
13456 2019-04-12  Bruno Haible  <bruno@clisp.org>
13458         openmp: Fix compilation error on platforms without OpenMP.
13459         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
13461 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
13463         mountlist: make parsing /proc/self/mountinfo more robust
13464         Cater for the following issues with mountinfo parsing (the first
13465         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
13466         in <https://bugs.gnu.org/35137>).
13467         1. The fields source, target, mntroot and fstype may contain characters
13468         like '\r'; sscanf(3) fails to read such values with the %s format
13469         specifier because it would stop at such characters.
13470         Example: "mount -t tmpfs tmpfs /foo^Mbar".
13471         The only true separator in that file is the ' ' character.
13472         2. The source field may be an empty string, which happens e.g. with
13473         "mount -t tmpfs '' /target".
13474         3. The fstype field may contain mangled characters as well which need
13475         unescaping.
13476         * lib/mountlist.c (terminate_at_blank): Add utility function.
13477         (read_file_system_list): In the block trying to read the mountinfo file,
13478         avoid using sscanf(3) with %s format; instead, parse the above fields
13479         separated by spaces one by one.
13480         This also handles the case when the source field is an empty string.
13481         Unescape the fstype field.
13483 2019-04-09  Bruno Haible  <bruno@clisp.org>
13485         openmp: Add workaround for 32-bit programs on AIX.
13486         * lib/omp.in.h: New file.
13487         * lib/omp-init.c: New file, based on lib/nproc.c.
13488         * m4/omp_h.m4: New file.
13489         * modules/openmp (Files): Add them.
13490         (Depends-on): Add include_next, c-ctype, setenv.
13491         (configure.ac): Invoke gl_OMP_H.
13492         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
13493         (Include): Mention <omp.h>.
13495 2019-04-09  Bruno Haible  <bruno@clisp.org>
13497         nproc: Fix return value for privileged processes.
13498         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
13499         getpid().
13501 2019-04-07  Bruno Haible  <bruno@clisp.org>
13503         Add copyright notices in several files.
13504         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
13505         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
13506         * lib/libunistring.valgrind: Likewise.
13507         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
13508         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
13509         * lib/memchr.valgrind: Likewise.
13510         * lib/memchr2.valgrind: Likewise.
13511         * lib/rawmemchr.valgrind: Likewise.
13512         * lib/relocatable.valgrind: Likewise.
13513         * lib/strchrnul.valgrind: Likewise.
13515 2019-03-25  Bruno Haible  <bruno@clisp.org>
13517         term-style-control tests: Fix link error.
13518         Reported by Tom G. Christensen in
13519         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
13520         * modules/term-style-control-tests (Makefile.am): Link
13521         test-term-style-control-hello and test-term-style-control-yes against
13522         LIBINTL.
13524 2019-03-24  Bruno Haible  <bruno@clisp.org>
13526         term-style-control: Add tests.
13527         * tests/test-term-style-control-hello.c: New file.
13528         * tests/test-term-style-control-yes.c: New file.
13529         * modules/term-style-control-tests: New file.
13531         term-style-control: New module.
13532         * lib/term-style-control.h: New file, based on libtextstyle's
13533         term-ostream.oo.h and term-ostream.oo.c.
13534         * lib/term-style-control.c: New file, based on libtextstyle's
13535         term-ostream.oo.c.
13536         * modules/term-style-control: New file.
13538 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13540         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
13541         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
13542         C++98 appears to be supported by Clang, but not by GCC nor ICC.
13544 2019-03-23  Bruno Haible  <bruno@clisp.org>
13546         Support cross-compilation to musl libc.
13547         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
13548         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
13549         musl libc.
13550         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13551         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
13552         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13553         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13554         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13555         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
13556         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13557         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13558         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13559         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13560         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13561         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
13562         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13563         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13564         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13565         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13566         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13567         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13568         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
13569         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13570         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13572         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
13573         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
13575         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13576         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
13577         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
13578         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
13579         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
13580         * m4/log.m4 (gl_FUNC_LOG): Likewise.
13581         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
13582         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
13583         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
13584         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
13585         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
13586         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
13587         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
13588         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
13589         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
13590         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
13591         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
13592         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
13593         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13594         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
13595         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
13596         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
13597         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
13598         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
13599         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
13600         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
13601         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
13602         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13603         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
13604         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13605         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
13606         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13607         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13608         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
13609         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
13610         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13611         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13612         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13613         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
13614         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13615         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13616         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13617         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
13618         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13619         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
13620         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13621         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13622         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13623         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13624         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
13625         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13626         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13629 2019-03-23  Bruno Haible  <bruno@clisp.org>
13631         posix_spawn_file_actions_*: Document musl libc bugs.
13632         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
13633         the bug.
13634         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
13635         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
13636         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
13637         cross-compiling to a musl system, guess no.
13638         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
13639         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
13641 2019-03-23  Bruno Haible  <bruno@clisp.org>
13643         futimens: Document musl libc bug.
13644         * doc/posix-functions/futimens.texi: Mention the bug.
13645         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
13646         cross-compiling, guess no on glibc and musl systems.
13648 2019-03-23  Bruno Haible  <bruno@clisp.org>
13650         Clarify that cross-compilation guesses are guesses.
13651         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
13652         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
13653         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
13654         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
13655         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
13656         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
13657         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
13658         gl_cv_glob_lists_symlinks.
13659         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
13660         'guessing ' to ac_cv_func_malloc_0_nonnull.
13661         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
13662         'guessing ' to ac_cv_func_realloc_0_nonnull.
13663         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
13664         'guessing ' to gl_cv_func_poll.
13665         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
13666         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
13667         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
13669 2019-03-23  Bruno Haible  <bruno@clisp.org>
13671         strtold: Fix typo.
13672         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
13674 2019-03-23  Bruno Haible  <bruno@clisp.org>
13676         noreturn: In C++ mode with clang, use _Noreturn as fallback.
13677         Reported by Akim Demaille.
13678         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
13679         [[noreturn]] would not work, use _Noreturn instead.
13681 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13683         libtextstyle-optional: Fix compiler warnings.
13684         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
13685         as unused.
13687 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13689         bitset: fix memory leaks
13690         Reported by Bruno Haible.
13691         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
13692         * lib/bitset/vector.c (vbitset_free): New.
13693         (vbitset_vtable): Use it.
13695 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13697         bitset: minor changes
13698         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
13699         * lib/bitset/table.c: Formatting changes.
13700         Remove useless braces.
13701         Prefer using else in cascades of if/else-if with returns.
13702         * lib/bitset/vector.c: Reduce scopes.
13704 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13706         bitset: expose bitset_resize
13707         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
13708         * tests/test-bitset.c (check_attributes): Check bitset_resize.
13709         (main): Use a variable bitset as reference, since fixed does not support resize.
13711 2019-03-19  Bruno Haible  <bruno@clisp.org>
13713         doc: Document the 'stdnoreturn' and 'noreturn' modules.
13714         Reported by Akim Demaille.
13715         * doc/noreturn.texi: New file.
13716         * doc/gnulib.texi: Include it.
13718 2019-03-19  Bruno Haible  <bruno@clisp.org>
13720         doc: Document how to use 'static inline'.
13721         * doc/static-inline.texi: New file.
13722         * doc/gnulib.texi: Include it.
13724 2019-03-19  Bruno Haible  <bruno@clisp.org>
13726         libtextstyle-optional: Add tests.
13727         * tests/test-libtextstyle.c: New file, based on libtextstyle's
13728         adhoc-tests/hello.c.
13729         * tests/test-libtextstyle-default.css: New file, copied from
13730         libtextstyle's adhoc-tests/hello-default.css.
13731         * modules/libtextstyle-optional-tests: New file.
13733         libtextstyle-optional: New module.
13734         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
13735         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
13736         * modules/libtextstyle-optional: New file.
13738 2019-03-19  Bruno Haible  <bruno@clisp.org>
13740         c-stack: Make signal handlers more reliable.
13741         * lib/c-stack.c (progname): New variable.
13742         (die): Use it.
13743         (c_stack_action): Initialize it.
13744         (segv_handler): Save and restore errno.
13746 2019-03-19  Bruno Haible  <bruno@clisp.org>
13748         Help making signal handlers more reliable.
13749         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
13750         _GL_ASYNC_SAFE into config.h.
13751         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
13752         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
13753         argument.
13754         * lib/fatal-signal.c (action_t, uninstall_handlers,
13755         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
13756         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
13757         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
13758         _GL_ASYNC_SAFE.
13759         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
13760         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
13762 2019-03-18  Bruno Haible  <bruno@clisp.org>
13764         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
13765         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
13766         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
13768 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13770         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
13771         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
13772         GCC 4.8.
13774 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
13776         fts: minor simplification
13777         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
13779 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13781         bitset, timevar: Depend on c99.
13782         Reported by Bruno Haible.
13783         * modules/bitset, modules/timevar (Depends-on): Add c99.
13785 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13787         bitset: a bit (...) more tests
13788         * tests/test-bitset.c (check_attributes): Check zero and ones.
13790 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13792         bitset: fix overflows.
13793         Reported by Bruno Haible.
13794         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
13795         * lib/bitset/table.c (tbitset_test): last_bit is the position of
13796         the bit in the array of bitset_word, so be sure to take its modulo
13797         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
13798         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
13800 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
13802         bitset: style changes.
13803         * lib/bitset/table.c: Use NULL, not 0, for pointers.
13804         Formatting changes.
13805         (tbitset_list): Reduce scopes.
13807 2019-03-16  Bruno Haible  <bruno@clisp.org>
13809         fatal-signal: Pass the signal number to the action.
13810         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
13811         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
13812         (fatal_signal_handler): Pass the signal number to the action.
13813         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
13814         signal number as parameter.
13815         (create_temp_dir): Update.
13816         * lib/wait-process.c (cleanup_slaves_action): New function.
13817         (register_slave_subprocess): Update at_fatal_signal invocation.
13818         * NEWS: Mention the change.
13820 2019-03-16  Bruno Haible  <bruno@clisp.org>
13822         fatal-signal: Add function that lists the fatal signals.
13823         * lib/fatal-signal.h (get_fatal_signals): New declaration.
13824         * lib/fatal-signal.c (get_fatal_signals): New function.
13826 2019-03-14  Bruno Haible  <bruno@clisp.org>
13828         isatty: Make it return true in Cygwin consoles on native Windows.
13829         * lib/isatty.c: Include <string.h>.
13830         (GetProcAddress): New macro.
13831         (GetNamedPipeClientProcessIdFuncType): New type.
13832         (GetNamedPipeClientProcessIdFunc): New variable.
13833         (QueryFullProcessImageNameFuncType): New type.
13834         (QueryFullProcessImageNameFunc): New variable.
13835         (initialized): New variable.
13836         (initialize): New function.
13837         (IsCygwinConsoleHandle): New function.
13838         (isatty): Invoke it.
13839         * doc/posix-functions/isatty.texi: Mention the issue.
13841 2019-03-14  Bruno Haible  <bruno@clisp.org>
13843         all: Update URLs to msdn.microsoft.com.
13844         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
13845         was moved to docs.microsoft.com.
13847 2019-03-13  Bruno Haible  <bruno@clisp.org>
13849         gnulib-tool: Clarify the coding style.
13850         Suggested by Pavel Raiskup <praiskup@redhat.com>.
13851         * gnulib-tool: Add comment about coding style.
13853 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
13855         strtod: fix clash with strtold
13856         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
13857         * lib/strtod.c (compute_minus_zero, minus_zero):
13858         Simplify by remving the macro / external variable,
13859         and having just a function.  User changed.  This avoids
13860         the need for an external variable that might clash.
13862 2019-03-10  Bruno Haible  <bruno@clisp.org>
13864         alloca-opt: Fix conflict mingw's new <alloca.h> file.
13865         Reported by Eli Zaretskii <eliz@gnu.org>.
13866         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
13867         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
13868         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
13870 2019-03-10  Bruno Haible  <bruno@clisp.org>
13872         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
13873         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
13874         is in use.
13875         * tests/test-printf-posix2.c: Likewise.
13877 2019-03-10  Bruno Haible  <bruno@clisp.org>
13879         uninorm tests: Free allocated memory.
13880         * tests/uninorm/test-u32-normalize-big.h
13881         (struct normalization_test_file): Remove 'const' from allocated member.
13882         (free_normalization_test_file): New declaration.
13883         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
13884         memory.
13885         (free_normalization_test_file): New function.
13886         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
13887         'struct normalization_test_file' contents.
13888         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
13889         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
13890         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
13892 2019-03-10  Bruno Haible  <bruno@clisp.org>
13894         di-set: Fix memory leak.
13895         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
13896         not free().
13898 2019-03-10  Bruno Haible  <bruno@clisp.org>
13900         tests: Free allocated memory.
13901         Reported by <deltatau@protonmail.com> via Assaf Gordon.
13902         * tests/test-astrxfrm.c (main): Free allocated memory.
13903         * tests/test-bitset.c (compare, check_attributes): Free allocated
13904         bitsets.
13905         * tests/test-filenamecat.c (main): Free allocated memory.
13906         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
13907         * tests/test-freadptr.c (main): Likewise.
13908         * tests/test-freadptr2.c (main): Free allocated memory.
13909         * tests/test-freadseek.c (main): Likewise.
13910         * tests/test-gc-arcfour.c (main): Close allocated context.
13911         * tests/test-gc-arctwo.c (main): Likewise.
13912         * tests/test-gc-des.c (main): Close all allocated contexts.
13913         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
13914         * tests/test-pipe-filter-ii1.c (main): Likewise.
13915         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
13916         allocated file actions.
13917         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
13918         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
13919         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
13920         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
13921         * tests/test-strfmon_l.c (main): Free allocated locales.
13922         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
13923         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
13924         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13925         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
13926         * tests/unistr/test-chr.h (main): Free input32.
13927         * tests/unistr/test-strchr.h (test_strchr): Likewise.
13929 2019-03-10  Bruno Haible  <bruno@clisp.org>
13931         tests: Prepare for using valgrind.
13932         * tests/*.sh: Invoke all test programs through ${CHECKER}.
13933         * tests/*/*.sh: Likewise.
13934         * tests/test-freadptr.c (main): Update accordingly.
13935         * tests/test-freadseek.c (main): Likewise.
13937 2019-03-09  Bruno Haible  <bruno@clisp.org>
13939         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
13940         * lib/get-rusage-as.c (get_rusage_as): When compiled by
13941         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
13942         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
13943         before exiting.
13945 2019-03-09  Jim Meyering  <meyering@fb.com>
13947         test-userspec.c: don't print NULL
13948         * tests/test-userspec.c (main): A test release of gcc,
13949         9.0.1 20190310, warned that this test would attempt to
13950         print a NULL pointer via a %s printf format.  Fix that
13951         and remove the unnecessary preceding "!diag" conjunct.
13952         Also add a comment.
13954 2019-03-03  Bruno Haible  <bruno@clisp.org>
13956         getloadavg: Write NULL for the null pointer.
13957         Reported by Michal Privoznik <mprivozn@redhat.com>.
13958         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
13960 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
13962         alloca, tsearch-tests: Write NULL for the null pointer.
13963         * lib/alloca.c (i00afunc): Write NULL instead of 0.
13964         * tests/test-tsearch.c (mangle_tree): Likewise.
13966 2019-03-09  Bruno Haible  <bruno@clisp.org>
13968         strfmon_l: Fix -fsanitize=address finding.
13969         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
13970         <string.h>.
13971         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
13972         (directive_t, directives_t): New types.
13973         (fmon_parse): New function.
13974         (rpl_strfmon_l): Don't call va_arg more often than needed for the
13975         format string. Consume 'long double' arguments in places where the
13976         format string indicates so.
13977         * modules/strfmon_l (Depends-on): Add 'stdbool'.
13979 2019-03-09  Bruno Haible  <bruno@clisp.org>
13981         crypto/des: Fix undefined behaviour.
13982         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
13983         shift operations on 'int'.
13985 2019-03-09  Bruno Haible  <bruno@clisp.org>
13987         Fix undefined behaviour.
13988         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
13989         'unsigned int', to avoid shift operations on 'int'.
13990         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
13991         * tests/test-count-leading-zeros.c (main): Use a random number that has
13992         as many bits as TYPE, not only 2*15 or 2*31 bits.
13993         * tests/test-count-trailing-zeros.c (main): Likewise.
13994         * tests/test-count-one-bits.c (main): Likewise.
13995         * tests/test-memmem.c: Don't include "null-ptr.h".
13996         (main): Use zerosize_ptr() instead of null_ptr().
13997         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
13999 2019-03-08  Bruno Haible  <bruno@clisp.org>
14001         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14002         Reported by Jeffrey Walton <noloader@gmail.com>.
14003         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14004         invoke memset with a zero size.
14005         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14006         Likewise.
14007         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14008         Adjust accordingly.
14010 2019-03-08  Bruno Haible  <bruno@clisp.org>
14012         unistr/*, uniconv/*: Fix undefined behaviour.
14013         Reported by Jeffrey Walton <noloader@gmail.com>.
14014         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14015         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14016         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14017         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14019 2019-03-08  Bruno Haible  <bruno@clisp.org>
14021         unistr/u8-cmp: Fix undefined behaviour.
14022         Reported by Jeffrey Walton <noloader@gmail.com>.
14023         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14025 2019-03-08  Bruno Haible  <bruno@clisp.org>
14027         unictype/numeric: Fix undefined behaviour.
14028         Reported by Jeffrey Walton <noloader@gmail.com>.
14029         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14030         on shift overflow, caught by "gcc -fsanitize=undefined".
14031         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14032         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14033         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14035 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14037         git-version-gen: fix --version copyright year
14038         * build-aux/git-version-gen, build-aux/move-if-change (version):
14039         --version output copyright year is now taken from script year,
14040         so that it no longer needs to be updated by hand.
14042 2019-03-04  Bruno Haible  <bruno@clisp.org>
14044         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14045         This approach supports relocatable installation of shared libraries
14046         which depend on other shared libraries from the same package.
14047         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14048         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14049         wrapper around the original LIBTOOL.
14050         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14051         token '@loader_path' instead of '$ORIGIN'.
14052         * build-aux/libtool-reloc: New file.
14053         * modules/relocatable-prog (Files): Add it.
14054         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14055         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14056         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14057         Makefile.am, not in configure.ac.
14059 2019-03-04  Bruno Haible  <bruno@clisp.org>
14061         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14062         * build-aux/install-reloc: Revert change.
14063         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14065 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14067         nstrftime: support the ‘+’ flag
14068         * lib/nstrftime.c (add, __strftime_internal):
14069         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14070         (__strftime_internal): New arg ‘width’.  All uses changed.
14071         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14073 2019-02-24  Bruno Haible  <bruno@clisp.org>
14075         relocatable-prog: Improve verbose output.
14076         * build-aux/install-reloc (func_verbose): Escape characters that would
14077         be interpreted by the shell.
14079 2019-02-24  Bruno Haible  <bruno@clisp.org>
14081         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14082         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14083         "sys/stat.h".
14084         * lib/lstat.c: Likewise.
14085         * lib/fstat.c: Likewise.
14086         * lib/fstatat.c: Likewise.
14088 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14090         long-options: add parse_gnu_standard_options_only
14091         Discussed in https://bugs.gnu.org/33468 .
14093         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14094         (parse_gnu_standard_options_only): Add function to process
14095         the GNU default options --help and --version and fail for
14096         any other unknown long or short option. See
14097         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14098         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14099         * modules/long-options (depends-on): Add stdbool, exitfail.
14100         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14101         syntax-check rule, add new function name.
14103 2019-02-23  Bruno Haible  <bruno@clisp.org>
14105         relocatable-prog: Update documentation.
14106         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14107         the recent changes.
14109 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14111         nstrftime: tweak arg order
14112         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14113         All callers changed.  Suggested by TAMUKI Shoichi in:
14114         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14116 2019-02-23  Bruno Haible  <bruno@clisp.org>
14118         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14119         Reported by Paul Smith <psmith@gnu.org>.
14120         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14121         (func_relativize): New function, from gnulib-tool.
14122         Handle mode 'macosx' through invocations of 'otool' and
14123         'install_name_tool'.
14124         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14125         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14126         'install-reloc' invocation with mode 'macosx'.
14128 2019-02-23  Bruno Haible  <bruno@clisp.org>
14130         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14131         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14132         Hurd with glibc >= 2.27.
14134 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14136         nstrftime: merge glibc strftime changes
14137         This incorporates:
14138         2019-02-11 Fix a few whitespace arrangement inconsistencies
14139         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14140         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14141         2019-01-11 strftime: use the "L_" macro with character literals
14142         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14143         callers changed.  Default width of %Ey is now 2.  This is needed
14144         for proper handling of Japanese dates starting on 2019-05-01.
14146 2019-02-19  Bruno Haible  <bruno@clisp.org>
14148         relocatable-prog: Use $ORIGIN trick on more platforms.
14149         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14150         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14151         Solaris >= 10, Haiku. But don't use it on Android.
14152         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14153         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14155 2019-02-19  Bruno Haible  <bruno@clisp.org>
14157         progreloc: Speed up executable lookup on various platforms.
14158         * lib/progreloc.c: Include <errno.h>.
14159         (safe_read, full_read): New functions.
14160         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14161         prefer the information from the /proc file system to a PATH search.
14163 2019-02-19  Bruno Haible  <bruno@clisp.org>
14165         progreloc: Simplify code for Android.
14166         * lib/progreloc.c (executable_fd): Don't define on Android.
14167         (maybe_executable, find_executable): Don't use executable_fd on Android.
14169 2019-02-15  Bruno Haible  <bruno@clisp.org>
14171         gnulib-tool: Support --import with just a few tests, not --with-tests.
14172         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14173         'inctests' when generating files; use 'inctests' only for computing the
14174         transitive closure.
14176 2019-02-14  Bruno Haible  <bruno@clisp.org>
14178         gnulib-tool: Improve handling of multiple --local-dir options.
14179         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14180         options work.
14181         * gnulib-tool (func_path_prepend): Remove function.
14182         (func_path_foreach): Make IFS handling more robust.
14183         (local_gnulib_path): Collect --local-dir values using func_path_append,
14184         not func_path_prepend.
14185         (func_determine_path_separator): Make IFS handling more robust.
14186         (func_lookup_file_cb): New function.
14187         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14188         func_lookup_local_file. Apply the patches in the reverse order of their
14189         origin in $local_gnulib_path.
14190         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14191         * NEWS: Mention that the first --local-dir option is the one with
14192         highest priority.
14194 2019-02-10  Bruno Haible  <bruno@clisp.org>
14196         libtextstyle: New module.
14197         * m4/libtextstyle.m4: New file.
14198         * modules/libtextstyle: New file.
14200 2019-02-05  Bruno Haible  <bruno@clisp.org>
14202         declared.sh: Fix bug with variables of pointer type.
14203         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14204         before the symbol to be omitted if the preceding character is a '*'.
14206 2019-02-04  Bruno Haible  <bruno@clisp.org>
14208         Add script for running tests under valgrind.
14209         * build-aux/run-test: New file, from GNU libunistring.
14210         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
14211         as well.
14213 2019-02-04  Bruno Haible  <bruno@clisp.org>
14215         declared.sh: Fix --version output.
14216         * build-aux/declared.sh (func_version): Update package name.
14218 2019-02-03  Bruno Haible  <bruno@clisp.org>
14220         Add script for determining the set of symbols to export from a library.
14221         * build-aux/declared.sh: New file, from GNU libunistring.
14222         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
14223         Mention it.
14225 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14227         vla: add commentary about VLA_ELEMS
14228         * lib/vla.h (VLA_ELEMS): Add commentary,
14229         some inspired by Bruno Haible’s proposal in:
14230         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
14232         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
14233         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
14234         assume the C99 signatures for strtod and strtold.  Programs that
14235         require stricter adherence to C99 should also use the strtod and
14236         strtold modules as needed, and we no longer need the
14237         HAVE_C99_STRTOLD macro.
14238         * NEWS: Mention this.
14239         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
14240         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
14241         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
14242         (Files): Remove m4/c-strtod.m4.
14243         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
14244         exists.
14246 2019-02-02  Bruno Haible  <bruno@clisp.org>
14248         fma: Improve code style.
14249         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14251 2019-02-02  Colin Watson  <cjwatson@debian.org>
14253         *-map tests: Fix compilation error.
14254         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14255         * tests/test-hash_map.c: Likewise.
14256         * tests/test-linkedhash_map.c: Likewise.
14258 2019-01-31  Bruno Haible  <bruno@clisp.org>
14260         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14261         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14262         GNULIB_defined_strtold_function): New macros.
14263         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14264         (STRTOD): Ignore HAVE_C99_STRTOLD.
14265         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14266         deemed buggy. But do use it on platforms where uselocale exists and is
14267         usable.
14268         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14269         deemed buggy. On platforms where uselocale exists and is usable, use
14270         uselocale and strtod/strtold.
14271         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14272         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14273         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14274         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14275         (Depends-on): Add strtod.
14276         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14277         (Depends-on): Add strtold.
14279 2019-01-31  Bruno Haible  <bruno@clisp.org>
14281         strtod, strtold: Use the locale's decimal point.
14282         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14283         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14284         (parse_number): Add a radixchar argument. Use it instead of '.'.
14285         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14286         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14287         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14288         * tests/test-strtod1.c: New file.
14289         * tests/test-strtod1.sh: New file.
14290         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
14291         locale-fr.m4 and its dependencies.
14292         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14293         (Makefile.am): Arrange to compile test-strtod1.c and run
14294         test-strtod1.sh.
14295         * tests/test-strtold1.c: New file.
14296         * tests/test-strtold1.sh: New file.
14297         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14298         locale-fr.m4 and its dependencies.
14299         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14300         (Makefile.am): Arrange to compile test-strtold1.c and run
14301         test-strtold1.sh.
14303 2019-01-31  Bruno Haible  <bruno@clisp.org>
14305         strtod, strtold tests: Simplify tests.
14306         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14307         * tests/test-strtold.c (main): Likewise.
14309 2019-01-31  Bruno Haible  <bruno@clisp.org>
14311         strtod, strtold: Avoid unnecessary rounding errors.
14312         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14313         decimal to DOUBLE conversion.
14315 2019-01-31  Bruno Haible  <bruno@clisp.org>
14317         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14318         * lib/strtod.c (STRTOD): When there is an extra character after the
14319         exponent marker 'p', reparse the number.
14320         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14321         * doc/posix-functions/strtold.texi: Likewise.
14323 2019-01-29  Bruno Haible  <bruno@clisp.org>
14325         strtold: Add tests.
14326         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14327         * modules/strtold-tests: New file.
14329 2019-01-29  Bruno Haible  <bruno@clisp.org>
14331         strtold: New module.
14332         * lib/stdlib.in.h (strtold): New declaration.
14333         * lib/strtold.c: New file.
14334         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14335         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14336         USE_LDEXP): New macros.
14337         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14338         USE_LONG_DOUBLE.
14339         (underlying_strtod): Remove function. Replace with some macros.
14340         Re-add the code for a missing underlying function that was removed on
14341         2013-02-19.
14342         * m4/strtold.m4: New file.
14343         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14344         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14345         REPLACE_STRTOLD.
14346         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14347         REPLACE_STRTOLD.
14348         * modules/strtold: New file.
14349         * doc/posix-functions/strtold.texi: Document the new module.
14351 2019-01-29  Bruno Haible  <bruno@clisp.org>
14353         strtod: Fix compilation error on IRIX 6.5.
14354         * modules/strtod (Depends-on): Add 'math'.
14356 2019-01-28  Bruno Haible  <bruno@clisp.org>
14358         Fix build error when building a shared libunistring on Android.
14359         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14360         (main): Add 'volatile', to defeat a GCC optimization that would
14361         eliminate the reference.
14362         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14363         (main): Add 'volatile', to defeat a GCC optimization that would
14364         eliminate the reference.
14365         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14366         (main): Add 'volatile', to defeat a GCC optimization that would
14367         eliminate the reference.
14368         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14369         (main): Add 'volatile', to defeat a GCC optimization that would
14370         eliminate the reference.
14372 2019-01-27  Bruno Haible  <bruno@clisp.org>
14374         Avoid build errors due to wrong references between modules.
14375         * lib/uninorm/canonical-decomposition.c: Include
14376         "uninorm/decomposition-table.h", not "decomposition-table.h".
14377         * lib/uninorm/decomposition.c: Likewise.
14378         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14379         not "decompose-internal.h".
14380         * lib/uninorm/u16-normalize.c: Likewise.
14381         * lib/uninorm/u32-normalize.c: Likewise.
14382         * lib/uninorm/uninorm-filter.c: Likewise.
14383         * lib/uninorm/nfkc.c: Likewise.
14384         * lib/uninorm/nfkd.c: Likewise.
14385         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
14386         "caseprop.h".
14387         * lib/unicase/u8-ct-totitle.c: Likewise.
14388         * lib/unicase/u8-prefix-context.c: Likewise.
14389         * lib/unicase/u8-suffix-context.c: Likewise.
14390         * lib/unicase/u16-casemap.c: Likewise.
14391         * lib/unicase/u16-ct-totitle.c: Likewise.
14392         * lib/unicase/u16-prefix-context.c: Likewise.
14393         * lib/unicase/u16-suffix-context.c: Likewise.
14394         * lib/unicase/u32-casemap.c: Likewise.
14395         * lib/unicase/u32-ct-totitle.c: Likewise.
14396         * lib/unicase/u32-prefix-context.c: Likewise.
14397         * lib/unicase/u32-suffix-context.c: Likewise.
14398         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
14399         "unicasemap.h".
14400         * lib/unicase/u8-toupper.c: Likewise.
14401         * lib/unicase/u8-ct-tolower.c: Likewise.
14402         * lib/unicase/u8-ct-toupper.c: Likewise.
14403         * lib/unicase/u16-tolower.c: Likewise.
14404         * lib/unicase/u16-toupper.c: Likewise.
14405         * lib/unicase/u16-ct-tolower.c: Likewise.
14406         * lib/unicase/u16-ct-toupper.c: Likewise.
14407         * lib/unicase/u32-tolower.c: Likewise.
14408         * lib/unicase/u32-toupper.c: Likewise.
14409         * lib/unicase/u32-ct-tolower.c: Likewise.
14410         * lib/unicase/u32-ct-toupper.c: Likewise.
14411         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
14412         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
14413         * lib/unicase/u16-ct-casefold.c: Likewise.
14414         * lib/unicase/u32-ct-casefold.c: Likewise.
14416 2019-01-27  Bruno Haible  <bruno@clisp.org>
14418         gperf: Fix error when this module is required by some test module.
14419         * modules/gperf (Applicability): Set to 'all'.
14421 2019-01-27  Bruno Haible  <bruno@clisp.org>
14423         tmpfile: Add support for Android.
14424         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
14425         works.
14426         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
14427         Android.
14428         * modules/tmpfile (Depends-on): Add 'stdbool'.
14429         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
14430         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
14432 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
14434         bitsetv: allow free on NULL.
14435         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
14437 2019-01-27  Bruno Haible  <bruno@clisp.org>
14439         test-framework-sh: Improve maintainability.
14440         * tests/init.sh: Clarify what belongs together. Reorder definitions.
14442 2019-01-27  Bruno Haible  <bruno@clisp.org>
14444         tests: Don't assume that /tmp exists.
14445         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
14446         * tests/test-copy-acl-1.sh: Likewise.
14447         * tests/test-file-has-acl-1.sh: Likewise.
14448         * tests/test-copy-file-1.sh: Likewise.
14450 2019-01-27  Bruno Haible  <bruno@clisp.org>
14452         tests: Accommodate a shell that is not in /bin/sh.
14453         * tests/init.sh (setup_): Set srcdir and builddir.
14454         (BOURNE_SHELL): New variable.
14455         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
14456         * modules/file-has-acl-tests (Depends-on): Likewise.
14457         * modules/copy-file-tests (Depends-on): Likewise.
14458         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
14459         scripts through $BOURNE_SHELL.
14460         * tests/test-set-mode-acl-2.sh: Likewise.
14461         * tests/test-copy-acl-1.sh: Likewise.
14462         * tests/test-copy-acl-2.sh: Likewise.
14463         * tests/test-file-has-acl-1.sh: Likewise.
14464         * tests/test-file-has-acl-2.sh: Likewise.
14465         * tests/test-copy-file-1.sh: Likewise.
14466         * tests/test-copy-file-2.sh: Likewise.
14467         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
14468         invoker.
14469         * tests/test-copy-acl.sh (builddir): Likewise.
14470         * tests/test-file-has-acl.sh (builddir): Likewise.
14471         * tests/test-copy-file.sh (builddir): Likewise.
14472         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
14473         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
14474         * tests/test-vc-list-files-git.sh: Likewise.
14476 2019-01-27  Bruno Haible  <bruno@clisp.org>
14478         tests: Fix some "unused variable" warnings.
14479         * tests/test-fts.c (fts_dealloc): Remove unused variable.
14480         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
14481         * tests/test-striconveh.c (main): Move some variable into the
14482         '#if HAVE_ICONV'.
14483         * tests/test-striconveha.c (main): Likewise.
14484         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14485         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14486         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14487         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
14488         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14489         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14490         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14491         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14492         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14493         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
14494         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
14495         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
14496         * tests/test-tsearch.c (main): Move some variable into the
14497         '#if HAVE_INITSTATE'.
14499 2019-01-27  Bruno Haible  <bruno@clisp.org>
14501         unigbrk/uc-grapheme-breaks: Fix build failure.
14502         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
14503         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
14505 2019-01-27  Bruno Haible  <bruno@clisp.org>
14507         mountlist: Merge two .m4 files.
14508         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
14509         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
14510         * m4/ls-mntd-fs.m4: Remove file.
14511         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
14513 2019-01-27  Bruno Haible  <bruno@clisp.org>
14515         tests: Enable Linux specific tests on Android.
14516         * tests/test-flock.c (main): Treat Android like Linux.
14517         * tests/test-openat-safer.c (main): Likewise.
14519 2019-01-27  Bruno Haible  <bruno@clisp.org>
14521         relocatable-prog: Use Linux code on Android.
14522         * lib/progreloc.c: Treat Android like Linux.
14524 2019-01-26  Bruno Haible  <bruno@clisp.org>
14526         getloadavg: Add support for Android.
14527         * lib/getloadavg.c: Treat Android like Linux.
14529 2019-01-26  Bruno Haible  <bruno@clisp.org>
14531         vma-iter: Add support for Android.
14532         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
14533         * lib/vma-iter.c: Treat Android like Linux.
14534         * lib/get-rusage-data.c (get_rusage_data): Likewise.
14536 2019-01-26  Bruno Haible  <bruno@clisp.org>
14538         fts: Optimize on Android.
14539         * lib/fts.c: Treat Android like Linux.
14541 2019-01-26  Bruno Haible  <bruno@clisp.org>
14543         fts: Add support for Android.
14544         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
14545         defined by this module and the ones in libc.
14546         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
14548 2019-01-26  Bruno Haible  <bruno@clisp.org>
14550         mountlist: Use Linux code on Android.
14551         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
14552         (unescape_tab, read_file_system_list): Enable Linux code on Android
14553         as well.
14554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
14555         and endmntent.
14556         * modules/mountlist (Depends-on): Add 'getline'.
14558 2019-01-26  Bruno Haible  <bruno@clisp.org>
14560         localename tests: Fix test failure on Android.
14561         * modules/localename-tests (Depends-on): Add 'setlocale'.
14563 2019-01-26  Bruno Haible  <bruno@clisp.org>
14565         mountlist: Port better to Android.
14566         * lib/mountlist.c (MOUNTED): Redefine on Android.
14567         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
14568         Android.
14570 2019-01-26  Bruno Haible  <bruno@clisp.org>
14572         striconveh: Fix use of uninitialized iconv_t.
14573         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
14574         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
14575         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
14577 2019-01-26  Bruno Haible  <bruno@clisp.org>
14579         nonblocking-socket-tests: Fix test failure on Android 4.3.
14580         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
14581         also on Android.
14583 2019-01-26  Bruno Haible  <bruno@clisp.org>
14585         sh-filename: Add support for Android 4.3.
14586         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
14588 2019-01-26  Bruno Haible  <bruno@clisp.org>
14590         ptsname_r: Work around bug on Android 4.3.
14591         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
14592         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
14593         correct.
14594         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
14595         is defined, just fix the return value.
14596         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
14597         The behaviour of musl libc is nothing to be "fixed", since it is
14598         compliant with the next POSIX standard.
14600 2019-01-26  Bruno Haible  <bruno@clisp.org>
14602         ttyname_r: Work around bug on Android 4.3.
14603         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
14604         * lib/ttyname_r.c (ttyname_r): Implement for Android.
14605         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
14606         * doc/posix-functions/ttyname.texi: Likewise.
14608 2019-01-25  Bruno Haible  <bruno@clisp.org>
14610         getprogname: Port to Android 4.3.
14611         * lib/getprogname.c (getprogname): On Android, take only the last
14612         component of __progname.
14614 2019-01-25  Bruno Haible  <bruno@clisp.org>
14616         wcrtomb: Work around bug on Android 4.3.
14617         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
14618         the C locale.
14619         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
14620         which does not have the 'wctomb' function.
14621         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
14622         * tests/test-wcrtomb.c (main): Accept argument '5'.
14623         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
14625 2019-01-25  Bruno Haible  <bruno@clisp.org>
14627         setlocale: Work around bug on Android 4.3.
14628         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
14629         the "C" locale.
14630         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
14631         * doc/posix-functions/setlocale.texi: Mention the Android bug.
14633 2019-01-24  Bruno Haible  <bruno@clisp.org>
14635         memchr: Work around bug on Android <= 5.0.
14636         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
14637         * doc/posix-functions/memchr.texi: Mention the Android bug.
14639 2019-01-24  Bruno Haible  <bruno@clisp.org>
14641         random: Fix compilation error on Android 4.3.
14642         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
14643         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
14644         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
14645         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
14646         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
14648         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14649         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
14650         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14651         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
14652         REPLACE_INITSTATE, REPLACE_SETSTATE.
14653         * doc/posix-functions/random.texi: Correct the description of the
14654         situation on Android.
14655         * doc/posix-functions/srandom.texi: Likewise.
14656         * doc/posix-functions/rand.texi: Likewise.
14657         * doc/posix-functions/srand.texi: Likewise.
14659 2019-01-24  Bruno Haible  <bruno@clisp.org>
14661         mbtowc: Fix compilation error on Android 4.3.
14662         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
14663         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
14664         HAVE_MBTOWC.
14665         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
14666         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
14667         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
14668         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
14669         * doc/posix-functions/mbtowc.texi: Mention the change.
14671 2019-01-24  Bruno Haible  <bruno@clisp.org>
14673         fdatasync: Fix compilation error on Android 4.3.
14674         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
14675         test whether fdatasync() exists.
14677 2019-01-24  Bruno Haible  <bruno@clisp.org>
14679         unlinkat: Fix compilation error on Android 4.3.
14680         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
14681         also on Android.
14682         * doc/posix-functions/unlinkat.texi: Mention the issue.
14684 2019-01-24  Bruno Haible  <bruno@clisp.org>
14686         renameat: Fix compilation error on Android 4.3.
14687         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
14688         * doc/posix-functions/renameat.texi: Mention the issue.
14690 2019-01-24  Bruno Haible  <bruno@clisp.org>
14692         fchownat: Fix compilation error on Android 4.3.
14693         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
14694         use.
14695         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
14696         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
14697         * doc/posix-functions/fchownat.texi: Mention the issue.
14699 2019-01-23  Bruno Haible  <bruno@clisp.org>
14701         gnulib-tool: Support running testdirs on Android.
14702         * build-aux/test-driver.diff: New file.
14703         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
14704         build-aux/test-driver after running automake.
14706 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14708         relocatable-prog: avoid warnings from Automake
14709         * modules/relocatable-prog: Don't declare PHONY dependencies in
14710         Automake conditionals.
14712 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14714         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
14715         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
14717 2019-01-23  Bruno Haible  <bruno@clisp.org>
14719         threadlib: Revert commit from 2018-06-25. We now have a better fix.
14720         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
14721         preceding -Wl,--as-needed option. Don't check whether the linker
14722         supports --as-needed/--no-as-needed and --push-state/--pop-state.
14724 2019-01-23  Bruno Haible  <bruno@clisp.org>
14726         thread: Force linking with -lpthread, even when --as-needed is in use.
14727         Reported by Richard W.M. Jones <rjones@redhat.com> in
14728         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
14729         * lib/glthread/thread.h (pthread_create): Don't declare weak.
14731 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
14732             Bruno Haible  <bruno@clisp.org>
14734         relocatable: avoid compiler warnings (-Wshadow)
14735         * lib/relocatable.c (compute_curr_prefix): Rename local variables
14736         to avoid name collisions with global variables.
14738 2019-01-22  Bruno Haible  <bruno@clisp.org>
14740         vasnprintf: Don't use %n on Android.
14741         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
14742         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
14743         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
14745 2019-01-22  Bruno Haible  <bruno@clisp.org>
14747         *printf: Support cross-compilation to Android.
14748         * m4/printf.m4: Add cross-compilation guesses for Android.
14750 2019-01-21  Bruno Haible  <bruno@clisp.org>
14752         diacrit: Mark deprecated.
14753         * modules/diacrit (Status, Notice): Mark as deprecated.
14754         * NEWS: Mention it.
14756 2019-01-20  Bruno Haible  <bruno@clisp.org>
14758         rintl: Override broken implementation on NetBSD.
14759         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
14760         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
14761         REPLACE_RINTL.
14762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
14763         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
14764         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
14765         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
14767 2019-01-20  Bruno Haible  <bruno@clisp.org>
14769         log10l: Work around inaccurate implementation on NetBSD.
14770         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
14771         * lib/log10l.c: Comment out too simplistic override.
14772         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
14774 2019-01-20  Bruno Haible  <bruno@clisp.org>
14776         logl: Work around inaccurate implementation on NetBSD.
14777         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
14778         * lib/logl.c: Comment out unused code.
14779         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
14781 2019-01-20  Bruno Haible  <bruno@clisp.org>
14783         expm1l: Work around inaccurate implementation on NetBSD.
14784         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
14785         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
14786         REPLACE_EXPM1L.
14787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
14788         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
14789         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
14790         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
14792 2019-01-20  Bruno Haible  <bruno@clisp.org>
14794         expl: Work around inaccurate implementation on NetBSD.
14795         * lib/math.in.h (expl): Test also REPLACE_EXPL.
14796         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
14797         REPLACE_EXPL.
14798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
14799         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
14800         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
14801         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
14803 2019-01-20  Bruno Haible  <bruno@clisp.org>
14805         exp2l: Work around inaccurate implementation on NetBSD.
14806         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
14807         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
14809 2019-01-20  Bruno Haible  <bruno@clisp.org>
14811         floor, floorl: Avoid autoconf warnings.
14812         * modules/floor (configure.ac): Use AC_REQUIRE.
14813         * modules/floorl (configure.ac): Likewise.
14815 2019-01-20  Bruno Haible  <bruno@clisp.org>
14817         Defeat current GCC optimizations in math autoconf tests.
14818         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
14819         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14820         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14821         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14822         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14823         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14824         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14825         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14826         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14827         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14828         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14829         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14830         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14831         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14832         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
14833         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
14834         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
14835         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14836         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14837         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14838         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14839         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14840         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14841         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14842         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14843         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14844         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14845         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14846         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14847         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14848         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14849         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14850         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14852         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14853         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14854         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14855         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14857 2019-01-19  Pádraig Brady  <P@draigBrady.com>
14859         gettext: support disabling use of VLAs
14860         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
14862 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14864         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
14865         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
14867 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14869         fcntl: Fix syntax error (regression from 2018-10-05).
14870         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
14872 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
14874         relocatable: improve documentation.
14875         * doc/relocatable-maint.texi (Supporting Relocation): For
14876         substitutions performed by config.status, we need more variables
14877         (for instance datarootdir defaults to '${prefix}/share' so we need
14878         prefix).
14880 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
14882         backup: update dependencies
14883         * modules/backup-rename (Depends-on): It now depends on opendirat
14884         instead of opendir.  It also uses stdint, and xalloc-oversized.
14885         But no longer dirfd.
14886         * modules/backupfile (Depends-on): Add xalloc-oversized.
14888 2019-01-13  Bruno Haible  <bruno@clisp.org>
14890         getcwd: Fix test failure when building on a Linux 9p file system.
14891         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
14892         EINVAL from mkdir like ENAMETOOLONG.
14893         * tests/test-getcwd.c (test_long_name): Likewise.
14895 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
14897         Fix typos found by codespell.
14898         * lib/*.[hc]: Fix typos in comments.
14899         * pygnulib/*.py: Fix typos in error messages and comments.
14901 2019-01-12  Bruno Haible  <bruno@clisp.org>
14903         doc: Fix documentation about container data types.
14904         Reported by Werner Lemberg <wl@gnu.org>.
14905         * doc/containers.texi (Container data types): Fix typo.
14907 2019-01-10  Bruno Haible  <bruno@clisp.org>
14909         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
14910         Reported by Reuben Thomas <rrt@sc3d.org>.
14911         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
14913 2019-01-06  Bruno Haible  <bruno@clisp.org>
14915         maintainer-makefile: Make the configure.ac section optional.
14916         * top/maint.mk (GREP, SED): Define if not defined.
14918 2019-01-06  Bruno Haible  <bruno@clisp.org>
14920         localename: Assume setlocale function.
14921         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
14922         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
14924 2019-01-06  Bruno Haible  <bruno@clisp.org>
14926         doc: Add documentation about container data types.
14927         * doc/containers.texi: New file.
14928         * doc/gnulib.texi (Particular Modules): Include it.
14930 2019-01-06  Bruno Haible  <bruno@clisp.org>
14932         doc: Update documentation about 'progname' module.
14933         * doc/progname.texi: Rename from doc/error.texi. Change node name and
14934         title. Rewrite.
14935         * doc/gnulib.texi (Particular Modules): Update.
14937 2019-01-06  Bruno Haible  <bruno@clisp.org>
14939         doc: Document the xstdopen and *-safer modules.
14940         * doc/xstdopen.texi: New file.
14941         * doc/gnulib.texi (Particular Modules): Include it.
14943 2019-01-06  Bruno Haible  <bruno@clisp.org>
14945         xstdopen: Add tests.
14946         * tests/test-xstdopen.c: New file.
14947         * tests/test-xstdopen.sh: New file.
14948         * modules/xstdopen-tests: New file.
14950         xstdopen: New module.
14951         * lib/xstdopen.h: New file.
14952         * lib/xstdopen.c: New file.
14953         * modules/xstdopen: New file.
14955 2019-01-06  Bruno Haible  <bruno@clisp.org>
14957         stdopen: Fix compilation error with IRIX cc.
14958         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
14960 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14962         xfreopen need not include stdio--.h
14963         * lib/xfreopen.c: Do not include stdio--.h.
14965         xfreopen need not depend on freopen-safer
14966         * modules/xfreopen (Depends-on):
14967         Depend on freopen, not freopen-safer.
14969         stdopen: modernize and simplify
14970         * lib/stdopen.c: Update copyright date
14971         Do not include sys/types.h; no longer needed these days.
14972         (stdopen): Use C99-style decl in loop.  Return int errno
14973         value, rather than just a bool.  Do not worry about fd mismatches,
14974         since the caller cares only if 0, 1, 2 are occupied.
14975         * lib/stdopen.h: No need to include <stdbool.h>.
14976         * m4/stdopen.m4: Remove.
14977         * modules/stdopen: New file.
14979         stdopen: copy from last use in coreutils
14980         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
14981         New files, taken from their last commit in coreutils
14982         2007-07-23T12:35:58Z!jim@meyering.net
14983         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
14985 2019-01-05  Bruno Haible  <bruno@clisp.org>
14987         argp: Don't pass an invalid argument to dgettext().
14988         Reported by He X <xw897002528@gmail.com>.
14989         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
14990         dgettext().
14992 2019-01-05  Bruno Haible  <bruno@clisp.org>
14994         argp: Don't pass an invalid argument to dgettext().
14995         Reported by He X <xw897002528@gmail.com>.
14996         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
14997         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
14998         dgettext().
15000 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15002         stdioext: port to newer 32-bit Android
15003         Problem reported by Tom Yan in:
15004         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15005         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15006         (fp_) [__ANDROID__]: Use it.
15008 2019-01-04  Bruno Haible  <bruno@clisp.org>
15010         lock: Fix link error with --enable-threads=pth.
15011         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15012         Mark as weak.
15014 2019-01-04  Bruno Haible  <bruno@clisp.org>
15016         Fix link errors in unit tests.
15017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15018         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15019         * modules/array-map-tests (Makefile.am): Link test-array_map against
15020         libintl.
15021         * modules/array-set-tests (Makefile.am): Link test-array_set against
15022         libintl.
15023         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15024         libintl.
15025         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15026         libintl.
15027         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15028         against libintl.
15029         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15030         against libintl.
15032 2019-01-04  Bruno Haible  <bruno@clisp.org>
15034         Fix incorrect 'Link' sections.
15035         * modules/regex (Link): Mention the link requirement of module 'lock'.
15036         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15038 2019-01-04  Bruno Haible  <bruno@clisp.org>
15040         Fix some 'Link' sections.
15041         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15042         dependency.
15043         * modules/getaddrinfo (Link): Likewise.
15045 2019-01-04  Bruno Haible  <bruno@clisp.org>
15047         Remove redundant 'Link' sections.
15048         * modules/canon-host (Link): Remove section.
15049         * modules/timevar (Link): Likewise.
15051 2019-01-04  Bruno Haible  <bruno@clisp.org>
15053         Remove incorrect 'Link' sections.
15054         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15055         the dependencies instead.
15056         * modules/crypto/md5 (Link): Likewise.
15057         * modules/crypto/sha1 (Link): Likewise.
15058         * modules/crypto/sha256 (Link): Likewise.
15059         * modules/crypto/sha512 (Link): Likewise.
15060         * modules/faccessat (Link): Likewise.
15061         * modules/fdutimensat (Link): Likewise.
15062         * modules/iconv_open-utf (Link): Likewise.
15063         * modules/propername (Link): Likewise.
15064         * modules/qacl (Link): Likewise.
15065         * modules/unicodeio (Link): Likewise.
15066         * modules/utimecmp (Link): Likewise.
15067         * modules/utimensat (Link): Likewise.
15068         * modules/xstriconv (Link): Likewise.
15069         * modules/xstriconveh (Link): Likewise.
15071 2019-01-04  Bruno Haible  <bruno@clisp.org>
15073         gnulib-tool: New option --extract-recursive-link-directive.
15074         * gnulib-tool (func_usage): Document the new options
15075         --extract-recursive-dependencies, --extract-recursive-link-directive.
15076         (func_verify_module): Document output variables.
15077         (func_get_dependencies_recursively): New function.
15078         (func_get_link_directive_recursively): New function.
15079         Use them to implement the new options
15080         --extract-recursive-dependencies, --extract-recursive-link-directive.
15081         * doc/gnulib-tool.texi (Link-time requirements): New section.
15083 2019-01-04  Bruno Haible  <bruno@clisp.org>
15085         Clarify meaning of 'Link' section in module description.
15086         * doc/gnulib.texi (Module description): Clarify the meaning of the
15087         'Link' section versus the one of the dependencies.
15088         * NEWS: Mention the change.
15090 2019-01-04  Bruno Haible  <bruno@clisp.org>
15092         pselect: Fix module description.
15093         * modules/pselect (Link): Put one link option per line.
15095 2019-01-04  Bruno Haible  <bruno@clisp.org>
15097         cosl: Fix module description.
15098         * modules/cosl (Link): Fix typo.
15099         * modules/mathl (configure.ac): Likewise.
15101 2019-01-04  Bruno Haible  <bruno@clisp.org>
15103         c-xvasprintf: Fix module dependencies.
15104         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15106 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15108         bootstrap: die when some submodules are not initialized
15109         * build-aux/bootstrap: Make sure all submodules are initialized.
15111 2019-01-04  Bruno Haible  <bruno@clisp.org>
15113         bitsetv: Fix module dependencies.
15114         * lib/bitsetv.c: Include xalloc.h.
15115         * modules/bitsetv (Depends-on): Add 'xalloc'.
15117 2019-01-04  Bruno Haible  <bruno@clisp.org>
15119         xmemdup0: Remove redundant code.
15120         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15122 2019-01-04  Bruno Haible  <bruno@clisp.org>
15124         backupfile: Fix module dependencies.
15125         * modules/backupfile (Depends-on): Add 'xalloc'.
15127 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15129         bitset, crypto/gc: fix conflicts with Solaris 11
15130         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15131         avoid clash with Solaris 11 <sys/bitset.h>.
15132         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15133         with Solaris 11 <xorg/gc.h>.
15135 2019-01-04  Bruno Haible  <bruno@clisp.org>
15137         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15138         Reported by Andy Fiddaman <andy@omniosce.org>.
15139         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15141 2019-01-03  Eric Blake  <eblake@redhat.com>
15143         maintainer-makefile: fix typo in previous patch
15144         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15145         of Roman's work.
15147 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15149         maintainer-makefile: prefer $(GREP) over grep
15150         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15151         defined.
15152         * top/maint.mk: Use it everywhere.
15154         maintainer-makefile: split long argument lines
15155         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15156         it would be too long for exec limits on BSD.
15158 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15160         mkfifo: bring back HAVE_MKFIFO macro
15161         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15162         Problem reported by Andrew Janke in:
15163         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15165 2018-12-21  Bruno Haible  <bruno@clisp.org>
15167         Assume Autoconf >= 2.63.
15168         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15169         versions < 2.60.
15171 2018-12-21  Bruno Haible  <bruno@clisp.org>
15173         memcmp: Mention the clang bug.
15174         * tests/test-memcmp.c: Add comment about a known test failure.
15175         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15177 2018-12-20  Jim Meyering  <meyering@fb.com>
15179         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15180         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15181           echo '123-x'|LC_ALL=C grep -E '.\bx'
15182         The goal is to revert the first, but reverting it requires to restore
15183         the function deleted in the second. I ran this to restore the deleted
15184         function:
15185           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15186             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15187             | patch -R -p1
15188         * lib/dfa.c (charclass_context): Restore deleted function.
15189         Reverting the primary commit removes this change:
15190         dfa: Simplify a building state
15191         * lib/dfa.c (build_state): Simplify a building state.
15193 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15195         version-etc: allow zero authors
15196         * lib/version-etc.c (version_etc_arn): If no authors are given,
15197         omit authorship info instead of dumping core.
15199 2018-12-19  Bruno Haible  <bruno@clisp.org>
15201         lchown tests: Be more permissive regarding errno values.
15202         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15203         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15204         alternative to ENOSYS.
15205         * modules/lchown-tests (Depends-on): Add 'errno'.
15206         * modules/fchownat-tests (Depends-on): Likewise.
15208 2018-12-18  Bruno Haible  <bruno@clisp.org>
15210         duplocale: Avoid test failure on AIX 7.
15211         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
15212         (configure.ac): Invoke gt_FUNC_USELOCALE.
15213         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
15214         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
15215         works.
15217 2018-12-18  Bruno Haible  <bruno@clisp.org>
15219         localename: Fix test failure on AIX 7.
15220         Reported by Assaf Gordon in
15221         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
15222         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
15223         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
15224         instead of ac_cv_func_uselocale.
15225         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
15226         HAVE_USELOCALE.
15227         * lib/localename-table.h: Likewise.
15228         * lib/localename-table.c: Likewise.
15229         * tests/test-localename.c: Likewise.
15230         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
15232 2018-12-18  Bruno Haible  <bruno@clisp.org>
15234         localename: Update comments regarding Cygwin.
15235         * lib/localename.c: Update comment.
15236         * doc/posix-functions/uselocale.texi: Update platforms list.
15237         * doc/posix-functions/newlocale.texi: Likewise.
15238         * doc/posix-functions/duplocale.texi: Likewise.
15239         * doc/posix-functions/freelocale.texi: Likewise.
15241 2018-12-16  Bruno Haible  <bruno@clisp.org>
15243         c-stack: Fix for Linux/sparc.
15244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
15245         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
15247 2018-12-16  Bruno Haible  <bruno@clisp.org>
15249         localename: Avoid test failure on some glibc systems.
15250         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15251         Unset environment variables that might disturb the first setlocale call,
15252         and verify that this setlocale call succeeds.
15254 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15256         random: Fix build error on native Windows (regression from 2018-06-21).
15257         * lib/random.c (__srandom, __initstate, __setstate, __random,
15258         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15259         to the symbols without '__' prefix.
15261 2018-12-16  Bruno Haible  <bruno@clisp.org>
15263         obstack, libc-config: Support HP-UX cc in C99 mode.
15264         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15265         compiler, even when in C99 mode.
15266         * lib/cdefs.h (__flexarr): Likewise.
15267         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15269 2018-12-16  Bruno Haible  <bruno@clisp.org>
15271         localename: Fix test failure on OpenBSD >= 6.2.
15272         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15273         locale system. Define HAVE_FAKE_LOCALES in this case.
15274         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15275         HAVE_USELOCALE.
15276         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15277         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15278         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15279         platforms list.
15280         * doc/posix-functions/newlocale.texi: Likewise.
15281         * doc/posix-functions/duplocale.texi: Update platforms list.
15282         * doc/posix-functions/freelocale.texi: Likewise.
15284 2018-12-16  Bruno Haible  <bruno@clisp.org>
15286         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15287         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15288         of the test, on platforms without <monetary.h>.
15290 2018-12-16  Bruno Haible  <bruno@clisp.org>
15292         localename: Update comments.
15293         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15295 2018-12-15  Jim Meyering  <meyering@fb.com>
15297         regex: fix indentation
15298         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15300 2018-12-15  Bruno Haible  <bruno@clisp.org>
15302         openat-safer tests: Avoid test failure on NetBSD 8.
15303         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15304         on Linux.
15306 2018-12-15  Jim Meyering  <meyering@fb.com>
15308         regex: work around a bug in glibc-2.27 and prior
15309         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15310         assertion for /0|()0|\1|0/.
15311         * tests/test-regex.c (main): Add the same test here.
15313 2018-12-15  Bruno Haible  <bruno@clisp.org>
15315         localename: Fix use of uninitialized shell variable.
15316         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15317         gt_cv_locale_solaris114 always before use. Remove assignment without
15318         effect.
15320 2018-12-15  Bruno Haible  <bruno@clisp.org>
15322         dfa tests: Avoid test failure on Alpine Linux.
15323         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15324         command found on Alpine Linux.
15326 2018-12-15  Jim Meyering  <meyering@fb.com>
15328         dfa: avoid new warnings from gcc
15329         These would prevent building with -Werror and a Dec snapshot of gcc.
15330         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15331         Rename each inner instance to "p".
15332         (charclass_context): Remove unused static function.
15334 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15336         mkdir-p: improve diagnostic for FUSE mounts
15337         Problem reported by Niklas Hambüchen in:
15338         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15339         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15340         errno to mkdir errno if the stat errno is likely more interesting.
15342 2018-12-14  Bruno Haible  <bruno@clisp.org>
15344         hash-map: Add tests.
15345         * tests/test-hash_map.c: New file.
15346         * modules/hash-map-tests: New file.
15348         linkedhash-map: Add tests.
15349         * tests/test-linkedhash_map.c: New file.
15350         * modules/linkedhash-map-tests: New file.
15352         array-map: Add tests.
15353         * tests/test-array_map.c: New file.
15354         * modules/array-map-tests: New file.
15356         xmap: New module.
15357         * lib/gl_xmap.h: New file.
15358         * lib/gl_xmap.c: New file.
15359         * modules/xmap: New file.
15361         hash-map: New module.
15362         * lib/gl_hash_map.h: New file.
15363         * lib/gl_hash_map.c: New file.
15364         * modules/hash-map: New file.
15366         linkedhash-map: New module.
15367         * lib/gl_linkedhash_map.h: New file.
15368         * lib/gl_linkedhash_map.c: New file.
15369         * lib/gl_anyhash1.h: Update comments.
15370         * lib/gl_anyhash2.h: Likewise.
15371         * modules/linkedhash-map: New file.
15373         array-map: New module.
15374         * lib/gl_array_map.h: New file.
15375         * lib/gl_array_map.c: New file.
15376         * modules/array-map: New file.
15378         map: New module.
15379         * lib/gl_map.h: New file.
15380         * lib/gl_map.c: New file.
15381         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
15382         conflict with gl_map.h.
15383         * modules/map: New file.
15385 2018-12-13  Bruno Haible  <bruno@clisp.org>
15387         select tests: Avoid test failure on Cygwin.
15388         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
15390 2018-12-13  Bruno Haible  <bruno@clisp.org>
15392         localtime-buffer: Avoid endless recursion in localtime and gmtime.
15393         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
15395 2018-12-13  Bruno Haible  <bruno@clisp.org>
15397         localeconv tests: Avoid test failure on Cygwin.
15398         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
15399         'mon_grouping' tests.
15401 2018-12-11  Bruno Haible  <bruno@clisp.org>
15403         omap: Don't dispose the old value when the function returns it.
15404         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
15405         here.
15406         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15407         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15408         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
15409         here.
15411         array-omap, avltree-omap, rbtree-omap: Tweak style.
15412         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
15413         false.
15414         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
15416         rbtree-omap: Add tests.
15417         * tests/test-rbtree_omap.c: New file.
15418         * modules/rbtree-omap-tests: New file.
15420         avltree-omap: Add tests.
15421         * tests/test-avltree_omap.c: New file.
15422         * modules/avltree-omap-tests: New file.
15424         array-omap: Add tests.
15425         * tests/test-array_omap.c: New file.
15426         * modules/array-omap-tests: New file.
15428         xomap: New module.
15429         * lib/gl_xomap.h: New file.
15430         * lib/gl_xomap.c: New file.
15431         * modules/xomap: New file.
15433         rbtree-omap: New module.
15434         * lib/gl_rbtree_omap.h: New file.
15435         * lib/gl_rbtree_omap.c: New file.
15436         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
15437         Parameterize.
15438         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
15439         * modules/rbtree-omap: New file.
15440         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
15441         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
15443         avltree-omap: New module.
15444         * lib/gl_avltree_omap.h: New file.
15445         * lib/gl_avltree_omap.c: New file.
15446         * lib/gl_avltree_ordered.h: Code moved to here from
15447         lib/gl_avltree_oset.c. Parameterize.
15448         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
15449         * lib/gl_anytree_omap.h: New file.
15450         * modules/avltree-omap: New file.
15451         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
15452         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
15454         array-omap: New module.
15455         * lib/gl_array_omap.h: New file.
15456         * lib/gl_array_omap.c: New file.
15457         * modules/array-omap: New file.
15459         omap: New module.
15460         * lib/gl_omap.h: New file.
15461         * lib/gl_omap.c: New file.
15462         * modules/omap: New file.
15464 2018-12-11  Bruno Haible  <bruno@clisp.org>
15466         hash-set, linkedhash-set: Reduce code duplication.
15467         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
15468         lib/gl_anyhash_set1.h.
15469         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
15470         lib/gl_anyhash_set2.h. Parameterize.
15471         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
15472         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
15473         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
15474         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
15475         * lib/gl_rbtreehash_list.c: Likewise.
15476         * lib/gl_linkedhash_list.c: Likewise.
15477         (hash_resize_after_add): Remove function.
15478         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
15479         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
15480         * gl_hash_set.c: Likewise.
15481         * modules/avltreehash-list (Files, Makefile.am): Update file list.
15482         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
15483         * modules/linkedhash-list (Files, Makefile.am): Likewise.
15484         * modules/linkedhash-set (Files, Makefile.am): Likewise.
15485         * modules/hash-set (Files, Makefile.am): Likewise.
15487 2018-12-11  Bruno Haible  <bruno@clisp.org>
15489         array-set: Optimize.
15490         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
15491         outside the loop, not inside the loop.
15493 2018-12-11  Bruno Haible  <bruno@clisp.org>
15495         times: Fix tests.
15496         * tests/test-times.c (doublecmp): Implement a total order.
15498 2018-12-11  Bruno Haible  <bruno@clisp.org>
15500         array-set, linkedhash-set, hash-set: Fix tests.
15501         * tests/test-array_set.c (cmp_objects_in_array): New function.
15502         (check_equals): Use it.
15503         * tests/test-hash_set.c: Likewise.
15504         * tests/test-linkedhash_set.c: Likewise.
15506 2018-12-08  Bruno Haible  <bruno@clisp.org>
15508         Fix comments.
15509         * lib/gl_list.h (gl_list_free): Clarify what it does.
15510         * lib/gl_oset.h (gl_oset_free): Likewise.
15511         * lib/gl_set.h (gl_set_free): Likewise.
15512         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
15513         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
15514         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
15515         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
15517 2018-12-03  Bruno Haible  <bruno@clisp.org>
15519         hash-set: Add tests.
15520         * tests/test-hash_set.c: New file.
15521         * modules/hash-set-tests: New file.
15523         linkedhash-set: Add tests.
15524         * tests/test-linkedhash_set.c: New file.
15525         * modules/linkedhash-set-tests: New file.
15527         array-set: Add tests.
15528         * tests/test-array_set.c: New file.
15529         * modules/array-set-tests: New file.
15531         xset: New module.
15532         * lib/gl_xset.h: New file.
15533         * lib/gl_xset.c: New file.
15534         * modules/xset: New file.
15536         hash-set: New module.
15537         * lib/gl_hash_set.h: New file.
15538         * lib/gl_hash_set.c: New file.
15539         * modules/hash-set: New file.
15541         linkedhash-set: New module.
15542         * lib/gl_linkedhash_set.h: New file.
15543         * lib/gl_linkedhash_set.c: New file.
15544         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
15545         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
15546         * lib/gl_anyhash_primes.h: New file, extracted from
15547         lib/gl_anyhash_list2.h.
15548         * lib/gl_anyhash_list2.h: Include it.
15549         (primes, next_prime): Remove definitions.
15550         * modules/linkedhash-set: New file.
15551         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
15552         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15553         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
15554         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15555         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
15556         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15558         array-set: New module.
15559         * lib/gl_array_set.h: New file.
15560         * lib/gl_array_set.c: New file.
15561         * modules/array-set: New file.
15563         set: New module.
15564         * lib/gl_set.h: New file.
15565         * lib/gl_set.c: New file.
15566         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
15567         gl_set.h.
15568         * modules/set: New file.
15570 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
15572         bison: don't force the Yacc mode
15573         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
15574         errors when Bison features are used in the grammar file.  Some of
15575         these features (such as %expect) were flagged non-yacc recently.  Most
15576         of the time, -y is actually used to please Automake's ylwrap which
15577         expects the output to be y.tab.c.
15578         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
15580 2018-12-01  Bruno Haible  <bruno@clisp.org>
15582         gnupload: Document short options.
15583         * build-aux/gnupload (usage): Document the short options.
15585 2018-11-28  Ben Elliston  <bje@gnu.org>
15587         gnupload: Support option -h as alias of --help.
15588         * build-aux/gnupload: Support -h.
15590 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15592         memrchr: port better to clang
15593         * lib/memrchr.c (__memrchr): Cast to void * instead of to
15594         longword *, to pacify clang -Wcast-align (Bug#33544).
15596 2018-11-29  Eric Blake  <eblake@redhat.com>
15598         docs: mention printf %m considerations
15599         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
15600         is not portable, and is easy enough to work around.
15601         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
15602         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
15603         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
15604         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15605         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15606         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15607         * doc/posix-functions/printf.texi (printf): Likewise.
15608         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15609         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15610         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
15611         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15612         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15613         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15614         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15615         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15616         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15617         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
15618         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15619         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15621 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
15623         bitset: rename ebitset/expandable.* as tbitset/table.*
15624         See
15625         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
15626         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
15627         * lib/bitset/table.h, lib/bitset/table.c: these.
15628         Rename all the ebitset* symbols as tbitset*.
15629         Adjust dependencies.
15631 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15633         bitset: check the operations
15634         * tests/test-bitset.c (bitset_random): New.
15635         Use it.
15636         * lib/bitset/expandable.c (ebitset_not): Fix typo.
15638 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15640         bitset: properly use false/true instead of 0/1 for Booleans
15641         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
15642         0/1, as Booleans.
15644 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15646         bitset: rename BITSET_VARRAY as BITSET_VECTOR
15647         For consistency with the name of the file.
15648         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
15649         * lib/bitset/stats.c, lib/bitset/vector.c
15650         (BITSET_VARRAY): Rename as...
15651         (BITSET_VECTOR): this.
15653 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15655         strerror_r-posix: memmove, not memcpy
15656         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
15657         since the source and destination might overlap in the call
15658         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
15659         Simplify.
15661 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15663         bitsetv: new module
15664         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
15666 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15668         bitset: add tests and doc
15669         First stabs at providing a documentation and test for the bitset
15670         module.
15671         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
15673 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15675         bitset: new module
15676         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
15677         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
15678         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
15679         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
15680         * lib/bitset/vector.h, modules/bitset:
15681         New.
15683 2018-11-23  Bruno Haible  <bruno@clisp.org>
15685         localename: Fix gettext test failures on mingw.
15686         * lib/localename.c (gl_locale_name_posix): Convert the result of
15687         gl_locale_name_environ to XPG syntax.
15689 2018-11-23  Karl Berry  <karl@freefriends.org>
15691         * config/srclistvars.txt,
15692         * config/srclist.txt: remove all gettext references;
15693         the gettext maintainers will sync as needed.
15695 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15697         mktime: add libc-config dependency
15698         I missed this when we synced from glibc.
15699         * modules/mktime (Depends-on): Add libc-config.
15701 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15703         longlong: fix comment typo
15704         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
15706 2018-11-11  Bruno Haible  <bruno@clisp.org>
15708         havelib: Remove the need to include asm-underscore.m4.
15709         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
15710         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
15711         gl_HOST_CPU_C_ABI.
15712         * modules/havelib (Files): Add host-cpu-c-abi.m4.
15713         (Depends-on): Remove host-cpu-c-abi.
15715 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15717         parse-datetime: simplify test for mktime failure
15718         * lib/parse-datetime.y (mktime_ok): Simplify.
15719         Remove args TZ and T; no longer needed.  Callers changed.
15721         posixtm: simplify test for mktime failure
15722         * lib/posixtm.c (posixtime): Simplify.
15724         nstrftime: simplify test for mktime failure
15725         * lib/nstrftime.c (__strftime_internal): Simplify.
15727 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15729         gnulib-common.m4: port _Noreturn to C++
15730         Problem reported by Akim Demaille in:
15731         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
15732         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
15733         Merge adjustments from _Noreturn.h and from glibc into the non-C++
15734         version.
15735         * lib/_Noreturn.h: Match gnulib-common.
15737 2018-10-30  Bruno Haible  <bruno@clisp.org>
15739         gnu-make: Fix for NetBSD 8 'make'.
15740         Reported by Reuben Thomas in
15741         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
15742         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
15743         output, ignoring exit codes.
15745 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
15747         maintainer-makefile: fix syntax-check rule for "same.h"
15748         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
15749         for 'same_nameat', too.
15751 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15753         havelib: fix nested ‘configure’ chatter
15754         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
15755         AC_CACHE_CHECK calls, which resulted in confusing output like
15756         “checking for the common suffixes of directories in the library
15757         search path... checking for 64-bit host... no lib,lib”.
15759         backupfile: tweak for better code
15760         * lib/backupfile.c: Sort include directives, and remove
15761         unnecessary <limits.h> include.
15762         (FALLTHROUGH): New macro, copied from other modules.
15763         (backupfile_internal): Use it to avoid code duplication.
15764         This lets GCC 8.2.1 generate better code by inlining the
15765         call to check_extension.
15767 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15769         backupfile: new dir_fd args
15770         New module opendirat with code taken from fts.
15771         Use this module to let backupfile use a directory file descriptor.
15772         * NEWS: Document the incompatible change.
15773         * lib/backup-find.c (find_backup_file_name):
15774         * lib/backup-rename.c (backup_file_rename):
15775         New arg DIR_FD.
15776         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
15777         (SIZE_MAX): Remove.
15778         Include opendirat.h rather than dirent--.h.
15779         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
15780         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
15781         (backupfile_internal): New arg DIR_FD.  All callers changed.
15782         * lib/fts.c: Include opendirat.h.
15783         (opendirat): Move to opendirat.c.
15784         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
15785         * modules/backupfile (Depends-on): Remove dirfd, opendir.
15786         Add opendirat.
15787         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
15788         Add opendirat.
15790 2018-10-23  Bruno Haible  <bruno@clisp.org>
15792         localename: Simplify support for per-thread locales on Solaris 11.4.
15793         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
15794         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
15795         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
15796         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
15797         specific code.
15798         * lib/localename-table.h: Update comments.
15799         * lib/localename-table.c: Update comments.
15800         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
15801         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
15802         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
15803         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
15804         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
15805         HAVE_NAMELESS_LOCALES here.
15806         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
15807         m4/intlsolaris.m4.
15808         * modules/gettext (Files): Likewise.
15810 2018-10-22  Bruno Haible  <bruno@clisp.org>
15812         std-gnu11: Support Autoconf versions < 2.64.
15813         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
15814         when _AC_DO_LIMIT does not exist.
15816 2018-10-22  Bruno Haible  <bruno@clisp.org>
15818         Assume Autoconf >= 2.63.
15819         * DEPENDENCIES: Mention the requirement.
15821         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
15822         (func_get_filelist): Don't list m4/onceonly.m4 any more.
15823         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
15824         * m4/onceonly.m4: Remove file.
15826         * m4/openmp.m4: Remove file.
15827         * modules/openmp (Files): Remove m4/openmp.m4.
15829         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
15830         htmldir, dvidir, pdfdir, psdir, localedir.
15831         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
15833         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
15834         Autoconf < 2.60.
15835         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
15836         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
15838         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
15839         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
15840         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
15842         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
15843         exists.
15844         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
15846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
15847         Autoconf < 2.61.
15849         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
15850         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
15851         Autoconf >= 2.52.
15853         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
15854         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
15855         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
15857 2018-10-22  Bruno Haible  <bruno@clisp.org>
15859         Assume Automake >= 1.11.
15860         * m4/configmake.m4: Update comments.
15861         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
15862         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
15863         of 'eval'.
15864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
15865         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
15866         requires Automake >= 1.11.
15868 2018-10-22  Bruno Haible  <bruno@clisp.org>
15870         localename: Fix typo in comment.
15871         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
15873 2018-10-22  Bruno Haible  <bruno@clisp.org>
15875         Fix failure of 'gnulib-tool --create-testdir' with all modules.
15876         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
15878 2018-10-21  Bruno Haible  <bruno@clisp.org>
15880         locale: Ease integration with GNU libintl.
15881         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
15882         GNULIB_defined_freelocale): New macros.
15884 2018-10-21  Bruno Haible  <bruno@clisp.org>
15886         localename: Fine-tune support for per-thread locales on Solaris 11.4.
15887         * lib/localename-table.h: New file, extracted from lib/localename.c.
15888         * lib/localename-table.c: Likewise.
15889         * lib/localename.c: Include localename-table.h.
15890         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
15891         locale_hash_function instead of pointer_hash.
15892         * modules/localename (Files): Add lib/localename-table.h,
15893         lib/localename-table.c.
15894         (lib_SOURCES): Add localename-table.c.
15895         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
15896         for Solaris 11.4 locale system only on Solaris. Test for it
15897         independently whether getlocalename_l exists.
15898         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
15899         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
15900         HAVE_NAMELESS_LOCALES.
15901         * modules/gettext (Files): Add m4/intlsolaris.m4.
15903 2018-10-21  Bruno Haible  <bruno@clisp.org>
15905         Small update from gettext.
15906         * m4/intl.m4: Update from gettext:
15907         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
15908         mode on AIX.
15909         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
15910         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
15912 2018-10-16  Bruno Haible  <bruno@clisp.org>
15914         mountlist: Remove support for Cray with UNICOS 9.
15915         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15916         MOUNTED_LISTMNTENT.
15917         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
15919 2018-10-16  Bruno Haible  <bruno@clisp.org>
15921         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
15922         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
15923         STAT_STATFS2_FS_DATA.
15924         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
15925         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
15926         MOUNTED_GETMNT.
15927         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
15928         * lib/getloadavg.c (decstation): Remove definition and case.
15929         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
15930         * lib/getgroups.c: Likewise.
15931         * doc/posix-functions/getgroups.texi: Likewise.
15932         * lib/time.in.h: Update comments.
15934 2018-10-16  Bruno Haible  <bruno@clisp.org>
15936         getloadavg: Remove support for ConvexOS.
15937         * lib/getloadavg.c: Remove convex case.
15939 2018-10-16  Bruno Haible  <bruno@clisp.org>
15941         getloadavg: Remove support for Sony NEWS.
15942         * lib/getloadavg.c: Remove sony_news case.
15944 2018-10-16  Bruno Haible  <bruno@clisp.org>
15946         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
15947         * lib/fsusage.c: Remove _SEQUENT_ case.
15948         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
15949         * lib/mountlist.c: Don't test for MNTTABNAME.
15950         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
15951         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
15952         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
15953         * lib/stat-size.h: Don't mention the Sequent bug.
15954         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
15956 2018-10-16  Bruno Haible  <bruno@clisp.org>
15958         fsusage: Remove support for AIX 3.
15959         * lib/fsusage.c: Remove code for AIX 3.
15960         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
15962 2018-10-16  Bruno Haible  <bruno@clisp.org>
15964         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
15965         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
15966         * lib/fsusage.c: Remove code for AIX PS/2.
15967         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
15968         * lib/getloadavg.c: Likewise.
15970 2018-10-16  Bruno Haible  <bruno@clisp.org>
15972         getloadavg: Remove support for HP-UX on m68k.
15973         * lib/getloadavg.c: Remove hp9000s300 case.
15975 2018-10-16  Bruno Haible  <bruno@clisp.org>
15977         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
15978         * lib/fsusage.c: Remove DOLPHIN case.
15979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
15980         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
15982 2018-10-16  Bruno Haible  <bruno@clisp.org>
15984         getloadavg: Remove support for Alliant FX/2800.
15985         * lib/getloadavg.c: Remove alliant case.
15987 2018-10-16  Bruno Haible  <bruno@clisp.org>
15989         getloadavg: Remove support for tek4300.
15990         * lib/getloadavg.c: Remove tek4300 case.
15992 2018-10-16  Bruno Haible  <bruno@clisp.org>
15994         getloadavg: Remove support for Ardent.
15995         * lib/getloadavg.c: Remove ardent case.
15997 2018-10-16  Bruno Haible  <bruno@clisp.org>
15999         mountlist: Remove support for SVR2.
16000         Reported by Andrew Borodin <aborodin@vmail.ru> in
16001         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16002         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16003         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16004         MOUNTED_FREAD.
16006 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16008         libc-config: merge from glibc
16009         * lib/cdefs.h (__glibc_has_attribute): New macro.
16011         regex: depend on libc-config
16012         * modules/regex (Depends-on): Add libc-config.
16013         This is needed after the recent autoupdate from glibc.
16015 2018-10-14  Bruno Haible  <bruno@clisp.org>
16017         localename: Add support for per-thread locales on Solaris 11.4.
16018         * lib/locale.in.h (newlocale, freelocale): New declarations.
16019         (duplocale): Declare also when the 'localename' module requests it.
16020         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16021         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16022         (struniq): Update.
16023         (struct locale_categories_names, struct locale_hash_node): New types.
16024         (LOCALE_HASH_TABLE_SIZE): New constant.
16025         (locale_hash_table, locale_lock): New variables.
16026         (pointer_hash, get_locale_t_name): New functions.
16027         (newlocale, duplocale, freelocale): New overridden functions.
16028         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16029         * m4/intlsolaris.m4: New file.
16030         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16031         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16032         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16033         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16034         declared.
16035         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16036         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16037         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16038         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16039         * modules/localename (Files): Add intlsolaris.m4.
16040         (Depends-on): Add 'locale'.
16041         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16042         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16043         the signatures.
16045 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16047         timevar: use gethrxtime to get wall clock time
16048         clock_gettime is not portable.  gethrxtime takes the best available
16049         option to get the wall clock time, including clock_gettime (monotonic
16050         clock), and gettime (non monotonic).
16051         Also, using xtime_t instead of float preserves the precision.
16052         Suggested by Bruno Haible.
16053         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16054         * modules/timevar (Depends-on): We need gethrxtime.
16055         We no longer use times().
16056         (Link): Update.
16057         * lib/timevar.h (timevar_time_def): Use xtime_t.
16058         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16059         (timevar_print): Instead of checking whether the timings themselves
16060         are large enough for the timevar to be printed, check the percentages.
16062 2018-10-14  Bruno Haible  <bruno@clisp.org>
16064         wcsnrtombs: Work around Solaris 11.4 bug.
16065         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16066         macro.
16067         (gl_FUNC_WCSNRTOMBS): Invoke it.
16068         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16070 2018-10-14  Bruno Haible  <bruno@clisp.org>
16072         mbsnrtowcs: Work around Solaris 11.4 bug.
16073         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16074         macro.
16075         (gl_FUNC_MBSNRTOWCS): Invoke it.
16076         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16078 2018-10-14  Bruno Haible  <bruno@clisp.org>
16080         doc: Update for Solaris 11.4.
16081         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16082         mention Solaris 11.4.
16083         * m4/printf.m4: Update comments about Solaris.
16084         * m4/log.m4: Likewise.
16085         * m4/log10.m4: Likewise.
16086         * m4/logb.m4: Likewise.
16087         * m4/logbf.m4: Likewise.
16088         * m4/logbl.m4: Likewise.
16089         * m4/rename.m4: Likewise.
16090         * m4/wcrtomb.m4: Likewise.
16091         * m4/hostent.m4: Likewise.
16092         * m4/servent.m4: Likewise.
16094 2018-10-14  Bruno Haible  <bruno@clisp.org>
16096         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16097         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16098         pointer.
16099         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16100         pointer.
16101         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16102         pointer.
16103         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16104         pointer.
16105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16106         pointer.
16108 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16110         bootstrap: fix wget command for po files.
16111         * build-aux/bootstrap (po_download_command_format): Fix comment,
16112         and adjust callers.
16114 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16116         timevar: improve the output format
16117         Suggested by Bruno Haible.
16118         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16119         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16120         wall, since its resolution is much higher.
16122 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16124         timevar: expect that getrusage is available.
16125         Don't keep both times and getrusage as backend: both are guaranteed by
16126         gnulib, a single one suffices.  Using getrusage is open to possibly
16127         tracking other types of resources in the future.
16128         * modules/timevar (Depends-on): Add getrusage.
16129         (configure.ac): Remove gl_TIMEVAR.
16130         (Files): Remove m4/timevar.m4.
16131         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16132         * lib/timevar.h (timevar_enabled): Clarify documentation.
16133         * lib/timevar.c: Remove all the code about times.
16134         Remove all the CPP guards about getrusage: expect it to be present
16135         (courtesy of gnulib).
16137 2018-10-12  Bruno Haible  <bruno@clisp.org>
16139         mountlist: Improve support for Solaris in 64-bit mode.
16140         Reported by David Wood <David.Wood@deshaw.com> in
16141         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16143         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16144         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16146 2018-10-12  Bruno Haible  <bruno@clisp.org>
16148         mountlist: Add support for Minix.
16149         Reported by Assaf Gordon in
16150         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16151         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16152         AC_CHECK_FUNCS to check for 'getmntinfo'.
16153         * lib/mountlist.c: Update comments.
16155 2018-10-12  Bruno Haible  <bruno@clisp.org>
16157         Make better use of Autoconf.
16158         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16159         * m4/manywarnings.m4: Likewise.
16160         * m4/manywarnings-c++.m4: Likewise.
16161         * m4/socklen.m4: Likewise.
16162         * m4/sockpfaf.m4: Likewise.
16163         * m4/stdarg.m4: Likewise.
16164         * m4/visibility.m4: Likewise.
16165         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16166         indentation.
16167         * m4/ls-mntd-fs.m4: Likewise.
16169 2018-10-11  Bruno Haible  <bruno@clisp.org>
16171         mountlist: Modernize platform lists.
16172         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16173         platforms, deemphasizing the obsolete ones.
16174         * lib/mountlist.c: Likewise.
16176 2018-10-11  Bruno Haible  <bruno@clisp.org>
16178         getprogname: Add support for 32-bit programs on HP-UX.
16179         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16180         try the similar functions 32-bit programs on 64-bit HP-UX.
16182 2018-10-11  Bruno Haible  <bruno@clisp.org>
16184         getprogname: Work around program name truncation when possible.
16185         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16186         possibly use pst_cmd instead.
16188 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16190         fts: cleanup after FTS_NOATIME removal
16191         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16192         (FTS_STOP): Shrink to minimal values.  We don’t need to
16193         worry about binary compatibility in Gnulib, and the old way
16194         of doing things had a hole in the user options that caused
16195         FTS_OPTIONMASK to not work as desired.
16197 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16199         fts: remove FTS_NOATIME
16200         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16201         We cannot guarantee that O_NOATIME works: e.g. openat fails
16202         with EPERM if the effective user ID of the caller does not match
16203         the owner of the file and the caller is not privileged.
16204         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16205         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16206         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16207         (FTS_OPTIONMASK): Adjust.
16208         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
16209         (fd_ring_check): Likewise.
16211 2018-10-08  Bruno Haible  <bruno@clisp.org>
16213         csharpcomp*, csharpexec*: Remove support for pnet.
16214         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
16215         HAVE_CSCC.
16216         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
16217         Don't test HAVE_CSCC.
16218         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
16219         (compile_csharp_class): Don't invoke it.
16220         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
16221         HAVE_ILRUN.
16222         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
16223         Don't test HAVE_ILRUN.
16224         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
16225         (execute_csharp_program): Don't invoke it.
16226         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
16227         any more.
16229 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
16231         renameatu: prefer renameat2 to syscall
16232         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
16233         Use renameat2 instead of syscall (Bug#32796).
16234         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
16236 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16238         bootstrap, gnulib-tool: use https instead of insecure rsync
16239         * build-aux/bootstrap (download_po_files, po_download_command_format):
16240         Don't try using rsync; always use wget over https to fetch PO files.
16241         * gnulib-tool (func_import): Likewise.
16242         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16244 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16246         bootstrap, gnulib-tool: correct the translations wget command
16247         * build-aux/bootstrap (po_download_command_format2): Restrict
16248         recursion to a single level.
16249         * gnulib-tool (func_import): Likewise.
16250         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16252 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16254         doc: the gnulib snapshots are not maintained
16255         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16257 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16259         timevar: add to lib_SOURCES
16260         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16262 2018-10-07  Bruno Haible  <bruno@clisp.org>
16264         dirent: Update documentation.
16265         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16267 2018-10-05  Bruno Haible  <bruno@clisp.org>
16269         strpbrk: Make it possible to namespace the defined symbol.
16270         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16272 2018-10-05  Bruno Haible  <bruno@clisp.org>
16274         strcspn: Make it possible to namespace the defined symbol.
16275         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16277 2018-10-05  Bruno Haible  <bruno@clisp.org>
16279         raise: Make it possible to namespace the defined symbol.
16280         * lib/raise.c (raise): Undefine only after the replacement function has
16281         been defined.
16282         (raise): Renamed from rpl_raise.
16283         (raise_nothrow): Move to the end of the compilation unit.
16285 2018-10-05  Bruno Haible  <bruno@clisp.org>
16287         memcmp: Make it possible to namespace the defined symbol.
16288         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16290 2018-10-05  Bruno Haible  <bruno@clisp.org>
16292         explicit_bzero: Make it possible to namespace the defined symbol.
16293         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16294         glibc.
16296 2018-10-05  Bruno Haible  <bruno@clisp.org>
16298         mkdir-p: Depend on 'mkdir'.
16299         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16301 2018-10-05  Bruno Haible  <bruno@clisp.org>
16303         tempname: Depend on 'mkdir'.
16304         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16305         at <https://savannah.gnu.org/bugs/?33379>.
16306         * modules/tempname (Depends-on): Add 'mkdir'.
16308 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16310         timevar: rely on gnulib modules for time portability.
16311         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16312         * m4/timevar.m4: Don't check for clock_t and struct tms,
16313         guaranteed by gnulib.
16314         * lib/timevar.h: Use extern "C" protection.
16315         Include <stdio.h> for FILE.
16316         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16317         they are guaranteed by gnulib.
16318         Remove uses of clock as (now useless) fallback.
16320 2018-10-04  Bruno Haible  <bruno@clisp.org>
16322         sh-filename: New module.
16323         * m4/sh-filename.m4: New file.
16324         * modules/sh-filename: New file.
16325         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16326         "/bin/sh".
16327         * tests/test-posix_spawn1.c (main): Likewise.
16328         * tests/test-posix_spawn2.c (main): Likewise.
16329         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16330         is_envjavac_gcj43): Likewise.
16331         * lib/javaexec.c (execute_java_class): Likewise.
16332         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16333         * modules/posix_spawnp-tests (Depends-on): Likewise.
16334         * modules/javacomp (Depends-on): Likewise.
16335         * modules/javaexec (Depends-on): Likewise.
16337 2018-10-04  Bruno Haible  <bruno@clisp.org>
16339         spawn-pipe tests: Avoid test failure on native Windows.
16340         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16341         that fd 2 is closed.
16343 2018-10-04  Bruno Haible  <bruno@clisp.org>
16345         fcntl: Make it possible to namespace the defined symbol.
16346         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16347         been defined.
16348         (fcntl): Renamed from rpl_fcntl.
16349         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16350         from fcntl.
16351         (klibc_fcntl): Move to the end of the compilation unit.
16353 2018-10-02  Bruno Haible  <bruno@clisp.org>
16355         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16356         * tests/test-vasnprintf.c (test_function): Change the test added on
16357         2018-09-23 to check only the 18 most significant digits.
16359         vasnprintf tests: Avoid test failure on Cygwin.
16360         * tests/test-vasnprintf.c (test_function): Change the test added on
16361         2018-09-23 to check only the 42 most significant digits.
16363 2018-10-01  Bruno Haible  <bruno@clisp.org>
16365         mkostemp, mkostemps: Update documentation.
16366         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16367         * doc/glibc-functions/mkostemps.texi: Likewise.
16369 2018-10-01  Tom Tromey  <tom@tromey.com>
16371         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16372         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16373         on OS X.
16375 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16377         hmac-*: refactor to remove repetitive code
16378         * lib/hmac.c: A new parameterized single implementation.
16379         * lib/hmac-md5.c: Define parameters and include implementation.
16380         * lib/hmac-sha1.c: Likewise.
16381         * lib/hmac-sha256.c: Likewise.
16382         * lib/hmac-sha512.c: Likewise.
16383         * modules/crypto/hmac-md5: Reference the new implementation file.
16384         * modules/crypto/hmac-sha1: Likewise.
16385         * modules/crypto/hmac-sha256: Likewise.
16386         * modules/crypto/hmac-sha512: Likewise.
16387         * tests/test-hmac-md5.c: Refactor common code to a single function.
16388         * tests/test-hmac-sha1.c: Likewise.
16389         * tests/test-hmac-sha256.c: Likewise.
16390         * tests/test-hmac-sha512.c: Likewise.
16392 2018-09-30  Zhang Qing  <zhangqingl@126.com>
16394         hmac-sha512: fix hash for keys > blocksize (128 bytes)
16395         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
16396         key length to that output by sha512, not the blocksize.
16397         Otherwise uninitialized data from the stack
16398         is used when computing the hash.
16399         * tests/test-hmac-sha512.c: Add a shortened key test case.
16400         Reported at https://github.com/coreutils/gnulib/pull/5
16402 2018-09-30  Bruno Haible  <bruno@clisp.org>
16404         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
16405         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
16406         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
16407         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
16408         'unsigned int' before comparison with an unsigned value.
16410 2018-09-30  Bruno Haible  <bruno@clisp.org>
16412         grantpt: Remove unnecessary dependency.
16413         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
16415 2018-09-30  Bruno Haible  <bruno@clisp.org>
16417         timevar: Small tweaks.
16418         * lib/timevar.h: Fix comments. Add parameter names to function
16419         declarations.
16420         * lib/timevar.c: Include timevar.h immediately after config.h.
16421         * lib/timevar.def: Fix comments.
16422         * modules/timevar (Maintainer): List Akim Demaille.
16424 2018-09-30  Bruno Haible  <bruno@clisp.org>
16426         timevar: Include documentation in gnulib manual.
16427         * doc/timevar.texi: Change node and section name to 'Profiling of
16428         program phases'.
16429         In the code snippets, tweak the #includes and use GNU coding style.
16430         * doc/gnulib.texi: Include timevar.texi.
16432 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
16434         timevar: import from Bison.
16435         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
16436         New files.
16437         * lib/timevar.def: New file.
16438         * doc/timevar.texi: New file.
16440 2018-09-26  Bruno Haible  <bruno@clisp.org>
16442         javacomp-script, javacomp: Add preliminary support for Java 12..17.
16443         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
16444         * lib/javacomp.c (default_target_version): Likewise.
16446 2018-09-26  Bruno Haible  <bruno@clisp.org>
16448         javacomp-script, javacomp: Add support for Java 11.
16449         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
16450         target-version 11.
16451         * lib/javaversion.h: Update comments.
16452         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16453         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16454         TARGET_VERSION_BOUND, target_version_index,
16455         corresponding_classfile_version): Accept source_version 11 and
16456         target_version 11.
16457         * lib/javacomp.h: Update comments accordingly.
16459 2018-09-23  Bruno Haible  <bruno@clisp.org>
16461         vasnprintf: Fix heap memory overrun bug.
16462         Reported by Ben Pfaff <blp@cs.stanford.edu> in
16463         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
16464         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
16465         memory.
16466         * tests/test-vasnprintf.c (test_function): Add another test.
16468 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16470         maint: mktime.c now shared with glibc
16471         * config/srclist.txt: intprops.h, timegm.c and mktime.c
16472         are now the same in Gnulib and glibc.
16474         mktime: fix _LIBC typo
16475         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
16477 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16479         dfa: optimization for state merge
16480         * lib/dfa.c (merge2): New function.
16481         (merge_nfa_state): Use it.
16483 2018-09-18  Jim Meyering  <meyering@fb.com>
16485         dfa: trivial comment fix: s/is/if/
16486         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
16488 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16490         dfa: use more-informative function name
16491         * lib/dfa.c (maybe_disable_superset_dfa):
16492         Rename from dfautf8noss.  Use change.
16494         dfa: tweak allocation performance
16495         * lib/dfa.c (merge_nfa_state, dfaoptimize):
16496         Prefer ptrdiff_t for indexes some more.
16497         Use char for flags, as it’s wide enough.
16498         Allocate queue and flags together, with one malloc call.
16499         No need to use xnmalloc since the multiplication and
16500         addition cannot overflow (it’s already been checked by
16501         earlier allocation).  Prefer memset to open-coding.
16503         dfa: prune states as we go
16504         * lib/dfa.c (prune): Remove.
16505         dfa: reorder enum for efficiency
16506         (merge_nfa_state): Prune as we go instead of at the end.
16507         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
16509         * lib/dfa.c (END): Now -1 again.  Reorder other elements
16510         of the enumeration to make it easier for GCC to generate
16511         efficient code by using fewer comparisons to check for
16512         ranges of values.
16513         (atom): Take advantage of the reordering.
16515 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16517         dfa: optimize alternation in NFA
16518         Even when similar states exist in alternation, the DFA treats them
16519         as separate items, which may complicate the transition in NFA and
16520         cause slowdown.  This change assembles the states into one.  For
16521         example, ab|ac is changed into a(b|c).  This change speeds-up
16522         matching for many branched patterns.  For example, grep speeds up
16523         more than 30× in:
16525           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
16526           time -p env LC_ALL=C grep -vf in in
16528         * lib/dfa.c (prune): New function.
16529         (merge_nfa_state): New function.  It merges similar NFA states.
16530         (dfaoptimize): New function.  It seeks merged and removed nodes.
16531         (dfaanalyze): Call new function.
16532         (dfautf8noss): Change name from dfaoptimize because of addition of new
16533         function.
16534         (dfacomp): Update caller.
16536         dfa: simplify initial state
16537         Simplifying the initial state enables easier optimization of the NFA.
16538         * lib/dfa.c (enum token): Add new element BEG.
16539         (prtok): Adjust due to adding element BEG.
16540         (dfaparse): Put BEG at a head of tokens.
16541         (state_index): Adjust due to adding element BEG.
16542         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
16543         build initial state.
16544         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
16546 2018-09-18  Bruno Haible  <bruno@clisp.org>
16548         file-has-acl: Fix test failure on Cygwin 2.9.
16549         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
16550         * lib/acl-internal.h: Likewise.
16551         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
16552         * lib/acl-internal.c: Update comments regarding Cygwin.
16553         * lib/acl_entries.c: Likewise.
16554         * lib/file-has-acl.c: Likewise.
16555         (file_has_acl): For Cygwin, use a different way to determine whether
16556         the "default" ACL of a directory is nontrivial.
16557         * lib/get-permissions.c: Update comments regarding Cygwin.
16558         * lib/set-permissions.c: Likewise.
16560 2018-09-18  Bruno Haible  <bruno@clisp.org>
16562         stat-time tests: Fix test failure on Cygwin.
16563         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
16565 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16567         doc: OS X 10.11 lacked ns time functions
16568         According to <https://github.com/zeromq/libzmq/issues/2175>,
16569         nanosecond-resolution timestamp functions were introduced
16570         in macOS 10.12, so document the last version (OS X 10.11)
16571         where they were absent.
16573         gettime: nanotime never existed
16574         Problem reported by Bruno Haible in:
16575         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
16576         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
16577         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
16579 2018-09-18  Bruno Haible  <bruno@clisp.org>
16581         doc: Update statement about target platforms.
16582         Reported by Simon Sobisch.
16583         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
16584         restrictions on MSVC versions.
16586 2018-09-18  Bruno Haible  <bruno@clisp.org>
16588         posix_spawn tests: Fix link error on 64-bit Cygwin.
16589         * tests/test-posix_spawn1.c (environ): Remove declaration.
16590         * tests/test-posix_spawn2.c (environ): Likewise.
16591         * tests/test-posix_spawn3.c (environ): Likewise.
16592         * tests/test-posix_spawn4.c (environ): Likewise.
16593         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
16594         * modules/posix_spawnp-tests (Depends-on): Likewise.
16596 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16598         timespec: new function current_timespec
16599         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
16600         and don’t worry about it failing on a CLOCK_REALTIME arg.
16601         POSIX requires it to succeed and I don’t know of any
16602         counterexamples where the fallbacks would work.
16603         (current_timespec): New function, taken from Emacs.  It is more
16604         convenient than gettime, and can help register allocation.
16605         * lib/timespec.h: Include arg-nonnull.h.
16606         (current_timespec): New declaration.
16607         (gettime, settime): Declare args to be nonnull.
16608         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
16610 2018-09-16  Bruno Haible  <bruno@clisp.org>
16612         setlocale: Improve locale handling on macOS 10.12 or newer.
16613         * lib/setlocale.c: Include header files for CoreFoundation. Declare
16614         gl_locale_name_canonicalize.
16615         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
16616         and LC_MESSAGES.
16617         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
16619 2018-09-16  Bruno Haible  <bruno@clisp.org>
16621         Update list of locale names with scripts on macOS.
16622         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
16623         match Mac OS X 10.13 and recent glibc.
16625 2018-09-16  Bruno Haible  <bruno@clisp.org>
16627         gettext: Use newer macOS APIs when possible.
16628         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
16629         CFLocaleCopyPreferredLanguages.
16631 2018-09-16  Bruno Haible  <bruno@clisp.org>
16633         localename: Revisit macOS specific code.
16634         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
16635         Fix comments about Mac OS X versions.
16637 2018-09-15  Bruno Haible  <bruno@clisp.org>
16639         setlocale: Improve support for locales not supported by libc.
16640         Reported by Dapeng Gao <peter@dpgao.cc> at
16641         <https://savannah.gnu.org/bugs/?54479>.
16642         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
16643         (libintl_setlocale): Use a more error-tolerant strategy when the locale
16644         to be set is not supported by libc: Emit warnings instead of failing.
16646 2018-09-15  Bruno Haible  <bruno@clisp.org>
16648         strstr, strcasestr: Add workaround against glibc-2.28 bug.
16649         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
16650         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
16651         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
16652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
16653         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
16654         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
16655         * doc/glibc-functions/strcasestr.texi: Likewise.
16657 2018-09-14  Bruno Haible  <bruno@clisp.org>
16659         doc: Fix bottom of top-level page.
16660         Reported by Akim Demaille <akim.demaille@gmail.com> in
16661         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
16662         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
16663         mode.
16664         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
16665         accordingly.
16667 2018-09-12  Bruno Haible  <bruno@clisp.org>
16669         Add test case from a recent glibc bug.
16670         * tests/test-strstr.c (main): Add test of long needle.
16671         * tests/test-strcasestr.c (main): Likewise.
16672         * tests/test-c-strstr.c (main): Likewise.
16673         * tests/test-c-strcasestr.c (main): Likewise.
16674         * tests/test-memmem.c (main): Likewise.
16676 2018-09-12  Bruno Haible  <bruno@clisp.org>
16678         Apply Eric Blake's improvements from 2011-02-25 to more tests.
16679         * tests/test-c-strstr.c (main): Add the same tests here as well.
16681 2018-09-12  Bruno Haible  <bruno@clisp.org>
16683         Apply Jim Meyering's fix from 2015-01-11 to more tests.
16684         * tests/test-memmem.c (main): Free haystack.
16685         * tests/test-strcasestr.c (main): Likewise.
16686         * tests/test-c-strcasestr.c (main): Likewise.
16688 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16690         xstrtol: fix missing-TYPE_SIGNED typo
16691         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
16693 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16695         timespec: fix resolution confusion
16696         In normal usage, clock resolution is given in seconds, but the
16697         code was mistakenly using inverse seconds and calling it
16698         “resolution”.  Fix this, partly by renaming two identifiers.
16699         The old names will be kept for a bit, to ease transition.
16700         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
16701         New constants, replacing TIMESPEC_RESOLUTION and
16702         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
16703         All uses changed.
16705 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16707         mktime: simplify in prep for glibc merge
16708         * lib/mktime.c, lib/timegm.c [_LIBC]:
16709         Include mktime-internal.h (a small file just for glibc)
16710         instead of using a typedef.
16712 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16714         intprops: minor clarification of code
16715         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
16716         Use _GL_INT_CONVERT rather than reinventing it.
16718 2018-09-07  Bruno Haible  <bruno@clisp.org>
16720         Fix a comment.
16721         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
16723 2018-09-07  Bruno Haible  <bruno@clisp.org>
16725         posix_spawn_file_actions_addchdir: Add tests.
16726         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
16727         * tests/test-posix_spawn4.c: New file.
16728         * modules/posix_spawn_file_actions_addchdir-tests: New file.
16730 2018-09-07  Bruno Haible  <bruno@clisp.org>
16732         posix_spawn_file_actions_addchdir: New module.
16733         Suggested by Eric Blake in
16734         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
16735         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
16736         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
16737         union member 'chdir_action'.
16738         * lib/spawn_faction_addchdir.c: New file.
16739         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
16740         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
16741         HAVE_WORKING_POSIX_SPAWN.
16742         * lib/spawn_faction_adddup2.c: Likewise.
16743         * lib/spawn_faction_addopen.c: Likewise.
16744         * m4/posix_spawn_faction_addchdir.m4: New file.
16745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
16746         'posix_spawn_file_actions_addchdir' is present and whether
16747         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
16748         instead of HAVE_WORKING_POSIX_SPAWN.
16749         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
16750         posix_spawn_file_actions_addchdir is declared.
16751         (gl_SPAWN_H_DEFAULTS): Initialize
16752         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16753         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16754         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16755         * modules/spawn (Makefile.am): Substitute
16756         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16757         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16758         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16759         * modules/posix_spawn_file_actions_addchdir: New file.
16760         * modules/posix_spawn_file_actions_addclose (Depends-on,
16761         configure.ac): Test also REPLACE_POSIX_SPAWN.
16762         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
16763         configure.ac): Likewise.
16764         * modules/posix_spawn_file_actions_addopen (Depends-on,
16765         configure.ac): Likewise.
16766         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
16767         signature.
16768         * doc/posix-functions/posix_spawn.texi: Mention the new module.
16769         * doc/posix-functions/posix_spawnp.texi: Likewise.
16771 2018-09-06  Bruno Haible  <bruno@clisp.org>
16773         stddef: Override max_align_t on NetBSD 8.0/x86.
16774         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
16775         the value of __alignof__ (max_align_t).
16776         * doc/posix-headers/stddef.texi: Mention the issue.
16778 2018-09-06  Bruno Haible  <bruno@clisp.org>
16780         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
16781         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
16782         system fcntl.
16783         * doc/posix-functions/fcntl.texi: Document the issue.
16785 2018-09-06  Bruno Haible  <bruno@clisp.org>
16787         count-trailing-zeros tests: Rely on limits-h module.
16788         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
16789         definition.
16790         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
16792 2018-09-06  Bruno Haible  <bruno@clisp.org>
16794         count-leading-zeros tests: Rely on limits-h module.
16795         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
16796         definition.
16797         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
16799 2018-09-06  Bruno Haible  <bruno@clisp.org>
16801         count-one-bits tests: Rely on limits-h module.
16802         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
16803         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
16805 2018-09-06  Bruno Haible  <bruno@clisp.org>
16807         xstrtoll: Rely on limits-h module.
16808         * lib/xstrtol.c: Don't include intprops.h.
16809         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16810         * modules/xstrtol (Depends-on): Remove 'intprops'.
16811         * modules/xstrtoll (Depends-on): Add 'limits-h'.
16813 2018-09-06  Bruno Haible  <bruno@clisp.org>
16815         strtoll, strtoull: Rely on limits-h module.
16816         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
16817         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16818         * modules/strtoll (Depends-on): Add limits-h.
16819         * modules/strtoull (Depends-on): Likewise.
16821 2018-09-06  Bruno Haible  <bruno@clisp.org>
16823         intprops tests: Fix compilation error with pre-C99 compiler.
16824         * tests/test-intprops.c (verify_stmt): New macro.
16825         (VERIFY, main): Use it.
16827 2018-09-06  Bruno Haible  <bruno@clisp.org>
16829         limits-h: Provide numerical limits macros.
16830         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
16831         IRIX and for GCC.
16832         (WORD_BIT, LONG_BIT): Define.
16833         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
16834         <limits.h> does not define LLONG_MAX or WORD_BIT.
16835         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
16836         TYPE_MAXIMUM): New macros, from intprops.h.
16837         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
16838         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
16839         provides.
16841 2018-09-05  Bruno Haible  <bruno@clisp.org>
16843         fcntl: Don't access nonexistent optional argument.
16844         Reported by Frank Busse <f.busse@imperial.ac.uk> in
16845         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
16846         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
16847         don't consume an argument. For actions that take an 'int' argument,
16848         consume an 'int' argument.
16850 2018-09-05  Eric Blake  <eblake@redhat.com>
16852         doc: mention environ pitfall
16853         * doc/posix-functions/environ.texi (environ): Assigning NULL to
16854         environ is a glibc extension.
16856 2018-09-03  Bruno Haible  <bruno@clisp.org>
16858         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
16859         Reported by Antoine Luong <antoine.luong@c-s.fr> in
16860         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
16861         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
16862         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
16863         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
16865 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16867         mktime: fix unlikely race+overflow bug
16868         Problem reported by Alexandre Oliva in:
16869         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
16870         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
16871         to avoid an unlikely race if the compiler delays a load and
16872         if this cascades into a signed integer overflow.
16874 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16876         mktime, timegm: simplify glibc time64_t
16877         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
16878         Now long int, not time_t, since long int is the longstanding type
16879         for this in glibc and there is no need to change it even if time_t
16880         becomes 64 bits - even int would do, though this would be a change
16881         to the glibc generated code.  When this change is merged into
16882         glibc, it should simplify the time_t vs time64_t situation.
16884         mktime, timegm: simplify merge to glibc
16885         Move code around to make a merge to glibc easier to audit.
16886         This should not change behavior.
16887         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
16888         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
16889         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
16890         simplify later conditionals; default the others to zero.  In uses
16891         of these conditionals, explicitly spell out how _LIBC affects
16892         things, so it’s easier to review from a glibc viewpoint.
16893         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
16894         compartmentalize tzset issues.  Move system-dependent tzsettish
16895         code here from mktime.
16896         (mktime): Move tzsettish code to my_tzset, and move
16897         localtime_offset to within mktime so that it doesn’t
16898         need a separate ifdef.
16900 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
16902         intprops: avoid evaluation of some expressions
16903         This makes EXPR_SIGNED (e) easier to use, as it no longer
16904         evaluates the expression E.  Formerly, E was required to be free
16905         of side effects.
16906         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
16907         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
16908         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
16910 2018-08-23  Bruno Haible  <bruno@clisp.org>
16912         getcwd: Add cross-compilation guesses.
16913         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
16914         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
16915         Based on a patch by Paul Eggert.
16916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
16917         guesses for all GNU systems.
16919 2018-08-19  Bruno Haible  <bruno@clisp.org>
16921         glob-h: Formalize side effects from other modules.
16922         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
16923         * m4/glob.m4 (gl_GLOB): Invoke it.
16925         fnmatch-h: Formalize side effects from other modules.
16926         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
16927         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
16929         limits-h: Formalize side effects from other modules.
16930         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
16931         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
16933 2018-08-19  Bruno Haible  <bruno@clisp.org>
16935         getpass: Move declaration to <unistd.h>.
16936         * lib/unistd.in.h (getpass): New declaration.
16937         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
16938         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
16939         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
16940         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
16941         On glibc systems, don't set REPLACE_GETPASS to 1.
16942         * modules/getpass (Depends-on): Add 'unistd'.
16943         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
16944         (Include): Specify <unistd.h> instead of "getpass.h".
16945         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
16946         (configure.ac): Sync with the configure.ac section of modules/getpass.
16947         (Include): Specify <unistd.h> instead of "getpass.h".
16948         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
16949         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
16950         REPLACE_GETPASS.
16951         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
16952         REPLACE_GETPASS.
16953         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
16954         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
16955         and musl.
16956         * NEWS: Mention the change.
16958 2018-08-19  Bruno Haible  <bruno@clisp.org>
16960         glob: Fix over-optimization due to attribute __nonnull__.
16961         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
16963 2018-08-19  Bruno Haible  <bruno@clisp.org>
16965         glob: Fix another compilation error when glob.h is not replaced.
16966         Reported by Reuben Thomas <rrt@sc3d.org> in
16967         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
16968         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
16969         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
16971 2018-08-18  Bruno Haible  <bruno@clisp.org>
16973         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
16974         Reported by Reuben Thomas <rrt@sc3d.org> in
16975         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
16976         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
16977         in config.h.
16979 2018-08-18  Bruno Haible  <bruno@clisp.org>
16981         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
16982         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
16983         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
16984         Solution proposed by Eli Zaretskii.
16985         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
16986         * lib/gettimeofday.c (GetProcAddress): Likewise.
16987         * lib/link.c (GetProcAddress): Likewise.
16988         * lib/physmem.c (GetProcAddress): Likewise.
16989         * lib/poll.c (GetProcAddress): Likewise.
16990         * lib/select.c (GetProcAddress): Likewise.
16991         * lib/stat-w32.c (GetProcAddress): Likewise.
16993 2018-08-18  Bruno Haible  <bruno@clisp.org>
16995         glob: Fix another compilation error when glob.h is not replaced.
16996         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
16997         * lib/globfree.c: Include <libc-config.h>.
16999 2018-08-18  Bruno Haible  <bruno@clisp.org>
17001         glob: Fix compilation error when glob.h is not replaced.
17002         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17003         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17004         * lib/glob_pattern_p.c: Include <libc-config.h>.
17005         * modules/glob (Depends-on): Add libc-config.
17007 2018-08-18  Bruno Haible  <bruno@clisp.org>
17009         scratch_buffer: Add tests.
17010         * tests/test-scratch-buffer.c: New file.
17011         * modules/scratch_buffer-tests: New file.
17013 2018-08-18  Bruno Haible  <bruno@clisp.org>
17015         scratch_buffer: Fix include file.
17016         Reported by Reuben Thomas <rrt@sc3d.org> in
17017         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17018         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17019         double-inclusion guard.
17021 2018-08-18  Bruno Haible  <bruno@clisp.org>
17023         glob-h: Revert Paul Eggert's revert.
17024         * m4/glob_h.m4: Revert to previous state.
17025         * modules/glob-h: Likewise.
17027 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17029         glob-h: always build glob.h
17030         This works around a problem reported by Reuben Thomas in:
17031         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17032         This workaround always builds glob.h, even on platforms that
17033         do not need it; perhaps this could be improved someday.
17034         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17035         is always created now.
17036         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17038 2018-08-13  Bruno Haible  <bruno@clisp.org>
17040         monetary: Simplify m4 code.
17041         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17042         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17044 2018-08-13  Bruno Haible  <bruno@clisp.org>
17046         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17047         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17048         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17049         and by Paul J. Lucas <paul@lucasmail.org> in
17050         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17051         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17053 2018-08-11  Bruno Haible  <bruno@clisp.org>
17055         setlocale: Trivial simplification.
17056         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17058 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17060         verify: port 'assume' to traditional tools
17061         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17062         and other tools that use /*NOTREACHED*/ comments.
17064 2018-08-10  Bruno Haible  <bruno@clisp.org>
17066         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17067         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17068         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17069         'fnmatch-gnu' is in use.
17071 2018-08-07  Bruno Haible  <bruno@clisp.org>
17073         glob-h: Add tests.
17074         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17075         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17076         tests/test-glob-h.c.
17077         * modules/glob-h-tests: New file.
17078         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17079         conditions.
17080         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17081         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17083 2018-08-07  Bruno Haible  <bruno@clisp.org>
17085         glob-h: New module.
17086         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17087         replacements.
17088         * lib/glob.c: Include <config.h>.
17089         * m4/glob_h.m4: New file.
17090         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17091         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17092         REPLACE_GLOB_PATTERN_P as appropriate.
17093         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17094         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17095         * modules/glob-h: New file.
17096         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17097         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17098         lstat, sys_stat. Change conditions.
17099         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17100         REPLACE_GLOB_PATTERN_P. Set module indicator.
17101         (Makefile.am): Remove code that is moved to glob-h.
17102         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17103         * modules/posixcheck (Depends-on): Add glob-h.
17105 2018-08-06  Bruno Haible  <bruno@clisp.org>
17107         Force generation of substitute .h file when C++ support is enabled.
17108         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17109         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17110         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17111         FNMATCH_H to non-empty.
17112         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17113         ICONV_H to non-empty.
17114         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17115         MONETARY_H to non-empty.
17116         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17117         non-empty.
17119 2018-08-06  Bruno Haible  <bruno@clisp.org>
17121         fnmatch-h: Fix test compilation error on mingw (regression from today).
17122         * lib/fnmatch.in.h: Fix conditions.
17124 2018-08-06  Bruno Haible  <bruno@clisp.org>
17126         sys_resource: Relicense under LGPLv2+.
17127         John Malmberg's approval is in
17128         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17129         * modules/sys_resource (License): Change to LGPLv2+.
17131 2018-08-06  Bruno Haible  <bruno@clisp.org>
17133         fnmatch-h: Add tests.
17134         * tests/test-fnmatch-h.c: New file.
17135         * modules/fnmatch-h-tests: New file.
17136         * tests/test-fnmatch-h-c++.cc: New file.
17137         * modules/fnmatch-h-c++-tests: New file.
17139 2018-08-06  Bruno Haible  <bruno@clisp.org>
17141         fnmatch-h: New module.
17142         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17143         replacements.
17144         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17145         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17146         'posixcheck' warning.
17147         * m4/fnmatch_h.m4: New file.
17148         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17149         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17150         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17151         as appropriate.
17152         * modules/fnmatch-h: New file.
17153         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17154         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17155         conditions.
17156         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17157         indicator.
17158         (Makefile.am): Remove code that is moved to fnmatch-h.
17159         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17160         REPLACE_FNMATCH.
17161         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17162         * modules/posixcheck (Depends-on): Add fnmatch-h.
17164 2018-08-06  Bruno Haible  <bruno@clisp.org>
17166         Enable more C++ tests.
17167         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17168         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17169         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17170         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17171         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17173 2018-08-06  Bruno Haible  <bruno@clisp.org>
17175         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17176         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17177         getopt.h.
17178         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17180 2018-08-05  Bruno Haible  <bruno@clisp.org>
17182         utime-h: Generate header file when module 'posixcheck' is in use.
17183         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17184         UTIME_H to non-empty.
17186 2018-08-05  Bruno Haible  <bruno@clisp.org>
17188         monetary: Generate header file when module 'posixcheck' is in use.
17189         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17190         use, set MONETARY_H to non-empty.
17192 2018-08-05  Bruno Haible  <bruno@clisp.org>
17194         iconv-h: Generate header file when module 'posixcheck' is in use.
17195         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17196         set ICONV_H to non-empty.
17198 2018-08-05  Bruno Haible  <bruno@clisp.org>
17200         Optimize the "checking whether ... is declared without a macro" checks.
17201         Suggested by Paul Eggert in
17202         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17203         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17204         Gnulib module 'posixcheck' is not in use.
17206 2018-08-05  Bruno Haible  <bruno@clisp.org>
17208         iconv-h: Enable 'posixcheck' warnings.
17209         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
17210         iconv_open.
17211         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
17213 2018-08-05  Bruno Haible  <bruno@clisp.org>
17215         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
17216         * m4/extern-inline.m4: Add more comments.
17217         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
17218         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
17219         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
17221 2018-08-04  Bruno Haible  <bruno@clisp.org>
17223         New module 'posixcheck'.
17224         * modules/posixcheck: New file.
17225         * m4/posixcheck.m4: New file.
17226         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
17227         (Which modules?): Reference it.
17229 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
17231         dfa: fix memory leak
17232         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
17234 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17236         ieee754-h: new module
17237         It looks like Emacs can use this for some NaN processing.
17238         Emacs uses it only on double NaNs so it should be safe.
17239         * MODULES.html.sh (func_all_modules): Add ieee754-h.
17240         * config/srclist.txt: Mention ieee754.h in a comment.
17241         * doc/glibc-headers/ieee754.texi (ieee754.h):
17242         Gnulib now has a substitute that should work
17243         except for long double and for non-IEEE platforms.
17244         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
17245         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
17247 2018-07-27  Bruno Haible  <bruno@clisp.org>
17249         iswcntrl: Mention minor problem on macOS.
17250         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17252 2018-07-26  Colin Watson  <cjwatson@debian.org>
17254         bootstrap, gnulib-tool: fix translations rsync
17255         Previously, we created files such as $pobase/Makefile.in.in and then the
17256         subsequent rsync would immediately delete them.
17257         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17258         non-.po files in target directory when rsyncing translations.
17259         * gnulib-tool (func_import): Likewise.
17260         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17262 2018-07-25  Jim Meyering  <meyering@fb.com>
17264         bootstrap: reinstate definition fo gnulib_mk.
17265         That variable is used at least by cppi.
17266         * build-aux/bootstrap (gnulib_mk): Restore definition.
17267         This reverts the deletion from v0.1-1844-gc66dba9ba.
17269 2018-07-23  Bruno Haible  <bruno@clisp.org>
17271         doc: For module names, use texinfo markup @code{} or @samp{}.
17272         * doc/alloca.texi: Mark gnulib module names with @code.
17273         * doc/alloca-opt.texi: Likewise.
17274         * doc/quote.texi: Likewise.
17275         * doc/posix-functions/freopen.texi: Likewise.
17276         * doc/posix-functions/open.texi: Likewise.
17277         * doc/posix-functions/readlink.texi: Likewise.
17278         * doc/posix-functions/readlinkat.texi: Likewise.
17279         * doc/posix-functions/stdout.texi: Likewise.
17280         * doc/posix-functions/stderr.texi: Likewise.
17281         * doc/posix-functions/unlink.texi: Likewise.
17282         * doc/posix-functions/unlinkat.texi: Likewise.
17283         * doc/posix-functions/utime.texi: Likewise.
17284         * doc/posix-functions/utimensat.texi: Likewise.
17285         * doc/posix-functions/utimes.texi: Likewise.
17286         * doc/posix-headers/stdint.texi: Likewise.
17287         * doc/glibc-functions/futimesat.texi: Likewise.
17288         * doc/glibc-functions/lutimes.texi: Likewise.
17289         * doc/glibc-functions/memmem.texi: Likewise.
17291 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17293         doc: Avoid some overfull lines in the TeX output.
17294         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17295         @example.
17296         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17297         newline before the long URL.
17298         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17299         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17300         Add line breaks in code snippets.
17302 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17304         hard-locale: simplify by removing hard-locale.m4
17305         * m4/hard-locale.m4: Remove.
17306         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17307         (configure.ac): Do not call gl_HARD_LOCALE.
17309         gnulib-tool: limit line length for git send-email
17310         * gnulib-tool (func_import): Break actioncmd log line
17311         into multiple lines.
17313 2018-07-16  Bruno Haible  <bruno@clisp.org>
17315         ffs: Ensure declaration on mingw.
17316         Reported by Daniel P. Berrangé <berrange@redhat.com>
17317         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17318         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17319         also declared.
17321 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17323         regex-tests: add dependency
17324         * modules/regex-tests (Depends-on): Add gettext-h.
17325         This is needed given the recent changes to regex,
17326         which no longer depends on gettext-h.
17328 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17330         regex: now in sync with glibc
17331         * config/srclist.txt: Gnulib and glibc regex code
17332         are synchronized again.
17334 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17336         renameatu: rename from renameat2
17337         It's looking like Glibc will add a renameat2 function
17338         that is incompatible with Gnulib renameat2; see:
17339         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17340         To help avoid future confusion, rename renameat2 to something else.
17341         Use the name 'renameatu', as the Gnulib function is close to the
17342         Glibc function.  Perhaps someday there will also be a renameat2
17343         Gnulib module, which mimicks the future glibc renameat2, but that
17344         can wait as nobody seems to need such a module now.
17345         * NEWS: Mention this.
17346         * lib/renameatu.c: Rename from lib/renameat2.c.
17347         * lib/renameatu.h: Rename from lib/renameat2.h.
17348         * modules/renameatu: Rename from modules/renameat2.
17349         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17350         All uses of "renameat2" in identifiers or file name
17351         changed to "renameatu", except for two instances in
17352         lib/renameatu.c that deal with the Linux kernel's
17353         renameat2 syscall.
17355 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17357         gnulib-tool: minor tweaks for --gnu-make
17358         * gnulib-tool: Do not allow --gnu-make in test modes,
17359         since they all require automake.
17360         (func_emit_lib_Makefile_am): Don’t emit automake comment
17361         if --gnu-make.
17363         regex: work around conditional-dependencies glitch
17364         * modules/regex (Depends-on): Add langinfo.
17365         Without this change, I had problems building an experimental
17366         version of GNU Emacs.  The symptom of the bug was a message
17367         ‘./configure: line 12726: test: =: unary operator expected’.
17368         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17369         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17370         was unset.  Although gl_FUNC_NL_LANGINFO has
17371         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17372         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17373         --conditional-dependencies sometimes arranges for the
17374         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17375         code.  Since the regex code includes <langinfo.h> it should be
17376         depending on the langinfo module anyway, and this happens to work
17377         around the bug, so install that as a workaround for now.  To
17378         reproduce the original problem, run the following shell script on
17379         the version of Gnulib just before this patch was installed.
17380                 rm -fr foo
17381                 mkdir foo
17382                 cat >foo/configure.ac <<'EOF'
17383                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
17384                 gl_EARLY
17385                 gl_INIT
17386                 AC_OUTPUT
17387                 EOF
17388                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
17389                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
17390                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
17391                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
17392                 cd foo
17393                 aclocal -I m4
17394                 autoconf
17395                 ./configure --with-included-regex
17397 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17399         wchar: fix bug when checking for ‘inline’
17400         I discovered this when looking into using the regex module
17401         with Emacs.
17402         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
17403         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
17404         conftest1.c and conftest2.c but these files were not created.
17405         As far as I can see, this check never worked and nobody reported
17406         it until now, which is a bit worrisome.
17408 2018-06-30  Jim Meyering  <meyering@fb.com>
17410         bootstrap: s/--option val/--option=val/
17411         * build-aux/bootstrap (gnulib_tool_options): Change the
17412         spelling of "--option val" pairs to "--option=val", for
17413         aesthetics, and also so that this file no longer triggers
17414         a common help2man syntax-check warning when copied into
17415         projects like grep, gzip, etc.
17417 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17419         manywarnings: omit -Wswitch-default
17420         This should make things more consistent, as we already ignore
17421         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
17422         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
17423         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
17424         Add -Wswitch-default.
17425         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
17426         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17427         Remove -Wswitch-default.
17429         regex: revert most trimming
17430         Problems reported by Bruno Haible in:
17431         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
17432         * modules/regex (Depends-on): Add lock, memcmp, memmove,
17433         and wctype back in.  lock because regex users shouldn’t
17434         need to know that regex needs locking, and the rest because
17435         gnulib-tool should ordinarily ignore them anyway.
17437 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17439         regex: trim module dependencies
17440         * modules/regex (Depends-on): Remove gettext-h and lock,
17441         since the regex code should work OK without these modules,
17442         and Emacs uses it that way.  Also remove memcmp, memmove,
17443         and wctype, as these modules are obsolete and should not be
17444         needed any more.
17446 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
17448         regex: glibc does not use intprops.h
17449         Maybe we can talk glibc into using intprops.h someday, but
17450         now doesn’t seem to be a good time.
17451         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
17452         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
17453         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
17455 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
17457         regex: port to recently proposed glibc regex merge
17458         This patch is inspired by Adhemerval Zanella's recent proposal
17459         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
17460         to merge glibc and Gnulib regex.  It aims to simplify the merge on
17461         the glibc side, without keeping Gnulib portable.
17462         * lib/regex.h: Fix a problem with glibc installed-header checking,
17463         as follows:
17464         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
17465         (_Restrict_arr_): Prefer __restrict_arr if defined,
17466         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
17467         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
17468         (build_wcs_upper_buffer, build_upper_buffer)
17469         (re_string_translate_buffer, re_string_context_at):
17470         Move decls here from lib/regex_internal.h, for glibc internal tests.
17471         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
17472         glibc BZ #18496.
17473         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
17474         -Wunused-value.
17475         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
17476         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17477         (bitset_mask): Now static inline, and without any __attribute__
17478         ((unused)) decoration, for glibc internal tests.
17480 2018-06-25  Bruno Haible  <bruno@clisp.org>
17482         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
17483         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
17484         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
17485         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
17486         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
17487         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
17488         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
17489         / -lthread / -lpth does not get optimized away by a preceding
17490         --as-needed option.
17492 2018-06-25  Bruno Haible  <bruno@clisp.org>
17494         Continue to use spaces for indentation, not tabs.
17495         * MODULES.html.sh: Untabify.
17496         * doc/regex.texi: Likewise.
17497         * lib/acl-internal.c: Likewise.
17498         * lib/dfa.c: Likewise.
17499         * lib/exclude.c: Likewise.
17500         * lib/exclude.h: Likewise.
17501         * lib/get-permissions.c: Likewise.
17502         * lib/gettimeofday.c: Likewise.
17503         * lib/parse-datetime.y: Likewise.
17504         * lib/pselect.c: Likewise.
17505         * lib/set-permissions.c: Likewise.
17506         * lib/time.in.h: Likewise.
17507         * m4/canonicalize.m4: Likewise.
17508         * m4/gc.m4: Likewise.
17509         * m4/gnulib-common.m4: Likewise.
17510         * m4/pthread_sigmask.m4: Likewise.
17511         * m4/vararrays.m4: Likewise.
17512         * tests/test-digest.h: Likewise.
17513         * tests/test-fcntl-h.c: Likewise.
17514         * tests/test-timespec.c: Likewise.
17515         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
17517 2018-06-25  Bruno Haible  <bruno@clisp.org>
17519         manywarnings: Don't enable -Wjump-misses-init warnings by default.
17520         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
17521         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
17522         -Wjump-misses-init.
17524 2018-06-25  Jim Meyering  <meyering@fb.com>
17526         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
17527         * lib/acl-internal.h (free_permission_context): Remove that
17528         attribute directive.  Otherwise, it would provoke this from GCC 9:
17529         lib/acl-internal.h:300:3: error: 'const' attribute on function \
17530           returning 'void' [-Werror=attributes]
17532 2018-06-24  Jim Meyering  <meyering@fb.com>
17534         parse-datetime: accommodate gcc-4.8.5
17535         Bruno Haible reported the build failure in
17536         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
17537         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
17538         on declaration of new local.
17540 2018-06-24  Bruno Haible  <bruno@clisp.org>
17542         af_alg: Fail in continuable manner on Linux/powerpc64le.
17543         Reported by Assaf Gordon <assafgordon@gmail.com>
17544         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
17545         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
17546         byte send() as the first round.
17548 2018-06-24  Bruno Haible  <bruno@clisp.org>
17550         af_alg: Fix state of stream after sendfile() succeeds.
17551         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
17552         the stream is correctly positioned afterwards.
17553         * modules/crypto/af_alg (Depends-on): Add fflush.
17554         * tests/test-digest.h (test_digest_on_files): Verify that after the
17555         operation the stream is positioned at end of file.
17557 2018-06-24  Jim Meyering  <meyering@fb.com>
17559         canon-host: take GCC9's advice rather than ignoring warning
17560         Pádraig Brady suggested not to ignore this GCC9 advice.
17561         * lib/canon-host.c: Undo preceding change.
17562         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
17564         parse-datetime.y: avoid spurious GCC 9 warning
17565         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
17566         a function local prior to the first "goto fail".  The prior use would
17567         evoke this:
17568         parse-datetime.y: In function 'parse_datetime2':
17569         parse-datetime.y:1791:19: error: jump skips variable initialization \
17570           [-Werror=jump-misses-init]
17571         parse-datetime.y:2385:2: note: label 'fail' defined here
17572         parse-datetime.y:188:43: note: '({anonymous})' declared here
17573         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
17575         canon-host.c: avoid spurious GCC 9 warning
17576         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
17578         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
17579         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
17580         * m4/manywarnings.m4: Remove them.
17581         Otherwise, building coreutils, I would see this:
17582         cc1: error: deprecated command line option '-Wchkp' [-Werror]
17583         cc1: error: -Wabi won't warn about anything [-Werror=abi]
17584         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
17585           which is also used by default
17586         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
17588 2018-06-24  Bruno Haible  <bruno@clisp.org>
17590         af_alg tests: Add another test.
17591         * tests/test-digest.h (test_digest_on_files): Also check a large file
17592         with a skipped header.
17593         * tests/test-md5.c: Include macros.h.
17594         * tests/test-sha1.c: Likewise.
17595         * tests/test-sha256.c: Likewise.
17596         * tests/test-sha512.c: Likewise.
17597         * modules/crypto/md5-tests (Files): Add tests/macros.h.
17598         * modules/crypto/sha1-tests (Files): Likewise.
17599         * modules/crypto/sha256-tests (Files): Likewise.
17600         * modules/crypto/sha512-tests (Files): Likewise.
17602 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17604         maint: clarify comments about sticky EOF
17605         * lib/af_alg.c: Be more direct that we can't
17606         assume stickiness of EOF for portability reasons.
17607         * lib/md5.c: Clarify that this isn't just a glibc issue.
17608         * lib/sha1.c: Likewise.
17609         * lib/sha256.c: Likewise.
17610         * lib/sha512.c: Likewise.
17612 2018-06-24  Bruno Haible  <bruno@clisp.org>
17614         af_alg: Comment and style improvements.
17615         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
17616         (afalg_buffer, afalg_stream): Improve comments.
17618 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17620         af_alg: disable kernel hash functions by default
17621         All the kernel routines were seen to be significantly slower
17622         with these relatively recent components on an i3-2310M system:
17623           kernel-4.10.6-200.fc25.x86_64
17624           openssl-1.0.2m-1.fc25.x86_64
17625         sha1 was nearly twice as slow in the kernel for example.
17626         Further considerations why this should not be the default, at:
17627         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
17629         * m4/af_alg.m4: Require --with-linux-crypto to enable.
17630         * m4/gl-openssl.m4: Tweak accordingly.
17632 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17634         af_alg: avoid hangs when reading from streams
17635         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
17636         and thus avoid doing a fread() when feof() is set.
17637         * lib/md5.c: Ensure feof() is called before fread().
17638         * lib/sha1.c: Likewise.
17639         * lib/sha256.c: Likewise.
17640         * lib/sha512.c: Likewise.
17642 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17644         af_alg: fix error handling when hash not returned
17645         * lib/af_alg.c (afalg_stream): Handle the case where we've
17646         successfully written data to the kernel in the read/write loop,
17647         but the kernel doesn't respond with the hash.
17649 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17651         libc-config: merge from glibc
17652         * lib/cdefs.h (__inline, __restrict):
17653         Copy from current glibc.  This fixes glibc bug 17721,
17654         which Gnulib had already fixed in a different way.
17655         (__nonnull): Lessen the distance from glibc by using the
17656         glibc definition inside an ‘#ifndef __nonnull’.
17657         (__attribute_nonstring__): New macro, copied from
17658         current glibc.
17659         * lib/libc-config.h (__attribute_nonstring__): New undef.
17660         (__restrict): Remove; workaround no longer needed.
17661         Keep the __inline workaround, though, as it uses HAVE___INLINE to
17662         support more compilers than the glibc __inline can.
17664 2018-06-24  Bruno Haible  <bruno@clisp.org>
17666         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
17667         * lib/mbrtowc.c (enc_t): New enum type.
17668         (locale_enc, locale_enc_cached): New functions.
17669         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
17670         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
17671         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
17672         instead.
17673         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
17674         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
17675         * modules/wcwidth (configure.ac): Invoke it.
17677 2018-06-24  Bruno Haible  <bruno@clisp.org>
17679         wchar-single: Fix test failure in wcwidth tests.
17680         * tests/test-wcwidth.c (main): If the wchar-single module is present,
17681         skip the tests in the C locale.
17683 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17685         crypto: mention --without-linux-crypto in --with-openssl --help
17686         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
17687         routines take precedence in --with-openssl help output.
17689 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17691         wchar-single: a new module to enable optimizations in wchar replacements
17692         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
17693         GNULIB_WCHAR_SINGLE is enabled.
17694         * lib/wcwidth.c (wcwidth): Likewise.
17696 2018-06-23  Bruno Haible  <bruno@clisp.org>
17698         libc-config: Fix conflict with FreeBSD include files.
17699         * lib/cdefs.h (__nonnull): Remove definition.
17700         * lib/libc-config.h (__nonnull): Remove undefinition.
17702 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17704         random_r: do not crash if state is unaligned
17705         Problem reported by Bruce Korb in:
17706         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
17707         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
17708         with 'cc -O2 -xmemalign=8s'.
17709         * lib/random_r.c: Include string.h, for memcpy.
17710         (get_int32, set_int32): New functions.
17711         (__srandom_r, __initstate_r, __setstate_r, __random_r):
17712         Use them to avoid assumption that state pointer is aligned.
17713         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
17714         * tests/test-random_r.c (test_failed): New function.
17715         (main): Use it, to test for alignment bugs.
17717         random_r: omit unnecessary include
17718         * lib/random_r.c: Do not include limits.h.
17720         random, random_r: merge from glibc
17721         * lib/random.c, lib/random_r.c:
17722         Include libc-config.h if !_LIBC, not config.h unilaterally.
17723         * lib/random.c:
17724         Do not include stdint.h or time.h; not needed.
17725         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
17726         (unsafe_state): Rename from generator.  All uses changed.
17727         Use C99-style initializers.
17728         (__random, __srandom, __initstate, __setstate): Rename from
17729         non-underscored version, but define it to non-underscored version
17730         on Gnulib.  Add a lock.
17731         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
17732         Likewise.
17733         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
17734         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
17735         (__srandom_r): Use int32_t instead of long int where int32_t will do.
17736         (__random_r): Use uint32 to fix glibc bug 17343.
17737         * modules/random, modules/random_r (Depends-on): Add libc-config.
17738         Depend on stdint only if $HAVE_RANDOM = 0.
17740 2018-06-19  Jim Meyering  <meyering@fb.com>
17742         README-release: also run any check-very-expensive tests
17743         * top/README-release: Adjust instructions so they run the
17744         check-very-expensive tests when there is such a target.
17746 2018-06-18  Bruno Haible  <bruno@clisp.org>
17748         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
17749         * m4/pthread_rwlock_rdlock.m4: Add comment.
17750         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
17751         are reader-preferring in glibc.
17752         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
17753         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
17755 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17757         crypto: use byteswap
17758         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
17759         * lib/sm3.c: Include <byteswap.h>.
17760         (SWAP): Use its macros rather than reinventing the wheel.
17761         * modules/crypto/md4, modules/crypto/md5-buffer:
17762         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
17763         * modules/crypto/sha512-buffer, modules/crypto/sm3:
17764         (Depends-on): Add byteswap.
17766 2018-06-17  Pádraig Brady  <P@draigBrady.com>
17768         gendocs.sh: fix support for legacy --texi2html
17769         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
17770         to the default makeinfo invocation.
17771         Reported by Bruce Korb
17773 2018-06-17  Bruno Haible  <bruno@clisp.org>
17775         gettext po infrastructure: Update from current gettext git.
17776         Reported by Akim Demaille <akim@lrde.epita.fr>.
17777         * build-aux/po/Makefile.in.in: Update from current gettext git.
17778         * build-aux/po/remove-potcdate.sin: Likewise.
17779         * config/srclist.txt: Temporarily disable sync for these files.
17781 2018-06-17  Bruno Haible  <bruno@clisp.org>
17783         getloadavg: Return 0 on Windows without Cygwin.
17784         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
17786 2018-06-17  Paul Smith  <psmith@gnu.org>
17788         getloadavg: Allow building on Windows without Cygwin
17789         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
17790         * m4/getloadavg.m4: Check for unistd.h.
17792 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
17794         Port crypto/af_alg to GCC 4.8.4
17795         Problem reported by Peter Simons in:
17796         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
17797         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
17799 2018-05-27  Colin Watson  <cjwatson@debian.org>
17801         bootstrap: document source fetching in --help
17802         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
17804 2018-04-09  Colin Watson  <cjwatson@debian.org>
17806         bootstrap: allow non-submodule control of gnulib
17807         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
17808         bootstrap.conf when fetching gnulib using "git clone" or via
17809         GNULIB_SRCDIR.
17811 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17813         crypto: omit stream ops Emacs doesn’t need
17814         * lib/md5.c (md5_stream):
17815         * lib/sha1.c (sha1_stream):
17816         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
17817         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
17818         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
17819         defined.  Emacs needs this, as it does not use the stream
17820         operations and doesn’t need all the af_alg stuff we’ve recently
17821         added.  Perhaps a similar change is needed to the other crypto
17822         modules, but this patch changes only those needed for Emacs.
17823         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
17824         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
17825         New modules, used by Emacs.
17826         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
17827         * modules/crypto/sha512: Rewrite to depend on the new modules.
17829 2018-05-20  Pádraig Brady  <P@draigBrady.com>
17831         fts: avoid a memory leak edge case
17832         * lib/fts.c (fts_open): Set an appropriate fts_level
17833         so that an immediate fts_close() will free the allocation.
17834         * tests/test-fts.c (fts_dealloc): Add a test case which
17835         will trigger under valgrind or address sanitizer.
17836         Fixes https://bugs.gnu.org/31439
17838 2018-05-20  Bruno Haible  <bruno@clisp.org>
17840         wcwidth tests: Fix link error.
17841         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
17842         $(LIBUNISTRING).
17844 2018-05-20  Bruno Haible  <bruno@clisp.org>
17846         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
17847         * modules/regex (Files): Add m4/glibc21.m4.
17849 2018-05-20  Bruno Haible  <bruno@clisp.org>
17851         localcharset: Optimize.
17852         * lib/localcharset.c (alias_table): Comment out no-op mappings for
17853         platforms where these don't matter. This reduces the table size,
17854         which in turn reduces the lookup time.
17856 2018-05-19  Bruno Haible  <bruno@clisp.org>
17858         localcharset: Map the locale encodings found in newer OSes.
17859         * lib/localcharset.c (alias_table): Add mapping for locale encodings
17860         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
17861         IRIX 6.5, Minix 3.3.
17862         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
17864 2018-05-19  Bruno Haible  <bruno@clisp.org>
17866         localcharset: Move mapping tables into the code. Use a binary search.
17867         * lib/localcharset.h: Document the GNU canonical names for character
17868         encodings here.
17869         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
17870         relocatable.h, configmake.h.
17871         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
17872         macros.
17873         (charset_aliases): Remove variable.
17874         (get_charset_aliases): Remove function.
17875         (struct table_entry): New type.
17876         (alias_table, locale_table): New constants.
17877         (locale_charset): Use the alias_table or locale_table to get the
17878         canonicalized encoding name.
17879         * lib/config.charset: Remove file.
17880         * lib/ref-add.sin: Remove file.
17881         * lib/ref-del.sin: Remove file.
17882         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
17883         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
17884         * modules/localcharset (Notice): Remove.
17885         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
17886         glibc21.m4.
17887         (Depends-on): Remove configmake.
17888         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
17889         (Makefile.am): Simplify.
17890         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
17892 2018-05-19  Bruno Haible  <bruno@clisp.org>
17894         localcharset: Add a manual test.
17895         * tests/test-localcharset.c: New file.
17896         * modules/localcharset-tests: New file.
17898 2018-05-19  Bruno Haible  <bruno@clisp.org>
17900         localcharset: Remove support for obsolete platforms.
17901         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
17902         Mac OS X 10.2. Comment out dubious entry for Solaris.
17904 2018-05-19  Jim Meyering  <meyering@fb.com>
17906         gnupload: adjust comment
17907         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
17908         more likely we'll remove the just-added code in a year or two.
17910 2018-05-19  Bruno Haible  <bruno@clisp.org>
17912         gnupload: Fix "gpg-agent is not available in this session" error.
17913         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
17915 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17917         crypto/af_alg: fix --help
17918         * m4/af_alg.m4: Avoid spurious newline in --help output.
17920 2018-05-13  Bruno Haible  <bruno@clisp.org>
17922         nl_langinfo: Fix compilation error on Android.
17923         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
17924         INT_CURR_SYMBOL, etc. only if these items are defined.
17926 2018-05-13  Bruno Haible  <bruno@clisp.org>
17928         truncate: Fix compilation error on Android.
17929         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
17930         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
17931         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
17932         HAVE_TRUNCATE.
17933         * modules/truncate: Likewise.
17934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
17935         not HAVE_TRUNCATE.
17936         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
17937         HAVE_TRUNCATE.
17938         * doc/posix-functions/truncate.texi: Mention the issue.
17940 2018-05-13  Bruno Haible  <bruno@clisp.org>
17942         pthread: Fix compilation error on Android.
17943         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
17944         recursive inclusion of this file.
17946 2018-05-13  Bruno Haible  <bruno@clisp.org>
17948         posix_spawn: Fix compilation error on Android.
17949         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
17950         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
17951         (posix_spawn_file_actions_t): Consider also the case
17952         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
17954 2018-05-13  Bruno Haible  <bruno@clisp.org>
17956         tsearch: Move from K&R C to ANSI C.
17957         * lib/tsearch.c (tfind): Convert definition to ANSI C.
17959 2018-05-13  Bruno Haible  <bruno@clisp.org>
17961         tsearch: Fix compilation error on Android.
17962         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
17963         is 0.
17964         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
17965         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
17966         GNULIB_defined_tsearch is true.
17967         (twalk): Define only if GNULIB_defined_twalk is true.
17968         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
17969         is 0.
17970         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
17971         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
17972         * modules/search (Makefile.am): Substitute HAVE_TWALK.
17974 2018-05-13  Bruno Haible  <bruno@clisp.org>
17976         imaxdiv: Fix compilation error on Android.
17977         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
17978         is not defined.
17979         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
17980         HAVE_DECL_IMAXDIV, is 0.
17981         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
17982         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
17984 2018-05-13  Bruno Haible  <bruno@clisp.org>
17986         Support selective inclusion mechanism of recent mingw.org header files.
17987         Reported by Eli Zaretskii <eliz@gnu.org>.
17988         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
17989         __need_ssize_t, or __need_time_t is defined, just include the system's
17990         <sys/types.h>.
17991         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
17992         include the system's <locale.h>.
17994 2018-05-13  Bruno Haible  <bruno@clisp.org>
17996         Avoid compilation error due to 'mmap' on Android.
17997         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
17998         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
17999         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18000         Undefine on Android.
18002 2018-05-13  Bruno Haible  <bruno@clisp.org>
18004         Add cross-compilation guesses for Linux systems without glibc.
18005         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18007         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18008         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18009         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18010         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18011         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18012         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18013         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18014         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18015         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18016         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18017         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18018         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18019         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18020         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18021         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18022         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18024 2018-05-13  Bruno Haible  <bruno@clisp.org>
18026         getpagesize: Fix compilation error on Android.
18027         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18028         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18029         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18030         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18031         HAVE_GETPAGESIZE accordingly.
18032         * modules/getcwd (Files): Add m4/getpagesize.m4.
18034 2018-05-13  Bruno Haible  <bruno@clisp.org>
18036         tcgetsid: Fix compilation error on Android.
18037         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18038         AC_CHECK_FUNC.
18040 2018-05-13  Bruno Haible  <bruno@clisp.org>
18042         getpass: Fix configure test for Android.
18043         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18044         AC_CHECK_FUNC.
18046 2018-05-13  Bruno Haible  <bruno@clisp.org>
18048         ffs: Fix compilation error on Android.
18049         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18051 2018-05-13  Bruno Haible  <bruno@clisp.org>
18053         mkfifo: Fix compilation error on Android.
18054         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18055         AC_CHECK_FUNC.
18057 2018-05-13  Bruno Haible  <bruno@clisp.org>
18059         c-strtod: Fix configure test for Android.
18060         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18061         AC_CHECK_FUNC.
18063 2018-05-13  Bruno Haible  <bruno@clisp.org>
18065         random: Fix compilation error on Android.
18066         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18067         AC_CHECK_FUNC.
18069 2018-05-13  Bruno Haible  <bruno@clisp.org>
18071         grantpt: Fix compilation error on Android.
18072         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18073         AC_CHECK_FUNC.
18075 2018-05-13  Bruno Haible  <bruno@clisp.org>
18077         stdioext: Fix compilation errors with newer Android headers.
18078         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18079         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18080         fallbacks for Android.
18081         * lib/fpending.c: Update comments.
18082         * lib/fpurge.c: Likewise.
18083         * lib/freadable.h: Likewise.
18084         * lib/freadable.c: Likewise.
18085         * lib/freadahead.c: Likewise.
18086         * lib/freading.h: Likewise.
18087         * lib/freadptr.c: Likewise.
18088         * lib/fseterr.c: Likewise.
18089         * lib/fwritable.h: Likewise.
18090         * lib/fwritable.c: Likewise.
18091         * lib/fwriting.h: Likewise.
18092         * lib/fwriting.c: Likewise.
18094 2018-05-13  Bruno Haible  <bruno@clisp.org>
18096         doc: Add info about Android versions 2.0 to 8.1.
18097         * doc/**/*.texi: Add info about functions in all released versions of
18098         Bionic.
18100 2018-05-12  Bruno Haible  <bruno@clisp.org>
18102         fseeko: On mingw, don't use the hidden function _fseeki64.
18103         Reported by Eli Zaretskii <eliz@gnu.org>.
18104         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18105         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18107 2018-05-12  Bruno Haible  <bruno@clisp.org>
18109         glob: Choose 'dirent_type' in a way that works better on mingw.
18110         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18111         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18113 2018-05-12  Bruno Haible  <bruno@clisp.org>
18115         execute, spawn-pipe: Avoid warning about redefining 'close'.
18116         Reported by Eli Zaretskii <eliz@gnu.org>.
18117         * lib/execute.c: Undefine 'close' before redefining it.
18118         * lib/spawn-pipe.c: Likewise.
18120 2018-05-12  Bruno Haible  <bruno@clisp.org>
18122         nanosleep: Avoid test failure on mingw when it has nanosleep.
18123         Reported by Eli Zaretskii <eliz@gnu.org>.
18124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18125         If it does not exist, use a simpler test program that does not call
18126         alarm().
18128 2018-05-10  Bruno Haible  <bruno@clisp.org>
18130         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18131         Reported by Devin Hussey <husseydevin@gmail.com>.
18132         Based on a patch by Paul Eggert.
18133         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18134         as witness of libpthread.
18135         * lib/glthread/cond.h (pthread_in_use): Likewise.
18136         * lib/glthread/thread.h (pthread_in_use): Likewise.
18137         * lib/glthread/tls.h (pthread_in_use): Likewise.
18139 2018-05-10  Bruno Haible  <bruno@clisp.org>
18141         cond tests: Fix compilation error on Solaris.
18142         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18143         macro.
18145 2018-05-10  Bruno Haible  <bruno@clisp.org>
18147         doc: Add partial info about Android 4.3.
18148         * doc/*-functions/*.texi: Add info about functions that were added
18149         to Bionic between Android 4.3 and Android 9.0.
18151 2018-05-10  Bruno Haible  <bruno@clisp.org>
18153         doc: Add info about Android 9.0.
18154         * doc/**/*.texi: Add info about functions and headers in Bionic from
18155         Android 9.0.
18157 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18159         af_alg: fix my typo in afalg_buffer
18160         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18161         (afalg_stream): Simplify and avoid the need for a runtime test
18162         at the end.
18164         af_alg: recover better from crypto failures
18165         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18166         input stream is seekable, by repositioning the stream back to
18167         where it was, possibly by just calling sendfile with an offset
18168         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18169         cases, which lets our callers try again with user-mode code.
18170         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18171         instead of on fflush and lseek.
18173         af_alg: distiguish I/O errors better
18174         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18175         not -EIO, if it’s OK for the caller to try again with user-mode code.
18176         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18177         some other error number) if fflush fails, as the caller should not
18178         try again that case.
18180         af_alg: avoid gotos
18181         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18182         gotos, as they were a source of unreliability and made the code a
18183         bit harder to follow.
18185         af_alg: don’t leak file descriptors into children
18186         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18187         This code should be compiled only on recent GNU/Linux platforms
18188         so we shouldn’t have to also depend on the accept4 module.
18190         af_alg: coalesce socket creation
18191         * lib/af_alg.c (alg_socket): New function.
18192         (afalg_buffer, afalg_stream): Use it.  This avoids some
18193         code duplication and gotos.
18195         af_alg: fix file descriptor leak
18196         * lib/af_alg.c (afalg_stream): Close leak.
18198         af_alg: Pacify --enable-gcc-warnings on GCC 8
18199         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18200         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18202 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18204         af_alg: Pacify --enable-gcc-warnings
18205         Problem reported by Assaf Gordon in:
18206         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18207         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18208         gcc -Wjump-misses-init.
18209         * lib/sha512.c (shaxxx_stream): Now static.
18211 2018-05-06  Bruno Haible  <bruno@clisp.org>
18213         af_alg: Add ability to use Linux kernel crypto API on data in memory.
18214         * lib/af_alg.h (afalg_buffer): New declaration.
18215         * lib/af_alg.c (afalg_buffer): New function.
18217 2018-05-06  Bruno Haible  <bruno@clisp.org>
18219         af_alg: Avoid warnings.
18220         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
18221         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
18223 2018-05-06  Bruno Haible  <bruno@clisp.org>
18225         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
18226         * tests/bench-digest.h: New file.
18227         * tests/bench-md5.c: New file.
18228         * tests/bench-sha1.c: New file.
18229         * tests/bench-sha224.c: New file.
18230         * tests/bench-sha256.c: New file.
18231         * tests/bench-sha384.c: New file.
18232         * tests/bench-sha512.c: New file.
18233         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
18234         tests/bench-digest.h.
18235         (Depends-on): Add getrusage, gettimeofday.
18236         (Makefile.am): Add variables to build bench-md5.
18237         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
18238         tests/bench-digest.h.
18239         (Depends-on): Add getrusage, gettimeofday.
18240         (Makefile.am): Add variables to build bench-sha1.
18241         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
18242         tests/bench-sha256.c, tests/bench-digest.h.
18243         (Depends-on): Add getrusage, gettimeofday.
18244         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
18245         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
18246         tests/bench-sha512.c, tests/bench-digest.h.
18247         (Depends-on): Add getrusage, gettimeofday.
18248         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18250 2018-05-06  Bruno Haible  <bruno@clisp.org>
18252         af_alg: Fix a resource leak.
18253         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18254         New local variable 'result'.
18256 2018-05-06  Bruno Haible  <bruno@clisp.org>
18258         af_alg: Fix bug with streams that are not at position 0.
18259         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18260         assume that the stream is positioned at position 0.
18261         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18262         of the stream.
18263         * lib/md5.h (md5_stream): Likewise.
18264         * lib/sha1.h (sha1_stream): Likewise.
18265         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18266         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18267         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18269         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18270         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18271         stream that is not positioned at the beginning.
18273 2018-05-06  Bruno Haible  <bruno@clisp.org>
18275         af_alg: Add configure option to enable/disable use of Linux crypto API.
18276         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18277         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18278         USE_LINUX_CRYPTO_API.
18279         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18280         * lib/af_alg.c: Likewise.
18282 2018-05-06  Bruno Haible  <bruno@clisp.org>
18284         Followup to 'af_alg: New module.'.
18285         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18286         * modules/crypto/sha1 (Depends-on): Likewise.
18287         * modules/crypto/sha256 (Depends-on): Likewise.
18288         * modules/crypto/sha512 (Depends-on): Likewise.
18290 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18292         crypto/{md5,sha1,sha256,sha512}: simplify
18293         * lib/md5.c (md5_stream):
18294         * lib/sha1.c (sha1_stream):
18295         * lib/sha256.c (shaxxx_stream):
18296         Simplify, partly by assuming C99.
18297         * lib/sha256.c (shaxxx_stream):
18298         New function, which implements both sha256 and sha224.
18299         Simplify, partly by assuming C99.
18300         (sha256_stream, sha224_stream):
18301         Use it to avoid code duplication, removing a FIXME.
18302         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18303         Likewise.
18305         af_alg: Improve comments.
18306         * lib/af_alg.h: Use imperatives and tighten up wording.
18308 2018-05-05  Bruno Haible  <bruno@clisp.org>
18310         af_alg: Improve comments.
18311         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18313 2018-05-05  Bruno Haible  <bruno@clisp.org>
18315         af_alg: New module.
18316         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18317         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18318         * lib/md5.c: Include "af_alg.h" unconditionally.
18319         (md5_stream): Invoke afalg_stream unconditionally.
18320         * lib/sha1.c: Include "af_alg.h" unconditionally.
18321         (sha1_stream): Invoke afalg_stream unconditionally.
18322         * lib/sha256.c: Include "af_alg.h" unconditionally.
18323         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18324         * lib/sha512.c: Include "af_alg.h" unconditionally.
18325         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18326         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18327         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18328         * modules/crypto/af_alg: New file.
18329         * modules/crypto/md5 (Files): Remove files that are now in the
18330         'crypto/af_alg' module.
18331         (Depends-on): Add crypto/af_alg.
18332         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18333         (Makefile.am): Don't mention af_alg.c here.
18334         * modules/crypto/sha1 (Files): Remove files that are now in the
18335         'crypto/af_alg' module.
18336         (Depends-on): Add crypto/af_alg.
18337         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18338         (Makefile.am): Don't mention af_alg.c here.
18339         * modules/crypto/sha256 (Files): Remove files that are now in the
18340         'crypto/af_alg' module.
18341         (Depends-on): Add crypto/af_alg.
18342         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18343         (Makefile.am): Don't mention af_alg.c here.
18344         * modules/crypto/sha512 (Files): Remove files that are now in the
18345         'crypto/af_alg' module.
18346         (Depends-on): Add crypto/af_alg.
18347         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18348         (Makefile.am): Don't mention af_alg.c here.
18350 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18352         crypto tests: pacify GCC
18353         * tests/test-digest.h (test_digest_on_files):
18354         Don’t assume digest size fits in int (!).
18356         af_alg: minor style improvements
18357         * lib/af_alg.c (afalg_stream): Prefer C99 style
18358         decl-after-statement, since we’re already assuming C99.  Clarify
18359         by strengthening the bind test and omit unnecessary assignment.
18361 2018-05-05  Bruno Haible  <bruno@clisp.org>
18363         af_alg: Fix bug on empty files.
18364         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18365         stream is empty.
18367 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18369         sys-limits.h: new file for crypto and safe I/O
18370         * lib/af_alg.c: Include sys-limits.h.
18371         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18372         (afalg_stream): Also reject negative sizes for sendfile; they
18373         should not happen and the code is a bit cleaner and faster this way.
18374         * lib/safe-read.c: Include sys-limits.h.
18375         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18376         * lib/sys-limits.h: New file, with values and commentary derived
18377         from the old safe-read.c and from GNU Emacs sysdep.c.
18378         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18379         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18380         Add lib/sys-limits.h to Files section.
18382 2018-05-05  Bruno Haible  <bruno@clisp.org>
18384         af_alg: Improve function signature.
18385         * lib/af_alg.h (afalg_stream): Swap second and third argument.
18386         * lib/af_alg.c (afalg_stream): Likewise.
18387         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
18389 2018-05-05  Bruno Haible  <bruno@clisp.org>
18391         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
18392         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
18393         * modules/crypto/sha1 (Depends-on): Likewise.
18394         * modules/crypto/sha256 (Depends-on): Likewise.
18395         * modules/crypto/sha512 (Depends-on): Likewise.
18397 2018-05-05  Bruno Haible  <bruno@clisp.org>
18399         crypto/{md5,sha1,sha256,sha512}: Fix module description.
18400         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
18401         * modules/crypto/sha1 (Depends-on): Likewise.
18402         * modules/crypto/sha256 (Depends-on): Likewise.
18403         * modules/crypto/sha512 (Depends-on): Likewise.
18405 2018-05-05  Bruno Haible  <bruno@clisp.org>
18407         af_alg: Add documentation.
18408         * lib/af_alg.h: Add comments.
18410 2018-05-05  Bruno Haible  <bruno@clisp.org>
18412         sha512: Add tests.
18413         * tests/test-sha512.c: New file.
18414         * modules/crypto/sha512-tests: New file.
18416 2018-05-05  Bruno Haible  <bruno@clisp.org>
18418         sha256: Add tests.
18419         * tests/test-sha256.c: New file.
18420         * modules/crypto/sha256-tests: New file.
18422 2018-05-05  Bruno Haible  <bruno@clisp.org>
18424         sha1 tests: Add test for sha1_stream.
18425         * tests/test-sha1.c: Include test-digest.h.
18426         (main): Invoke test_digest_on_files on 'sha1_stream'.
18427         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
18429 2018-05-05  Bruno Haible  <bruno@clisp.org>
18431         md5 tests: Add test for md5_stream.
18432         * tests/test-digest.h: New file.
18433         * tests/test-md5.c: Include test-digest.h.
18434         (main): Invoke test_digest_on_files on 'md5_stream'.
18435         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
18437 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18439         md5sum: Use AF_ALG when available.
18440         * lib/md5.c: Include af_alg.h.
18441         (md5_stream): Use afalg_stream when available.
18442         * modules/crypto/md5 (Files): Add the af_alg files.
18443         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18444         (Makefile.am): Add af_alg.c.
18446 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18448         sha512sum: Use AF_ALG when available.
18449         * lib/sha512.c: Include af_alg.h.
18450         (sha512_stream, sha384_stream): Use afalg_stream when available.
18451         * modules/crypto/sha512 (Files): Add the af_alg files.
18452         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18453         (Makefile.am): Add af_alg.c.
18455 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18457         sha256sum: Use AF_ALG when available.
18458         * lib/sha256.c: Include af_alg.h.
18459         (sha256_stream, sha224_stream): Use afalg_stream when available.
18460         * modules/crypto/sha256 (Files): Add the af_alg files.
18461         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18462         (Makefile.am): Add af_alg.c.
18464 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18466         sha1sum: Use AF_ALG when available.
18467         * lib/af_alg.h: New file.
18468         * lib/af_alg.c: New file.
18469         * lib/sha1.c: Include af_alg.h.
18470         (sha1_stream): Use afalg_stream when available.
18471         * m4/linux-if-alg.m4: New file.
18472         * modules/crypto/sha1 (Files): Add the new files.
18473         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18474         (Makefile.am): Add af_alg.c.
18476 2018-05-05  Bruno Haible  <bruno@clisp.org>
18478         all: Replace more http URLs by https URLs.
18479         * lib/localename.c: Use https: URL.
18480         * lib/timespec.h: Likewise.
18482 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18484         maint: port more modules to GCC 8
18485         * lib/dirname.h (base_name):
18486         * lib/exclude.h (new_exclude):
18487         * lib/xstrndup.h (xstrndup):
18488         Add malloc attribute.
18489         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
18490         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
18491         This pacifies GCC 8.
18492         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18493         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
18495 2018-05-03  Bruno Haible  <bruno@clisp.org>
18497         Simplify code. Drop support for Borland C++ on Windows.
18498         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
18499         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
18500         'defined _WIN32'.
18501         * lib/canonicalize-lgpl.c: Likewise.
18502         * lib/classpath.c: Likewise.
18503         * lib/clean-temp.c: Likewise.
18504         * lib/csharpexec.c: Likewise.
18505         * lib/ctime.c: Likewise.
18506         * lib/dosname.h: Likewise.
18507         * lib/dup2.c: Likewise.
18508         * lib/errno.in.h: Likewise.
18509         * lib/error.c: Likewise.
18510         * lib/euidaccess.c: Likewise.
18511         * lib/execute.c: Likewise.
18512         * lib/fcntl.in.h: Likewise.
18513         * lib/fcntl.c: Likewise.
18514         * lib/filename.h: Likewise.
18515         * lib/findprog.c: Likewise.
18516         * lib/flock.c: Likewise.
18517         * lib/fopen.c: Likewise.
18518         * lib/freopen.c: Likewise.
18519         * lib/fstat.c: Likewise.
18520         * lib/fsync.c: Likewise.
18521         * lib/gc-gnulib.c: Likewise.
18522         * lib/get-rusage-data.c: Likewise.
18523         * lib/getaddrinfo.c: Likewise.
18524         * lib/getdelim.c: Likewise.
18525         * lib/getdtablesize.c: Likewise.
18526         * lib/gethostname.c: Likewise.
18527         * lib/getlogin.c: Likewise.
18528         * lib/getlogin_r.c: Likewise.
18529         * lib/getopt.c: Likewise.
18530         * lib/getpagesize.c: Likewise.
18531         * lib/getpass.c: Likewise.
18532         * lib/getrusage.c: Likewise.
18533         * lib/gettimeofday.c: Likewise.
18534         * lib/glob.c: Likewise.
18535         * lib/inttypes.in.h: Likewise.
18536         * lib/isapipe.c: Likewise.
18537         * lib/javaexec.c: Likewise.
18538         * lib/link.c: Likewise.
18539         * lib/localcharset.c: Likewise.
18540         * lib/localename.h: Likewise.
18541         * lib/localename.c: Likewise.
18542         * lib/localtime.c: Likewise.
18543         * lib/lseek.c: Likewise.
18544         * lib/mbsinit.c: Likewise.
18545         * lib/mkdir.c: Likewise.
18546         * lib/msvc-nothrow.h: Likewise.
18547         * lib/nanosleep.c: Likewise.
18548         * lib/nl_langinfo.c: Likewise.
18549         * lib/nonblocking.c: Likewise.
18550         * lib/nproc.c: Likewise.
18551         * lib/open.c: Likewise.
18552         * lib/openpty.c: Likewise.
18553         * lib/pathmax.h: Likewise.
18554         * lib/pipe-filter-aux.c: Likewise.
18555         * lib/pipe-filter-gi.c: Likewise.
18556         * lib/pipe-filter-ii.c: Likewise.
18557         * lib/pipe.c: Likewise.
18558         * lib/pipe2.c: Likewise.
18559         * lib/poll.c: Likewise.
18560         * lib/popen.c: Likewise.
18561         * lib/posix_openpt.c: Likewise.
18562         * lib/printf-parse.c: Likewise.
18563         * lib/progreloc.c: Likewise.
18564         * lib/putenv.c: Likewise.
18565         * lib/read.c: Likewise.
18566         * lib/relocatable.c: Likewise.
18567         * lib/rename.c: Likewise.
18568         * lib/same-inode.h: Likewise.
18569         * lib/secure_getenv.c: Likewise.
18570         * lib/select.c: Likewise.
18571         * lib/sethostname.c: Likewise.
18572         * lib/setlocale.c: Likewise.
18573         * lib/sigaction.c: Likewise.
18574         * lib/sigprocmask.c: Likewise.
18575         * lib/sleep.c: Likewise.
18576         * lib/spawn-pipe.h: Likewise.
18577         * lib/spawn-pipe.c: Likewise.
18578         * lib/spawni.c: Likewise.
18579         * lib/stat-time.h: Likewise.
18580         * lib/stat-w32.c: Likewise.
18581         * lib/stat.c: Likewise.
18582         * lib/stdio.in.h: Likewise.
18583         * lib/stdio-impl.h: Likewise.
18584         * lib/stdio-read.c: Likewise.
18585         * lib/stdio-write.c: Likewise.
18586         * lib/stdlib.in.h: Likewise.
18587         * lib/strerror_r.c: Likewise.
18588         * lib/strftime-fixes.c: Likewise.
18589         * lib/sys_stat.in.h: Likewise.
18590         * lib/sys_types.in.h: Likewise.
18591         * lib/sys_wait.in.h : Likewise.
18592         * lib/system-quote.h: Likewise.
18593         * lib/system-quote.c: Likewise.
18594         * lib/tmpdir.c: Likewise.
18595         * lib/tzset.c: Likewise.
18596         * lib/uname.c: Likewise.
18597         * lib/unistd.in.h: Likewise.
18598         * lib/utime.in.h: Likewise.
18599         * lib/utime.c: Likewise.
18600         * lib/utimecmp.c: Likewise.
18601         * lib/utimens.c: Likewise.
18602         * lib/vasnprintf.c: Likewise.
18603         * lib/vma-iter.h: Likewise.
18604         * lib/vma-iter.c: Likewise.
18605         * lib/wait-process.c: Likewise.
18606         * lib/wcsftime.c: Likewise.
18607         * lib/wctype.in.h: Likewise.
18608         * lib/write.c: Likewise.
18609         * tests/nap.h: Likewise.
18610         * tests/test-cloexec.c: Likewise.
18611         * tests/test-dup-safer.c: Likewise.
18612         * tests/test-dup2.c: Likewise.
18613         * tests/test-dup3.c: Likewise.
18614         * tests/test-fcntl.c: Likewise.
18615         * tests/test-get-rusage-data.c: Likewise.
18616         * tests/test-getaddrinfo.c: Likewise.
18617         * tests/test-getlogin.h: Likewise.
18618         * tests/test-isatty.c: Likewise.
18619         * tests/test-localename.c: Likewise.
18620         * tests/test-mbrtowc-w32.c: Likewise.
18621         * tests/test-nonblocking.c: Likewise.
18622         * tests/test-nonblocking-pipe-main.c: Likewise.
18623         * tests/test-nonblocking-socket-main.c: Likewise.
18624         * tests/test-nonblocking-socket.h: Likewise.
18625         * tests/test-pipe.c: Likewise.
18626         * tests/test-pipe2.c: Likewise.
18627         * tests/test-poll.c: Likewise.
18628         * tests/test-pthread_sigmask1.c: Likewise.
18629         * tests/test-select.h: Likewise.
18630         * tests/test-sethostname2.c: Likewise.
18631         * tests/test-sigprocmask.c: Likewise.
18632         * tests/test-spawn-pipe-child.c: Likewise.
18633         * tests/test-stat-time.c: Likewise.
18634         * tests/test-system-quote-main.c: Likewise.
18635         * tests/test-utimens-common.h: Likewise.
18636         * tests/test-wcrtomb-w32.c: Likewise.
18637         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18638         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18639         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
18640         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
18641         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
18642         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18643         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18644         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18645         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18646         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18647         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
18648         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
18649         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18650         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18651         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
18652         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18654 2018-05-02  Bruno Haible  <bruno@clisp.org>
18656         localename: Fix test failures on mingw.
18657         * lib/localename.c (gl_locale_name_thread): Remove code specific to
18658         native Windows.
18659         (gl_locale_name_posix): Move code specific to native Windows here.
18660         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
18661         Accept result without charset suffix, as it appears on mingw.
18663 2018-04-28  Paul Smith  <psmith@gnu.org>
18665         bootstrap: Avoid gnulib operations if not needed
18666         * build-aux/bootstrap: Remove unused variable gnulib_mk.
18667         Set $gnulib_extra_files early so it can be overridden in .conf.
18668         Remove redundant --import flag from $gnulib_tool_options.
18669         Set $use_gnulib to false if no gnulib modules or files are needed.
18670         If $use_gnulib is false, don't do anything related to gnulib.
18671         A lot of this is just whitespace (indentation) changes.
18673 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18675         manywarnings: port to GCC 8.0
18676         * build-aux/gcc-warning.spec: Add -Wcatch-value,
18677         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
18678         fact that the GCC help message now mentions operands for
18679         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
18680         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
18681         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
18682         and -Wunused-const-variable.
18683         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
18684         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
18685         -Wmissing-attributes, -Wmultistatement-macros,
18686         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
18687         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
18689 2018-04-24  Bruno Haible  <bruno@clisp.org>
18691         sys_socket: Make SO_REUSEPORT available across platforms.
18692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18693         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
18694         * doc/posix-headers/sys_socket.texi: Mention the issue.
18695         * tests/test-poll.c (SO_REUSEPORT): Remove.
18696         * tests/test-select.h: Include <sys/socket.h>.
18697         (SO_REUSEPORT): Remove.
18698         * modules/select-tests (Depends-on): Add 'sys_socket'.
18700 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
18702         localcharset: short-circuit the search for an alias on a Mac
18703         * lib/localcharset.c (get_charset_aliases): Add a tautological
18704         UTF-8 entry to speed up the search for this case.
18705         Most machines default to a UTF-8 locale nowadays, so begin the
18706         list of aliases with a dummy UTF-8 entry so it will be found
18707         immediately and a time-consuming search through the rest of
18708         the list is avoided.
18710 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18712         fts: add comment
18713         * lib/fts.c (fts_build): Explain why ==, not >.
18714         See remark by Bernhard Voelker in:
18715         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
18717         fts: fix bug in find across filesystems
18718         This fixes a bug I introduced last summer.
18719         Problem reported by Kamil Dudka in:
18720         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
18721         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
18722         (leaf_optimization):
18723         New arg for file descriptor.  All callers changed.
18724         (fts_build): Check for whether inodes should be sorted
18725         before closing the directory.
18727 2018-04-07  Bruno Haible  <bruno@clisp.org>
18729         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
18730         Reported by Genki Sky <sky@genki.is>.
18731         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
18732         version 0.9.10 or newer.
18733         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
18734         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
18735         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
18736         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
18737         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
18739 2018-04-07  Bruno Haible  <bruno@clisp.org>
18741         execute: Update comment.
18742         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
18744 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18746         fts: treat CIFS like NFS
18747         Problem reported by Kamil Dudka in:
18748         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
18749         * lib/fts.c (S_MAGIC_CIFS): New macro.
18750         (dirent_inode_sort_may_be_useful, leaf_optimization):
18751         Treat CIFS like NFS.
18753 2018-03-28  Bruno Haible  <bruno@clisp.org>
18755         c-stack: Fix possible build failure on some platforms.
18756         * lib/c-stack.c (die): Define whenever this function is referenced.
18758 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
18760         time_rz: fix workaround for Mac OS X 10.6 infloop
18761         Problems reported by Charles A. Roelli (Bug#27736#117).
18762         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
18763         Also, discard output, which clutters the 'configure' log.
18765 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
18767         havelib: port to Solaris 10 /bin/sh
18768         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
18769         instead of '! test EXPR'.
18771 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
18773         time_rz: work around Mac OS X 10.6 infloop
18774         * doc/posix-functions/localtime.texi:
18775         * doc/posix-functions/localtime_r.texi: Mention the bug.
18776         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
18777         better to fix localtime and localtime_r instead, but that would be
18778         more work and is not needed to fix the Emacs problem.
18779         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
18781 2018-03-24  Jim Meyering  <meyering@fb.com>
18783         test-version-etc.sh: don't use diff directly: use init.sh's compare
18784         We'd rather not sacrifice readable "diff -u" output even for
18785         "diff -c" output (not supported by busybox) or for even less
18786         readable ed-style "diff" output.  So use init.sh's compare function
18787         * tests/test-version-etc.sh: Source init.sh and add "." to path.
18788         Remove "./" from invocation of test-version-etc, so we use path.
18789         And s/diff/compare/.
18790         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
18791         to get init.sh.
18792         Prompted by Eric Blake's comments in
18793         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
18795 2018-03-24  Bruno Haible  <bruno@clisp.org>
18797         javacomp-script, javacomp: Add support for Java 10.
18798         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
18799         target-version 10.
18800         * lib/javaversion.h: Update comments.
18801         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18802         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18803         TARGET_VERSION_BOUND, target_version_index,
18804         corresponding_classfile_version): Accept source_version 10 and
18805         target_version 10.
18806         * lib/javacomp.h: Update comments accordingly.
18808 2018-03-24  Bruno Haible  <bruno@clisp.org>
18810         javacomp-script, javacomp: Update comments.
18811         * m4/javacomp.m4: Update comments regarding gcj.
18812         * lib/javacomp.h: Likewise.
18814 2018-03-24  Bruno Haible  <bruno@clisp.org>
18816         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
18817         * lib/javaversion.h: Update comments.
18818         * lib/javacomp.h: Likewise.
18819         * lib/javacomp.c (default_target_version, source_version_index,
18820         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
18821         "1.9".
18822         (TARGET_VERSION_BOUND): Bump to 9.
18823         (target_version_index, corresponding_classfile_version): Recognize "9"
18824         instead of "1.9".
18825         (get_source_version_for_javac): New function.
18826         (is_envjavac_nongcj_usable, is_javac_usable): Add
18827         source_version_for_javac argument.
18828         (compile_java_class): Determine and pass source_version_for_javac.
18829         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
18830         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
18831         appropriate.
18833 2018-03-23  Jim Meyering  <meyering@fb.com>
18835         test-version-etc.sh: port to diff without -c
18836         * tests/test-version-etc.sh: Don't use diff's -c option.
18837         This caused spurious test failure on Alpine Linux, which
18838         uses busybox's diff. Reported by Assaf Gordon in
18839         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
18841 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
18843         c-stack: port to recent GCC build
18844         Problem reported by The Fireplace (Bug#30913).
18845         * lib/c-stack.c (die): Define only if used.
18847 2018-03-20  Bruno Haible  <bruno@clisp.org>
18849         euidaccess: Port to native Windows.
18850         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
18851         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
18853 2018-03-19  Bruno Haible  <bruno@clisp.org>
18855         javacomp: Add support for Java 7, 8, 9.
18856         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18857         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18858         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
18859         and target_version 1,7, 1.8, 1.9.
18860         * lib/javacomp.h: Update comments accordingly.
18862 2018-03-19  Bruno Haible  <bruno@clisp.org>
18864         javacomp-script: Add support for Java 9.
18865         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
18866         target-version 1.9.
18868 2018-03-16  Bruno Haible  <bruno@clisp.org>
18870         glob: Don't compile replacements on recent glibc systems.
18871         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
18872         REPLACE_GLOB is 0, include the system's <glob.h> and use
18873         _GL_CXXALIAS_SYS.
18874         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
18875         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
18876         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
18877         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
18878         Remove snippet/warn-on-use.
18879         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
18880         (Makefile.am): Create glob.h always. Update list of substitutions in
18881         glob.h. Don't depend on $(WARN_ON_USE_H).
18883 2018-03-16  Bruno Haible  <bruno@clisp.org>
18885         glob: Fix link error on native Windows.
18886         * modules/glob (Depends-on): Add 'lstat'.
18888 2018-03-15  Bruno Haible  <bruno@clisp.org>
18890         glob: Fix compilation error in C++ mode.
18891         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
18893 2018-03-15  Bruno Haible  <bruno@clisp.org>
18895         host-cpu-c-abi: Support for RISC-V CPU.
18896         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
18897         riscv32 and riscv64 ABIs.
18898         References:
18899         https://github.com/riscv/riscv-toolchain-conventions
18900         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
18901         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
18903 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18905         fflush: be more paranoid about libio.h change
18906         Suggested by Eli Zaretskii in:
18907         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
18908         * lib/fbufmode.c (fbufmode):
18909         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18910         (disable_seek_optimization, rpl_fflush):
18911         * lib/fpending.c (__fpending):
18912         * lib/fpurge.c (fpurge):
18913         * lib/freadable.c (freadable):
18914         * lib/freadahead.c (freadahead):
18915         * lib/freading.c (freading):
18916         * lib/freadptr.c (freadptr):
18917         * lib/freadseek.c (freadptrinc):
18918         * lib/fseeko.c (fseeko):
18919         * lib/fseterr.c (fseterr):
18920         * lib/fwritable.c (fwritable):
18921         * lib/fwriting.c (fwriting):
18922         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
18924 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
18926         maint: write-file-hooks -> before-save-hook
18927         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
18928         it's time to use the recommended replacement.
18929         Problem reported by Glenn Morris in:
18930         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
18931         * build-aux/announce-gen, build-aux/bootstrap:
18932         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
18933         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
18934         * build-aux/gnu-web-doc-update, build-aux/gnupload:
18935         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
18936         * build-aux/update-copyright, build-aux/useless-if-before-free:
18937         * build-aux/vc-list-files:
18938         Update hook usage for files where Gnulib is the canonical source.
18940 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
18942         binary-io: pacify gcc -Wunused-parameter
18943         Problem reported by Reuben Thomas in:
18944         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
18945         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
18946         Use _GL_UNUSED where appropriate.
18948         fflush: adjust to glibc 2.28 libio.h removal
18949         Problem reported by Daniel P. Berrangé in:
18950         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
18951         * lib/fbufmode.c (fbufmode):
18952         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18953         (disable_seek_optimization, rpl_fflush):
18954         * lib/fpending.c (__fpending):
18955         * lib/fpurge.c (fpurge):
18956         * lib/freadable.c (freadable):
18957         * lib/freadahead.c (freadahead):
18958         * lib/freading.c (freading):
18959         * lib/freadptr.c (freadptr):
18960         * lib/freadseek.c (freadptrinc):
18961         * lib/fseeko.c (fseeko):
18962         * lib/fseterr.c (fseterr):
18963         * lib/fwritable.c (fwritable):
18964         * lib/fwriting.c (fwriting):
18965         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
18966         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
18967         Define if not already defined.
18969 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
18971         environ: fix link error on 32-bit Cygwin
18972         Problem reported for GNU Emacs by Ken Brown in:
18973         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
18974         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
18976 2018-02-24  Bruno Haible  <bruno@clisp.org>
18978         mbrtowc tests: Fix regression on glibc.
18979         Reported by Bernhard Voelker.
18980         * tests/test-mbrtowc.c (main): Fix expected value of wc.
18982 2018-02-24  Bruno Haible  <bruno@clisp.org>
18984         striconveha, uniconv/*: Avoid test failures on musl libc.
18985         * tests/iconvsupport.c: New file.
18986         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
18987         does not support the ISO-2022-JP-2 encoding.
18988         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
18989         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18990         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18991         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18992         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18993         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18994         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
18995         (Makefile.am): Link test-striconveha with iconvsupport.o.
18996         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
18997         tests/iconvsupport.c.
18998         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
18999         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19000         tests/iconvsupport.c.
19001         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19002         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19003         tests/iconvsupport.c.
19004         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19005         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19006         tests/iconvsupport.c.
19007         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19008         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19009         tests/iconvsupport.c.
19010         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19011         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19012         tests/iconvsupport.c.
19013         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19015 2018-02-24  Bruno Haible  <bruno@clisp.org>
19017         localename: Add support for musl libc.
19018         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19019         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19020         on Linux platforms which define NL_LOCALE_NAME.
19022 2018-02-24  Bruno Haible  <bruno@clisp.org>
19024         mbrtowc tests: Don't make assumptions about the charset the C locale.
19025         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19026         particular mapping in the C locale.
19028 2018-02-24  Bruno Haible  <bruno@clisp.org>
19030         ptsname_r: Don't expect that this function sets errno.
19031         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19032         from ptsname_r().
19033         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19035 2018-02-23  Bruno Haible  <bruno@clisp.org>
19037         xmalloca: pacify gcc -Wbad-function-cast
19038         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19040 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19042         nl_langinfo: pacify gcc -Wunused-function
19043         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19044         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19045         this case.  Without this change, I got a diagnostic when building
19046         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19048         same: pacify gcc -Wunused-variable
19049         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19050         Omit unused variable.
19052         malloca: pacify gcc -Wbad-function-cast
19053         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19054         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19055         To pacify GCC, I had to cast alloca’s result to some type other
19056         than void * before casting that to uintptr_t.
19058 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19060         utimecmp: new function utimecmpat
19061         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19062         Do not include utimens.h.
19063         (utimecmpat): New function, generalizing utimecmp.
19064         (utimecmp): Now a thin layer around utimecmpat.
19065         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19066         utimensat instead of on lstat and utimens.
19068         same: new function same_nameat
19069         * lib/same.c: Include fcntl.h.
19070         * lib/same.c (same_nameat): New function, generalizing same_name.
19071         (same_name): Now a thin layer around same_nameat.
19072         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19073         * modules/same (Depends-on): Depend on fstatat, openat.
19075 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19077         warnings: Add support for Objective C.
19078         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19079         macro.
19081 2018-02-17  Bruno Haible  <bruno@clisp.org>
19083         lock: Fix test-once1 crash on FreeBSD11.
19084         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19085         'pthread_create', not 'pthread_cancel'.
19087 2018-02-17  Bruno Haible  <bruno@clisp.org>
19089         lock: Add test of gl_once.
19090         * tests/test-once.c: New file.
19091         * modules/lock-tests (Files): Add it.
19092         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19094 2018-02-17  Bruno Haible  <bruno@clisp.org>
19096         thread: Fix compilation error on IRIX.
19097         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19098         needed; include it outside the C++ extern "C" {} block.
19099         * doc/posix-headers/pthread.texi: Mention the problem with
19100         pthread_atfork on IRIX.
19102 2018-02-04  Bruno Haible  <bruno@clisp.org>
19104         nl_langinfo: Override the system's nl_langinfo() when needed.
19105         Reported by Jim Meyering.
19106         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19107         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19109 2018-02-04  Bruno Haible  <bruno@clisp.org>
19111         signal-h, monetary, strings: Fix build failure in some cases.
19112         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19113         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19114         as delimiter in sed command, not '|'.
19115         * modules/monetary (Makefile.am): Likewise.
19116         * modules/strings (Makefile.am): Likewise.
19118 2018-02-03  Jim Meyering  <meyering@fb.com>
19120         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19121         * top/maint.mk (sc_file_system): Don't complain about
19122         "/proc/filesystems".
19124 2018-02-03  Bruno Haible  <bruno@clisp.org>
19126         stdlib: Fix compilation error on OpenIndiana.
19127         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19128         <sys/time.h>.
19129         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19130         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19132 2018-02-03  Bruno Haible  <bruno@clisp.org>
19134         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19135         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19136         and use $EGREP instead of 'grep -E'.
19137         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19138         'grep -E'.
19140 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19142         malloca: Add a compile-time verification.
19143         * lib/malloca.c (small_t): Verify that it is wide enough.
19144         * modules/malloca (Depends-on): Add verify.
19146 2018-02-02  Bruno Haible  <bruno@clisp.org>
19148         malloca: Add an argument check.
19149         Suggested by Paul Eggert.
19150         * lib/malloca.c (freea): Check against an invalid argument.
19152 2018-02-02  Bruno Haible  <bruno@clisp.org>
19154         localename: Add support for OpenIndiana.
19155         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19156         Solaris 11 variants with uselocale() but without getlocalename_l().
19158 2018-02-02  Bruno Haible  <bruno@clisp.org>
19160         malloca, xmalloca: Make multithread-safe.
19161         Reported by Florian Weimer <fweimer@redhat.com>.
19162         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19163         * lib/malloca.h (malloca): In the stack allocation case, return a
19164         pointer that is a multiple of 2 * sa_alignment_max.
19165         (sa_increment): Remove enum item.
19166         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19167         a pointer that is a multiple of 2 * sa_alignment_max.
19168         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19169         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19170         HASH_TABLE_SIZE, mmalloca_results): Remove.
19171         (small_t): New type.
19172         (mmalloca, free): Rewritten.
19173         * lib/malloca.valgrind: Remove file.
19174         * modules/malloca (Files): Remove it.
19175         (Depends-on): Remove verify.
19177 2018-01-31  Bruno Haible  <bruno@clisp.org>
19179         environ: Fix link error on 64-bit Cygwin.
19180         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19181         __declspec(dllimport) attribute.
19182         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19184 2018-01-30  Bruno Haible  <bruno@clisp.org>
19186         get-rusage-data: Add support for Minix 3.
19187         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19189 2018-01-30  Bruno Haible  <bruno@clisp.org>
19191         vma-iter: Add support for Minix 3.
19192         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19193         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19195 2018-01-27  Bruno Haible  <bruno@clisp.org>
19197         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19198         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19199         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19200         _HPUX_ALT_XOPEN_SOCKET_API.
19201         * modules/accept (Depends-on): Add 'extensions'.
19202         * modules/getpeername (Depends-on): Likewise.
19203         * modules/getsockname (Depends-on): Likewise.
19204         * modules/getsockopt (Depends-on): Likewise.
19205         * modules/recvfrom (Depends-on): Likewise.
19206         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19207         * doc/posix-functions/getpeername.texi: Likewise.
19208         * doc/posix-functions/getsockname.texi: Likewise.
19209         * doc/posix-functions/getsockopt.texi: Likewise.
19210         * doc/posix-functions/recvfrom.texi: Likewise.
19212 2018-01-27  Bruno Haible  <bruno@clisp.org>
19214         getsockname tests: More tests.
19215         * tests/test-getsockname.c (open_server_socket): New function, mostly
19216         copied from test-poll.c.
19217         (main): Check that getsockname fills in addr.
19218         * modules/getsockname-tests (Depends-on): Add the necessary
19219         dependencies.
19220         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
19222 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19224         manywarnings: fix maintainer comment
19225         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
19226         it does not mistakenly think that ‘-1)’ is an option.
19228 2018-01-26  Bruno Haible  <bruno@clisp.org>
19230         langinfo: Fix last commit.
19231         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19232         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
19234 2018-01-24  Bruno Haible  <bruno@clisp.org>
19236         langinfo, nl_langinfo: Add support for alternative month names.
19237         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
19238         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
19239         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
19240         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
19241         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
19242         * doc/posix-functions/nl_langinfo.texi: Likewise.
19244 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19246         Merge strftime.c changes from glibc
19247         This incorporates:
19248         2017-11-14 [BZ #10871] Implement alternative month names
19249         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19250         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19251         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19252         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19253         Use locale_t, not __locale_t.
19254         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19255         (__strftime_internal): Add support for alternate months.
19257 2018-01-23  Bruno Haible  <bruno@clisp.org>
19259         doc: Mention another prerequisite for using Gnulib.
19260         Reported at <https://stackoverflow.com/questions/48378214/>.
19261         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19262         AC_CONFIG_HEADERS.
19264 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19266         build: GuixSD doesn't have /bin/bash
19267         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19269 2018-01-21  Bruno Haible  <bruno@clisp.org>
19271         Avoid test failures on Microsoft Windows Subsystem for Linux.
19272         * tests/test-fcntl.c (main): Allow a different errno.
19273         * tests/test-rename.h (test_rename): Likewise.
19274         * tests/test-renameat.c (main): Likewise.
19275         * tests/test-renameat2.c (main): Likewise.
19277 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19279         filenamecat: make base a suffix of result
19280         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19281         (mfile_name_concat): Always make BASE a suffix of the result, as
19282         cp expects this.  To implement this, separate with '.' instead of
19283         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19284         * tests/test-filenamecat.c (main): Adjust tests to match
19285         current behavior.  Check that BASE_IN_RESULT points to
19286         a copy of BASE and is a suffix of the resultk, and that DIR
19287         is a prefix of the result that is no longer than the prefix
19288         indicated by BASE_IN_RESULT.
19290 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19292         update-copyright: Handle use of ©
19293         * build-aux/update-copyright ($circle_c_re): Update regex to
19294         handle use of © in headers.
19296 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19298         Fix -Wundef warning in user-included header lib/cdefs.h.
19299         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19301 2018-01-04  Bruno Haible  <bruno@clisp.org>
19303         pthread_sigmask: Avoid compilation error on mingw.
19304         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19305         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19306         macro.
19308 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19310         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19311         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19312         Suggested by Bob Proulx (Bug#29968).
19313         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19315 2018-01-02  Eric Blake  <eblake@redhat.com>
19317         stat-time: silence -Wunused-parameter regression
19318         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19319         Prefer attribute over cast-to-void.
19320         (stat_time_normalize): Mark st as potentially unused.
19322 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19324         test-framework-sh: avoid netstat
19325         Problem reported by Kristýna Streitová (Bug#29947).
19326         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19327         deprecated on SuSE and it's not that important anyway.
19329 2018-01-01  Jim Meyering  <meyering@fb.com>
19331         update-copyright: add code to handle more special cases
19332         After running "make update-copyright" this year, five files
19333         required additional manual changes.  Automate those adjustments
19334         for next year.
19335         * Makefile (_year_and_prev): Define.
19336         (update-copyright): Add perl commands to induce this year's post-
19337         update-copyright adjustments.
19339 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19341         version-etc: new year
19342         * build-aux/gendocs.sh (version):
19343         * doc/gendocs_template:
19344         * doc/gendocs_template_min:
19345         * doc/gnulib.texi:
19346         * lib/version-etc.c (COPYRIGHT_YEAR):
19347         Update copyright dates by hand in templates and the like.
19349         maint: fix 'make update-copyright'
19350         * Makefile (update-copyright): Adjust to 2016-11-23 change
19351         to config/srclist-update, which changed the format of srclist.txt.
19353 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19355         chdir-safer: remove this module
19356         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19357         * NEWS: Document removal.
19358         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19359         * modules/chdir-safer: Remove these files.
19361 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19363         Add cross-compilation results for GNU/Hurd.
19364         * m4/calloc.m4: Add GNU/Hurd guess.
19365         * m4/cbrtl.m4: Likewise.
19366         * m4/ceil.m4: Likewise.
19367         * m4/ceilf.m4: Likewise.
19368         * m4/ceill.m4: Likewise.
19369         * m4/chown.m4: Likewise.
19370         * m4/duplocale.m4: Likewise.
19371         * m4/exp2l.m4: Likewise.
19372         * m4/expm1.m4: Likewise.
19373         * m4/fchdir.m4: Likewise.
19374         * m4/floor.m4: Likewise.
19375         * m4/floorf.m4: Likewise.
19376         * m4/fmod.m4: Likewise.
19377         * m4/fmodf.m4: Likewise.
19378         * m4/fmodl.m4: Likewise.
19379         * m4/getcwd.m4: Likewise.
19380         * m4/getgroups.m4: Likewise.
19381         * m4/gettimeofday.m4: Likewise.
19382         * m4/hypot.m4: Likewise.
19383         * m4/hypotf.m4: Likewise.
19384         * m4/hypotl.m4: Likewise.
19385         * m4/link-follow.m4: Likewise.
19386         * m4/link.m4: Likewise.
19387         * m4/linkat.m4: Likewise.
19388         * m4/log.m4: Likewise.
19389         * m4/log10.m4: Likewise.
19390         * m4/log10f.m4: Likewise.
19391         * m4/log1p.m4: Likewise.
19392         * m4/log1pf.m4: Likewise.
19393         * m4/log1pl.m4: Likewise.
19394         * m4/log2.m4: Likewise.
19395         * m4/log2f.m4: Likewise.
19396         * m4/logf.m4: Likewise.
19397         * m4/lstat.m4: Likewise.
19398         * m4/malloc.m4: Likewise.
19399         * m4/mbrlen.m4: Likewise.
19400         * m4/mbrtowc.m4: Likewise.
19401         * m4/mkdir.m4: Likewise.
19402         * m4/mkfifo.m4: Likewise.
19403         * m4/mknod.m4: Likewise.
19404         * m4/mkstemp.m4: Likewise.
19405         * m4/modf.m4: Likewise.
19406         * m4/modff.m4: Likewise.
19407         * m4/modfl.m4: Likewise.
19408         * m4/printf.m4: Likewise.
19409         * m4/pselect.m4: Likewise.
19410         * m4/ptsname.m4: Likewise.
19411         * m4/putenv.m4: Likewise.
19412         * m4/readlink.m4: Likewise.
19413         * m4/realloc.m4: Likewise.
19414         * m4/remainder.m4: Likewise.
19415         * m4/remainderf.m4: Likewise.
19416         * m4/remainderl.m4: Likewise.
19417         * m4/rmdir.m4: Likewise.
19418         * m4/round.m4: Likewise.
19419         * m4/roundf.m4: Likewise.
19420         * m4/roundl.m4: Likewise.
19421         * m4/select.m4: Likewise.
19422         * m4/setenv.m4: Likewise.
19423         * m4/signbit.m4: Likewise.
19424         * m4/sleep.m4: Likewise.
19425         * m4/stat.m4: Likewise.
19426         * m4/strerror.m4: Likewise.
19427         * m4/strtok_r.m4: Likewise.
19428         * m4/symlink.m4: Likewise.
19429         * m4/symlinkat.m4: Likewise.
19430         * m4/trunc.m4: Likewise.
19431         * m4/truncf.m4: Likewise.
19432         * m4/truncl.m4: Likewise.
19433         * m4/tzset.m4: Likewise.
19434         * m4/ungetc.m4: Likewise.
19435         * m4/usleep.m4: Likewise.
19436         * m4/wcwidth.m4: Likewise.
19438 2017-12-28  Bruno Haible  <bruno@clisp.org>
19440         gnulib-tool: Make --conditional-dependencies work better.
19441         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
19442         * gnulib-tool (Options): Don't reject the combination of
19443         --conditional-dependencies with --with-tests.
19444         (func_emit_autoconf_snippets): Add argument referenceable_modules.
19445         Don't reference $modules.
19446         (func_import, func_create_testdir): Pass it.
19448 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19450         regex: use re_malloc etc. consistently
19451         Problem and original patch reported by Arnold Robbins in:
19452         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
19453         * lib/regcomp.c (re_comp):
19454         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
19455         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
19457 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
19458             Paul Eggert  <eggert@cs.ucla.edu>
19460         glob: Silence warning about void pointer arithmetic.
19461         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19462         arithmetic.
19464 2017-12-15  Bruno Haible  <bruno@clisp.org>
19466         spawn-pipe: Silence a clang warning.
19467         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19468         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
19469         in this file.
19471 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19473         explicit_bzero: port to macOS + Clang 9.0.0
19474         Problem reported by Marcus Johnson (Bug#29658).
19475         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
19476         Don’t use asm.
19478 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19480         doc: Improve explanation of supporting relocatable libraries.
19481         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19482         properly how to build the relocatable module for
19483         libraries. (Method and example code from Bruno Haible.)
19485 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19487         doc: Use better texinfo tags in a few cases.
19488         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
19489         instead of @samp in a few places.
19491 2017-12-11  Bruno Haible  <bruno@clisp.org>
19493         unistr/base: Update comment.
19494         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
19496 2017-12-10  Pádraig Brady  <P@draigBrady.com>
19498         test-faccessat.c: unlink temp file to avoid subsequent test failure
19499         * tests/test-faccessat.c: Remove the file to avoid failure
19500         to open the file on subsequent runs due to being created
19501         with no permissions.
19503 2017-12-10  Bruno Haible  <bruno@clisp.org>
19505         doc: New sect. "Modifying the build rules of a Gnulib import directory".
19506         * doc/gnulib-tool.texi (Modified build rules): New node.
19508 2017-12-10  Bruno Haible  <bruno@clisp.org>
19510         doc: Tweak wording.
19511         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
19512         "binaries".
19514 2017-12-05  Sam Steingold  <sds@gnu.org>
19515             Bruno Haible  <bruno@clisp.org>
19517         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
19518         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
19519         AC_EGREP_CPP pattern.
19521 2017-12-03  Bruno Haible  <bruno@clisp.org>
19523         all: Replace more http URLs by https URLs.
19524         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
19525         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
19526         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
19527         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
19529 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19531         Port better to CentOS 5
19532         Problems reported by Tom G. Christensen in:
19533         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
19534         * doc/glibc-functions/strverscmp.texi (strverscmp):
19535         Document strverscmp bug with glibc 2.9 and earlier.
19536         * doc/posix-functions/tzset.texi (tzset):
19537         Document that TZ with angle brackets is POSIX-2001 and later.
19538         * tests/test-nstrftime.c: Include unistd.h.
19539         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
19540         (TZ): Use it to skip tests with angle brackets in TZ,
19541         for older systems.
19543         stat: add missing module dependencies
19544         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
19545         Add stat-time.
19547 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
19549         stat: fix compilation failure on macOS Sierra
19550         Reported by Marius Schamschula <mschamschula@gmail.com> in:
19551         https://savannah.gnu.org/bugs/?52546
19552         * lib/stat.c: Add missing include of stat-time.h.
19554 2017-11-28  Jim Meyering  <meyering@fb.com>
19556         test-faccessat.c: correct BASE definition to avoid parallel test failure
19557         * tests/test-faccessat.c (BASE): Define using this file's name, not
19558         that of test-lstat.c.  Using the latter caused this test to fail
19559         sometimes when run concurrently with test-lstat.
19561 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19563         unicase: fix VPATH build
19564         * modules/unicase/special-casing (Makefile.am): Ensure that the
19565         base directory is created when generating
19566         unicase/special-casing.h.
19568 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19570         libunistring: update to Unicode 9.0.0
19571         * lib/gen-uni-tables.c (fill_properties): Recognize
19572         Sentence_Terminal and Prepended_Concatenation_Mark.
19573         (is_property_default_ignorable_code_point): Exclude U+08E2.
19574         (fill_arabicshaping): Allow missing whitespace when parsing;
19575         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
19576         (output_blocks): Increase the element size of the level1 table to
19577         accommodate more blocks.
19578         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
19579         Update each class according to the standard.
19580         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
19581         E_Base_GAZ characters.
19582         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
19583         Glue_After_Zwj, and E_Base_GAZ characters.
19584         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
19585         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
19586         enum value.
19587         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
19588         value.
19589         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
19590         LBP_ZWJ, LBP_EB, and LBP_EM.
19591         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
19592         enum value.
19593         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
19594         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
19595         declaration.
19596         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
19597         (uniwbrk_table): Implement WB14.
19598         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
19599         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
19600         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
19601         uc-is-grapheme-break.
19602         * modules/unigbrk/uc-grapheme-breaks: New module.
19603         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
19604         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
19605         enum value.
19606         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
19607         * lib/unigbrk/u-grapheme-breaks.h: New file.
19608         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
19609         u-grapheme-breaks.h instead of uc_is_grapheme_break.
19610         * lib/unigbrk/uc-grapheme-breaks.c: New file.
19611         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
19612         29.
19613         * tests/unigbrk/test-uc-gbrk-prop.c
19614         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19615         GBP_GAZ, and GBP_EBG.
19616         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
19617         * tests/unigbrk/test-uc-is-grapheme-break.c
19618         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19619         GBP_GAZ, and GBP_EBG.
19620         (main): Skip unsupported rules involving 3 or more characters,
19621         namely GB10, GB12, and GB13.
19622         * lib/uniwidth/width.c (nonspacing_table_data): Update.
19623         * all generated files under lib/uni* and tests/uni*: Regenerate.
19624         * all the affected modules: Bump version.
19626 2017-11-26  Bruno Haible  <bruno@clisp.org>
19628         strfmon_l: Fix compilation error with glibc 2.5.
19629         Reported by Tom G. Christensen <tgc@jupiterrise.com>
19630         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
19631         * lib/monetary.in.h: Include also <locale.h>.
19633 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19635         posixtm: remove PDS_LEADING_YEAR
19636         This changes the API slightly, in a hopefully-innocuous way.
19637         Without this change the code had undefined behavior when a
19638         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
19639         Problem reported by Pádraig Brady in:
19640         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
19641         * NEWS: Mention this.
19642         * lib/posixtm.c (posix_time_parse): Treat the absence of
19643         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
19644         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
19645         present, but define it as zero, for compatibility with existing
19646         source code).  All other PDS_* values moved up.
19647         * tests/test-posixtm.c (LY): New macro.
19648         (T): Use it.  Do not expect a particular numeric encoding
19649         for PDS_CENTURY etc.
19651 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
19653         stat: work around Solaris bug with tv_nsec < 0
19654         * doc/posix-functions/fstat.texi (fstat):
19655         * doc/posix-functions/fstatat.texi (fstatat):
19656         * doc/posix-functions/lstat.texi (lstat):
19657         * doc/posix-functions/stat.texi (stat):
19658         Mention Solaris 11 bug.
19659         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
19660         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
19661         * lib/lstat.c (rpl_lstat):
19662         * lib/stat.c (rpl_stat):
19663         Normalize resulting timestamps.
19664         * lib/fstatat.c (normal_fstatat): New function.
19665         (rpl_fstatat): Use it.
19666         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
19667         (stat_time_normalize): New function.
19668         * m4/fstat.m4 (gl_FUNC_FSTAT):
19669         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
19670         * m4/lstat.m4 (gl_FUNC_LSTAT):
19671         * m4/stat.m4 (gl_FUNC_STAT):
19672         Replace on Solaris.
19673         * modules/fstat (Depends-on):
19674         * modules/fstatat (Depends-on):
19675         Add stat-time.
19676         * modules/stat-time (Depends-on): Add errno, intprops.
19678 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
19680         regex: merge from glibc
19681         * lib/regcomp.c (init_word_char): Add comments.
19683 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19685         regex: merge from glibc
19686         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
19687         * lib/regex_internal.h (internal_function): Remove.
19688         All uses removed.
19690 2017-11-20  Bruno Haible  <bruno@clisp.org>
19692         crypto/gc-sm3: Fix buffer overrun.
19693         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
19694         Reported by Coverity.
19696 2017-11-12  Jim Meyering  <meyering@fb.com>
19698         maint: shorten https://lists.gnu.org/archive/html/... links
19699         Each /archive/html/ part can be replace with /r/.
19700         Run this to induce the change:
19701         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
19702         * ChangeLog: Perform that substitution.
19703         * Makefile: Likewise.
19704         * STATUS-libposix: Likewise.
19705         * build-aux/bootstrap: Likewise.
19706         * doc/maintain.texi: Likewise.
19707         * gnulib-tool: Likewise.
19708         * lib/allocator.h: Likewise.
19709         * lib/argp-ba.c: Likewise.
19710         * lib/argp-pv.c: Likewise.
19711         * lib/canon-host.c: Likewise.
19712         * lib/canonicalize-lgpl.c: Likewise.
19713         * lib/float.in.h: Likewise.
19714         * lib/fstat.c: Likewise.
19715         * lib/getdelim.c: Likewise.
19716         * lib/getprogname.c: Likewise.
19717         * lib/glthread/thread.h: Likewise.
19718         * lib/intprops.h: Likewise.
19719         * lib/mbsrtowcs-state.c: Likewise.
19720         * lib/safe-read.c: Likewise.
19721         * lib/signal.in.h: Likewise.
19722         * lib/stat.c: Likewise.
19723         * lib/stdbool.in.h: Likewise.
19724         * lib/stdio-impl.h: Likewise.
19725         * lib/stdio.in.h: Likewise.
19726         * lib/sysexits.in.h: Likewise.
19727         * lib/timespec.h: Likewise.
19728         * lib/wcsrtombs-state.c: Likewise.
19729         * m4/alloca.m4: Likewise.
19730         * m4/extern-inline.m4: Likewise.
19731         * m4/fstatat.m4: Likewise.
19732         * m4/gnulib-common.m4: Likewise.
19733         * m4/lib-ignore.m4: Likewise.
19734         * m4/printf.m4: Likewise.
19735         * m4/regex.m4: Likewise.
19736         * m4/stat-size.m4: Likewise.
19737         * m4/std-gnu11.m4: Likewise.
19738         * m4/stdbool.m4: Likewise.
19739         * m4/sys_types_h.m4: Likewise.
19740         * m4/threadlib.m4: Likewise.
19741         * m4/vararrays.m4: Likewise.
19742         * pygnulib/GLImport.py: Likewise.
19743         * tests/test-exp.h: Likewise.
19744         * tests/test-exp2.h: Likewise.
19745         * tests/test-expm1.h: Likewise.
19746         * tests/test-fflush2.c: Likewise.
19747         * tests/test-getopt_long.h: Likewise.
19748         * tests/test-intprops.c: Likewise.
19749         * tests/test-log.h: Likewise.
19750         * tests/test-log10.h: Likewise.
19751         * tests/test-log1p.h: Likewise.
19752         * tests/test-log2.h: Likewise.
19753         * tests/test-printf-posix.h: Likewise.
19754         * tests/test-regex.c: Likewise.
19755         * tests/test-snprintf-posix.h: Likewise.
19756         * tests/test-sprintf-posix.h: Likewise.
19757         * tests/test-stdalign.c: Likewise.
19758         * tests/test-stdbool.c: Likewise.
19759         * tests/test-vasnprintf-posix.c: Likewise.
19760         * tests/test-vasprintf-posix.c: Likewise.
19761         * top/maint.mk: Likewise.
19763 2017-11-12  Bruno Haible  <bruno@clisp.org>
19765         faccessat: Make the last change more robust.
19766         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
19767         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
19769 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19771         faccessat: port to macOS (Bug#29231)
19772         macOS faccessat has the same bug that lstat does: if the file
19773         name ends in '/' it ignores the trailing slash.
19774         Problem reported for Emacs by Vincent Zhang.
19775         * doc/posix-functions/faccessat.texi (faccessat): Document this.
19776         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
19777         around the initial includes.  Include errno.h, string.h, sys/stat.h.
19778         (orig_faccessat) [HAVE_FACCESSAT]: New function.
19779         Include "unistd.h" after defining it.
19780         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
19781         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
19782         Handle in the usual way.
19783         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
19784         lstat dereferences symlinks, since faccessat is likely to
19785         have the same problem.
19786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
19787         * modules/faccessat (Depends-on): Add fstatat.
19788         Depend if REPLACE_FACCESSAT is 1, too.
19789         (configure.ac): Link if REPLACE_FACCESSAT is 1.
19790         * modules/faccessat-tests (Depends-on): Add symlink.
19791         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
19792         * tests/test-faccessat.c (main): Test for the bug.
19794 2017-11-11  Bruno Haible  <bruno@clisp.org>
19796         getprogname: Fix compilation error on IRIX.
19797         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
19798         'namesize'.
19800 2017-11-11  Bruno Haible  <bruno@clisp.org>
19802         year2038: Tweak last patch.
19803         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
19805 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19807         year2038: be more insistent about 64-bit time_t
19808         Applications requiring access to arbitrary files should not be
19809         built with 32-bit time_t on hosts that have 64-bit timestamps,
19810         as this can lead to real trouble at runtime.
19811         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
19812         Check on all systems, not just MinGW.  Use a heuristic involving
19813         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
19814         output a failure or just a warning, to make it more likely that
19815         builders will select 64-bit time_t.
19817 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19819         havelib: fix typo in previous change
19820         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
19822         Don’t use AC_EGREP_CPP if affected by CFLAGS
19823         * m4/float_h.m4 (gl_FLOAT_H):
19824         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
19825         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
19826         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
19827         * m4/year2038.m4 (gl_YEAR2038):
19828         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
19829         likely to be affected by the choice of CFLAGS, since CFLAGS are
19830         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
19831         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
19833         fstatat: pacify GCC on unusual platform
19834         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
19835         Omit, as it’s unused in this case.
19837 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19839         timespec: prefer ‘assume’ to ‘assure’
19840         This avoids some runtime tests.  The rest of the module makes
19841         similar assumptions and there is little point to testing here.
19842         * lib/timespec.h: Include verify.h instead of assure.h.
19843         (timespec_cmp): Use ‘assume’, not ‘assure’.
19844         Also, remove an unnecessary cast to ‘int’, as lots of other
19845         code in this module now causes -Wconversion to complain, and
19846         this is a problem with -Wconversion not with the code.
19848         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
19850         Port recent gnulib-tool change to Dash
19851         * gnulib-tool (func_create_testdir): Don't assume that the shell
19852         retokenizes after expanding "$@" inside the call to
19853         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
19855 2017-10-27  Jim Meyering  <meyering@fb.com>
19857         timespec.h: use "assure" to avoid a spurious warning
19858         * lib/timespec.h: Include "assure.h" and use it to help
19859         gcc7's -Wstrict-overflow avoid a false positive warning
19860         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
19861         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
19862         * modules/timespec (Depends-on): Add assure.
19864 2017-10-29  Bruno Haible  <bruno@clisp.org>
19866         Avoid several test failures with traditional locales on Haiku.
19867         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
19868         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
19869         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
19870         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
19871         LOCALE_ZH_CN=none.
19873 2017-10-29  Bruno Haible  <bruno@clisp.org>
19875         strerror_r-posix: Fix behaviour and test failure on Haiku.
19876         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
19877         are positive. Work around return value 0 instead of ERANGE on Haiku.
19878         For unknown error numbers, use a format string consistent with perror().
19879         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
19880         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
19881         are positive.
19883 2017-10-29  Bruno Haible  <bruno@clisp.org>
19885         get-rusage-data: Avoid crash on Haiku.
19886         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
19888 2017-10-29  Bruno Haible  <bruno@clisp.org>
19890         get-rusage-as: Avoid crash on Haiku.
19891         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
19893 2017-10-29  Bruno Haible  <bruno@clisp.org>
19895         ilogbl: Ensure replacement on Haiku.
19896         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
19897         REPLACE_ILOGBL if ilogbl does not work.
19898         (gl_FUNC_ILOGBL_WORKS): New macro.
19899         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
19900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
19901         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
19902         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
19903         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
19905 2017-10-29  Bruno Haible  <bruno@clisp.org>
19907         expl: Ensure replacement on Haiku.
19908         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
19909         zero.
19910         * doc/posix-functions/expl.texi: Mention the Haiku problem.
19912 2017-10-29  Bruno Haible  <bruno@clisp.org>
19914         math: Fix test failure on Haiku.
19915         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
19916         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
19917         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19918         * doc/posix-headers/math.texi: Mention the Haiku problem.
19920 2017-10-29  Bruno Haible  <bruno@clisp.org>
19922         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
19923         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
19924         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
19926 2017-10-29  Bruno Haible  <bruno@clisp.org>
19928         crypto/*: Verify that the header file is self-contained.
19929         * tests/test-gc-*.c: Include the module's header file immediately after
19930         <config.h>.
19931         * tests/test-hmac-*.c: Likewise.
19932         * tests/test-arcfour.c: Likewise.
19933         * tests/test-arctwo.c: Likewise.
19934         * tests/test-des.c: Likewise.
19935         * tests/test-md2.c: Likewise.
19936         * tests/test-md4.c: Likewise.
19937         * tests/test-md5.c: Likewise.
19938         * tests/test-rijndael.c: Likewise.
19939         * tests/test-sha1.c: Likewise.
19940         * tests/test-sm3.c: Likewise.
19942 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19943             Bruno Haible  <bruno@clisp.org>
19945         crypto/gc: fix build failure with -Werror=suggest-attribute=const
19946         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
19948 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19950         New module: crypto/gc-sm3
19951         * lib/gc.h: Declare SM3-related stuffs.
19952         * lib/gc-gnulib.c: Support sm3 in internal functions.
19953         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
19954         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
19955         * modules/crypto/gc-sm3: Define gc-sm3 module.
19956         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
19957         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
19958         * MODULES.html.sh: List gc-sm3 module.
19960 2017-10-29  Bruno Haible  <bruno@clisp.org>
19962         random, random_r: Mention different prototypes on Haiku.
19963         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
19964         * doc/glibc-functions/random_r.texi: Likewise.
19965         * doc/glibc-functions/initstate_r.texi: Likewise.
19966         * doc/glibc-functions/setstate_r.texi: Likewise.
19968 2017-10-28  Bruno Haible  <bruno@clisp.org>
19970         posix_spawn: Avoid spurious message in configure output.
19971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
19972         'cmp' command.
19974 2017-10-28  Bruno Haible  <bruno@clisp.org>
19976         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
19977         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
19978         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
19980 2017-10-28  Bruno Haible  <bruno@clisp.org>
19982         ioctl: Override non-POSIX declaration on Haiku.
19983         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
19984         * lib/sys_ioctl.in.h: Add comment about Haiku.
19985         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
19986         * doc/glibc-headers/sys_ioctl.texi: Likewise.
19988 2017-10-28  Bruno Haible  <bruno@clisp.org>
19990         crypto/sm3: Add overview documentation to the .h file.
19991         * lib/sm3.h: Add comments.
19993 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
19995         New module: crypto/sm3
19996         This new module can be used to compute SM3 message digest of files or
19997         memory blocks according to the specification GM/T 004-2012
19998         Cryptographic Hash Algorithm SM3, published by State Cryptography
19999         Administration, China.
20000         The official SM3 cryptographic hash algorithm specification is
20001         available at
20002         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20003         * lib/sm3.h: Declare the APIs of sm3 module.
20004         * lib/sm3.c: Implement SM3 hash algorithm.
20005         * m4/sm3.m4: m4 file for sm3 module.
20006         * modules/crypto/sm3: Define sm3 module.
20007         * tests/test-sm3.c: Implement SM3 test case.
20008         * modules/crypto/sm3-tests: Define sm3 test module.
20009         * MODULES.html.sh: List sm3 module.
20011 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20013         gc-libgcrypt: fix undefined enum type in switch statement
20014         Resolve the following build failure:
20015         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20016         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20017         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20018              case 0:
20019              ^~~~
20020         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20021         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20023 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20025         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20026         Resolve the following build failure:
20027         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20028         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20029         in signedness [-Werror=pointer-sign]
20030             digest = gcry_md_read (ctx->gch, 0);
20031                    ^
20032         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20034 2017-10-26  Bruno Haible  <bruno@clisp.org>
20036         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20037         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20038         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20040 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20042         glob: fix another heap buffer overflow
20043         Problem reported by Tim Rühsen in:
20044         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20045         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20047 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20049         quotearg: pacify compiler re unsigned
20050         * lib/quotearg.c (quotearg_n_options):
20051         Rewrite to avoid diagnostic from overly-picky compiler.
20052         Problem reported by Sami Kerola in:
20053         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20055         glob: fix heap buffer overflow
20056         * lib/glob.c (glob): Fix off-by-one error introduced into
20057         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20058         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20059         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20060         Fix suggested by Bruno Haible.
20062 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20064         glob: pacify fuzzer for mempcpy
20065         Problem reported by Tim Rühsen in:
20066         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20067         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20069 2017-10-12  Bruno Haible  <bruno@clisp.org>
20071         doc: Fix syntax error (regression from 2017-10-03).
20072         * doc/posix-functions/strncpy.texi: Fix syntax error.
20074 2017-10-12  Bruno Haible  <bruno@clisp.org>
20076         doc: Update for Solaris 11.3.
20077         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20078         mention Solaris 11.3.
20079         * m4/log2.m4: Fix comments.
20080         * m4/log2f.m4: Likewise.
20081         * m4/printf.m4: Update comments.
20082         * m4/rename.m4: Likewise.
20083         * m4/strncat.m4: Likewise.
20085         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20087 2017-10-10  Bruno Haible  <bruno@clisp.org>
20089         doc: Improve doc about ioctl.
20090         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20091         prototype.
20093 2017-10-09  Bruno Haible  <bruno@clisp.org>
20095         wcwidth: Don't use obsolete syntax of 'test'.
20096         Reported by Eric Blake.
20097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20098         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20100 2017-10-09  Bruno Haible  <bruno@clisp.org>
20102         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20103         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20104         and Daniel P. Berrange <berrange@redhat.com>.
20105         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20106         on glibc systems. The getopt-pfx-core.h file declares exactly what
20107         unistd.h needs, nothing more.
20109 2017-10-08  Bruno Haible  <bruno@clisp.org>
20111         vma-iter: Improve support for FreeBSD.
20112         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20113         vma_iterate.
20114         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20116 2017-10-08  Bruno Haible  <bruno@clisp.org>
20118         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20119         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20121 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20123         test-framework-sh: Fix 'invalid path dir' error.
20124         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20125         separator between a drive letter and directory parts.
20126         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20127         treated as an invalid path dir.
20128         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20129         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20130         instead of hard coded ':'.
20132 2017-10-07  Bruno Haible  <bruno@clisp.org>
20134         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20135         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20136         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20137         (rof_open): On Linux, do multiple read() calls and make sure
20138         MIN_LEFTOVER bytes are left when read() returns.
20140 2017-10-07  Bruno Haible  <bruno@clisp.org>
20142         vma-iter: Improve support for GNU/Hurd.
20143         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20144         API, not the /proc file system.
20146 2017-10-07  Bruno Haible  <bruno@clisp.org>
20148         test-framework-sh: Don't require bash on Windows and OS/2.
20149         Reported by KO Myung-Hun.
20150         * tests/test-init.sh: Use 'shopt' only when running in bash.
20152 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20154         wcwidth: check a macro version of wcwidth () as well
20155         * lib/wchar.in.h: Revert commit from 2016-01-14.
20156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20158 2017-10-06  Bruno Haible  <bruno@clisp.org>
20160         getopt-posix: Clarify copyright header.
20161         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20162         * lib/getopt-pfx-core.h: Likewise.
20163         * lib/getopt-pfx-ext.h: Likewise.
20164         * lib/getopt-cdefs.in.h: Likewise.
20166 2017-10-03  Bruno Haible  <bruno@clisp.org>
20168         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20169         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20170         gl_HOST_CPU_C_ABI.
20172 2017-10-03  Bruno Haible  <bruno@clisp.org>
20174         doc: warn about misuse of strncpy and wcsncpy.
20175         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20176         memory allocation.
20177         * doc/posix-functions/wcscpy.texi: Likewise.
20178         * doc/posix-functions/strncpy.texi: Describe what this function is not
20179         useful for.
20180         * doc/posix-functions/wcsncpy.texi: Likewise.
20182 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20184         fsuage: fix typo in previous change
20185         * lib/fsusage.c: Remove stray include of full-read.h.
20186         Problem reported by Sam Steingold for macOS (Bug#28669).
20188 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20190         fsusage: remove SVR2 support
20191         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20192         and its code was getting in the way of use of this module by
20193         Emacs, which has its own ‘read’ function anyway.
20194         * lib/fsusage.c: Do not include sys/filsys.h.
20195         (get_fs_usage): Remove SVR2-specific code.
20196         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20197         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20198         * modules/fsusage (Depends-on): Do not depend on full-read.
20200         Simplify autoupdate of licenses
20201         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20202         place.
20204 2017-10-01  Bruno Haible  <bruno@clisp.org>
20206         vma-iter: Add support for GNU/Hurd.
20207         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20208         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20210 2017-09-30  Bruno Haible  <bruno@clisp.org>
20212         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
20213         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
20214         fail when module 'largefile' is in use.
20215         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
20216         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
20217         Don't test HAVE_SYS_PROCFS_H.
20219 2017-09-30  Bruno Haible  <bruno@clisp.org>
20221         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
20222         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
20223         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
20224         * modules/havelib (Depends-on): Add host-cpu-c-abi.
20226 2017-09-30  Bruno Haible  <bruno@clisp.org>
20228         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
20229         * lib/uniname/uniname.c (unicode_name_character): Add braces around
20230         scope of local variables.
20232 2017-09-28  Bruno Haible  <bruno@clisp.org>
20234         string: code style
20235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
20236         substitutable variables.
20237         * modules/string (Makefile.am): Likewise.
20239 2017-09-26  Bruno Haible  <bruno@clisp.org>
20241         uniname/uniname-tests: Tighten code.
20242         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
20243         local variables into one.
20245 2017-09-26  Bruno Haible  <bruno@clisp.org>
20247         vma-iter: Improvements for Linux and BSD platforms.
20248         - Add support for DragonFly BSD.
20249         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20250         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20251         Read the entire file into memory in a single system call.
20252         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20253         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20255 2017-09-26  Bruno Haible  <bruno@clisp.org>
20257         vma-iter: Provide the protection flags on FreeBSD.
20258         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20259         skip three fields between the addresses and the protection flags.
20261 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20263         glob: remove bogus extern decl
20264         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20265         extern declaration.  Problem reported by Adhemerval Zanella in:
20266         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20268 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20270         uniname/uniname-tests: integer overflow fix
20271         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20272         Check for integer overflow.
20274         duplocale-tests: fix unlikely crash
20275         * tests/test-duplocale.c (get_locale_dependent_values):
20276         Don’t crash with absurdly long month names.
20278         maint: fix overflow checking in nap.h
20279         * modules/chown-tests:
20280         * modules/fchownat-tests, modules/fdutimensat-tests:
20281         * modules/futimens-tests, modules/lchown-tests:
20282         * modules/stat-time-tests, modules/utime-tests:
20283         * modules/utimens-tests, modules/utimensat-tests:
20284         Depend on intprops.
20285         * tests/nap.h: Include intprops.h.
20286         (diff_timespec): Handle overflow properly.
20288         sys_types: update URL
20289         * m4/sys_types_h.m4: Use https: URL.
20291         parse-datetime: fix dependency
20292         * modules/parse-datetime (Depends-on): Depend
20293         on nstrftime, not strftime.
20295         parse-datetime, posixtm: avoid uninit access
20296         * lib/parse-datetime.y (parse_datetime2):
20297         * lib/posixtm.c (posixtime):
20298         Do not access uninitialized storage, even though the resulting
20299         value is never used.
20301 2017-09-25  Bruno Haible  <bruno@clisp.org>
20303         vma-iter: Improvements for BSD platforms.
20304         - Add support for GNU/kFreeBSD.
20305         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20306         - Speed up on OpenBSD.
20307         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20308         (vma_iterate_bsd): New function.
20309         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20310         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20311         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20312         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20314 2017-09-23  Bruno Haible  <bruno@clisp.org>
20316         strfmon_l: New module.
20317         * modules/strfmon_l: New file.
20318         * lib/strfmon_l.c: New file.
20319         * m4/strfmon_l.m4: New file.
20320         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20321         * modules/strfmon_l-tests: New file.
20322         * tests/test-strfmon_l.c: New file.
20324         monetary: New module.
20325         * modules/monetary: New file.
20326         * lib/monetary.in.h: New file.
20327         * m4/monetary_h.m4: New file.
20328         * doc/posix-headers/monetary.texi: Mention the new module.
20329         * modules/monetary-tests: New file.
20330         * tests/test-monetary.c: New file.
20331         * modules/monetary-c++-tests: New file.
20332         * tests/test-monetary-c++.cc: New file.
20333         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20335 2017-09-23  Bruno Haible  <bruno@clisp.org>
20337         duplocale tests: Fix test crash on Linux/x86.
20338         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20339         locale from the current thread before freeing it.
20341 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20343         mktime: port to OpenVMS
20344         Problem reported by John E. Malmberg in:
20345         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20346         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20348 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20350         manywarnings: port to GCC on 64-bit MS-Windows
20351         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20352         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20353         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20355 2017-09-13  Bruno Haible  <bruno@clisp.org>
20357         all: Replace many more http URLs by https URLs. Update stale URLs.
20358         * users.txt: Remove mention of 'newts'.
20359         * lib/localename.c: Update comment about LANG_SOTHO.
20361 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20363         all: Replace many http URLs by https URLs.
20365 2017-09-12  Bruno Haible  <bruno@clisp.org>
20367         doc: Prefer https URLs where possible.
20368         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20369         * doc/ld-output-def.texi: Remove unavailable URL.
20371 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20373         maintainer-makefile: FTP -> HTTPS
20374         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20375         of FTP, which is planned to be decommissioned on 2017-11-01.
20377 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20379         libc-config: Fix __GNUC_PREREQ macro.
20380         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
20381         __GNUC_MINOR.
20383 2017-09-09  Bruno Haible  <bruno@clisp.org>
20385         gnulib-tool: Simplify commit from 2015-08-20.
20386         * gnulib-tool (func_add_or_update): Remove local variable
20387         is_binary_file.
20389 2017-09-08  Bruno Haible  <bruno@clisp.org>
20391         stddef: Avoid conflict with system-defined max_align_t.
20392         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
20393         Reported by Werner Lemberg <wl@gnu.org> in
20394         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
20395         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
20396         (max_align_t): Define as a macro.
20397         (GNULIB_defined_max_align_t): New macro. Guards against multiple
20398         definitions of rpl_max_align_t in different copies of gnulib-generated
20399         <stddef.h>.
20401 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20403         libc-config: port to MSVC
20404         Problems reported by Gisle Vanem in:
20405         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
20406         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
20407         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20408         * m4/__inline.m4: New file.
20409         * modules/libc-config (Files): Add it.
20410         (Depends-on): Use it.
20412         glob: Use enum for __glob_pattern_type result
20413         From a patch proposed by Adhemerval Zanella in:
20414         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
20415         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
20416         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
20417         * lib/glob_internal.h (__glob_pattern_type):
20418         * lib/glob.c (glob):
20419         * lib/glob_pattern_p.c (__glob_pattern_p):
20420         Use them.
20422         glob: fix for use in glibc
20423         Problem reported by Adhemerval Zanella in:
20424         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
20425         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
20426         Do not redefine if _LIBC.
20428 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20430         glob: fix bugs with long login names
20431         Problem reported by Adhemerval Zanella in:
20432         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
20433         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
20434         (glob): Use the same scratch buffer for both getlogin_r and
20435         getpwnam_r.  Don’t require preallocation of the login name.  This
20436         simplifies storage allocation, and corrects the handling of
20437         long login names.
20439 2017-09-02  Bruno Haible  <bruno@clisp.org>
20441         dirent: Update doc.
20442         * doc/posix-headers/dirent.texi: More concrete list of platforms.
20444 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20446         glob: fix getpwnam_r errno typo
20447         * lib/glob.c (glob): Fix longstanding misuse of errno after
20448         getpwnam_r, which returns an error number rather than setting
20449         errno.
20451         glob: fix typo in recent change
20452         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
20453         Fix recently-introduced typo.
20455 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20457         glob: don't save and restore errno unnecessarily
20458         * lib/glob.c (glob): Don't save and restore errno
20459         merely because we have getpwnam_r.
20461         glob: don't assume getpwnam_r
20462         * lib/glob.c (glob): Port recent patches to platforms
20463         lacking getpwnam_r.
20465         scratch_buffer: don’t use private glibc API
20466         Suggested by Florian Weimer in:
20467         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
20468         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
20469         * lib/scratch_buffer_grow.c: Rename to
20470         lib/malloc/scratch_buffer_grow.c.
20471         * lib/scratch_buffer_grow_preserve.c: Rename to
20472         lib/malloc/scratch_buffer_grow_preserve.c.
20473         * lib/scratch_buffer_set_array_size.c: Rename to
20474         lib/malloc/scratch_buffer_set_array_size.c.
20475         * lib/scratch_buffer.h: New file.
20476         * modules/scratch_buffer (Files, Makefile.am):
20477         Adjust to source-file renaming.
20479 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20481         glob: use scratch_buffer instead of extend_alloca
20482         Much of the lib/glob.c part of this patch comes from a glibc patch
20483         proposed by Adhemerval Zanella in:
20484         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
20485         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
20486         included via glob.h, does this for us now.
20487         (__set_errno): Remove, as libc-config does this for us now.
20488         Include <scratch_buffer.h>.
20489         (GETPW_R_SIZE_MAX): Remove.
20490         (glob): Use struct scratch_buffer instead of extend_alloca.
20491         * lib/glob.in.h: Include libc-config.h rather than
20492         including <sys/cdefs.h> conditionally.
20493         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
20494         (__glibc_unlikely, __restrict, weak_alias):
20495         Remove, as libc-config does this for us now.
20496         * m4/glob.m4 (gl_PREREQ_GLOB):
20497         Remove sys/cdefs.h tests; no longer needed.
20498         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
20499         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
20501         scratch_buffer: new module
20502         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
20503         * lib/scratch_buffer_grow_preserve.c:
20504         * lib/scratch_buffer_set_array_size.c:
20505         New files, copied from glibc with very minor changes that can be
20506         copied back.
20507         * modules/scratch_buffer: New file.
20509         libc-config: new module
20510         * MODULES.html.sh: Add libc-config.
20511         * lib/cdefs.h: New file, copied from the GNU C Library with very
20512         minor changes that can be copied back.
20513         * lib/libc-config.h, modules/libc-config: New files.
20515 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20517         glob: match dangling symlinks
20518         This fixes a bug I inadvertently introduced to Gnulib when I
20519         merged glibc glob back into gnulib on 2007-10-16.  This fix is
20520         inspired by a patch proposed for glibc by Adhemerval Zanella in:
20521         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
20522         * doc/posix-functions/glob.texi: Update list of affected platforms.
20523         * lib/glob.c (__lstat64): New macro.
20524         (is_dir): New function.
20525         (glob, glob_in_dir): Match symlinks even if they are dangling.
20526         (link_stat, link_exists_p): Remove.  All uses removed.
20527         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
20528         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
20529         * modules/glob-tests (Depends-on): Add symlink.
20530         * tests/test-glob.c: Include errno.h, unistd.h.
20531         (BASE): New macro.
20532         (main): Test dangling symlinks, if symlinks are supported.
20534         glob, backupfile: inode 0 is a valid inode number
20535         * doc/posix-functions/readdir.texi (readdir):
20536         * doc/posix-headers/dirent.texi (dirent.h):
20537         Document more readdir portability issues.
20538         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
20539         (numbered_backup): Don’t treat inode 0 any differently from
20540         other inode values.
20541         * lib/glob.c (struct readdir_result): Remove skip_entry member.
20542         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
20543         All uses removed.
20544         * modules/glob (Depends-on): Remove d-ino.
20546         glob: simplify symlink detection
20547         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
20548         uint8_t, as C99 does not require uint8_t.
20549         (struct readdir_result): Use it.  Do not define skip_entry unless
20550         it is needed; this saves a byte on platforms lacking d_ino.
20551         (readdir_result_type, readdir_result_skip_entry):
20552         New functions, replacing ...
20553         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
20554         ... these functions, which were removed.  This makes the callers
20555         easier to read.  All callers changed.
20556         (D_INO_TO_RESULT): Now empty if there is no d_ino.
20558 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20560         fts-tests: tag as a longrunning-test so not included by default
20561         * modules/fts-tests: This test takes about 20s on current systems,
20562         and uses about 285M of space on ext4.
20564 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20566         renameat2: fix compilation on alpine linux
20567         * m4/renameat.m4: Check for <linux/fs.h> presence.
20568         * lib/renameat2.h: Only include <linux/fs.h> if present.
20569         Reported by Assaf Gordon on Alpine Linux.
20571 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20573         glob: try to port recent changes to MS-Windows
20574         Problem reported by Bruno Haible in:
20575         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
20576         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
20577         * lib/glob.in.h (__glob_pattern_p): ... to here.
20579 2017-08-24  Eric Blake  <eblake@redhat.com>
20581         warnings: fix compilation with old autoconf
20582         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
20583         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
20584         AC_DEFUN.
20585         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
20586         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
20588 2017-08-24  Bruno Haible  <bruno@clisp.org>
20590         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
20591         * modules/glob (Depends-on): Add c99.
20593 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20595         glob: fix typo that broke platforms lacking d_ino
20596         This typo also hurt performance on GNU/Linux and similar hosts.
20597         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
20598         in previous change.
20600 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20602         glob: merge from glibc with Zanella glob changes
20603         Merge glob from glibc, with changes for glob proposed
20604         by Adhemerval Zanella in the thread starting here:
20605         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
20606         plus some fixes for this merge.
20607         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
20608         New files, ported from glibc.
20609         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
20610         with __restrict.
20611         (__size_t): Remove.  All uses replaced by size_t.
20612         (size_t): Define by defining __need_size_t and including <stddef.h>.
20613         This should work even in non-glibc platforms, where any name
20614         pollution is OK.
20615         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
20616         (struct stat64): Don’t worry about __GLOB_GNULIB.
20617         (glob, globfree, glob_pattern_p): Remove macros for
20618         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
20619         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
20620         but set errno.
20621         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
20622         removed since the glibc behavior works on null pointers.
20623         Do not include stdio.h; old SunOS is irrelevant now.
20624         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
20625         Include glob_internal.h.
20626         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
20627         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
20628         worked only coincidentally.
20629         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
20630         Remove macros; now done in glob.in.h.
20631         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
20632         (glob): Properly initialize glob structure with
20633         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
20634         Remove old code using SHELL since Bash no longer
20635         uses this.
20636         (glob, prefix_array): Separate MS code better.
20637         (glob, glob_in_dir): Use C99 decls before statements when glibc
20638         does.
20639         (glob_in_dir): Remove old Amiga and VMS code.
20640         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
20641         separate files.
20642         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
20643         (__glibc_unlikely):
20644         Move here from glob.c.
20645         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
20646         (weak_alias): New macro.
20647         (__size_t): Remove.  All uses replaced by size_t.
20648         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
20649         * modules/glob (Files): Add +lib/glob_internal.h,
20650         lib/glob_pattern_p.c, lib/globfree.c.
20651         (Depends-on): Remove snippet/arg-nonnull.
20653 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20655         glob: port to clang's Undefined Sanitizer
20656         Problem reported by Tim Rühsen in:
20657         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
20658         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
20659         (glob_in_dir): Do not rely on undefined behavior in accessing
20660         struct members beyond their bounds.  Use a flexible array member
20661         instead.
20663 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20665         vc-list-files: port to Solaris 10
20666         * build-aux/vc-list-files: Don't assume test -e works.
20668 2017-08-21  Karl Berry  <karl@freefriends.org>
20670         * doc/posix-functions/srandom.texi (srandom): typo }.
20672 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20674         git-version-gen: port to Solaris 10
20675         Problem reported by Dagobert Michelsen in:
20676         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
20677         * build-aux/git-version-gen (v_from_git):
20678         Use expr instead of shell substitution.
20680 2017-08-19  Bruno Haible  <bruno@clisp.org>
20682         host-cpu-c-abi: Improve detection of MIPS ABI.
20683         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
20684         _MIPS_SIM.
20686 2017-08-17  Bruno Haible  <bruno@clisp.org>
20688         hypot tests: Fix test failure on FreeBSD 11.0/x86.
20689         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
20691 2017-08-17  Bruno Haible  <bruno@clisp.org>
20693         float: Fix LDBL_MIN value on FreeBSD/x86.
20694         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
20696 2017-08-17  Bruno Haible  <bruno@clisp.org>
20698         random: Fix test compilation failure on Cygwin 1.5.25.
20699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
20700         HAVE_DECL_SETSTATE.
20701         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
20702         declared.
20703         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
20704         HAVE_DECL_SETSTATE.
20705         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
20706         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
20707         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
20708         * doc/posix-functions/random.texi: Likewise.
20709         * doc/posix-functions/setstate.texi: Likewise.
20710         * doc/posix-functions/srandom.texi: Likewise.
20712 2017-08-16  Bruno Haible  <bruno@clisp.org>
20714         stdnoreturn: Fix test compilation failure on Cygwin.
20715         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
20716         <stdnoreturn.h> replacement.
20717         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
20718         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
20720 2017-08-16  Bruno Haible  <bruno@clisp.org>
20722         thread: Fix conflict with pthread_sigmask module.
20723         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
20724         it's defined as a macro.
20725         * modules/thread (Depends-on): Add pthread_sigmask.
20727 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20729         rename: port better to NetBSD
20730         * doc/posix-functions/rename.texi (rename): NetBSD 7
20731         does not have the link-count bug.
20732         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
20733         broken merely because rename ("a", "b") removes "a" when the two
20734         names are hard links to the same file.
20736 2017-08-16  Bruno Haible  <bruno@clisp.org>
20738         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
20739         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
20740         the target file names with '$(srcdir)/'.
20741         * modules/unicase/locale-language (Makefile.am): Likewise.
20742         * modules/unicase/special-casing (Makefile.am): Likewise.
20743         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
20744         * modules/unictype/category-byname (Makefile.am): Likewise.
20745         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
20746         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
20747         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
20748         * modules/unictype/property-byname (Makefile.am): Likewise.
20749         * modules/unictype/scripts (Makefile.am): Likewise.
20750         * modules/uninorm/composition (Makefile.am): Likewise.
20752 2017-08-16  Bruno Haible  <bruno@clisp.org>
20754         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
20755         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
20756         value for OpenBSD.
20758 2017-08-16  Bruno Haible  <bruno@clisp.org>
20760         rename, renameat: Update doc regarding NetBSD.
20761         * doc/posix-functions/rename.texi: Clarify that when using
20762         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
20763         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
20764         version.
20766 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20768         renameat2: port better to macOS
20769         * lib/renameat2.c (renameat2): Use renameatx_np if available.
20771         futimens: don’t assume struct timespec layout
20772         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
20773         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
20774         * tests/test-fdutimensat.c (main):
20775         * tests/test-futimens.h (test_futimens):
20776         * tests/test-lutimens.h (test_lutimens):
20777         * tests/test-utimens.h (test_utimens):
20778         * tests/test-utimensat.c (main):
20779         Don’t assume that struct timespec is a two-member structure in
20780         tv_sec, tv_nsec order.  Although this is true on all platforms we
20781         know about, POSIX does not guarantee it.
20783         rename: document+test NetBSD rename
20784         Test failure reported by Bruno Haible in:
20785         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
20786         This is an area where NetBSD is better-behaved than POSIX,
20787         so allow the NetBSD behavior in tests.
20788         * doc/posix-functions/rename.texi:
20789         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
20790         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
20792 2017-08-15  Bruno Haible  <bruno@clisp.org>
20794         renameat: Ensure declaration in <stdio.h> on NetBSD.
20795         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
20796         * doc/posix-functions/renameat.texi: Mention this problem.
20798 2017-08-15  Bruno Haible  <bruno@clisp.org>
20800         duplocale: Work around NetBSD 7.0 bug.
20801         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
20802         * lib/duplocale.c: Add comment about NetBSD problem.
20803         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
20805 2017-08-15  Bruno Haible  <bruno@clisp.org>
20807         duplocale tests: Verify use with *_l functions.
20808         * modules/duplocale-tests (configure.ac): Test for uselocale and
20809         some *_l functions.
20810         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
20811         from main.
20812         (get_locale_dependent_values_from, test_with_locale_parameter): New
20813         functions.
20814         (main): Test both test_with_uselocale and test_with_locale_parameter.
20816 2017-08-15  Bruno Haible  <bruno@clisp.org>
20818         extensions: Enable NetBSD specific extensions.
20819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
20821 2017-08-14  Bruno Haible  <bruno@clisp.org>
20823         open, openat: Update doc about O_CLOEXEC.
20824         * doc/posix-functions/open.texi: More concrete list of platforms.
20825         * doc/posix-functions/openat.texi: Likewise.
20827 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20829         open: support O_CLOEXEC
20830         * NEWS, doc/posix-functions/open.texi:
20831         * doc/posix-functions/openat.texi: Document this.
20832         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
20833         (GNULIB_defined_O_CLOEXEC): New symbol.
20834         * lib/open.c: Include cloexec.h.
20835         (open): Support O_CLOEXEC.
20836         * lib/openat.c: Include cloexec.h.
20837         (rpl_openat): Support O_CLOEXEC.
20838         * lib/popen-safer.c: Do not include cloexec.h.
20839         (open_noinherit): Remove.
20840         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
20841         * lib/save-cwd.c: Do not include cloexec.h.
20842         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
20843         * m4/open-cloexec.m4: New file.
20844         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
20845         Replace 'open' if O_CLOEXEC is not present.
20846         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
20847         Replace 'openat' if O_CLOEXEC is not present.
20848         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
20849         * modules/open (Files): Add m4/open-cloexec.m4.
20850         (Depends-on): Depend on cloexec if replacing 'open'.
20851         * modules/openat (Files): Add m4/open-cloexec.m4.
20852         (Depends-on): Depend on cloexec if replacing openat.
20853         * modules/popen-safer (Depends-on): Remove cloexec.
20854         * modules/save-cwd (Depends-on): Remove cloexec, and add
20855         fd-safer-flag and 'open'.
20857 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
20859         reallocarray: minor fixes
20860         * doc/glibc-functions/reallocarray.texi: Update version numbers.
20861         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
20862         * modules/reallocarray (License): Change from GPL to LGPL.
20863         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
20864         Indent properly and don't use tabs.
20866 2017-08-13  Darshit Shah  <darnir@gnu.org>
20868         reallocarray: New module
20869         reallocarray is a new function in glibc 2.26 to safely allocate an array
20870         of memory locations with integer overflow protection.
20871         * MODULES.html.sh: Add reallocarray.
20872         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
20873         * lib/reallocarray.c: New file to implement module reallocarray.
20874         * lib/stdlib.in.h: Add function declarations for reallocarray.
20875         * m4/reallocarray.m4: New file.
20876         * m4/stdlib_h.m4: Declare reallocarray.
20877         * modules/reallocarray: New file.
20878         * modules/reallocarray-test: New file.
20879         * modules/stdlib: Coerce stdlib.h to export reallocarray.
20880         * tests/test-reallocarray.c: New test.
20882 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
20884         dirent-safer: fix cloexec race
20885         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
20886         (opendir_safer): Use F_DUPFD_CLOEXEC.
20887         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
20888         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
20889         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
20890         instead of dup_safer.
20892         fts: fix cloexec races
20893         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
20894         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
20895         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
20896         (fd_ring_check): Set cloexec flag on new file descriptors.
20897         (fts_build, fd_ring_check): While we’re at it, make sure the
20898         resulting file descriptor is not 0, 1, or 2, since that is easy.
20900 2017-08-11  Bruno Haible  <bruno@clisp.org>
20902         fts tests: Fix link error.
20903         Reported by Tom G. Christensen in
20904         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
20905         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
20907 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20909         fts: port recent changes to CentOS 6
20910         Problem reported by Tom G. Christensen in:
20911         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
20912         * lib/fts.c (fsword): New type.
20913         (struct dev_type, filesystem_type): Use it.
20914         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
20915         Also, check for f_type only if fstatfs and sys/vfs.h work.
20917 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20919         tempname: do not depend on secure_getenv
20920         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
20921         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
20922         * modules/tempname (Depends-on): Remove secure_getenv.
20924 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
20926         extensions: add _OPENBSD_SOURCE
20927         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
20929 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
20930             Bruno Haible  <bruno@clisp.org>
20932         manywarnings: Add support for C++.
20933         * build-aux/g++-warning.spec: New file.
20934         * m4/manywarnings-c++.m4: New file.
20935         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
20936         redirects to manywarnings-c++.m4.
20937         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
20939 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20941         git-version-gen: another fix for tags with "-"
20942         * build-aux/git-version-gen: Improve fix for tags containing "-".
20943         Suggested by Markus Armbruster in:
20944         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
20946 2017-08-06  Bruno Haible  <bruno@clisp.org>
20948         warnings, manywarnings: Add support for multiple languages, not just C.
20949         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
20950         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
20951         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
20952         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
20953         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
20954         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
20955         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
20956         of the current language. If C++ is the current language, modify
20957         WARN_CXXFLAGS instead of WARN_CFLAGS.
20958         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
20959         gl_MANYWARN_ALL_GCC.
20960         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
20962 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
20964         git-version-gen: Fix for tags containing '-'
20966         Really old versions of git-describe (before v1.5.0, Feb 2007)
20967         don't have the number of commits in their long format output,
20968         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
20969         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
20970         recognizes both patterns, and normalizes the old format to the new one.
20972         Unfortunately, this normalization code gets confused when the tag
20973         contains '-'.  Reproducer:
20975             $ git-tag -m test v0.2-rc1
20976             $ build-aux/git-version-gen .tarball-version; echo
20977             build-aux/git-version-gen: WARNING: git rev-list failed
20978             UNKNOWN
20980         We take exact tag "v0.2-rc1" for the old format, extract the presumed
20981         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
20982         commits since tha tag.  Fails, because tag "v0.2" does not exist.
20984         * git-version-gen: We could perhaps drop support for versions from
20985         more than a decade ago.  But tightening the pattern match is easy
20986         enough, so do that.  Still breaks when you use version tags ending in
20987         something matching -g????, but you arguably get what you deserve then.
20989 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
20991         valgrind-tests: use ls, and cache
20992         * m4/valgrind-tests.m4: Test ls, not bash.
20993         Problem reported by Reuben Thomas.
20994         Also, cache the result so that it can be overridden.
20996 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
20998         manywarnings: port to 64-bit GCC builds of Emacs
20999         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21000         object size rather than hardwiring 2147483647.  This is needed to
21001         build GNU Emacs, which has one conditional (and used
21002         only-in-theory) call to malloc with a literal greater than
21003         2147483647.
21005 2017-08-04  Bruno Haible  <bruno@clisp.org>
21007         Relax the license of some modules with no runtime code.
21008         * modules/std-gnu11 (License): Set to 'unlimited'.
21009         * modules/c99 (License): Likewise.
21010         Reported by Reuben Thomas <rrt@sc3d.org>.
21011         * modules/d-ino (License): Set to 'LGPL'.
21012         * modules/host-os (License): Likewise.
21013         * modules/longlong (License): Likewise.
21015 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21017         renameat2: port to RHEL 7 + NFS
21018         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21019         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21020         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21022 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21024         renameat2: port to non-renameat platforms
21025         Problem reported for MSVC-2015 by Gisle Vanem in:
21026         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21027         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21028         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21030 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21032         manywarnings: port to 32-bit GCC bug
21033         Problem reported by Pino Toscano in:
21034         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21035         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21036         not 2**63 - 1, to work around the following GCC bug:
21037         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21039 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21041         backupfile: new function to validate backup suffix
21042         * lib/backupfile.c (set_simple_backup_suffix): New function.
21043         (backupfile_internal): Use it.
21045         canonicalize: fix EOVERFLOW commentary
21046         Problem reported by Bruno Haible in:
21047         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21048         * lib/canonicalize.c (canonicalize_filename_mode):
21049         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21051         Don't interpret EOVERFLOW to mean nonexistence
21052         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21053         may be EOVERFLOW; this is likely more useful than reporting the
21054         stat errno.
21055         * lib/glob.c (link_stat): Rename from link_exists2_p and
21056         return -1/0 instead of 0/1.  Caller changed.
21057         * lib/glob.c (link_exists_p):
21058         * lib/renameat2.c (rename_noreplace, renameat2):
21059         * lib/tempname.c (try_nocreate):
21060         If errno == EOVERFLOW then the directory entry exists, so do not
21061         act as if it does not exist.
21063         backup-rename: new module
21064         It is like backupfile, except it avoids some race conditions,
21065         and it does not output to stderr or exit.
21066         * MODULES.html.sh: Add backup-rename.
21067         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21068         * modules/backup-rename: New files.
21069         * lib/backupfile.c: Turn this into an internals file, which
21070         contains code common to backupfile and backup_rename.  Include
21071         backupfile-internal.h instead of backupfile.h.  Do not include
21072         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21073         renameat2.h and fcntl.h.
21074         (BACKUP_NOMEM): New constant.
21075         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21076         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21077         (backupfile_internal): Rename from find_backup_file_name.
21078         Support new arg RENAME.
21079         (backup_args, backup_types, get_version, xget_version):
21080         Move to lib/backup-find.c.
21081         * lib/backupfile.h (backup_file_rename): New decl.
21082         * modules/backupfile (Files): Add lib/backup-internal.h,
21083         lib/backup-find.c.
21084         (Depends-on): Add dirfd, fcntl, renameat2.
21085         (lib_SOURCES): Add backup-find.c.
21087         renameat2: port better to older Solaris
21088         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21089         Add goto to use a label, to silence picky compilers.
21091         fts-tests: port to gcc -Wwrite-strings
21092         * tests/test-fts.c (base, base_d): New static vars.
21093         (argv, remove_tree, main): Use them.
21095 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21097         relocatable-lib{,-lgpl}: improve documentation
21098         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21099         Various other updates.
21101 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21102             Bruno Haible  <bruno@clisp.org>
21104         relocatable-lib{,-lgpl}: add Valgrind suppressions
21105         * lib/relocatable.valgrind: New file.
21106         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21107         * modules/relocatable-lib-lgpl: Likewise.
21109 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21111         relocatable: Make the license on the sources the GPL.
21112         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21113         LGPL, which was a special case so that the relocatable source files
21114         could be used without gnulib-tool, to GPL. They can still be used under
21115         the LGPL, using the --lgpl option to gnulib-tool.
21117 2017-07-30  Bruno Haible  <bruno@clisp.org>
21119         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21120         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21121         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21122         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21123         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21125 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21127         faccessat: document AT_SYMLINK_NOFOLLOW issue
21128         * doc/posix-functions/faccessat.texi: Modernize platform list.
21129         Document AT_SYMLINK_NOFOLLOW limitation.
21131         renameat2: port to Solaris 10
21132         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21133         with AT_SYMLINK_NOFOLLOW (which is not portable).
21134         (renameat): Undef before using, to avoid endless recursion when
21135         the replacement renameat calls renameat2 which calls the
21136         replacement renameat.
21137         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21138         * modules/renameat2 (Depends-on): Remove faccessat.
21139         * modules/renameat-tests (test_renameat_LDADD):
21140         * modules/renameat2-tests (test_renameat2_LDADD):
21141         Remove $(LIB_EACCESS).
21143         renameat2: new module
21144         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21145         useful to have access to its RENAME_NOREPLACE flag.
21146         * MODULES.html.sh (func_all_modules): Add renameat2.
21147         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21148         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21149         * lib/renameat.c (renameat): Move most of the implementation
21150         to renameat2, and just call renameat2.
21151         * modules/renameat (Files): Remove lib/at-func2.c.
21152         (Depends-on): Depend only on renameat2.
21153         (Include): Remove <fcntl.h>.
21154         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21155         since renameat (via renameat2) might use faccessat.
21157 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21159         vc-list-files: Adjust the script to support git worktrees
21160         * build-aux/vc-list-files: Require existence, not directory.
21162 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21164         doc: bring MODULES.html.sh up to date
21165         Somehow a few months ago we stopped updating MODULES.html.sh.
21166         I don’t recall explicitly deciding this, so I updated it now.
21167         Alternatively I suppose we could remove it.
21168         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21169         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21170         truncate, utime, utime-h, windows-stat-inodes,
21171         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21173 2017-07-26  Jim Meyering  <meyering@fb.com>
21175         fprintftime: fix build-break caused by recent renaming
21176         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21177         "strftime.c".
21178         * modules/fprintftime: Depend directly on nstrftime.
21180 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21182         regex: work with GCC7's -Werror=implicit-fallthrough=
21183         * lib/regex_internal.h (FALLTHROUGH): New macro.
21184         * lib/regcomp.c (peek_token_bracket, parse_expression):
21185         * lib/regexec.c (check_node_accept): Use it.
21187 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21189         fts: simplify fts_build
21190         * lib/fts.c (fts_build): Simplify, and be lazier about
21191         calling leaf_optimization.
21193         fts: three levels of leaf optimization
21194         * lib/fts.c (enum leaf_optimization): New type with three values.
21195         (S_MAGIC_AFS): New macro.  Sort them.
21196         (leaf_optimization): Rename from leaf_optimization_applies, and
21197         return enum leaf_optimization instead of bool.  All uses changed.
21198         Add cases for unknown type and for AFS.
21199         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21201         fts: cache dirent_inode_sort_may_be_useful too
21202         * lib/fts.c (struct dev_type): New struct.
21203         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21204         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21205         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21206         Now takes FTSENT const *, not int.  All uses changed.  Use
21207         filesystem_type to cache.
21208         (link_count_optimize_ok): Remove.  Caller changed to use
21209         leaf_optimization_applies, which now uses shared cache.
21211         fts: introduce MIN_DIR_NLINK
21212         * lib/fts.c (MIN_DIR_NLINK): New constant.
21213         Use it instead of 2, whenever we are talking about link counts.
21215         fts: nlink_t signedness fixups
21216         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
21217         so that root need not be a special case later.
21218         (fts_read): Remove now-redundant test for fts_level.
21219         Do not assume that nlink_t is signed.
21220         (fts_build): Remove useless decrement of nlinks.
21221         (fts_stat): Avoid unlikely signed integer overflow later, if
21222         nlink_t is signed.
21224         fts-tests: new module
21225         * modules/fts-tests, tests/test-fts.c: New files.
21227 2017-07-23  Bruno Haible  <bruno@clisp.org>
21229         Rename module 'strftime' to 'nstrftime'.
21230         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
21231         * lib/nstrftime.c: Renamed from lib/strftime.c.
21232         * modules/nstrftime: Renamed from modules/strftime.
21233         (Files, Makefile.am): Update.
21234         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
21235         Fix comment.
21236         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
21237         (Files, Makefile.am): Update.
21238         * modules/strftime: New file, an obsolete indirection.
21239         * doc/posix-functions/strftime.texi: Update reference.
21240         * config/srclist.txt: Update info.
21241         * NEWS: Mention the change.
21243 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
21245         malloca: Silence a warning from clang's memory sanitizer.
21246         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
21247         (freea): Use it.
21249 2017-07-18  Bruno Haible  <bruno@clisp.org>
21251         host-cpu-c-abi: Fix detection of MIPS ABI.
21252         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21253         ABI, not the CPU instruction set.
21255 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21257         explicit_bzero: new module
21258         The explicit_bzero function has been added to glibc.
21259         This module is intended to supports its use in GNU programs.
21260         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21261         * m4/explicit_bzero.m4, modules/explicit_bzero:
21262         New files.
21263         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21264         * lib/string.in.h (explicit_bzero): Declare.
21265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21266         * modules/string (string.h): Substitute its vars.
21268 2017-07-16  Bruno Haible  <bruno@clisp.org>
21270         threadlib: Support static linking.
21271         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21272         set gl_cv_have_weak to 'no'.
21274 2017-07-16  Bruno Haible  <bruno@clisp.org>
21276         unicase/locale-language: Fix link dependencies.
21277         * modules/unicase/locale-language (Link): New section.
21278         * modules/unicase/locale-language-tests (Makefile.am): Link
21279         test-locale-language program with $(LIBTHREAD).
21281 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21283         sys_socket: Add support for OpenVMS.
21284         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21285         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21287 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21289         sys_resource: Add support for OpenVMS.
21290         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21291         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21293 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21294             Bruno Haible  <bruno@clisp.org>
21296         math: Add support for OpenVMS.
21297         * lib/math.in.h [__VMS]: Include <fp.h>.
21298         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21300 2017-07-15  Bruno Haible  <bruno@clisp.org>
21302         getdtablesize: Add minimal support for OpenVMS.
21303         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21304         * modules/getdtablesize (Description): Fix.
21305         * lib/getdtablesize.c: Fix comment.
21306         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21307         getdtablesize() function, even though the test fails.
21308         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21309         limitation on OpenVMS.
21311 2017-07-13  Bruno Haible  <bruno@clisp.org>
21313         Revisit cross-compilation guesses.
21314         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21316 2017-07-13  Bruno Haible  <bruno@clisp.org>
21318         Improve cross-compilation guesses for native Windows.
21319         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21320         Windows.
21321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21322         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21323         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21324         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21325         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21326         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21327         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21328         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21329         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21330         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21331         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21332         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21333         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21334         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21335         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21336         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21337         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21339         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21340         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21341         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21342         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21343         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21344         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21345         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21346         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21347         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21348         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21349         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21350         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21351         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21352         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21353         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21354         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21355         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21356         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21357         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21358         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21359         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21360         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21361         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21363         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21364         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21365         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21366         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21367         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21368         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21369         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21370         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21371         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21372         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21373         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21374         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21375         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21376         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21377         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21378         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21379         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21380         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
21381         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21382         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
21383         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
21384         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21385         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21387         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
21388         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21389         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
21390         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
21391         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
21392         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
21393         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21394         * m4/regex.m4 (gl_REGEX): Likewise.
21395         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21396         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
21397         gl_FUNC_REMAINDERF_WORKS): Likewise.
21398         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
21399         gl_FUNC_REMAINDERL_WORKS): Likewise.
21400         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21401         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21403         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21404         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21405         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
21406         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21407         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21408         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
21409         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21410         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
21411         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
21412         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21413         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21414         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21415         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21416         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21417         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21418         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21419         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21420         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21421         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21422         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21423         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21424         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21425         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21426         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21427         Likewise.
21428         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21429         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
21430         Windows. Enable also on Autoconf 2.70.
21431         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21432         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21433         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21434         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
21435         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21436         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
21437         for native Windows.
21438         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21439         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
21441 2017-07-13  Bruno Haible  <bruno@clisp.org>
21443         Improve cross-compilation guesses for native Windows.
21444         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
21445         Windows.
21446         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
21447         memchr.m4.
21448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21450 2017-07-13  Bruno Haible  <bruno@clisp.org>
21452         Improve cross-compilation guesses for native Windows.
21453         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
21454         native Windows.
21455         (gl_FUNC_FFLUSH): Update accordingly.
21456         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
21457         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21459 2017-07-11  Bruno Haible  <bruno@clisp.org>
21461         More systematic m4 quoting and indentation.
21462         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
21463         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21464         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21465         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21466         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21467         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
21468         gl_WINSIZE_IN_PTEM): Likewise.
21469         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
21470         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21471         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21472         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
21473         Correct indentation.
21474         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21475         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21476         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
21477         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21478         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21479         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21481 2017-07-10  Bruno Haible  <bruno@clisp.org>
21483         round, roundf: Avoid compiler warning in configure test.
21484         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
21485         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21487 2017-07-10  Bruno Haible  <bruno@clisp.org>
21489         getlogin tests: Avoid #ifdefs when sharing code between modules.
21490         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
21491         * modules/getlogin-tests (Files): Likewise. Remove
21492         tests/test-getlogin_r.c.
21493         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
21494         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
21495         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
21496         getlogin().
21498 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21500         getlogin: don’t assume one name per uid
21501         Problem reported by Wolfgang F. Muthmann (Bug#27640).
21502         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
21503         (ttyname): Remove test.
21504         * modules/getlogin_r-tests (ttyname): Remove test.
21505         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
21506         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
21507         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
21508         getlogin rather than getlogin_r.  This avoids code duplication.
21509         (main): Use isatty and fstat rather than ttyname and stat.
21510         Use getpwnam instead of getpwuid, to be portable to test platforms
21511         that have multiple login names for the same uid.
21513 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
21514             Bruno Haible  <bruno@clisp.org>
21516         glob: Fix more memory leaks.
21517         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
21518         returning.
21519         Reported by Tim Rühsen.
21521 2017-07-10  Bruno Haible  <bruno@clisp.org>
21523         Make sure $host and $host_os are defined when used.
21524         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
21525         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
21526         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
21527         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21528         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21529         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21530         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21531         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
21532         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21533         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21534         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
21535         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
21536         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21537         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
21538         m4_ifdef block.
21540 2017-07-09  Bruno Haible  <bruno@clisp.org>
21542         *printf: Fix cross-compilation guess for Solaris.
21543         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
21544         2010-12-21.
21546 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21547             Bruno Haible  <bruno@clisp.org>
21549         vasnprintf: port to macOS 10.13
21550         Problem reported by comex in:
21551         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
21552         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
21554 2017-07-06  Bruno Haible  <bruno@clisp.org>
21556         imaxdiv tests: Fix logic.
21557         * tests/test-imaxdiv.c (main): Use == instead of =.
21558         Reported by Coverity.
21560 2017-07-06  Bruno Haible  <bruno@clisp.org>
21562         uninorm/filter: Fix use-after-free bug.
21563         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
21564         sortbuf == filter->sortbuf invariant.
21565         Reported by Coverity.
21567 2017-07-06  Bruno Haible  <bruno@clisp.org>
21569         glob: Fix more memory leaks.
21570         * lib/glob.c (glob): Free dirname before returning.
21571         Reported by Coverity and Tim Rühsen.
21573 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21575         parse-datetime: fix uninit var bug
21576         Reported by Bruno Haible in:
21577         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
21578         * lib/parse-datetime.y (parse_datetime2): Do not use
21579         uninitialized.
21581 2017-07-05  Bruno Haible  <bruno@clisp.org>
21583         doc: Update for MSVC 14.
21584         * doc/posix-headers/*.texi: Add info about MSVC 14.
21585         * doc/posix-functions/*.texi: Likewise.
21586         * doc/pastposix-functions/*.texi: Likewise.
21587         * doc/glibc-headers/*.texi: Likewise.
21588         * doc/glibc-functions/*.texi: Likewise.
21590 2017-07-05  Bruno Haible  <bruno@clisp.org>
21592         sched: Fix build failure on native Windows (regression from 2017-06-19).
21593         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
21595 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
21597         stdioext: Port to OpenVMS.
21598         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
21599         * lib/fpending.c (fpending): Remove non-working VMS specific code.
21600         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
21601         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
21602         * lib/fpurge.c (fpurge): Likewise.
21603         * lib/freadable.c (freadable): Likewise.
21604         * lib/freadahead.c (freadahead): Likewise.
21605         * lib/freading.c (freading): Likewise.
21606         * lib/freadptr.c (freadptr): Likewise.
21607         * lib/freadseek.c (freadseek): Likewise.
21608         * lib/fseeko.c (fseeko): Likewise.
21609         * lib/fseterr.c (fseterr): Likewise.
21610         * lib/fwritable.c (fwriteable): Likewise.
21611         * lib/fwriting.c (fwriting): Likewise.
21613 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
21615         glob: Declare variables at the very start of their scope.
21616         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
21617         its separate scope, so the functions will compile on Haiku.
21619 2017-07-01  Bruno Haible  <bruno@clisp.org>
21621         logbl: Work around a glibc bug on PowerPC64LE.
21622         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
21623         numbers.
21624         * doc/posix-functions/logbl.texi: Update.
21626 2017-06-29  Bruno Haible  <bruno@clisp.org>
21628         stat, fstat: Compile stat-w32.c only on platforms that need it.
21629         Suggested by Paul Eggert.
21630         * modules/stat (configure.ac): Request stat-w32.o only on native
21631         Windows.
21632         * modules/fstat (configure.ac): Likewise.
21634 2017-06-25  Bruno Haible  <bruno@clisp.org>
21636         stat: Improve last change.
21637         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
21639 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
21641         stat: port to xlc 12.01
21642         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
21643         12.01 complains "Compilation unit is empty."
21645 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
21647         xalloc-oversized: port to icc
21648         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
21649         __builtin_mul_overflow if ICC is defined, as this results in
21650         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
21651         20170213.
21653 2017-06-19  Bruno Haible  <bruno@clisp.org>
21655         classpath: Avoid including config.h twice, as it produces warnings.
21656         Reported by John E. Malmberg <wb8tyw@gmail.com>.
21657         * lib/classpath.h: Conditionalize the include of config.h.
21659 2017-06-19  Bruno Haible  <bruno@clisp.org>
21660             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
21662         sched: Fix compilation failure on OpenVMS.
21663         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
21664         test whether <pthread.h> exists and defines struct sched_param.
21665         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
21667 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
21669         diffseq: port to GCC 7 with --enable-gcc-warnings
21670         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
21671         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
21672         not complain about big_snake being defined but not used.
21674 2017-06-15  Bruno Haible  <bruno@clisp.org>
21676         gettext-h: Update theoretical condition for use of variable size arrays.
21677         Reported by Paul Eggert.
21678         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
21679         to include the theoretical condition for availability of variable size
21680         arrays, if we could trust the value of __STDC_VERSION__.
21682 2017-06-12  Bruno Haible  <bruno@clisp.org>
21684         Relicense some modules under LGPLv2+.
21685         Daiki Ueno's approval is in
21686         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
21687         * modules/uniwidth/base (License): Change to LGPLv2+.
21688         * modules/uniwidth/width (License): Likewise.
21690 2017-06-11  Bruno Haible  <bruno@clisp.org>
21692         localename: Fix test failure on DragonFly BSD.
21693         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
21694         like FreeBSD.
21696 2017-06-11  Bruno Haible  <bruno@clisp.org>
21698         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
21699         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
21700         * lib/float.in.h: Likewise.
21701         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
21703 2017-06-11  Bruno Haible  <bruno@clisp.org>
21705         gnulib-tool: Clean up after autotools.
21706         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
21707         useless directory left over by the Autotools.
21709 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21711         getopt-posix: port to glibc 2.25.90
21712         Problem reported by Daniel P. Berrange in:
21713         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
21714         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
21715         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
21716         #undef if __GETOPT_PREFIX is defined.
21718 2017-06-11  Bruno Haible  <bruno@clisp.org>
21720         strtod-obsolete: Fix license.
21721         * modules/strtod-obsolete (License): Change to LGPL.
21723 2017-06-10  Jim Meyering  <meyering@fb.com>
21725         maint: update to work with GCC7's -Werror=implicit-fallthrough=
21726         * lib/savewd.c (FALLTHROUGH): Define.
21727         (savewd_save, savewd_restore): Use this, rather than a comment,
21728         whenever one switch case falls through into the next.
21730 2017-06-08  Bruno Haible  <bruno@clisp.org>
21732         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
21733         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
21734         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
21735         case.
21737 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
21739         doc: remove robots, add prereqs
21740         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
21741         builds.  Simon's robot site does not seem to be up, so remove
21742         mentions of it for now.
21744 2017-06-08  Bruno Haible  <bruno@clisp.org>
21746         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
21747         * gnulib-tool (func_symlink_target): New function, extracted from
21748         func_symlink.
21749         (func_symlink, func_symlink_if_changed): Use it.
21751 2017-06-08  Bruno Haible  <bruno@clisp.org>
21753         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
21754         * gnulib-tool (func_ln_s): Determine cp_src correctly.
21756 2017-06-07  Bruno Haible  <bruno@clisp.org>
21758         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
21759         Reported by John E. Malmberg <wb8tyw@gmail.com> in
21760         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
21761         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
21762         override, pass 2 arguments to getcwd, not 3.
21764 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21766         same-inode: port better to VMS 8.2 and later
21767         Problem reported by John E. Malmberg in:
21768         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
21769         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
21770         Use the usual POSIX definition.
21771         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
21773 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21775         error: fix POSIX violation for va_end
21776         Problem reported by Bruno Haible in:
21777         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
21778         * lib/error.c (error_tail): Do not call va_end here.
21779         (error, error_at_line): Call it here instead.
21781 2017-05-28  Bruno Haible  <bruno@clisp.org>
21783         c-strtod: Make it usable in C++ mode.
21784         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
21786 2017-05-25  Jim Meyering  <meyering@fb.com>
21788         quotearg: fix compilation failure due to FALLTHROUGH misuse
21789         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
21790         macro back to /* fall through */ comment.  The macro can apply only
21791         to a following case statement.  Reported by Assaf Gordon.
21793 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21795         intprops: port to recent icc
21796         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
21797         but does not support __builtin_add_overflow etc.
21798         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
21799         Define to 0.
21801 2017-05-23  Karl Berry  <karl@freefriends.org>
21803         * config/srclist.txt (iconv.m4): sync broken, comment out
21804         until (hopefully) the next gettext release.
21806 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
21808         Remove repeated words in comments.
21810 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
21812         fallthrough: reinstate a FALLTHROUGH instance in quotearg
21813         quotearg.c: Reinstate this instance which is significant
21814         when the if branch is not taken.
21816 2017-05-21  Bruno Haible  <bruno@clisp.org>
21818         gnulib-tool: Add options to create hard links.
21819         * gnulib-tool (func_usage): Document options --hardlink,
21820         --local-hardlink, --more-hardlinks.
21821         (func_symlink): Renamed from func_ln.
21822         (func_symlink_if_changed): Renamed from func_ln_if_changed.
21823         (func_hardlink): New function.
21824         (copymode, lcopymode): New variables.
21825         (symbolic, lsymbolic): Remove variables.
21826         (Options): Implement options --hardlink, --local-hardlink,
21827         --more-hardlinks.
21828         (func_should_link): Renamed from func_should_symlink. Set copyaction.
21829         (func_add_file, func_update_file): Update invocation of
21830         func_should_link. Invoke func_hardlink when appropriate.
21831         (func_import): Update comments.
21832         (func_create_testdir): Update invocation of func_should_link. Invoke
21833         func_hardlink when appropriate.
21834         Finally, invoke 'git update-index --refresh' to mitigate the effects of
21835         the hard links on git.
21837 2017-05-20  Bruno Haible  <bruno@clisp.org>
21839         argp: Simplify bit manipulation.
21840         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
21841         on a signed integer type.
21843 2017-05-20  Bruno Haible  <bruno@clisp.org>
21845         Avoid wrong configure results with gcc -fsanitize=address.
21846         This completes the work done on 2016-02-06 on this topic.
21847         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
21848         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21850         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21851         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
21852         returning.
21853         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21854         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
21855         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21856         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21857         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21858         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21859         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
21860         free allocated memory before returning.
21861         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
21863         objects before returning.
21864         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
21865         returning.
21867 2017-05-20  Bruno Haible  <bruno@clisp.org>
21869         gnulib-tool: Don't create hard links between gnulib and its testdirs.
21870         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
21872 2017-05-20  Bruno Haible  <bruno@clisp.org>
21874         argp, tsearch tests: Fix file list.
21875         * modules/argp-tests (Files): Add tests/macros.h.
21876         * modules/tsearch-tests (Files): Likewise.
21878 2017-05-20  Bruno Haible  <bruno@clisp.org>
21880         getopt-posix tests: Remove redundant include.
21881         * tests/test-getopt.h: Don't include "macros.h". It's already included
21882         by tests/test-getopt-main.h.
21884 2017-05-19  Jim Meyering  <meyering@fb.com>
21886         dfa: two small simplifications
21887         * lib/dfa.c (build_state): Avoid repeating longer expressions.
21889 2017-05-18  Jim Meyering  <meyering@fb.com>
21891         fallthrough: update for GCC 7/8
21892         * lib/quotearg.c (FALLTHROUGH): New macro.
21893         Use it whenever one switch case falls through into the next,
21894         replacing "/* Fall through */" comments.  This exposed one
21895         instance of an unwarranted "fall through" comment: unwarranted
21896         because it preceded a "goto" label not a case statement.
21897         * lib/freopen-safer.c (freopen_safer): Likewise.
21898         * lib/fts.c (leaf_optimization_applies): Likewise.
21899         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
21900         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
21901         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
21902         tests/macros.h for the definition.
21903         * tests/test-argp.c (group1_parser): Likewise.
21904         * tests/test-getopt.h (getopt_loop): Likewise.
21906 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21908         argp: fix shift bug
21909         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
21910         behavior on shift overflow, caught by gcc -fsanitize=undefined.
21912         argp: fix pointer-subtraction bug
21913         * lib/argp-help.c (hol_append): Don’t subtract pointers to
21914         different arrays, as this can run afoul of -fcheck-pointer-bounds.
21915         See the thread containing Bruno Haible’s report in:
21916         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
21918 2017-05-19  Bruno Haible  <bruno@clisp.org>
21920         printf-posix tests: Avoid test failure with "gcc --coverage".
21921         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21922         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
21923         than 5000000.
21924         * tests/test-fprintf-posix2.c (main): Likewise.
21926 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21928         closeout: don’t close stderr when sanitizing
21929         * NEWS: Document this.
21930         * lib/closeout.c (__has_feature): New macro, if not already defined.
21931         (SANITIZE_ADDRESS): New constant.
21932         (close_stdout): Don’t close stderr if sanitizing addresses.
21934 2017-05-19  Bruno Haible  <bruno@clisp.org>
21936         get-rusage-data tests: Avoid failure on Linux/glibc.
21937         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
21938         on glibc systems.
21940 2017-05-18  Bruno Haible  <bruno@clisp.org>
21942         localename: Include necessary header files on Cygwin.
21943         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
21944         where NL_LOCALE_NAME is defined.
21946 2017-05-18  Bruno Haible  <bruno@clisp.org>
21948         gettext: Update macros from gettext git.
21949         * m4/intldir.m4: Require Autoconf >= 2.60.
21950         * m4/progtest.m4: Fix typos in copyright notice.
21952 2017-05-18  Bruno Haible  <bruno@clisp.org>
21954         copy-file tests: Fix link error (regression from 2017-05-01).
21955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21956         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
21957         $(LIB_CLOCK_GETTIME).
21959 2017-05-18  Bruno Haible  <bruno@clisp.org>
21961         unicase/special-casing: Fix incompatibility with gperf-3.0.4
21962         (regression from 2017-02-13).
21963         * lib/unicase/special-casing.in.h: Renamed from
21964         lib/unicase/special-casing.h.
21965         * modules/unicase/special-casing (Files): Add
21966         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
21967         (Makefile.am): Add rule for generating unicase/special-casing.h.
21968         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
21969         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
21970         not "special-casing.h".
21971         * lib/unicase/u*.c: Likewise.
21973 2017-05-17  Bruno Haible  <bruno@clisp.org>
21975         README: Don't ask people to read a TeXinfo file.
21976         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21977         * README: Tell people how to read the HTML formatted manual.
21979 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21981         parse-datetime: Fix memleak
21982         * lib/parse-datetime.y (parse_datetime2): Cleanup on
21983         localtime_rz() failure.
21985 2017-05-16  Bruno Haible  <bruno@clisp.org>
21987         javacomp: Fix handle leak.
21988         Found by Coverity.
21989         * lib/javacomp.c (get_classfile_version): Close fd before returning.
21991 2017-05-16  Bruno Haible  <bruno@clisp.org>
21993         relocate: Make it easier to reclaim allocated memory.
21994         * lib/relocatable.h (relocate2): New declaration/macro.
21995         * lib/relocatable.c (relocate2): New function.
21996         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
21997         relocate2 function.
21998         * lib/localcharset.c (relocate2): Define fallback.
21999         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22000         allocated memory.
22001         * lib/javaversion.c (relocate2): Define fallback.
22002         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22003         allocated memory.
22005 2017-05-16  Bruno Haible  <bruno@clisp.org>
22007         relocate: Simplify EMX specific code.
22008         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22009         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22011 2017-05-16  Bruno Haible  <bruno@clisp.org>
22013         sigpipe tests: Fix file list.
22014         * modules/sigpipe-tests (Files): Add tests/macros.h.
22016 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22018         manywarnings: update for GCC 7
22019         * build-aux/gcc-warning.spec:
22020         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22021         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22022         requires a non-comment fallthrough attribute.  This is a bit
22023         cleaner than the comment versions.
22024         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22025         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22026         Use it whenever one switch case falls through into the next.
22027         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22028         Use FALLTHROUGH macro.
22030 2017-05-15  Bruno Haible  <bruno@clisp.org>
22032         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22033         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22034         @ALLOCA@, not @LTALLOCA@.
22036 2017-05-15  Bruno Haible  <bruno@clisp.org>
22038         sys_select: Avoid "was expanded before it was required" warning.
22039         * modules/sys_select (configure.ac): Require, not invoke,
22040         gl_HEADER_SYS_SELECT.
22042 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22044         gnulib-tool: improve GNU Make debugging
22045         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22046         Report autoconf diagnostics when it fails, in the output makefile.
22048 2017-05-14  Bruno Haible  <bruno@clisp.org>
22050         stat-time tests: Improve comment.
22051         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22053 2017-05-14  Bruno Haible  <bruno@clisp.org>
22055         same-inode: Adapt for windows-stat-inodes.
22056         * lib/same-inode.h: Include <sys/types.h>.
22057         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22058         * modules/same-inode (Depends-on): Add sys_types.
22060 2017-05-14  Bruno Haible  <bruno@clisp.org>
22062         windows-stat-inodes: New module.
22063         * m4/windows-stat-inodes.m4: New file.
22064         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22065         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22066         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22067         (_GL_WINDOWS_STAT_INODES): New macro.
22068         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22069         (GetFileInformationByHandleExFunc): New variable.
22070         (initialize): Initialize it.
22071         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22072         st_ino appropriately.
22073         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22074         a fallback, because it does not provide st_dev and st_ino values.
22075         * modules/fstat (Depends-on): Add 'verify'.
22076         * modules/windows-stat-inodes: New file.
22077         * doc/windows-stat-inodes.texi: New file.
22078         * doc/gnulib.texi: Include it.
22079         * doc/posix-headers/sys_stat.texi: Mention the new module.
22081 2017-05-14  Bruno Haible  <bruno@clisp.org>
22083         stat-time tests: Workaround for native Windows.
22084         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22085         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22086         New variables.
22087         (initialize_filenames): New function.
22088         (main): Invoke it.
22089         (cleanup, prepare_test): Update.
22091 2017-05-14  Bruno Haible  <bruno@clisp.org>
22093         stat-time: Adapt for windows-stat-timespec.
22094         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22095         entire st_ctim field.
22097 2017-05-13  Jim Meyering  <meyering@fb.com>
22099         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22100         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22101         file that uses the assume macro, claiming that verify.h is unused.
22103 2017-05-13  Bruno Haible  <bruno@clisp.org>
22105         Use symbolic values for _WIN32_WINNT.
22106         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22107         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22109 2017-05-13  Bruno Haible  <bruno@clisp.org>
22111         year2038: New module.
22112         * m4/year2038.m4: New file.
22113         * modules/year2038: New file.
22114         * doc/year2038.texi: New file.
22115         * doc/gnulib.texi: Include it.
22117 2017-05-13  Bruno Haible  <bruno@clisp.org>
22119         largefile: Simplify.
22120         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22121         of _GL_WINDOWS_64_BIT_ST_SIZE.
22123 2017-05-13  Bruno Haible  <bruno@clisp.org>
22125         largefile: Improve and document.
22126         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22127         the mingw headers already define 'stat' appropriately.
22128         * modules/largefile (Description): Clarify.
22129         * doc/largefile.texi: New file.
22130         * doc/gnulib.texi: Include it.
22131         * doc/posix-headers/sys_types.texi: Update.
22133 2017-05-13  Bruno Haible  <bruno@clisp.org>
22135         truncate: New module.
22136         * lib/unistd.in.h (truncate): New declaration.
22137         * lib/truncate.c: New file.
22138         * m4/truncate.m4: New file.
22139         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22140         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22141         REPLACE_TRUNCATE.
22142         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22143         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22144         * modules/truncate: New file.
22145         * tests/test-unistd-c++.cc (truncate): Test signature.
22146         * doc/posix-functions/truncate.texi: Mention the new module.
22148         * tests/test-truncate.c: New file.
22149         * modules/truncate-tests: New file.
22151 2017-05-13  Bruno Haible  <bruno@clisp.org>
22153         windows-stat-timespec: New module.
22154         * modules/windows-stat-timespec: New file.
22155         * m4/windows-stat-timespec.m4: New file.
22156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22157         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22158         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22159         fields st_atim, st_mtim, st_ctim.
22160         (st_atime, st_mtime, st_ctime): Define as macros.
22161         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22162         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22163         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22164         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22165         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22166         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22167         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22168         FILETIME to 'struct timespec', not 'time_t'.
22169         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22170         FILETIME to 'struct timespec', not 'time_t'.
22171         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22172         _GL_WINDOWS_STAT_TIMESPEC.
22173         * doc/windows-stat-timespec.texi: New file.
22174         * doc/gnulib.texi: Include it.
22176 2017-05-13  Bruno Haible  <bruno@clisp.org>
22178         windows-stat-override: New module.
22179         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22180         definition. Define GNULIB_defined_struct_stat.
22181         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22182         link error if this symbol is used and the corresponding module is not
22183         in use.
22184         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22185         GNULIB_OVERRIDES_STRUCT_STAT.
22186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22187         GNULIB_OVERRIDES_STRUCT_STAT.
22188         * modules/sys_stat (Makefile.am): Substitute
22189         GNULIB_OVERRIDES_STRUCT_STAT.
22190         * modules/windows-stat-override: New file.
22192 2017-05-13  Bruno Haible  <bruno@clisp.org>
22194         fstat: Fix module dependency conditions.
22195         * modules/fstat (Depends-on): Fix typo.
22197 2017-05-13  Bruno Haible  <bruno@clisp.org>
22199         stat, fstat: Complete removal of old native Windows code.
22200         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22201         * lib/fstat.c: Likewise.
22202         * lib/stat-w32.c: Likewise.
22204 2017-05-13  Bruno Haible  <bruno@clisp.org>
22206         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22207         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
22209 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22211         getopt-posix: port to mingw
22212         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
22213         Problem reported by Daniel P. Berrage in:
22214         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
22216 2017-05-11  Bruno Haible  <bruno@clisp.org>
22218         gettimeofday: Increase precision on mingw.
22219         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
22220         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
22221         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
22222         GetSystemTimePreciseAsFileTime based implementation always.
22223         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
22224         mingw.
22226 2017-05-11  Bruno Haible  <bruno@clisp.org>
22228         poll: Fix confusion between SOCKETs and FDs on native Windows.
22229         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
22230         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
22232 2017-05-11  Bruno Haible  <bruno@clisp.org>
22234         doc: Clarify doc about socket functions on native Windows.
22235         This reworks doc that was added on 2008-09-29.
22236         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
22237         clearer wording.
22238         * doc/posix-functions/accept.texi: Use clearer wording.
22239         * doc/posix-functions/bind.texi: Likewise.
22240         * doc/posix-functions/connect.texi: Likewise.
22241         * doc/posix-functions/getpeername.texi: Likewise.
22242         * doc/posix-functions/getsockname.texi: Likewise.
22243         * doc/posix-functions/getsockopt.texi: Likewise.
22244         * doc/posix-functions/ioctl.texi: Likewise.
22245         * doc/posix-functions/listen.texi: Likewise.
22246         * doc/posix-functions/recv.texi: Likewise.
22247         * doc/posix-functions/recvfrom.texi: Likewise.
22248         * doc/posix-functions/send.texi: Likewise.
22249         * doc/posix-functions/sendto.texi: Likewise.
22250         * doc/posix-functions/setsockopt.texi: Likewise.
22251         * doc/posix-functions/shutdown.texi: Likewise.
22252         * doc/posix-functions/socket.texi: Likewise.
22254 2017-05-10  Bruno Haible  <bruno@clisp.org>
22256         poll: Fix link error on native Windows.
22257         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22259 2017-05-10  Bruno Haible  <bruno@clisp.org>
22261         time: Fix missing initialization of HAVE_TIMEZONE_T.
22262         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22263         here...
22264         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22265         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22266         gl_HEADER_SYS_TIME_H_DEFAULTS.
22267         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22268         (configure.ac): Remove useless quoting.
22270 2017-05-10  Bruno Haible  <bruno@clisp.org>
22272         Implement a way to opt out from MSVC support, part 2.
22273         * modules/msvc-inval (Include): Document recommended idiom.
22274         * modules/msvc-nothrow (Include): Likewise.
22276         Implement a way to opt out from MSVC support.
22277         This is useful for Emacs.
22278         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22279         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22280         * lib/error.c: Likewise.
22281         * lib/fcntl.c: Likewise.
22282         * lib/flock.c: Likewise.
22283         * lib/fstat.c: Likewise.
22284         * lib/fsync.c: Likewise.
22285         * lib/ioctl.c: Likewise.
22286         * lib/isapipe.c: Likewise.
22287         * lib/lseek.c: Likewise.
22288         * lib/nonblocking.c: Likewise.
22289         * lib/poll.c: Likewise.
22290         * lib/select.c: Likewise.
22291         * lib/sockets.h: Likewise.
22292         * lib/sockets.c: Likewise.
22293         * lib/stdio-read.c: Likewise.
22294         * lib/stdio-write.c: Likewise.
22295         * lib/utimens.c: Likewise.
22296         * lib/w32sock.h: Likewise.
22297         * lib/w32spawn.h: Likewise.
22298         * tests/test-cloexec.c: Likewise.
22299         * tests/test-dup-safer.c: Likewise.
22300         * tests/test-dup2.c: Likewise.
22301         * tests/test-dup3.c: Likewise.
22302         * tests/test-fcntl.c: Likewise.
22303         * tests/test-pipe.c: Likewise.
22304         * tests/test-pipe2.c: Likewise.
22305         * lib/ftruncate.c: Likewise.
22306         (chsize_nothrow): Renamed from chsize.
22307         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22308         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22309         * lib/close.c: Likewise.
22310         * lib/dup.c: Likewise.
22311         * lib/fclose.c: Likewise.
22312         * lib/raise.c: Likewise.
22313         * tests/test-fgetc.c: Likewise.
22314         * tests/test-fputc.c: Likewise.
22315         * tests/test-fread.c: Likewise.
22316         * tests/test-fwrite.c: Likewise.
22317         * lib/getdtablesize.c: Likewise.
22318         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22319         * lib/isatty.c: Don't include msvc-inval.h if
22320         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22321         Include <io.h> as an alternative to msvc-nothrow.h.
22322         * lib/read.c: Likewise.
22323         * lib/write.c: Likewise.
22324         * lib/dup2.c: Likewise.
22325         (dup2_nothrow): New function.
22326         (ms_windows_dup2): Use it.
22327         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22328         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22329         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22330         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22331         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22332         * m4/read.m4 (gl_FUNC_READ): Likewise.
22333         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22334         * doc/windows-without-msvc.texi: New file.
22335         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22336         section.
22338 2017-05-10  Bruno Haible  <bruno@clisp.org>
22340         wait-process: Adjust native Windows support.
22341         * lib/wait-process.c: Use the usual condition for recognizing a native
22342         Windows platform.
22344 2017-05-10  Bruno Haible  <bruno@clisp.org>
22346         doc: New chapter "Native Windows Support".
22347         * doc/gnulib.texi (Native Windows Support): New chapter.
22348         * doc/windows-libtool.texi: Small wording changes.
22349         * doc/windows-sockets.texi: Small wording and formatting changes.
22351 2017-05-10  Bruno Haible  <bruno@clisp.org>
22353         doc: Move section "Library version handling".
22354         * doc/gnulib.texi: Move section "Library version handling"
22355         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22357 2017-05-10  Bruno Haible  <bruno@clisp.org>
22359         doc: Move section "Running self-tests under valgrind".
22360         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22361         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22363 2017-05-10  Bruno Haible  <bruno@clisp.org>
22365         doc: New chapter "Build Infrastructure Modules".
22366         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22368 2017-05-10  Bruno Haible  <bruno@clisp.org>
22370         Prepare for reordering sections in the manual.
22371         * doc/gnulib.texi: Move several sections to separate files. Include
22372         these files.
22373         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22374         * doc/obsolete.texi: Likewise.
22375         * doc/extra-tests.texi: Likewise.
22376         * doc/transversal.texi: Likewise.
22377         * doc/namespace.texi: Likewise.
22378         * doc/check-version.texi: Likewise.
22379         * doc/windows-sockets.texi: Likewise.
22380         * doc/windows-libtool.texi: Likewise.
22381         * doc/licenses-texi.texi: Likewise.
22382         * doc/build-automation.texi: Likewise.
22383         * doc/c-locale.texi: Likewise.
22385 2017-05-10  Bruno Haible  <bruno@clisp.org>
22387         Fix instructions how to update manual on www.gnu.org.
22388         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
22390 2017-05-09  Bruno Haible  <bruno@clisp.org>
22392         tzset: Expand comment about TZ problem on native Windows.
22393         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
22394         Paul Eggert.
22395         * lib/ctime.c (rpl_ctime): Likewise.
22396         * lib/localtime.c (rpl_localtime): Likewise.
22397         * lib/mktime.c (mktime): Likewise.
22398         * lib/strftime-fixes.c (rpl_strftime): Likewise.
22399         * lib/wcsftime.c (rpl_wcsftime): Likewise.
22401 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22403         intprops: don’t depend on ‘verify’
22404         Problem reported by Ævar Arnfjörð Bjarmason in:
22405         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
22406         * lib/intprops.h: Do not include verify.h, and move compile-time
22407         checks from here ...
22408         * tests/test-intprops.c (main): ... to here, if they’re not here
22409         already.  Check widths of other standard integer types.
22410         * modules/intprops (Depends-on): Remove ‘verify’.
22412 2017-05-07  Bruno Haible  <bruno@clisp.org>
22414         utimens: On native Windows, support 100ns resolution also if fd < 0.
22415         * lib/utime.in.h: Include <time.h>.
22416         (_gl_utimens_windows): New declaration.
22417         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
22418         (utime): Invoke it.
22419         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
22420         instead of utime.
22421         * modules/utime (Depends-on): Add 'time'.
22423 2017-05-07  Bruno Haible  <bruno@clisp.org>
22425         utimens: Improve error code on native Windows.
22426         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
22427         error code EACCES, not EINVAL.
22429 2017-05-07  Bruno Haible  <bruno@clisp.org>
22431         utime: Handle more Windows error codes.
22432         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
22433         Based on explanations by Billy O'Neal.
22435 2017-05-05  Bruno Haible  <bruno@clisp.org>
22437         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
22438         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
22439         union.
22440         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
22441         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
22442         value of cipher->IV.
22444 2017-05-05  Bruno Haible  <bruno@clisp.org>
22446         wctype-h-c++-tests: Update.
22447         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
22449 2017-05-05  Bruno Haible  <bruno@clisp.org>
22451         wchar-c++-tests: Update.
22452         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
22454 2017-05-05  Bruno Haible  <bruno@clisp.org>
22456         utime-h-c++-tests: New module.
22457         * tests/test-utime-h-c++.cc: New file.
22458         (utime): Declare, missing since 2017-04-30.
22459         * modules/utime-h-c++-tests: New file.
22461 2017-05-05  Bruno Haible  <bruno@clisp.org>
22463         unistd-c++-tests: Update.
22464         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
22465         (read): Declare, missing since 2011-04-15.
22466         (sethostname): Declare, missing since 2011-12-03.
22468 2017-05-05  Bruno Haible  <bruno@clisp.org>
22470         time-c++-tests: Update.
22471         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
22472         (localtime, gmtime): Declare, missing since 2017-04-30.
22473         (ctime): Declare, missing since 2017-04-30.
22474         (strftime): Declare, missing since 2017-04-30.
22475         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
22476         2015-07-24.
22478 2017-05-05  Bruno Haible  <bruno@clisp.org>
22480         sys_resource-c++-tests: New module.
22481         * tests/test-sys_resource-c++.cc: New file.
22482         (getrusage): Declare, missing since 2012-04-13.
22483         * modules/sys_resource-c++-tests: New file.
22485 2017-05-05  Bruno Haible  <bruno@clisp.org>
22487         strings-c++-tests: New module.
22488         * tests/test-strings-c++.cc: New file.
22489         (ffs): Declare, missing since 2011-07-12.
22490         * modules/strings-c++-tests: New file.
22492 2017-05-05  Bruno Haible  <bruno@clisp.org>
22494         string-c++-tests: Update.
22495         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
22496         (ffsll): Declare, missing since 2011-07-15.
22498 2017-05-05  Bruno Haible  <bruno@clisp.org>
22500         stdlib-c++-tests: Update.
22501         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
22502         2011-10-18.
22503         (ptsname_r): Declare, missing since 2011-11-07.
22504         (qsort_r): Declare, missing since 2014-08-29.
22505         (random, srandom, initstate, setstate): Declare, missing since
22506         2012-01-14.
22507         (secure_getenv): Declare, missing since 2013-02-05.
22509 2017-05-05  Bruno Haible  <bruno@clisp.org>
22511         stdio-c++-tests: Update.
22512         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
22514 2017-05-05  Bruno Haible  <bruno@clisp.org>
22516         signal-h-c++-tests: Update.
22517         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
22519 2017-05-05  Bruno Haible  <bruno@clisp.org>
22521         math-c++-tests: Update.
22522         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
22523         (fma): Declare, missing since 2011-10-17.
22524         (fmal): Declare, missing since 2011-10-17.
22526 2017-05-05  Bruno Haible  <bruno@clisp.org>
22528         locale-c++-tests: Update.
22529         * tests/test-locale-c++.cc (localeconv): Declare, missing since
22530         2012-03-25.
22532 2017-05-05  Bruno Haible  <bruno@clisp.org>
22534         inttypes-c++-tests: New module.
22535         * tests/test-inttypes-c++.cc: New file.
22536         (strtoimax): Declare, missing since 2012-01-05.
22537         (strtoumax): Declare, missing since 2012-01-05.
22538         * modules/inttypes-c++-tests: New file.
22540 2017-05-05  Bruno Haible  <bruno@clisp.org>
22542         dirent-c++-tests: Update.
22543         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
22544         (rewinddir): Declare, missing since 2011-09-13.
22545         (dirfd): Declare, missing since 2010-03-08.
22547 2017-05-04  Bruno Haible  <bruno@clisp.org>
22549         argp: Fix mistake in 2017-04-23 commit.
22550         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
22551         assume that strerror_r returns 'int', not 'char *'.
22553 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
22555         argp: Fix typo.
22556         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
22558 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22560         utimens: port to Emacs + MS-Windows
22561         Skip the new MS-Windows-specific code if Emacs.
22562         * lib/utimens.c [EMACS_CONFIGUATION]:
22563         Avoid new MS-Windows-specific code.
22564         (USE_SETFILETIME): New macro.
22565         (fdutimens): Use it.
22567 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22569         tzset: update doc for TZ problems on MS-Windows
22570         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
22571         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
22572         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
22573         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
22574         * doc/posix-functions/wcsftime.texi:
22575         Mention some issues with TZ under MS-Windows.
22577 2017-05-01  Bruno Haible  <bruno@clisp.org>
22579         copy-file: Fix build error on mingw.
22580         * modules/copy-file (Depends-on): Add 'close'.
22582 2017-05-01  Bruno Haible  <bruno@clisp.org>
22584         tzset: Work around TZ problem on native Windows.
22585         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
22586         Windows, set REPLACE_TZSET to 1.
22587         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
22588         invoke '_tzset' instead of 'tzset'.
22589         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
22591         * modules/time_rz (Depends-on): Add tzset.
22592         * lib/time_rz.c (tzset): Remove fallback definition.
22593         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
22595 2017-05-01  Bruno Haible  <bruno@clisp.org>
22597         mktime: Fix dependencies.
22598         * modules/mktime (Depends-on): Add 'time'.
22600 2017-05-01  Bruno Haible  <bruno@clisp.org>
22602         New module 'localtime-buffer', split off from module 'gettimeofday'.
22603         * lib/localtime-buffer.h: New file.
22604         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
22605         * lib/time.in.h (tzset): New declaration.
22606         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
22607         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
22608         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
22609         moved to lib/localtime-buffer.c or lib/tzset.c.
22610         * m4/localtime-buffer.m4: New file.
22611         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
22612         HAVE_TZSET, REPLACE_TZSET.
22613         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
22614         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
22615         gl_LOCALTIME_BUFFER_NEEDED.
22616         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
22617         since 2007-01-18.
22618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
22619         tzset.
22620         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
22621         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
22622         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
22623         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
22624         * modules/localtime-buffer: New file.
22625         * modules/time (Depends-on): Remove 'gettimeofday'.
22626         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
22627         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
22628         * modules/tzset (Description): Enable hyperlink to POSIX spec.
22629         (Files): Add lib/tzset.c.
22630         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
22631         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
22632         gl_TIME_MODULE_INDICATOR.
22633         * modules/gettimeofday (Depends-on): Add localtime-buffer.
22635 2017-05-01  Bruno Haible  <bruno@clisp.org>
22637         copy-file: Preserve sub-second time stamps.
22638         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
22639         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
22640         transport the time stamps from the original file to the destination
22641         file.
22642         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
22643         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
22644         utime-h.
22646 2017-05-01  Bruno Haible  <bruno@clisp.org>
22648         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
22649         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
22650         also on MSVC.
22651         Reported by Eli Zaretskii <eliz@gnu.org>.
22653 2017-05-01  Bruno Haible  <bruno@clisp.org>
22655         wchar: Fix compilation error with the original mingw.org mingw.
22656         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22657         <stddef.h> instead.
22658         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
22659         gl_WCTYPE_H.
22660         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
22661         gl_TYPE_WINT_T_PREREQ instead.
22662         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
22663         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
22664         Reported by Eli Zaretskii <eliz@gnu.org>.
22666 2017-04-30  Bruno Haible  <bruno@clisp.org>
22668         utimecmp: Add support for native Windows.
22669         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
22671 2017-04-30  Bruno Haible  <bruno@clisp.org>
22673         utimens: Add support for native Windows.
22674         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
22675         (fdutimens): Provide a native Windows implementation, like utime.c with
22676         added tv_nsec support.
22677         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
22678         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
22680 2017-04-30  Bruno Haible  <bruno@clisp.org>
22682         wcsftime: New module.
22683         * lib/wchar.in.h (wcsftime): New declaration.
22684         * lib/wcsftime.c: New file.
22685         * m4/wcsftime.m4: New file.
22686         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
22687         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
22688         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
22690         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22691         * modules/wcsftime: New file.
22692         * doc/posix-functions/wcsftime.texi: Mention the new module.
22694 2017-04-30  Bruno Haible  <bruno@clisp.org>
22696         strftime-fixes: New module.
22697         * lib/time.in.h (strftime): New declaration.
22698         * lib/strftime-fixes.c: New file.
22699         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
22700         (gl_FUNC_STRFTIME): Remove macro.
22701         * m4/strftime-fixes.m4: New file.
22702         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
22703         REPLACE_STRFTIME.
22704         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
22705         REPLACE_STRFTIME.
22706         * modules/strftime-fixes: New file.
22707         * doc/posix-functions/strftime.texi: Mention the new module.
22709 2017-04-30  Bruno Haible  <bruno@clisp.org>
22711         mktime: Work around TZ problem on native Windows.
22712         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
22713         from the native Windows workaround.
22714         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
22715         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
22716         'guessing no'.
22717         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
22718         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
22719         NEED_MKTIME_WINDOWS.
22720         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
22721         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
22722         NEED_MKTIME_INTERNAL.
22723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
22724         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
22725         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
22726         not REPLACE_MKTIME.
22727         * doc/posix-functions/mktime.texi: Mention the native Windows
22728         workaround.
22730 2017-04-30  Bruno Haible  <bruno@clisp.org>
22732         localtime: New module.
22733         * lib/time.in.h (localtime): Declare also if requested by module
22734         'localtime'.
22735         * lib/localtime.c: New file.
22736         * m4/localtime.m4: New file.
22737         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
22738         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
22739         * modules/localtime: New file.
22740         * doc/posix-functions/localtime.texi: Mention the new module.
22742 2017-04-30  Bruno Haible  <bruno@clisp.org>
22744         ctime: New module.
22745         * lib/time.in.h (ctime): New declaration.
22746         * lib/ctime.c: New file.
22747         * m4/ctime.m4: New file.
22748         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
22749         REPLACE_CTIME.
22750         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
22751         * modules/ctime: New file.
22752         * doc/posix-functions/ctime.texi: Mention the new module.
22754 2017-04-30  Bruno Haible  <bruno@clisp.org>
22756         gettimeofday: Provide higher resolution on native Windows.
22757         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
22758         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
22759         (initialize): Initialize it.
22760         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
22761         'struct timeval'. Don't use _ftime().
22762         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
22763         <sys/timeb.h> and _ftime.
22765 2017-04-30  Bruno Haible  <bruno@clisp.org>
22767         Document the problem with the Cygwin environment variable TZ.
22768         * doc/posix-functions/tzset.texi: Add note about TZ.
22769         * doc/posix-functions/ctime.texi: Likewise.
22770         * doc/posix-functions/localtime.texi: Likewise.
22771         * doc/posix-functions/mktime.texi: Likewise.
22772         * doc/posix-functions/strftime.texi: Likewise.
22773         * doc/posix-functions/wcsftime.texi: Likewise.
22774         * doc/pastposix-functions/ftime.texi: Likewise.
22776 2017-04-30  Bruno Haible  <bruno@clisp.org>
22778         utime-tests: New module.
22779         * tests/test-utime.c: New file, based on tests/test-utimens.h.
22780         * tests/test-utimens-common.h: Include <sys/stat.h>.
22781         * modules/utime-tests: New file.
22783 2017-04-29  Bruno Haible  <bruno@clisp.org>
22785         utime: New module.
22786         * lib/utime.in.h: Add comment for snippets.
22787         (utime): New declaration.
22788         * lib/utime.c: New file.
22789         * m4/utime.m4: New file.
22790         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
22791         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
22792         REPLACE_UTIME.
22793         * modules/utime-h (Depends-on): Add snippets.
22794         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
22795         Insert snippets.
22796         * modules/utime: New file.
22797         * doc/posix-functions/utime.texi: Mention the new module.
22799 2017-04-29  Bruno Haible  <bruno@clisp.org>
22801         utime-h: Modernize handling of 'struct utimbuf'.
22802         * lib/utime.in.h: Include next <utime.h> if it exists.
22803         (utimbuf): Define to _utimbuf on native Windows.
22804         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
22805         Set UTIME_H on native Windows.
22806         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
22807         * modules/utime-h (Depends-on): Add include_next.
22808         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
22809         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
22811         * lib/utimens.c (utimbuf): Remove fallback definition.
22812         * m4/utimens.m4 (gl_UTIMENS): Don't require
22813         gl_CHECK_TYPE_STRUCT_UTIMBUF.
22814         * m4/utimbuf.m4: Remove file.
22815         * modules/utimens (Files): Remove m4/utimbuf.m4.
22817 2017-04-29  Bruno Haible  <bruno@clisp.org>
22819         Make use of module 'utime-h'.
22820         * modules/copy-file (Depends-on): Add utime-h.
22821         * lib/copy-file.c: Assume that <utime.h> exists.
22822         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
22824         * modules/utimens (Depends-on): Add utime-h.
22825         * lib/utimens.c: Assume that <utime.h> exists.
22827 2017-04-29  Bruno Haible  <bruno@clisp.org>
22829         utime-h: New module.
22830         * m4/utime_h.m4: New file.
22831         * lib/utime.in.h: New file.
22832         * modules/utime-h: New file.
22833         * doc/posix-headers/utime.texi: Mention the new module.
22835         * tests/test-utime-h.c: New file.
22836         * modules/utime-h-tests: New file.
22838 2017-04-30  Bruno Haible  <bruno@clisp.org>
22840         Fix a few typos.
22841         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
22842         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
22843         * doc/posix-functions/fstat.texi: Fix a plural typo.
22844         * doc/posix-functions/stat.texi: Likewise.
22845         * m4/include_next.m4: Update comments.
22847 2017-04-29  Bruno Haible  <bruno@clisp.org>
22849         error: Fix mistake in 2017-04-23 commit.
22850         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
22851         assume that strerror_r returns 'int', not 'char *'.
22853 2017-04-29  Bruno Haible  <bruno@clisp.org>
22855         stat: Fix time_t values and other problems on native Windows platforms.
22856         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
22857         implementations of stat().
22858         * lib/stat.c: Include filename.h instead of dosname.h. Include
22859         malloca.h, stat-w32.h.
22860         (is_unc_root): New function.
22861         (rpl_stat): New implementation for native Windows. Remove
22862         REPLACE_FUNC_STAT_DIR code.
22863         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
22864         Don't define REPLACE_FUNC_STAT_DIR.
22865         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
22866         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
22867         (Depends-on): Remove dosname. Add filename, malloca.
22868         (configure.ac): Also compile lib/stat-w32.c.
22870 2017-04-29  Bruno Haible  <bruno@clisp.org>
22872         fstat: Fix time_t values on native Windows platforms.
22873         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
22874         * lib/stat-w32.h: New file.
22875         * lib/stat-w32.c: New file.
22876         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
22877         stat-w32.h instead.
22878         (fstat_nothrow): Remove function.
22879         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
22880         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
22881         always.
22882         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
22883         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
22884         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
22885         (configure.ac): Also compile lib/stat-w32.c.
22887 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
22889         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
22890         Problem reported by Assaf Gordon and Gavin Smith in:
22891         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
22892         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
22893         #define this, too.
22895 2017-04-29  Bruno Haible  <bruno@clisp.org>
22897         strerror_r-posix: Fixes for MSVC 14.
22898         * lib/strerror_r.c: Include <stdarg.h>.
22899         (strerror_r): Provide error messages for errno values 100...140.
22900         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
22902 2017-04-28  Bruno Haible  <bruno@clisp.org>
22904         noreturn: New module.
22905         * lib/noreturn.h: New file.
22906         * modules/noreturn: New file.
22907         * tests/test-noreturn.c: New file.
22908         * modules/noreturn-tests: New file.
22909         * tests/test-noreturn-c++.cc: New file.
22910         * modules/noreturn-c++-tests: New file.
22912 2017-04-27  Bruno Haible  <bruno@clisp.org>
22914         wctype-h: Fix compilation error with the original mingw.org mingw.
22915         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
22916         HAVE_CRTDEFS_H.
22917         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
22918         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22919         <stddef.h> instead.
22920         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
22922 2017-04-26  Pádraig Brady  <P@draigBrady.com>
22924         nap.h: Fix compilation on non windows platforms
22925         * tests/nap.h: Move misplaced endif.
22927 2017-04-26  Pádraig Brady  <P@draigBrady.com>
22928         and Paul Eggert  <eggert@cs.ucla.edu>
22930         time_rz: fix heap buffer overflow vulnerability
22931         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
22932         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
22933         whether there is enough buffer space available, thus avoiding
22934         the problematic promotion of signed to unsigned causing an invalid
22935         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
22936         the start of the buffer.
22937         * tests/test-parse-datetime.c (main): Add a test case written by
22938         Paul Eggert, which overwrites enough of the heap so that
22939         standard glibc will fail with "free(): invalid pointer"
22940         without the patch applied.
22942 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22944         xalloc: add missing integer overflow check
22945         * lib/xalloc.h (x2nrealloc): Also check for multiplication
22946         overflow when P is null.
22948 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22950         parse-datetime: make it standalone
22951         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
22952         (_GL_ATTRIBUTE_FORMAT): New macro.
22953         These are needed to get './gnulib-tool --test parse-datetime' to work.
22955 2017-04-23  Bruno Haible  <bruno@clisp.org>
22957         nap.h: Port to native Windows.
22958         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
22959         use nap_fd instead. On native Windows, close and reopen nap_fd.
22960         (nap_works): Don't compare the ctimes, because on native Windows, these
22961         are the creation times.
22962         (nap): Update.
22964 2017-04-23  Bruno Haible  <bruno@clisp.org>
22966         nap.h: Fix logic.
22967         * tests/nap.h (nap): Avoid signed integer overflow in loop.
22969 2017-04-23  Bruno Haible  <bruno@clisp.org>
22971         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22972         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
22973         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
22974         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
22975         * lib/argp-help.c (__argp_failure): Likewise.
22977 2017-04-23  Bruno Haible  <bruno@clisp.org>
22979         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
22980         * m4/strerror_r.m4: Revert changes since 2016-10-16.
22981         * lib/strerror_r.c: Likewise.
22983 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22985         Target a C99 subset, not a C89 subset
22986         For many years Gnulib has targeted C89 and has resisted using C99
22987         features, as some Gnulib-using programs still wanted to target
22988         C89.  As this no longer seems to be the case, relax the porting
22989         requirements to allow some C99 features.  This is merely a change
22990         to the documentation, to give other Gnulib developers a chance to
22991         weigh in on the topic.
22992         * doc/extern-inline.texi (extern inline):
22993         * doc/gnulib-readme.texi (Portability guidelines):
22994         * doc/gnulib-tool.texi (Initial import):
22995         * doc/gnulib.texi (Header files):
22996         Modernize to talk about C99 and C11 instead of C89 and C99.
22997         * doc/gnulib-readme.texi (Portability guidelines):
22998         Now a section, not merely a subsection, so that it
22999         can be split up.  Modernize a bit.
23000         (C language versions, C99 features assumed)
23001         (C99 features avoided):
23002         New sections.
23004 2017-04-23  Bruno Haible  <bruno@clisp.org>
23006         doc: New section "Modules that modify the way other modules work".
23007         * doc/gnulib.texi (Modules that modify the way other modules work): New
23008         section.
23010 2017-04-23  Bruno Haible  <bruno@clisp.org>
23012         stat-time: Update comments.
23013         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23014         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23015         Windows.
23017 2017-04-01  Bruno Haible  <bruno@clisp.org>
23019         glob: Fix more memory leaks.
23020         * lib/glob.c (glob): Free allocated memory before returning.
23021         Reported by Coverity via Tim Rühsen.
23023 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23025         poll: improve fast check for out-of-range NFD
23026         * lib/poll.c: Do not include intprops.h.
23027         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23028         * modules/poll (Depends-on): Remove intprops.
23030         ftoastr: cite a newer paper
23031         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23032         instead of Loitsch 2010.
23034 2017-04-22  Bruno Haible  <bruno@clisp.org>
23036         poll: Enable argument check also in the Windows implementation.
23037         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23038         Reported by Paul Eggert.
23040 2017-04-22  Bruno Haible  <bruno@clisp.org>
23042         getlogin_r: Work around bug in Mac OS X 10.12.
23043         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23044         bug.
23045         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23046         given size minus 1, call getlogin_r a second time, on a larger buffer.
23047         * modules/getlogin_r (Depends-on): Add malloca.
23048         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23050 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23052         parse-datetime: fix %z and prefer signed int
23053         %z problem reported by Pádraig Brady in:
23054         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23055         While fixing it, I decided to prefer signed ints to size_t, as
23056         they are less error-prone (e.g., ubsan catches overflow).
23057         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23058         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23059         counts, since signed integers make for better debugging.
23060         (date): Don’t assume %z works in printf formats.
23061         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23062         sizes of buffers known to be small, e.g., because we’re using snprintf.
23063         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23065 2017-04-22  Bruno Haible  <bruno@clisp.org>
23067         *printf: Work around rounding bug on Mac OS X.
23068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23069         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23070         Mac OS X and FreeBSD.
23071         * doc/glibc-functions/*printf.texi: Likewise.
23073 2017-04-22  Bruno Haible  <bruno@clisp.org>
23075         vasnprintf tests: Avoid warnings.
23076         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23077         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23078         test.
23080 2017-04-22  Bruno Haible  <bruno@clisp.org>
23082         sys_file tests: Avoid warning.
23083         * tests/test-sys_file.c (main): Add a default clause to the switch
23084         statement.
23086 2017-04-22  Bruno Haible  <bruno@clisp.org>
23088         sethostname: Update doc.
23089         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23090         Mac OS X.
23092 2017-04-22  Bruno Haible  <bruno@clisp.org>
23094         quotearg tests: Avoid warnings.
23095         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23096         false.
23098 2017-04-22  Bruno Haible  <bruno@clisp.org>
23100         poll: Enable argument check.
23101         * lib/poll.c: Include intprops.h.
23102         (poll): Check value of nfd correctly.
23103         * modules/poll (Depends-on): Add intprops.
23105 2017-04-22  Bruno Haible  <bruno@clisp.org>
23107         get-rusage-data: Avoid warnings on Mac OS X.
23108         * lib/get-rusage-data.c: On Mac OS X, don't define
23109         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23110         (get_rusage_data) [Mac OS X]: Just return 0.
23112 2017-04-22  Bruno Haible  <bruno@clisp.org>
23114         xbinary-io: Fix build error.
23115         * modules/xbinary-io (Depends-on): Add gettext-h.
23116         * lib/xbinary-io.c: Include gettext.h and define _().
23117         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23118         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23120 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23122         parse-datetime: overflow and debug cleanups
23123         This long patch was triggered by this bug report from Ruediger Meier:
23124         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23125         I fixed the bug he noted, then found some others nearby, and then
23126         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23127         up some of the code to follow GNU standards while I was at it.
23128         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23129         use c_isdigit.
23130         (EPOCH_YEAR): Remove; unused.
23131         (TM_YEAR_BASE): Now an enum rather than a macro.
23132         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23133         time zone offset, since timezones now are in terms of seconds and
23134         not minutes.
23135         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23136         appropriate.  Verify that intmax_t is wide enough.
23137         (time_overflow, time_zone_str): New functions, used to deal
23138         more reliably with overflow.
23139         (dbg_printf): Add printf attribute, to help catch integer width errors.
23140         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23141         (%union, to_hour, yylex, parse_datetime2):
23142         Use intmax_t instead of long int and/or long_time_t.
23143         All uses changed.
23144         (DBGBUFSIZE): Move earlier.
23145         (relative_time, set_hhmmss, parser_control):
23146         Just use int for nanoseconds and for time zones; that’s wide enough.
23147         (parser_control): Use bool for members like year_seen that can
23148         be booleans instead of counters.  All uses changed.
23149         Remove debug_default_input_timezone; no longer needed.
23150         All uses removed.
23151         (apply_relative_time): Return a bool overflow flag.
23152         All uses changed to check for overflow.
23153         (apply_relative_time, zone, date, relunit, relunit_snumber)
23154         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23155         Check for integer overflow portably.
23156         (str_days): Use just int for N, as it’s wide enough.
23157         Prefer 2D char arrays to arrays of char * when it looks like
23158         2D is a win on typical platforms.
23159         Prefer snprintf to strncpy/strncat, for simplicity;
23160         all buffers are smaller than INT_MAX so this is safe.
23161         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23162         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23163         as this is not true on x32.  Output "." before any nanoseconds.
23164         (debug_print_current_time, parse_datetime2):
23165         Output local zones using a more-consistent format.
23166         (debug_print_current_time, date, parse_datetime2):
23167         (main) [TEST]:
23168         Don’t assume time_t is the same width as long.
23169         (print_rel_part): New function, replacing ...
23170         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23171         (debug_print_relative_time): Use bool for boolean.
23172         (local_zone): dsts_seen now counts only tDST instances.
23173         (date): Fix printf of size_t to use %z.  Do not assume numeric
23174         tokens have negative values merely because the context suggests
23175         a syntax with "-" separating tokens.
23176         (time_zone_hhmm): Return bool success indicator, which checks for
23177         overflow.  Store result into PC->time_zone instead.  All callers
23178         changed.
23179         (tm_year_str): New function.  Return a bool success indicator and
23180         store the result into a buffer.  All callers changed.  Output the
23181         numerically correct string even if adding 1900 to the year would
23182         overflow.
23183         (to_tm_year): New function, replacing the old to_year.  All
23184         callers changed.
23185         (tm_diff): Sync with glibc.
23186         (lookup_word): Use to_uchar instead of doing it by hand.
23187         (TZBUFSIZE): Now local to the only function that needs it.
23188         (debug_strfdatetime): Simplify now that time zones are int seconds.
23189         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23190         (get_effective_timezone): Remove.  All uses removed.
23191         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23192         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23193         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23194         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23195         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23196         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23197         * modules/parse-datetime (Depends-on): Add inttypes.
23199 2017-04-21  Bruno Haible  <bruno@clisp.org>
23201         gettext-h: Avoid -Wundef warning.
23202         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23203         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23204         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23206 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23208         error: Avoid "function declaration isn't a prototype" warning.
23209         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
23211 2017-04-21  Bruno Haible  <bruno@clisp.org>
23213         vasnprintf: Fix for MSVC 14.
23214         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
23215         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
23216         of !HAVE_SNPRINTF_RETVAL_C99.
23218 2017-04-21  Bruno Haible  <bruno@clisp.org>
23220         mbrtowc tests: Fix test failures on MSVC 14.
23221         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
23222         behaviour for invalid input.
23224 2017-04-21  Bruno Haible  <bruno@clisp.org>
23226         mbsinit: Fix for MSVC 14.
23227         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
23228         implementation that is in sync with mbrtowc.c. On other platforms, use
23229         an adequate ad-hoc implementation.
23231 2017-04-21  Bruno Haible  <bruno@clisp.org>
23233         Fix test-mbrtowc5.sh failure on native Windows.
23234         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
23235         "C".
23237 2017-04-21  Bruno Haible  <bruno@clisp.org>
23239         Avoid accidental use of native Windows APIs on Cygwin.
23240         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
23241         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
23242         * lib/localename.c (WINDOWS_NATIVE): Likewise.
23244 2017-04-20  Bruno Haible  <bruno@clisp.org>
23246         Remove red warnings from the generated MODULES.html.
23247         * modules/fcntl (Description): Disambiguate function references.
23248         * modules/getcwd-lgpl (Description): Likewise.
23249         * modules/hostent (Description): Likewise.
23250         * modules/servent (Description): Likewise.
23251         * modules/tempname (Description): Likewise.
23253 2017-04-20  Bruno Haible  <bruno@clisp.org>
23255         verify tests: Fix spurious failure with parallel make.
23256         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23257         EXTRA_PROGRAMS.
23258         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23259         * tests/test-verify-try.c: New file.
23260         * modules/verify-tests (Files): Add it.
23261         (EXTRA_PROGRAMS): Add test-verify-try.
23262         (MOSTLYCLEANFILES): Update accordingly.
23263         Reported by Adam James Stewart <ajstewart@anl.gov>.
23265 2017-04-18  Bruno Haible  <bruno@clisp.org>
23267         vma-iter: Fix compilation error on Solaris 7.
23268         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23269         like on IRIX, OSF/1.
23270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23272 2017-04-18  Bruno Haible  <bruno@clisp.org>
23274         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23275         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23276         included.
23277         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23278         <sys/procfs.h>.
23279         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23280         <sys/procfs.h> cannot be included.
23281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23283 2017-04-18  Bruno Haible  <bruno@clisp.org>
23285         getopt-gnu: Add comments.
23286         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23287         * modules/getopt-gnu (configure.ac): Likewise.
23289 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23291         regex: port better to Solaris 10
23292         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23293         gettext, and this causes a double #define.
23294         Problem reported by Gavin Smith in:
23295         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23296         * lib/regex_internal.h (gettext): #undef before #defining.
23298 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23300         intprops: improve comments
23301         * lib/intprops.h: Improve and shorten commentary.
23302         For the record, if we ever run into a pedantic compiler that
23303         behaves differently from GCC when converting an out-of-range value
23304         to a signed integer, we can work around the problem with something
23305         like the following code, where UCT is the signed counterpart of T
23306         (UCT is sometimes narrower than UT) and all callers are changed
23307         accordingly:
23308         #if __SUNPRO_C <= 0x5120
23309         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23310            ((t) ((ut) (a) op (ut) (b)))
23311         #else
23312         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23313            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23314             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23315                + TYPE_MINIMUM (t)) \
23316             : (t) (uct) ((ut) (a) op (ut) (b)))
23317         #endif
23319 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23321         intprops: try to avoid tickling similar bugs
23322         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23323         needs to be the same width as T; it can be wider.
23324         Change callers so that UT is at least as wide as unsigned int,
23325         as I suspect that this is less likely to run into compiler bugs.
23327         intprops: port to Oracle Studio 12.3 x86
23328         Problem reported by Gavin Smith in:
23329         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23330         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23331         Convert unsigned to signed via the usual rather than the standard way,
23332         to avoid a compiler bug in Oracle Studio 12.3 x86.
23334 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23336         getopt: prefer - to _ in new file names
23337         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23338         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23339         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23340         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23341         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23342         All uses changed.
23344         getopt: port recent getopt changes to macOS
23345         Problem reported by Harald Maier (Bug#26398).
23346         The macOS C compiler uses __nonnull for its own purposes and that
23347         clashes with glibc's __nonnull.
23348         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23349         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23350         * lib/getopt_core.h (getopt):
23351         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23352         Use _GL_ARG_NONNULL, not __nonnull.
23353         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23354         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23355         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23356         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23358 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23360         getopt-gnu: omit some duplicate code
23361         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23362         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23363         gnulib-tool already does this.
23364         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23365         getopt-posix, which we depend on.
23367         getopt-posix: use angle-bracket include
23368         * lib/getopt1.c: Include <config.h>, not "config.h".
23370 2017-04-06  Zack Weinberg  <zackw@panix.com>
23372         getopt: annotate files with relationship to glibc
23374         As the final act in this patchset, adjust the message at the top of
23375         each file to indicate which files are synced with glibc.  (This has
23376         already been done for most of the headers.)
23378         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23379         Mention in top-of-file boilerplate that these files are shared
23380         between glibc and gnulib.
23383         getopt: split up getopt.in.h and eliminate __need_getopt
23385         Over in glibc, all of the __need macros are being phased out in favor
23386         of small headers that declare only the necessary components, as this
23387         is much simpler and less prone to bugs.  As getopt is shared with
23388         glibc, gnulib needs to do the same for __need_getopt.
23390         __need_getopt is misnamed; what it really means is "we want only the
23391         getopt features specified in POSIX, not the GNU extensions".  glibc
23392         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
23393         these files can be shared verbatim with gnulib.  The portability
23394         wrapper, on the other hand, they have renounced altogether; glibc's
23395         getopt.h will no longer be shared with gnulib at all.  In exchange,
23396         certain glibc-specific quirks (having to do with __posix_getopt) no
23397         longer need appear in gnulib's headers at all.
23399         This patch merges getopt_core.h and getopt_ext.h from glibc, and
23400         splits up the current gnulib-side portability wrapper into three
23401         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
23402         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
23403         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
23404         unistd.in.h just use them.  All new files are clearly marked with
23405         whether they are shared with glibc.
23407         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
23408         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
23409         with glibc, and ...
23410         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
23411         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
23412         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
23413         instead of defining __need_getopt and including the full getopt.h.
23415         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
23416         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
23417         * modules/getopt-posix (Files): Add new headers and sort list.
23418         (Depends-on): No longer need snippet/arg-nonnull.
23419         (Makefile.am): Generate getopt_cdefs.h.
23422         getopt: better handling of ambiguous options
23424         glibc's getopt uses alloca to construct a linked list of possibilities
23425         for an "ambiguous" long option.  In gnulib, malloc should be used
23426         instead.  Providing for both cases complicates things a fair bit.
23428         This patch rewrites ambiguous-option handling to use a boolean vector
23429         instead of a linked list.  There is then only one allocation that
23430         might need freeing; in glibc it can honor __libc_use_alloca as usual,
23431         and in gnulib we define __libc_use_alloca to always be false, so we
23432         don't need ifdefs in the middle of the function.  This should also be
23433         slightly more efficient in the normal case of long options being fully
23434         spelled out -- I think most people aren't even aware they _can_
23435         sometimes abbreviate long options.
23437         One interesting consequence is that the list of possibilities is now
23438         printed in exactly the order they appear in the list of long options,
23439         instead of the first possibility being shuffled to the end.
23441         (The patch looks bigger than it really is because there's a fair bit
23442         of reindentation and code rearrangement.)
23444         * lib/getopt.c: When used standalone, define __libc_use_alloca
23445         as always false and alloca to abort if called.
23446         (process_long_option): Rewrite handling of ambiguous long options
23447         to use a single boolean vector, not a linked list; use
23448         __libc_use_alloca to decide whether to allocate this using alloca.
23451         getopt: refactor long-option handling
23453         There were two copies of the bulk of the code to handle long options.
23454         Now there is only one.
23456         This change temporarily removes the logic to avoid using alloca when
23457         standalone; the next patch in the series will restore it.
23459         * lib/getopt.c (process_long_option): New function split out
23460         from _getopt_internal_r.
23461         (_getopt_internal_r): Replace both copies of the long-option
23462         processing code with calls to process_long_option.
23465         getopt: tidy up _getopt_initialize a bit
23467         _getopt_data.__posixly_correct is completely redundant to
23468         _getopt_data.__ordering, and some work that logically belongs in
23469         _getopt_initialize was being done by _getopt_internal_r, making the
23470         code harder to understand.
23472         As a side effect, getenv will no longer be called if the first
23473         character of the options string is '+' or '-', which is probably a
23474         Good Thing.  (Perhaps we should have a flag character that
23475         specifically asks for the permutation behavior?)
23477         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
23478         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
23479         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
23482         getopt: merge from glibc: repetition reduction
23484         The definitions of the entry point functions 'getopt' and
23485         '__posix_getopt' can be made substantially less repetitive with a
23486         helper macro.
23488         While I was merging the const-correctness changes from gnulib into
23489         glibc I noticed there are still some unnecessary casts in
23490         _getopt_internal_r.
23492         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
23493         a macro.  Consistently cast 'argv' to 'char **' when calling
23494         _getopt_internal.
23495         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
23498         getopt: clean up error reporting
23500         getopt can print a whole bunch of error messages, and when used
23501         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
23502         cancellation point and getopt isn't, and also applying fprintf to a
23503         stream in wide-character mode is not allowed.  So every single error
23504         reporting case has an #ifdef _LIBC block in which it calls internal
23505         libc functions instead.  The counterpart patch series in glibc makes
23506         it possible to simplify all of that down to a set of #defines at the
23507         top of the file; core code is written as if it is safe to just call
23508         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
23509         call any *other* stdio functions.)
23511         * lib/getopt.c: When _LIBC is defined, define fprintf to
23512         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
23513         to _IO_funlockfile.  When neither _LIBC nor
23514         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
23515         funlockfile as no-ops.
23516         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
23517         standalone error-printing code can now be used for libc as well.
23518         Add an flockfile/funlockfile pair around one case where the error
23519         message is printed in several chunks.  Don't use fputc.
23522         getopt: fix fencepost error in ambiguous-W-option handling
23524         getopt_long contains an undocumented (AFAICT) feature in which, if you
23525         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
23526         treated as equivalent to '--foo'.  This is implemented with a partial
23527         second copy of the code for handling long options, and that code
23528         increments optind one too many times when recovering from an ambiguous
23529         abbreviated option, which can cause the main loop to walk past the end
23530         of argv and crash.
23532         I discovered this while writing a test case that tries to exercise all
23533         of getopt's error reporting paths; I wouldn't be surprised to learn
23534         that this feature is never used by real applications.
23536         * lib/getopt.c (_getopt_internal_r): Don't increment
23537         d->optind a second time when reporting ambiguous -W options.
23540         getopt: clean up getopt.c and getopt1.c file headers
23542         In getopt.c, there is no need to include wchar.h at all, and it is
23543         safe nowadays to assume that stdlib.h does declare getenv (several
23544         other gnulib modules make this assumption).
23546         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
23547         by using "" inclusions consistently, and there is no actual need to
23548         include stdlib.h (except in the #ifdef TEST block, where it should be
23549         unconditional), nor to provide a backup definition of NULL at all.
23551         * lib/getopt1.c: Simplify #ifdeffage at top of file.
23552         Move inclusion of stdlib.h to #ifdef TEST block and make
23553         unconditional.  Do not define NULL.
23554         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
23555         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
23556         * modules/getopt-gnu, modules/getopt-posix: Don't call
23557         gl_PREREQ_GETENV.
23560         getopt: harmonize comments with glibc
23562         The comments explaining how the behavior of 'getopt' varies depending
23563         on whether it's the standalone version and whether there are special
23564         characters at the beginning of the options string were inconsistent
23565         between gnulib and glibc, and also out of sync with the code.
23567         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
23570         getopt: remove USE_NONOPTION_FLAGS
23572         getopt includes code to parse an environment variable named
23573         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
23574         in decimal); but all of it has been #ifdefed out since 2001, with no
23575         official way to turn it back on.
23577         According to commentary in glibc's config.h.in, bash version 2.0
23578         set this environment variable to indicate argv elements that were
23579         the result of glob expansion and therefore should not be treated
23580         as options, but the feature was "disabled later" because "it
23581         caused problems".  According to bash's CHANGES file, "later" was
23582         release 2.01; it gives no more detail about what the problems
23583         were.
23585         Version 2.0 of bash was released on the last day of 1996, and version
23586         2.01 in June of 1997.  Twenty years later, I think it is safe to
23587         assume that this environment variable isn't coming back.
23589         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
23590         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
23591         __libc_argc and __libc_argv externs, which were only used by
23592         #ifdef USE_NONOPTION_FLAGS blocks.
23595         getopt: tabify, in preparation for merge with glibc
23597         glibc sticks to the GNU default of indenting with a mix of
23598         8-column tabs and spaces; make the gnulib copy match.
23600         getopt.h is not included because it is *not* going to be merged in its
23601         present form.
23603         * getopt.c, getopt1.c, getopt_int.h: Tabify.
23605 2017-04-02  Bruno Haible  <bruno@clisp.org>
23607         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
23608         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
23609         like it was done in modules/relocatable-lib on 2011-05-21 and in
23610         modules/relocatable-prog on 2011-08-15.
23611         Reported by Reuben Thomas <rrt@sc3d.org>.
23613 2017-03-31  Bruno Haible  <bruno@clisp.org>
23615         glob: Fix invalid free() call.
23616         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
23617         static storage to home_dir.
23618         Reported by Coverity via Tim Rühsen.
23620 2017-03-31  Bruno Haible  <bruno@clisp.org>
23622         glob: Fix memory leaks.
23623         * lib/glob.c (glob): Free allocated memory before returning.
23624         Reported by Coverity via Tim Rühsen.
23626 2017-03-31  Bruno Haible  <bruno@clisp.org>
23628         md5, sha1, sha256, sha512: Add comments regarding correctness.
23629         * lib/md5.h (buflen): Add comments regarding range.
23630         * lib/sha1.h (buflen): Likewise.
23631         * lib/sha256.h (buflen): Likewise.
23632         * lib/sha512.h (buflen): Likewise.
23633         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
23634         * lib/sha1.c (sha1_process_bytes): Likewise.
23635         * lib/sha256.c (sha256_process_bytes): Likewise.
23636         * lib/sha512.c (sha512_process_bytes): Likewise.
23637         Reported by Coverity via Tim Rühsen.
23639 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
23641         getopt: merge from glibc
23642         This does not change anything substantial; it merely simplifies
23643         hypothetical merges back to glibc.
23644         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
23645         Change copyright notice to match what is in glibc.
23646         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
23647         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
23648         __open_memstream rather than open_memstream and __glibc_likely
23649         instead of __builtin_expect.
23650         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
23652 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
23654         dfa: make [0-9] faster in non-C locales
23655         Problem reported by John P. Linderman (Bug#26193).
23656         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
23657         If both ends of the range are ASCII digits, do not worry about
23658         multi-character collating sequences and the like.  Be consistent
23659         about using isalpha as a precondition for setbit_case_fold_c.
23661 2017-03-19  Bruno Haible  <bruno@clisp.org>
23663         lock: Fix compilation error with HP-UX IA64 cc.
23664         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
23665         weak on non-glibc platforms.
23667 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23669         stdalign: tweak version# and test for HP-UX IA64
23670         Problems reported by Bruno Haible in:
23671         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
23672         * lib/stdalign.in.h (_Alignas):
23673         * m4/stdalign.m4 (gl_STDALIGN_H):
23674         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
23675         used octal (as that is how they document it), but it is decimal in
23676         practice now and the ancient implementations no longer matter.
23677         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
23679 2017-03-19  Bruno Haible  <bruno@clisp.org>
23681         vma-iter: Add support for Solaris.
23682         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
23683         approach.
23684         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
23685         * lib/get-rusage-as.c: Update comment about Solaris.
23686         * lib/get-rusage-data.c: Likewise.
23688 2017-03-19  Bruno Haible  <bruno@clisp.org>
23690         vma-iter: Prefer HP-UX specific API on HP-UX.
23691         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
23692         * lib/vma-iter.h: Update.
23693         Just in case HP-UX ever implements mquery().
23695 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
23697         stdalign: restore previous behavior for HP-UX IA64
23698         See Bruno Haible's email in:
23699         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23700         which cites p 150 of a manual saying that 'aligned' works on Itanium.
23701         * lib/stdalign.in.h (_Alignas):
23702         Assume the '061200' applies to Itanium, not to PA-RISC.
23703         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
23705 2017-03-17  Bruno Haible  <bruno@clisp.org>
23707         stat-time, timespec: Support use of the header files in C++ mode.
23708         * lib/stat-time.h: Add "C" linkage declaration.
23709         * lib/timespec.h: Likewise.
23711 2017-03-17  Bruno Haible  <bruno@clisp.org>
23713         stdalign: Make it work with HP-UX cc.
23714         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
23715         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
23716         for HP-UX cc.
23718 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
23720         flexmember: try to detect HP-UX 11.31 cc bug
23721         Problem reported by Bruno Haible in:
23722         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23723         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23724         Attempt to detect bug in HP-UX 11.31 cc.
23726 2017-03-16  Bruno Haible  <bruno@clisp.org>
23728         stdint: Fix test compilation failure with HP-UX 11 cc.
23729         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
23730         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
23731         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
23732         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
23734 2017-03-14  Bruno Haible  <bruno@clisp.org>
23736         gnulib-tool: Don't produce a tests directory with only snippet .h files.
23737         * gnulib-tool (func_modules_transitive_closure_separately): If
23738         testsrelated_modules ends up with no "real" modules, aside from
23739         modules with applicability 'all', set it to empty.
23741 2017-03-14  Bruno Haible  <bruno@clisp.org>
23743         vma-iter: Add support for HP-UX.
23744         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
23745         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
23746         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
23747         * lib/get-rusage-as.c: Update comment about HP-UX.
23748         * lib/get-rusage-data.c: Likewise.
23749         (get_rusage_data): Use get_rusage_data_via_setrlimit.
23751 2017-03-14  Bruno Haible  <bruno@clisp.org>
23753         limits-h: Make it work with HP-UX cc.
23754         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
23755         defined.
23757 2017-03-14  Bruno Haible  <bruno@clisp.org>
23759         Fix test failures on DragonFlyBSD.
23760         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
23761         * tests/test-select.h (test_bad_fd): Likewise.
23762         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
23764 2017-03-14  Bruno Haible  <bruno@clisp.org>
23766         freadahead: Silence warning on DragonFlyBSD.
23767         * lib/freadahead.c (__sreadahead): Declare ourselves.
23769 2017-03-14  Bruno Haible  <bruno@clisp.org>
23771         vma-iter: Add comment about AIX.
23772         * lib/vma-iter.c: Add comment about why this module is not implemented
23773         on AIX.
23775 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23777         snippets: move unadjusted snippet sources to lib
23778         Problem reported by Michal Privoznik in:
23779         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
23780         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
23781         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
23782         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
23783         * lib/unused-parameter.h: Rename from
23784         build-aux/snippet/unused-parameter.h.
23785         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
23786         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
23787         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
23788         * modules/snippet/c++defs (Files:, CXXDEFS_H):
23789         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
23790         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
23791         Adjust to file renamings.
23793 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
23795         gnulib-tool: don't automatically distribute files from top/
23796         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
23797         not distribute top/README-release by default, don't distribute files
23798         from top/ unconditionally.
23799         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
23800         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
23802 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23804         gnulib-tool: fix typo in comment output
23805         * gnulib-tool (func_import): Fix typo with previous change.
23807         snippets: work around GNU Make 3.82 VPATH
23808         When using 'gnulib-tool --gnu-make' on Emacs, and building
23809         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
23810         an out-of-source (VPATH) build failed because the sans-copyright
23811         snippet file was not built before the file that used it.
23812         Presumably this is some sort of VPATH thing.  Work around the
23813         problem by using the original snippet, i.e., don’t bother to
23814         remove its copyright notice.
23815         * modules/snippet/_Noreturn, modules/snippet/link-warning:
23816         Don’t assume Automake in comments.  Omit long-incorrect comment.
23817         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
23818         (MOSTLYCLEANFILES):
23819         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
23820         (MOSTLYCLEANFILES):
23821         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
23822         (MOSTLYCLEANFILES):
23823         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
23824         (MOSTLYCLEANFILES):
23825         Remove.
23826         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
23827         * modules/snippet/c++defs (CXXDEFS_H):
23828         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
23829         * modules/snippet/warn-on-use (WARN_ON_USE_H):
23830         Don’t bother to remove the copyright notice; just use the
23831         original snippet as-is.
23833 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
23835         gnulib-tool: minor --gnu-make fixups
23836         * gnulib-tool (func_emit_lib_Makefile_am):
23837         Remove useless code that was a blind alley during implementation.
23838         Problem reported by Thien-Thi Nguyen in:
23839         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
23840         (func_import): Note the "--gnu-make" option in the output comment.
23842 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
23844         gnulib-tool: new option --gnu-make
23845         This is for applications like GNU Emacs that use GNU Make
23846         features instead of Automake.
23847         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
23848         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
23849         Do not assume Automake.
23850         * gnulib-tool (func_determine_path_separator)
23851         (func_modules_transitive_closure, func_update_file)
23852         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
23853         (func_import): Add support for --gnu-make.
23855 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23857         gnulib-common.m4: avoid aclocal.m4 bloat
23858         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
23859         Hide AM_PROG_AR from aclocal, so that aclocal does not
23860         install irrelevant macro definitions into aclocal.m4.
23862 2017-03-10  Bruno Haible  <bruno@clisp.org>
23864         vma-iter: Let callers know about error.
23865         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
23866         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
23868 2017-03-05  Bruno Haible  <bruno@clisp.org>
23870         Fix value of LD for 64-bit compilers on AIX.
23871         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
23872         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
23874 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
23876         dtotimespec: simplify
23877         * lib/dtotimespec.c (dtotimespec): Simplify.
23879 2017-03-04  Bruno Haible  <bruno@clisp.org>
23881         test-calloc-gnu: Reenable test also for GCC 7.
23882         * tests/test-calloc-gnu.c (eight): New function.
23883         (main): Don't skip test; use eight() instead.
23885 2017-03-04  Jim Meyering  <meyering@fb.com>
23887         test-calloc-gnu: port to GCC7
23888         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
23889         that attempts to calloc more than SIZE_MAX bytes, because GCC7
23890         and newer would detect that at compilation time.
23892 2017-03-04  Bruno Haible  <bruno@clisp.org>
23894         tests: Avoid compiler warning about uses of null_ptr.
23895         * tests/null-ptr.h: New file.
23896         * tests/test-canonicalize.c: Include null-ptr.h.
23897         (null_ptr): Remove function.
23898         * tests/test-canonicalize-lgpl.c: Likewise.
23899         * tests/test-memmem.c: Likewise.
23900         * tests/test-ptsname_r.c: Likewise.
23901         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
23902         * modules/canonicalize-lgpl-tests: Likewise.
23903         * modules/memmem-tests: Likewise.
23904         * modules/ptsname_r-tests: Likewise.
23905         Reported by Jim Meyering.
23907 2017-03-03  Bruno Haible  <bruno@clisp.org>
23909         doc: Mention Mac OS X deficiencies regarding semaphores.
23910         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
23911         * doc/posix-functions/sem_destroy.texi: Likewise.
23912         * doc/posix-functions/sem_getvalue.texi: Likewise.
23914 2017-03-03  Bruno Haible  <bruno@clisp.org>
23916         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
23917         Reported by Assaf Gordon <assafgordon@gmail.com> via
23918         Pádraig Brady <P@draigBrady.com>.
23919         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
23920         semaphores.
23921         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
23922         (atomic_int_semaphore): New macro.
23924 2017-02-28  Bruno Haible  <bruno@clisp.org>
23926         perror tests: Tweak for z/OS.
23927         Reported by Daniel Richard G. <skunk@iskunk.org>.
23928         * tests/test-perror.sh: Don't fail z/OS style perror output.
23930 2017-02-26  Bruno Haible  <bruno@clisp.org>
23932         nproc: Refactor large function.
23933         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
23934         from num_processors.
23935         (num_processors): In this function, only deal with OMP.
23937 2017-02-26  Pádraig Brady  <P@draigBrady.com>
23939         nproc: adjust handling of OpenMP environment variables
23940         to match the return value from omp_get_num_threads(), i.e.:
23941          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
23942          - Treat 0 as an invalid value and ignore
23943         Also remove the call to omp_get_num_threads() because
23944         it's ineffective without the omp pragmas in place.
23945         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
23946         so that it can be ignored.
23947         (num_processors): Honor OMP_THREAD_LIMIT even without
23948         OMP_NUM_THREADS being set.  Also fix a typo in the environment
23949         variable being checked, from the previous recent commit.
23951 2017-02-26  Pádraig Brady  <P@draigBrady.com>
23953         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
23954         * lib/nproc.c (parse_omp_threads): A new function refactored
23955         from num_processors() to support parsing both of the
23956         above environment variables.
23957         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
23958         to accurately reflect the current OpenMP nesting level.
23959         Also support the OMP_THREAD_LIMIT environment variable
23960         to limit the max value determined from OMP_NUM_THREADS.
23961         * modules/nproc: Depend on minmax header.
23962         Suggested by Oliver Heimlich.
23964 2017-02-25  Bruno Haible  <bruno@clisp.org>
23966         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
23967         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
23969 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23971         ftoastr: port to -Wdouble-promotion
23972         Work around -Wdouble-promotion false alarm in recent GCCs.
23973         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
23974         (ftoastr_snprintf, FTOASTR): Use it.
23976 2017-02-21  Bruno Haible  <bruno@clisp.org>
23978         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
23979         Reported by Rene Saavedra <rennes@openmailbox.org> in
23980         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
23981         * lib/glthread/lock.h: On glibc systems without
23982         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
23983         implementation of rwlocks.
23984         * lib/glthread/lock.c: Likewise.
23986 2017-02-20  Bruno Haible  <bruno@clisp.org>
23988         lock tests: Fix build failure on z/OS.
23989         Reported by Daniel Richard G. <skunk@iskunk.org>.
23990         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
23991         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
23992         exist.
23994 2017-02-19  Bruno Haible  <bruno@clisp.org>
23996         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
23997         This helps when CC=clang.
23998         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
23999         of /usr/bin/gcc.
24001         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24002         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24004 2017-02-19  Bruno Haible  <bruno@clisp.org>
24006         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24007         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24008         --with-tests --single-configure is specified.
24010 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24012         users.txt: Update links, use HTTPS where possible
24013         * users.txt: Updated to HTTPS where possible,
24014         fixed some links to new locations.
24016 2017-02-16  Bruno Haible  <bruno@clisp.org>
24018         xbinary-io: Fix inlining.
24019         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24021 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24023         xbinary-io: rename from xsetmode
24024         This patch is taken from suggestions by Bruno Haible in:
24025         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24026         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24027         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24028         not ENOTTY, when it is an inappropriate device.
24029         * lib/binary-io.h (SET_BINARY): Resurrect.
24030         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24031         (xset_binary_mode_error): Rename from xsetmode_error.
24032         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24033         (xset_binary_mode): Rename from xsetmode.
24034         All uses changed.
24035         * modules/xbinary-io: Rename from modules/xsetmode.
24036         Update file names.
24037         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24038         * NEWS: Update to match revised behavior.
24040 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24042         tests: Adjust to recent SET_BINARY change
24043         * tests/test-binary-io.c (main):
24044         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24045         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24046         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24047         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24049         xsetmode: new module
24050         This is to fix a problem noted by Eric Blake.
24051         Code was using xfreopen to change files to binary mode, but this
24052         fails for stdout when in append mode.  Such code should use
24053         xsetmode instead.
24054         * NEWS: Document incompatible changes to binary-io module.
24055         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24056         New function.
24057         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24058         (set_binary_mode): New function, which also checks for tty.
24059         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24061 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24063         headers: fix begin-end typos
24064         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24065         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24067         selinux-h: port to PGI 16.10
24068         * lib/se-selinux.in.h: Don't assume that include_next skips over
24069         duplicate -I DIR options.
24071         argp: port to PGI 16.10
24072         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24074 2017-02-13  Darshit Shah  <darnir@gnu.org>
24076         unicase: Update function protoype to match definition.
24077         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24078         uses 'size_t' as the datatype for the 'len' parameter in the functions
24079         it generates. Update the prototype specified here to match the newly
24080         generated function.
24082 2017-02-12  Bruno Haible  <bruno@clisp.org>
24084         times test: Avoid gcc warnings on Linux/x32.
24085         * tests/test-times.c (main): Really cast printf arguments from clock_t
24086         to 'long int'.
24088 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24090         glob: port better to emscripten
24091         Problem reported by Bruno Haible in:
24092         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24093         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24095 2017-02-11  Bruno Haible  <bruno@clisp.org>
24097         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24098         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24099         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24100         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24101         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24102         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24103         Distinguish hppa64 from hppa.
24105 2017-02-10  Bruno Haible  <bruno@clisp.org>
24107         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24108         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24109         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24110         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24112 2017-02-09  Bruno Haible  <bruno@clisp.org>
24114         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24115         * doc/gnulib.texi (Libtool and Windows): Recommend
24116         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24117         Reported by Reuben Thomas <rrt@sc3d.org>.
24119 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24121         stddef-tests: port to SIZE_MAX <= INT_MAX
24122         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24123         Do not assume that INT_MAX < SIZE_MAX.
24125 2017-02-01  Bruno Haible  <bruno@clisp.org>
24127         lock tests: Fix link error.
24128         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24131 2017-01-31  Bruno Haible  <bruno@clisp.org>
24133         lock: Fix link error (regression from 2017-01-05).
24134         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24135         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24136         pthread_rwlockattr_destroy weak.
24137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24139 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24141         Port to PGI 16.10 x86-64
24142         This patch fixes one real bug in gl_anylinked_list2.h, along with
24143         some minor glitches that are not bugs.  It does not silence PGI’s
24144         thousands of bogus warnings when compiling test-intprops.c.
24145         Fortunately, the warnings do not cause a failure.
24146         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24147         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24148         My goodness, PGI goes back a long ways - this predates C89!
24149         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24150         For example, ASYNCSAFE (const void *) should expand to
24151         ‘const void *volatile’, not to ‘volatile const void *’.
24152         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24153         * lib/verify.h (verify) [!__GNUC__]:
24154         Use shorter albeit meaningless string to bypass silly compiler limits.
24155         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24156         * tests/nan.h (NaNf, NaNd, NaNl):
24157         Use static functions to avoid misguided compiler diagnostics.
24158         Is there some reason we don’t use static functions on all platforms?
24160 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24162         parse-datetime: handle timezones reentrantly
24163         This API change was prompted by a report by Pádraig Brady in:
24164         https://bug.debian.org/851934#10
24165         To help fix the bug, make parse_datetime2 more reentrant.
24166         * NEWS: Document this incompatible change.
24167         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24168         Add two arguments, the timezone and the timezone name.
24169         All callers changed.  If TZ="..." is specified, use it for
24170         calculating defaults.
24171         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24172         this code should be usable in a library.
24173         (mktime_ok, get_effective_timezone):
24174         Accept timezone arg too.  All callers changed.
24175         (get_tz): Remove.
24176         (get_effective_timezone): Check for failures.
24178 2017-01-20  Eric Blake  <eblake@redhat.com>
24180         localename: port to cygwin 2.6
24181         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24182         Cygwin.
24183         * modules/localename (Depends-on): Add extensions, since
24184         NL_LOCALE_NAME() is not visible without it.
24186 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24188         parse-datetime: fix dependence on AC_PROG_SED
24189         * modules/parse-datetime: Use `sed` directly like all other modules.
24190         Reported by J William Piggott
24192 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24194         intprops: update doc URLs
24195         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24197 2017-01-16  Bruno Haible  <bruno@clisp.org>
24199         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24200         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24201         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24202         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24203         distinguish s390 and s390x.
24204         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24205         * NEWS: Mention the change regarding 'armel'.
24207 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24209         localeinfo: case_folded_counterparts and WEOF
24210         * NEWS: Document this.
24211         * lib/localeinfo.c (case_folded_counterparts):
24212         First arg is now wint_t, not wchar_t.  This generalizes the
24213         function to also work on WEOF, where it returns 0.
24215         dfa: port to gcc -fsanitize=undefined
24216         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
24217         as this runs afoul of gcc -fsanitize=undefined.
24219 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
24221         strftime: %z is -00 if unknown
24222         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
24223         the caller's responsibility to set 'negative_number'.  All uses changed.
24224         (__strftime_internal): Put '-' before a zero UTC offset if the time
24225         zone abbreviation starts with "-", which is the recently-introduced
24226         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
24227         * tests/test-strftime.c: Test for this.
24229 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24231         dfa: port to older GCC
24232         Problem reported by Assaf Gordon in:
24233         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
24234         * modules/c99: New module.  This merely attempts to use the latest
24235         C version, which should be enough to solve this particular problem.
24236         The idea is to document which Gnulib modules assume C99 or later.
24237         * modules/dfa (Depends-on): Add it.
24239 2017-01-10  Bruno Haible  <bruno@clisp.org>
24241         Update DEPENDENCIES.
24242         * DEPENDENCIES: List only https URLs. Update recommended version for
24243         autoconf, automake, gperf.
24245 2017-01-10  Jim Meyering  <meyering@fb.com>
24247         maint.mk: enforce spelling of "timestamp" (i.e., no space)
24248         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24249         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24251 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24253         dfa: minor simplification with emptyset
24254         * lib/dfa.c (build_state): Simplify by using emptyset.
24256 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24258         dfa: shrink constraints from 4 bits to 3
24259         * lib/dfa.c (newline_constraint, letter_constraint)
24260         (other_constraint, prev_newline_dependent)
24261         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24262         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24263         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24264         Constraints need only 3 bits, not 4.  Using smaller integers
24265         shrinks the code a bit and makes grep a tad faster on x86-64.
24267         dfa: omit unnecessary ptrdiff_t check
24268         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24269         overflow, since xnmalloc does that now.
24271         dfa: omit unnecessary allocation
24272         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24273         an all-zero follow set works just fine.
24275         dfa: omit unused local
24276         * lib/dfa.c (build_state): Fix up recent change.
24278         maint: remove stray .texi files
24279         Although these were superseded by other files like
24280         doc/posix-functions/ctime.texi, the old files were not removed.
24281         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24283 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24285         getprogname: fix port to IRIX
24286         * lib/getprogname.c (getprogname) [__sgi]:
24287         Don't dump core if malloc returns NULL.
24289         dfa: fix reallocation bug when matching newlines
24290         Problem reported for sed by S. Gilles (Bug#25390).
24291         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24292         (dfastate): Reallocate before moving any newline transition ...
24293         (build_state): ... instead of reallocating here, where it is too late.
24295 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24297         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24298         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24300 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24302         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24303         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24305 2017-01-07  Bruno Haible  <bruno@clisp.org>
24307         stdioext: Port to Minix 3.2 and newer.
24308         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24309         * lib/fseeko.c (fseeko): Likewise.
24310         Reported by Nelson Beebe via Paul Eggert.
24312 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24314         getprogname: port to IRIX
24315         * lib/getprogname.c (getprogname): Port to IRIX.
24316         Based on an idea by Bastien Roucariès at:
24317         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24318         via code from Bruno Haible at:
24319         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24321         localename-tests: port to NetBSD 7
24322         Problem reported by Nelson H. F. Beebe.
24323         * tests/test-localename.c:
24324         Test newlocale and uselocale only if both exist.
24326         glob, intprops, xalloc: work around Clang bug
24327         Work around LLVM bug 16404, which is still not fixed.
24328         https://llvm.org/bugs/show_bug.cgi?id=16404
24329         Problem reported by Nelson H. F. Beebe.
24330         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24331         Remove.
24332         * lib/glob.c (size_add_wrapv):
24333         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24334         * lib/xalloc-oversized.h (xalloc_oversized):
24335         Do not use overflow builtins if Clang.
24337         dfa: fix 'return' typo
24338         Problem reported by Nelson H. F. Beebe.
24339         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24341 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24343         parse-datetime: fix generated paths for coverage files
24344         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24345         within parse-datetime.c, so that gcc generates appropriate .gcno
24346         files, allowing lcov to proceed without error.  Previously it
24347         would error trying to find "lib/lib/parse-datetime.y".
24349 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24351         maint.mk: support parallel execution of coverage
24352         * top/maint.mk (coverage): Run dependencies serially,
24353         thus supporting parallel processing of each one,
24354         particularly build-coverage, which builds and runs tests.
24356 2017-01-05  Bruno Haible  <bruno@clisp.org>
24358         lock tests: Prefer semaphore over mutex.
24359         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24360         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24361         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24362         Suggested by Torvald Riegel <triegel@redhat.com>.
24364 2017-01-05  Bruno Haible  <bruno@clisp.org>
24366         lock: Provide guarantee to avoid writer starvation for rwlocks.
24367         The rationale is: 1) Read-preferring read-write locks are prone to
24368         writer starvation if the number of reader threads multiplied by the
24369         percentage of time they have the lock held is too high. 2) Write-
24370         preferring read-write locks are the only reliable way to avoid this.
24371         3) There have been reports of 'test-lock' hanging on glibc systems
24372         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24373         and glibc indeed implements read-preferring rwlocks by default, see
24374         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24375         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24376         * m4/pthread_rwlock_rdlock.m4: New file.
24377         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24378         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24379         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24380         of rwlock initialization on glibc systems without
24381         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24382         of rwlocks altogether on non-glibc systems without
24383         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24384         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
24385         * lib/glthread/lock.c [USE_POSIX_THREADS]
24386         (glthread_rwlock_init_for_glibc): New function.
24387         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
24388         comment.
24389         [USE_PTH_THREADS]: New implementation of rwlocks.
24390         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
24391         readers.
24392         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
24393         (Depends-on): Add 'extensions'.
24394         * tests/test-rwlock1.c: New file.
24395         * lock-tests (Files): Add it.
24396         (Depends-on): Add usleep.
24397         (Makefile.am): Add test-rwlock1 to the tests.
24399 2017-01-05  Bruno Haible  <bruno@clisp.org>
24401         thread: Fix pth port.
24402         * lib/glthread/thread.h (pth_init): Declare weak.
24403         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
24404         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
24405         function.
24407 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
24409         parse-datetime: fix debug message on lone year number
24410         Input dates such as
24411           date -d "Apr 11 22:59:00 2011"
24412         are parsed as date (Apr 11, with default year 2016), then time, then a
24413         number (2011). Based on the combination of previously seen tokens,
24414         'digits_to_date_time' determines 2011 to be a year value.
24415         This fixes the debug messages to correctly show the updated year.
24416         Before:
24417             $ date --debug -d 'Apr 11 22:59:00 2011'
24418             date: parsed date part: (Y-M-D) 2016-04-11
24419             date: parsed time part: 22:59:00
24420             date: parsed number part: today/this/now
24421         After:
24422             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
24423             date: parsed date part: (Y-M-D) 2016-04-11
24424             date: parsed time part: 22:59:00
24425             date: parsed number part: year: 2011
24426         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
24427         'debug_year_seen' member fields.
24428         (digits_to_date_time): Update 'year_seen' as needed.
24429         (debug_print_current_time): Inform about year updates.
24430         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
24432         parse-datetime: fix local timezone debug messages
24433         "Local timezones" are strings that affect only DST relative to the
24434         default timezone. The debug messages in parse-datetime.y printed
24435         wrong information when encountering local timezones.
24436         Examples:
24437         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
24438              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
24439              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
24440         When the default timezone relates to the zone strings, EET/EEST are
24441         parsed as local timezones (tLOCAL_ZONE), and only change the DST
24442         value (0/1, respectively):
24443              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
24444              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
24445         * lib/parse-datetime.y (debug_print_current_time): If local timezone
24446         was seen, inform about DST change, don't print actual timezone.
24447         (debug_strfdatetime): If local timezone was seen, use default timezone
24448         (and adjust as needed) instead of using incorrect timezone.
24449         (parse_datetime2): Use correct time-zone source string, and adjust
24450         default timezone as needed.
24452         parse-datetime: add debug warning about DST changes
24453         Incorrect date arithmetic due to daylight saving time (DST) are a
24454         common (false) bug report in coreutils.
24455         Detect two such cases and print a warning:
24456         1. year/month/day adjustments (performed on 'struct tm'),
24457            where 'mktime' returns a different isdst value.
24458         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
24459            where the result of 'localtime(3)' on the value will return a
24460            different isdst value.
24461         Note: DST changes could be harmless or unnoticeable.
24462         Examples (with 'TZ=America/New_York'):
24463         Unnoticeable: result is 2016-Dec-14
24464            $ date -d '2016-06-15 EDT + 6 months' +%b
24465            Dec
24466         Unnoticeable: result is 2016-Dec-15 11:00:00
24467            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
24468            2016-12-15
24469         This is unexpected:
24470            $ date -d '2016-06-01 EDT + 6 months' +%F
24471            2016-11-30
24472         The new debug warnings will show:
24473            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
24474            ...
24475            date: warning: daylight saving time changed after date adjustment
24476            ...
24477         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
24478         print an appropriate warning message.
24480         parse-datetime: add debug warning about date arithmetic
24481         Date arithmetic are done directly on the fields of 'struct tm',
24482         which can result in invalid dates. Normalization with 'mktime(3)'
24483         will then produce a different date - which might cause unexpected
24484         results.
24485         Examples:
24486           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
24487           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
24488         Note that date normalization is not inherently wrong and not rejected,
24489         as it has legitimate uses:
24490           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
24491         If the user asked to adjust months but 'mday' changed,
24492         or user asked to adjust years but 'month' changed - warn about it.
24493             $ ./src/date --debug -d '2016-10-31 - 1 month'
24494             ...
24495             date: warning: when adding relative months/years, \
24496                            it is recommended to specify the 15th of the month
24497             ...
24498             date: warning: month/year adjustment resulted in shifted dates:
24499             date:      adjusted Y M D: 2016 09 31
24500             date:    normalized Y M D: 2010 10 01
24501             ...
24502         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
24503         a warning message. Improve recommendation of when to use 15 of the
24504         month or noon for date arithmetic.
24506         parse-datetime: fix debug message of relative part after timezone
24507         Relative part (e.g '+8 days') after a timezone string was not
24508         reported (was only reported after a timezone number). Due to the
24509         parser's structure, timezone strings with numbers were handled
24510         separately.
24511         before:
24512              # Timezone number + relative part: OK
24513              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
24514              ...
24515              date: parsed relative part: -8 day(s)
24516              # Timezone string + relative part: missing
24517              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
24518              [ missing message ]
24519         After: messages are printed in both cases.
24520         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
24522         parse-datetime: fix incorrect debug message on lone number
24523         A lone number is an absolute value, not a relative time part.
24524         before:
24525            $ date --debug -d '20130101'
24526            date: parsed number part: today/this/now
24527         After:
24528            $ ./src/date --debug -d '20130101'
24529            date: parsed number part: (Y-M-D) 2013-01-01
24530         * lib/parse-datetime.y ('item'/'number' tokens): Call
24531         'debug_print_current_time' instead of 'debug_print_relative_time'.
24533 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24535         doc: modernize for C11 etc.
24536         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
24537         for C11, MinGW, etc.  This responds to Paul Smith's question in:
24538         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
24540         dfa: prefer functions to FETCH_WC macro
24541         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
24542         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
24543         wint_t result into DFA->lex.wctok instead of to a separate arg.
24544         All callers changed.  Move more local decls closer to where
24545         they're used.
24547         dfa: narrow more local var scopes
24548         * lib/dfa.c: Move more local decls to be more local.
24550         dfa: remove duplicate assignment
24551         Problem reported by Bruno Haible in:
24552         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
24553         * lib/dfa.c (parse_bracket_exp): Simplify.
24555 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24557         dfa: simplify constraint-dependency checking
24558         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
24559         (prev_other_constraint): Remove.
24560         (prev_newline_dependent, prev_letter_dependent):
24561         Simplify, to avoid an unnecessary bitwise AND operation.
24563         dfa: prefer functions and constants to macros
24564         * lib/dfa.c: Prefer constants to macros where either will do.
24565         (streq, isasciidigit, newline_constraint)
24566         (letter_constraint, other_constraint, succeeds_in_context)
24567         (prev_newline_constraint, prev_letter_constraint)
24568         (prev_other_constraint, prev_newline_dependent)
24569         (prev_letter_dependent, accepting, accepts_in_context):
24570         Now static functions instead of function-like macros.
24571         Use lower-case names accordingly.  All uses changed.
24573         dfa: narrow more local var scopes
24574         * lib/dfa.c: Move some more local decls down to nearer where
24575         they're needed.
24577 2016-12-31  Jim Meyering  <meyering@fb.com>
24579         dfa: narrow the scope of many local variables
24580         * lib/dfa.c: Now that we are no longer constrained to c89, move
24581         declarations of many variables (often indices) "down" into the
24582         scope(s) where used or to the point of definition.  This is a
24583         no-semantic-change diff.
24585 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24587         version-etc: new year
24588         * build-aux/gendocs.sh (version):
24589         * doc/gendocs_template:
24590         * doc/gendocs_template_min:
24591         * doc/gnulib.texi:
24592         * lib/version-etc.c (COPYRIGHT_YEAR):
24593         Update copyright dates by hand in templates and the like.
24594         * all files: Run 'make update-copyright'.
24596 2016-12-31  Eric Blake  <eblake@redhat.com>
24598         do-release-commit-and-tag: avoid shell syntax error
24599         * build-aux/do-release-commit-and-tag (curr_br): $branch can
24600         contain spaces when rebasing.
24602         maint.mk: hoist gnulib_dir definition earlier
24603         * top/maint.mk (gnulib_dir): Move near top of file.
24605 2016-12-31  Jim Meyering  <meyering@fb.com>
24607         maint.mk: do not always evaluate intprops-related shell
24608         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
24609         using gnulib_dir undefined (gnulib_dir is defined later in the
24610         file, which will be fixed separately), and besides, there is no
24611         need to incur the cost of this shell invocation for every single
24612         use of this .mk file.  Reported by Eric Blake in
24613         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
24615 2016-12-30  Jim Meyering  <meyering@fb.com>
24617         maint.mk: improve sc_prohibit_intprops_without_use
24618         * top/maint.mk (_intprops_names): Don't hard-code the list of
24619         symbol names.  Instead, derive it on the fly.
24621 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
24623         dfa: shorten sbit, success
24624         * lib/dfa.c (struct regex_syntax.sbit):
24625         (struct dfa.success): Use char, not int, for array elements, since
24626         they are all in the range 0..7.
24628         dfa: simplify multibyte_prop etc.
24629         This follows up on a change made when dfa.c was in grep, namely grep
24630         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
24631         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
24632         That earlier simplification allows for some more simplification
24633         and trimming down here.
24634         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
24635         (struct lexer_state): New mamber brack.
24636         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
24637         since they must be in the range 0..3 now.
24638         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
24639         the brack member now supersedes them.
24640         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
24641         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
24642         (dfaparse): Remove unnecessary initializations of already-0 storage.
24643         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
24644         (dfassbuild): No need to clear sup->mbcsets.
24646         dfa: minor performance tweak
24647         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
24649         dfa: wrap charclass inside a struct
24650         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
24651         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
24652         about 5% faster, where list.txt is generated by 'aspell dump
24653         master | head -n 100000 >list.txt'.  See Bug#22239.
24654         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
24655         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
24656         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
24657         Adjust to this, e.g., by using charclass * rather than charclass.
24658         All callers changed as needed.
24659         (copyset): Remove.  All uses changed to simple assignment.
24660         (parse_bracket_exp): Use zeroset instead of memset.
24662 2016-12-30  Jim Meyering  <meyering@fb.com>
24664         maint.mk: update list of intprops.h symbol names
24665         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
24666         This avoids a false failure of the sc_prohibit_intprops_without_use
24667         rule in grep.
24669 2016-12-29  Eric Blake  <eblake@redhat.com>
24671         getopt: fix parallel test failure
24672         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
24673         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
24674         * tests/test-getopt-main.h (main): Use different file names
24675         in case test-getopt-gnu and test-getopt-posix run in parallel.
24677 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24679         xalloc: x2nrealloc check for ptrdiff_t overflow
24680         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
24681         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
24683 2016-12-24  Bruno Haible  <bruno@clisp.org>
24685         lock test: Fix performance problem on multi-core machines.
24686         * tests/test-lock.c (USE_VOLATILE): New macro.
24687         (struct atomic_int): New type.
24688         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
24689         functions.
24690         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
24691         as 'struct atomic_int'.
24692         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
24693         reclock_checker_thread, test_recursive_lock): Use the new functions.
24694         Reported by Eric Blake in
24695         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
24696         and by Pádraig Brady in
24697         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
24699 2016-12-19  Bruno Haible  <bruno@clisp.org>
24701         vma-iter: Fix endless loop on 64-bit Windows.
24702         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
24703         'unsigned long'.
24705 2016-12-19  Bruno Haible  <bruno@clisp.org>
24707         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
24708         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
24709         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
24710         Invoke gt_TYPE_WINT_T instead.
24711         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
24712         * modules/stdint (Files): Add m4/wint_t.m4.
24713         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24714         * modules/wctype-h (Makefile.am): Likewise.
24715         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
24716         not only on MSVC.
24717         * lib/wctype.in.h (wint_t): Likewise.
24719 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24721         getopt-posix-tests: fix Makefile typo
24722         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
24723         Fix typo: the last ‘_’ was missing in the name.
24724         I suspect that the typo explains this build failure:
24725         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
24726         although I can’t reproduce the problem on Solaris 10 sparc.
24728 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24730         dfa: improve worst-case 'replace' performance
24731         See my note in Bug#22357#71.
24732         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
24733         (merge_constrained): New function, which is like
24734         the old 'merge' function, except with a new argument C2.
24735         Simplify the body by avoiding the need for different sections
24736         of code depending on whether one input is exhausted.
24737         (merge): Use the new function.
24738         (delete): Return the constraint of the deleted position,
24739         not the entire position.  Caller changed.
24740         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
24742 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24744         dfa: performance improvement for removal of epsilon closure
24745         See Bug#22357#32.
24746         * lib/dfa.c (delete): Use binary search to find deleted index.
24747         (replace): New function.  It replaces a position with the followed set.
24748         (epsclosure): Replace it with a new algorithm.  Update caller.
24750 2016-12-18  Bruno Haible  <bruno@clisp.org>
24752         Split tests for getopt-posix and getopt-gnu.
24753         * tests/test-getopt-posix.c: New file.
24754         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
24755         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
24756         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
24757         GNULIB_TEST_GETOPT_GNU.
24758         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
24759         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
24760         (Makefile.am): Test test-getopt-posix instead of test-getopt.
24761         * modules/getopt-gnu-tests: New file.
24762         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
24764 2016-12-18  Bruno Haible  <bruno@clisp.org>
24766         posix-modules: Add options for specific platforms.
24767         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
24768         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
24769         Invoke func_tmpdir. Filter out the excludes.
24771 2016-12-18  Bruno Haible  <bruno@clisp.org>
24773         getopt: Fix link error for users of getopt() in <unistd.h>.
24774         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
24775         __need_getopt is defined. Undefine all macros before defining them.
24776         * modules/getopt (Include): Clarify that including <unistd.h> is also
24777         OK.
24778         * tests/test-getopt.c: Add comment.
24780 2016-12-17  Bruno Haible  <bruno@clisp.org>
24782         getaddrinfo tests: Avoid compilation error on MSVC.
24783         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
24784         getaddrinfo on native Windows.
24786 2016-12-17  Bruno Haible  <bruno@clisp.org>
24788         getlogin, getlogin_r: Fix link errors on MSVC.
24789         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
24790         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
24791         (Link): New section.
24792         * modules/getlogin_r (Files): Add m4/getlogin.m4.
24793         (configure.ac): Require gl_LIB_GETLOGIN.
24794         (Link): New section.
24795         * NEWS: Mention the new link requirements.
24796         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
24797         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
24799 2016-12-17  Bruno Haible  <bruno@clisp.org>
24801         Un-deprecate the 'progname' module.
24802         * NEWS: Describe the appropriate use-cases of 'progname' versus
24803         'getprogname'. Based on discussion summary at
24804         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
24806 2016-12-17  Bruno Haible  <bruno@clisp.org>
24808         Reorganize NEWS a bit.
24809         * NEWS: Move some not so important changes away from section
24810         "Important Notes".
24812 2016-12-17  Bruno Haible  <bruno@clisp.org>
24814         tanhf: Avoid redefinition error on MSVC.
24815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
24816         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
24817         may be defined as an inline function.
24818         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
24819         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
24821 2016-12-17  Bruno Haible  <bruno@clisp.org>
24823         tanf: Avoid redefinition error on MSVC.
24824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
24825         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
24826         may be defined as an inline function.
24827         * modules/math (Makefile.am): Substitute REPLACE_TANF.
24828         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
24830 2016-12-17  Bruno Haible  <bruno@clisp.org>
24832         sqrtf: Avoid redefinition error on MSVC.
24833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
24834         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
24835         may be defined as an inline function.
24836         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
24837         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
24839 2016-12-17  Bruno Haible  <bruno@clisp.org>
24841         sinhf: Avoid redefinition error on MSVC.
24842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
24843         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
24844         may be defined as an inline function.
24845         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
24846         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
24848 2016-12-17  Bruno Haible  <bruno@clisp.org>
24850         sinf: Avoid redefinition error on MSVC.
24851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
24852         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
24853         may be defined as an inline function.
24854         * modules/math (Makefile.am): Substitute REPLACE_SINF.
24855         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
24857 2016-12-17  Bruno Haible  <bruno@clisp.org>
24859         logf: Avoid redefinition error on MSVC.
24860         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
24861         may be defined as an inline function.
24863 2016-12-17  Bruno Haible  <bruno@clisp.org>
24865         log10l: Avoid redefinition error on MSVC.
24866         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
24867         may be defined as an inline function.
24869 2016-12-17  Bruno Haible  <bruno@clisp.org>
24871         log10f: Avoid redefinition error on MSVC.
24872         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
24873         may be defined as an inline function.
24875 2016-12-17  Bruno Haible  <bruno@clisp.org>
24877         hypotl: Avoid redefinition error on MSVC.
24878         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
24879         may be defined as an inline function.
24881 2016-12-17  Bruno Haible  <bruno@clisp.org>
24883         hypotf: Avoid redefinition error on MSVC.
24884         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
24885         may be defined as an inline function.
24887 2016-12-17  Bruno Haible  <bruno@clisp.org>
24889         fmodl: Avoid redefinition error on MSVC.
24890         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
24891         may be defined as an inline function.
24893 2016-12-17  Bruno Haible  <bruno@clisp.org>
24895         fmodf: Avoid redefinition error on MSVC.
24896         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
24897         may be defined as an inline function.
24899 2016-12-17  Bruno Haible  <bruno@clisp.org>
24901         expf: Avoid redefinition error on MSVC.
24902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
24903         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
24904         may be defined as an inline function.
24905         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
24906         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
24908 2016-12-17  Bruno Haible  <bruno@clisp.org>
24910         coshf: Avoid redefinition error on MSVC.
24911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
24912         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
24913         may be defined as an inline function.
24914         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
24915         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
24917 2016-12-17  Bruno Haible  <bruno@clisp.org>
24919         cosf: Avoid redefinition error on MSVC.
24920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
24921         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
24922         may be defined as an inline function.
24923         * modules/math (Makefile.am): Substitute REPLACE_COSF.
24924         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
24926 2016-12-17  Bruno Haible  <bruno@clisp.org>
24928         atan2f: Avoid redefinition error on MSVC.
24929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
24930         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
24931         may be defined as an inline function.
24932         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
24933         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
24935 2016-12-17  Bruno Haible  <bruno@clisp.org>
24937         atanf: Avoid redefinition error on MSVC.
24938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
24939         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
24940         may be defined as an inline function.
24941         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
24942         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
24944 2016-12-17  Bruno Haible  <bruno@clisp.org>
24946         asinf: Avoid redefinition error on MSVC.
24947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
24948         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
24949         may be defined as an inline function.
24950         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
24951         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
24953 2016-12-17  Bruno Haible  <bruno@clisp.org>
24955         acosf: Avoid redefinition error on MSVC.
24956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
24957         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
24958         may be defined as an inline function.
24959         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
24960         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
24962 2016-12-17  Bruno Haible  <bruno@clisp.org>
24964         Avoid redefinition errors on MSVC.
24965         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
24966         the function may be defined as an inline function.
24967         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
24968         the function may be defined as an inline function.
24970 2016-12-17  Bruno Haible  <bruno@clisp.org>
24972         Avoid redefinition errors on MSVC.
24973         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
24974         * lib/unistd.in.h: Include <stdio.h> when necessary.
24976 2016-12-17  Bruno Haible  <bruno@clisp.org>
24978         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
24979         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
24980         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24981         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
24982         WINT_MAX.
24984 2016-12-17  Bruno Haible  <bruno@clisp.org>
24986         Avoid autoconf warning.
24987         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
24988         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
24990 2016-12-17  Bruno Haible  <bruno@clisp.org>
24992         fpending: Revert workaround against Emacs bug.
24993         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
24994         The Emacs bug is fixed by Eli Zaretskii in
24995         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
24997 2016-12-17  Bruno Haible  <bruno@clisp.org>
24999         getlogin_r tests: Port to mingw.
25000         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25001         regression introduced on 2014-05-19.
25003 2016-12-17  Bruno Haible  <bruno@clisp.org>
25005         getlogin: Port to newer mingw.
25006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25007         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25008         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25009         HAVE_GETLOGIN.
25010         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25011         HAVE_GETLOGIN.
25012         * doc/posix-functions/getlogin.texi: Mention the issue.
25013         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25014         regression introduced on 2014-05-14.
25016 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25018         builtin-expect: improve port to IBM XL C
25019         Problem reported for z/OS by Daniel Richard G. in:
25020         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25021         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25022         Test for <builtins.h> directly.
25024         builtin-expect: port to IBM XL C
25025         Problem reported for z/OS by Daniel Richard G. in:
25026         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25027         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25028         Also allow __builtin_expect defined via a standard include file.
25030         regex: fix dependency
25031         Problem reported by Bruno Haible in:
25032         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25033         * modules/regex: Depend on builtin-expect.
25035         builtin-expect: new module
25036         Fix fnmatch to use it.
25037         Problem reported for z/OS by Daniel Richard G.
25038         * lib/fnmatch.c (__builtin_expect):
25039         * lib/glob.c (__builtin_expect):
25040         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25041         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25042         * lib/scandir.c (__builtin_expect):
25043         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25044         Remove macro; config.h now does this.
25045         * lib/gl_anytreehash_list1.h (add_to_bucket):
25046         * lib/regex_internal.h (BE):
25047         Assume __builtin_expect.
25048         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25049         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25050         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25051         * modules/scandir, modules/strstr-simple:
25052         Depend on builtin-expect.
25054 2016-12-15  Bruno Haible  <bruno@clisp.org>
25056         init.sh: Add possibility to not delete temporary files.
25057         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25058         to yes, don't erase the temporary directory.
25060 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25062         regex: fix integer-overflow bug in never-used code
25063         Problem reported by Clément Pit–Claudel in:
25064         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25065         * lib/regex_internal.h: Include intprops.h.
25066         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25067         behavior on integer overflow.
25068         * modules/regex (Depends-on): Add intprops.
25070         fpending: fix port to MinGW on Emacs
25071         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25072         Problem reported by Eli Zaretskii in:
25073         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25074         Is Plan 9 still a valid porting target, anyway?
25076 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25078         safe-alloc: use xalloc-oversized
25079         * lib/safe-alloc.c: Include xalloc-oversized.h.
25080         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25081         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25083         xalloc: do not exceed PTRDIFF_MAX
25084         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25085         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25086         bytes have pointer-subtraction problems.
25088         malloca: do not exceed PTRDIFF_MAX
25089         * lib/malloca.h: Include xalloc-oversized.
25090         (nmalloca): Use xalloc_oversized instead of rolling our own.
25091         * modules/malloca (Depends-on):
25092         * modules/relocatable-prog-wrapper (Depends-on):
25093         Add xalloc-oversized.
25095         quotearg: pacify GCC better
25096         * modules/quotearg (Depends-on): Add minmax, stdint.
25097         * lib/quotearg.c: Include minmax.h, stdint.h.
25098         (nslots): Now int, as there seems little point to going to extra
25099         work merely to support the INT_MAX slot, which nobody ever uses.
25100         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25101         and to catch (mostly-theoretical) ptrdiff_t problems too.
25102         This can be done via one comparison.
25104 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25106         xalloc-oversized: check for PTRDIFF_MAX too
25107         This avoids undefined behavior when subtracting pointers to
25108         objects containing more than PTRDIFF_MAX bytes.
25109         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25110         Also return 1 if the result would exceed PTRDIFF_MAX>
25111         * modules/xalloc-oversized (Depends-on):
25112         Add stdint.
25114         dfa: fix glitches in previous commit
25115         Sorry, I don't know how I managed to commit the wrong version.
25116         * lib/dfa.c (MIN): Move up.
25117         (xpalloc): Now static.
25119         dfa: fix some unlikely integer overflows
25120         I found these while reviewing the recent Coverity-related fix.
25121         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25122         size_t for object counts.  Using ptrdiff_t is the style typically
25123         used in Emacs; although it wastes a sign bit as sizes can never be
25124         negative, it makes -fsanitize=undefined more likely to catch
25125         integer overflows in index calculation, and nowadays the upside is
25126         typically more important than the downside.  Although perhaps the
25127         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25128         of dfa.c already does, since it uses state_num which is signed),
25129         that is a bigger change and is not needed to fix the bugs I found.
25130         * lib/dfa.c: Include stdint.h and intprops.h.
25131         (TOKEN_MAX): New macro.
25132         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25133         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25134         (realloc_trans_if_necessary, free_mbdata):
25135         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25136         This is safe because xpalloc checks that the sizes do not exceed
25137         either SIZE_MAX or PTRDIFF_MAX.
25138         (xpalloc): New function, mostly taken from Emacs.
25139         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25140         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25141         (charclass_index): Check for integer overflow in computing
25142         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25143         added to it later.
25144         (alloc_position_set): Check for integer overflow.  On typical
25145         platforms this check has zero overhead, since the constant
25146         expression is false.
25147         (realloc_trans_if_necessary):
25148         Remove assertion, which I hope Coverity no longer needs.
25150         * modules/dfa (Depends-on): Add intprops, stdint.
25152 2016-12-12  Jim Meyering  <meyering@fb.com>
25154         dfa: add an assertion to avoid coverity false positive
25155         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25156         warned that "newalloc1 - 2" could overflow.
25158 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25160         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25161         * dfa.h (DFA_CASE_FOLD): Remove.
25162         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25164 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25166         link: fix test to declare use of rename()
25167         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25168         -Werror=implicit-function-declaration
25170 2016-12-12  Bruno Haible  <bruno@clisp.org>
25172         fpending: Port to native Windows with MSVC.
25173         * lib/fpending.c: Include stdio-impl.h.
25174         (__fpending): Include all known implementations. Err out if it's not
25175         ported.
25176         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25177         * modules/fpending (Files): Add lib/stdio-impl.h.
25178         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25180 2016-12-12  Bruno Haible  <bruno@clisp.org>
25182         stdioext: Port to native Windows with MSVC.
25183         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25184         (struct _gl_real_FILE): New type.
25185         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25186         Windows.
25187         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25188         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25189         other SystemV derived implementations.
25190         * lib/fpurge.c (fpurge): Likewise.
25191         * lib/freadable.c (freadable): Likewise.
25192         * lib/freadahead.c (freadahead): Likewise.
25193         * lib/freading.c (freading): Likewise.
25194         * lib/freadptr.c (freadptr): Likewise.
25195         * lib/freadseek.c (freadptrinc): Likewise.
25196         * lib/fseeko.c (fseeko): Likewise.
25197         * lib/fseterr.c (fseterr): Likewise.
25198         * lib/fwritable.c (fwritable): Likewise.
25199         * lib/fwriting.c (fwriting): Likewise.
25200         Reported by Gisle Vanem <gvanem@yahoo.no>.
25202 2016-12-11  Jim Meyering  <meyering@fb.com>
25204         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25205         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25206         to work with most shells, but not with the one provided by many
25207         Solaris 10 systems, so running configure with such a /bin/sh evokes
25208         e.g., "./configure: syntax error at line 33602: `(' unexpected".
25209         Reported by Assaf Gordon in
25210         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
25212 2016-12-10  Bruno Haible  <bruno@clisp.org>
25214         threadlib: Optimize out runtime test on Solaris >= 10.
25215         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
25216         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
25217         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
25219 2016-12-10  Bruno Haible  <bruno@clisp.org>
25221         stdint: Update doc about Solaris 9.
25222         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
25224 2016-12-09  Bruno Haible  <bruno@clisp.org>
25226         c-ctype tests: Fix link error on Solaris 9.
25227         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
25228         Reported at <https://savannah.gnu.org/bugs/?46827>.
25230 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25232         dfa: fix performance bug that recomputes trans
25233         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
25234         25 on-demand changes.  The bug caused build_state to reset all
25235         d->trans elements to -2 even when d->trans was already non-null.
25236         Use C99 style decls after statements in this function.
25238         same-inode: port to MinGW
25239         Here st_ino is always 0, so change the definition of SAME_INODE so
25240         that 1 means the two files are the same, 0 with st_ino != 0 means
25241         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
25242         reported by Bruno Haible (Bug#25146).
25243         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
25244         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
25246 2016-12-04  Bruno Haible  <bruno@clisp.org>
25248         javacomp-script: Support Java 7 and 8.
25249         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25250         target-version 1.7, 1.8.
25252 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25254         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25255         GPLv2" rewriting.
25257 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25259         * gnulib-tool (func_import): Adhere to the license guideline when
25260         rewriting the license text to "LGPLv3+ or GPLv2":
25261         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25263 2016-12-02  Bruno Haible  <bruno@clisp.org>
25265         localcharset: Avoid theoretical buffer overrun.
25266         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25267         return value from setlocale if it would lead to a buffer overrun.
25269 2016-12-01  Bruno Haible  <bruno@clisp.org>
25271         Relicense some modules under LGPLv2+.
25272         Kevin Cernekee's approval is in
25273         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25274         * modules/fseterr (License): Change to LGPLv2+.
25275         * modules/mbchar (License): Likewise.
25276         * modules/mbiter (License): Likewise.
25277         * modules/mbsnlen (License): Likewise.
25278         * modules/wcwidth (License): Likewise.
25280 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25282         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25283         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25284         OS/2 kLIBC.
25286 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25288         alphasort, scandir: Port to OS/2 kLIBC
25289         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25290         declaration.
25291         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25293 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25295         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25296         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25297         with '/@unixroot'.
25299 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25301         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25302         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25303         OS/2 kLIBC unless TCPV40HDRS is defined.
25305 2016-11-29  Jim Meyering  <meyering@fb.com>
25307         dfa: avoid new infinite loop
25308         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25309         * lib/dfa.c (dfastate): When constructing a new state table, we could
25310         initially declare that we had found a match, and later find that
25311         constraints eliminate that possibility, yet continue to use the
25312         now stale "matched" indicator.  That would lead to an infinite loop.
25313         The solution is to update "matched" when necessary.
25314         Introduced by commit v0.1-983-g403adf1.
25316 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25318         dfa: avoid match middle in multibyte character
25319         * lib/dfa.c (transit_state): If fails in matching single byte characters
25320         on a state including period expression in non-UTF8 multibyte locales,
25321         skip trailing bytes.
25322         (dfa_supported): Revert previous change.
25324 2016-11-27  Jim Meyering  <meyering@fb.com>
25326         dfa: avoid false match in non-UTF8 multibyte locales
25327         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25328         as "not supported" so that callers will resort to using regex-based
25329         matcher.  This will surely hurt performance, but correctness trumps
25330         performance here, and the affected locales are less and less relevant,
25331         these days.  See grep's bug report https://bugs.gnu.org/24975.
25333 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25335         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25336         * lib/ptsname_r.c: Include the appropriate headers.
25337         [__sun]: Delete sys/sysmacros.h include.
25338         [_AIX || __osf__]: Likewise.
25339         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25341 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25343         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25344         * lib/md4.c (md4_process_bytes): The existing define is made internal
25345         in recent versions of glibc, so also use this new public define.
25346         * lib/md5.c (md5_process_bytes): Likewise.
25347         * lib/sha1.c (sha1_process_bytes): Likewise.
25348         * lib/sha256.c (sha256_process_bytes): Likewise.
25349         * lib/sha512.c (sha512_process_bytes): Likewise.
25351 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25353         maint: use a more standard return from mbrtowc test
25354         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25355         from the test program as this often indicates an
25356         unhandled case in the test program.
25357         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25358         (gl_MBRTOWC_SANITYCHECK): Likewise.
25359         (gl_MBRTOWC_NULL_ARG2): Likewise.
25360         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25362 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25364         freopen: work around glibc bug with closed fd
25365         Work around glibc bug#15589, where freopen mishandles the case
25366         where stdin etc. are already closed.
25367         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25368         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25369         instead of __need_FILE, as the latter does not work with glibc.
25370         Include <fcntl.h>, for open flags.
25371         (rpl_freopen): Work around glibc bug.
25372         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25373         * modules/freopen (Depends-on): Add fcntl-h.
25374         * tests/test-freopen.c (main): Test for bug.
25376 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25378         fnmatch: fix typo introduced on 2016-08-17
25379         This fixes the port to non-GCC compilers that lack __builtin_expect.
25380         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
25382         dfa: simplify with new function fillset
25383         * lib/dfa.c (fillset): New function.
25384         Use it for clarity when applicable.
25386         dfa: fix glitches with on-demand states
25387         Also, adjust commentary to better match new code.
25388         Some of these glitches predate the recent change.
25389         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
25390         only non-initial states.
25391         (dfastate): Rename locals to better match new roles.
25392         Move them into nested scopes if this is easy.
25393         Omit unnecessary calls to zeroset.
25394         Simplify test for whether to throw in the positions of state 0.
25395         Omit C99-ism (decl after statement) since Gawk still wants C89.
25396         (build_state): Omit unnecessary test and assignment.
25397         Fix some confusion that counted transition tables inaccurately
25398         and could cause a memory leak.
25399         (dfaexec_main): Redo to make it clearer to the compiler that
25400         -1 and -2 are the only negative state numbers here.
25402 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25404         dfa: addition of new state on demand
25405         * src/dfa.c (dfastate): Add argument UC, the current input character.
25406         Fill only a group including the character in transition table.
25407         (realloc_trans_if_necessary): Add the dummy state which means that a
25408         transition table is assigned but the next state is not assigned.
25409         (build_state): Return the next state.  All callers updated.
25410         (transit_state_singlebyte): If we get the dummy state,
25411         fill the transition table.
25412         (dfaexec_main): Handle the dummy state.
25413         (free_mbdata, dfafree): Consider the dummy state.
25415 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25417         srclist: sync with released gettext
25418         * config/srclist.txt: Set "release" option to the files under
25419         $GETTEXT.
25421 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25423         srclist: add "release" option
25424         * config/srclist.txt: Change the format so that the first column
25425         of each line points to the top-level directory of the source
25426         archive.
25427         * config/srclist-update: Accept "release" option that checks files
25428         from the most recently tagged revision in the source archive.
25430 2016-11-21  Bruno Haible  <bruno@clisp.org>
25432         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
25433         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25434         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
25435         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
25436         Inline and remove member function 'rpl ()' of the wrapper struct.
25438 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25440         dfa: fix logic typo
25441         Problem reported by Stephane Chazelas (Bug#24973).
25442         * lib/dfa.c (using_simple_locale): Fix typo that caused some
25443         non-simple locales like fr_FR to be treated as simple.
25445 2016-11-20  Jim Meyering  <meyering@fb.com>
25447         fix test driver leaks: exclude, malloc, realloc
25448         * tests/test-exclude.c (main): Fix trivial leak.
25449         * tests/test-malloc-gnu.c (main): Likewise.
25450         * tests/test-realloc-gnu.c (main): Likewise.
25451         With these changes, grep's tests are now leak free.
25452         I.e., running them with ASAN elicits no failure:
25453           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
25454             AM_LDFLAGS='-fsanitize=address -static-libasan' check
25456 2016-11-11  Bruno Haible  <bruno@clisp.org>
25458         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
25459         * modules/libunistring: (License): Change from LGPL to
25460         "LGPLv3+ or GPLv2".
25461         * modules/libunistring-optional: Likewise.
25462         * modules/unicase/*: Likewise.
25463         * modules/uniconv/*: Likewise.
25464         * modules/unictype/*: Likewise.
25465         * modules/unigbrk/*: Likewise.
25466         * modules/unilbrk/*: Likewise.
25467         * modules/uniname/*: Likewise.
25468         * modules/uninorm/*: Likewise.
25469         * modules/unistdio/*: Likewise.
25470         * modules/unistr/*: Likewise.
25471         * modules/uniwbrk/*: Likewise.
25472         * modules/uniwidth/*: Likewise.
25474 2016-11-12  Bruno Haible  <bruno@clisp.org>
25476         Relicense some modules under LGPLv2+.
25477         Paul Eggert's approval is in
25478         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
25479         Eric Blake's approval is in
25480         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
25481         Ludovic Courtès's approval is in
25482         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
25483         * modules/isnand-nolibm (License): Change to LGPLv2+.
25484         * modules/isnanf-nolibm (License): Likewise.
25485         * modules/isnanl-nolibm (License): Likewise.
25487 2016-11-19  Bruno Haible  <bruno@clisp.org>
25489         Relicense some modules under LGPLv2+.
25490         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
25491         modules/vasnprintf.
25492         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
25493         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
25494         All other significant changes to the files in lib/ of these modules
25495         are from me.
25496         * modules/memcmp2 (License): Change to LGPLv2+.
25497         * modules/amemxfrm (License): Likewise.
25498         * modules/fpieee (License): Likewise.
25499         * modules/fpucw (License): Likewise.
25500         * modules/frexp-nolibm (License): Likewise.
25501         * modules/frexpl-nolibm (License): Likewise.
25502         * modules/printf-frexp (License): Likewise.
25503         * modules/printf-frexpl (License): Likewise.
25504         * modules/printf-safe (License): Likewise.
25505         * modules/signbit (License): Likewise.
25507 2016-11-17  Bruno Haible  <bruno@clisp.org>
25509         Enable Unicode decoder safety unconditionally.
25510         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
25511         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
25512         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25513         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25514         * lib/unistr/u8-prev.c (u8_prev): Likewise.
25515         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
25516         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
25517         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
25518         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
25519         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
25520         * lib/unistr/u16-prev.c (u16_prev): Likewise.
25521         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
25522         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
25523         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
25524         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
25525         * lib/unistr/u32-prev.c (u32_prev): Likewise.
25526         * lib/unistr/u32-next.c (u32_next): Likewise.
25527         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
25528         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
25529         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25530         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25531         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
25532         CONFIG_UNICODE_SAFETY tests unconditionally.
25533         * tests/unistr/test-u32-mblen.c (main): Likewise.
25534         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
25535         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
25536         * tests/unistr/test-u32-next.c (main): Likewise.
25537         * tests/unistr/test-u32-strmblen.c (main): Likewise.
25538         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
25539         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
25540         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
25541         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
25542         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25543         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
25544         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
25545         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
25546         * lib/unistr/u16-check.c (u16_check): Update comment.
25547         * NEWS: Mention the changes that callers should be aware of.
25549 2016-11-19  Bruno Haible  <bruno@clisp.org>
25551         relocatable-prog-wrapper: Fix breakage on Cygwin.
25552         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
25553         (Depends-on): Remove intprops.
25554         * lib/relocwrapper.c: Update dependency tree.
25555         (strerror): Undefine.
25556         * build-aux/install-reloc (func_create_wrapper): Do not compile
25557         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
25559 2016-11-19  Bruno Haible  <bruno@clisp.org>
25561         strerror: Make it compile in C++ mode.
25562         * lib/strerror.c (strerror): Ignore the return value of memcpy().
25564 2016-11-15  Pedro Alves  <palves@redhat.com>
25566         sys_time: add gnulib::timeval for C++
25567         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
25568         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
25569         timeval macro.
25571 2016-11-14  Pedro Alves  <palves@redhat.com>
25573         snippet/c++defs: fix real-floating arg functions in C++ mode
25574         Also, define isfinite, isinf, isnan, signbit in the gnulib
25575         namespace instead of in the global namespace.
25576         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
25577         (_GL_END_NAMESPACE): New.
25578         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
25579         (isfinite, isinf, isnan, signbit) [__cplusplus &&
25580         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
25581         instead of in the global namespace.
25582         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
25583         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
25584         of in the global namespace.
25586 2016-11-13  Jim Meyering  <meyering@fb.com>
25588         strftime: don't use __THROW
25589         Each use of __THROW would provoke this from gcc-7-to-be:
25591           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
25592             on unit local functions [-Wattributes]
25593           static int iso_week_days (int, int) __THROW;
25594           ^~~~~~
25595         * lib/strftime.c (__THROW): Don't define.
25596         Remove each use of __THROW.
25597         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
25598         (tm_diff, iso_week_days, __strftime_internal): Likewise.
25600 2016-11-14  Paul Eggert  <eggert@union>
25602         obstack: port to gcc -fcheck-pointer-bounds
25603         Problem found by 'make check' failure on bleeding-edge coreutils
25604         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
25605         6.2.0-5ubuntu12), configured via "./configure
25606         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
25607         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
25608         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
25609         New macro, copied from fts_.h.
25610         (struct _obstack_chunk.contents): Use it.
25612 2016-11-14  Eric Blake  <eblake@redhat.com>
25614         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
25615         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
25616         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
25618 2016-11-14  Pádraig Brady  <P@draigBrady.com>
25620         strptime: fix compile error in recent change
25621         * lib/strptime.c (__strptime_internal): Fix ported code.
25623 2016-11-11  Bruno Haible  <bruno@clisp.org>
25625         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
25626         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
25627         (func_import): Extend determination of license_incompatibilities.
25628         (func_create_testdir): Extend table of license compatibility. Handle
25629         also the licenses GPLv3+, GPL, LGPLv3+.
25631 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25633         strftime: tune %q
25634         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
25636         Merge strftime.c changes from glibc
25637         This incorporates:
25638         2007-10-16 [BZ #5184] Add tzset_called argument
25639         2008-06-13 [BZ #6612] pass reference to tzset_called around
25640         2009-10-30 Implement Burmese language locale for Myanmar
25641         2010-01-09 Add support for XPG7 testing
25642         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
25643         2015-10-20 Convert miscellaneous function definitions to prototype style
25644         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
25645         it anyway and this lessens the difference between gnulib and glibc.
25646         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
25647         (__THROW): Define if standard headers do not.
25648         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
25649         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
25650         Declare with __THROW.
25651         (__strftime_internal): Rename from strftime_case_. Add arg for
25652         whether tzset is called.  All uses changed.  Call tzset at most
25653         once.  Allow %OC, for Burmese.
25654         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
25655         Don't assume values are in range.
25657 2016-11-12  Eric Blake  <eblake@redhat.com>
25659         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
25660         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
25661         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
25662         different value.
25664 2006-11-12  Pedro Alves  <palves@redhat.com>
25666         Fix gnulib C++ namespace support and std::frexp
25667         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
25668         _GL_CXXALIASWARN.
25670 2006-11-12  Pedro Alves  <palves@redhat.com>
25672         GNULIB_NAMESPACE::func need not pull in rpl_func
25673         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25674         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
25675         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
25676         struct instead of a function pointer.
25678 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
25680         manywarnings: fix -Wno-missing-field-initializers detection
25681         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
25682         to be independent of -Wunused-variable.  I.E. ensure the latter
25683         warning doesn't occur so that detection of the former is accurate.
25685 2016-11-05  Pádraig Brady  <pbrady@fb.com>
25687         strftime,strptime: support %q to represent the quarter
25688         * lib/strftime.c (strftime_case_): Add %q case.
25689         * lib/strptime.c (__strptime_internal): Likewise.
25690         * tests/test-strftime.c (quarter_test): A new test case.
25692 2016-11-03  Eric Blake  <eblake@redhat.com>
25694         bootstrap: Fix get_version() for AIX 5.3
25695         * build-aux/bootstrap (get_version): Factor out sed script, since
25696         indented comments choke AIX 5.3 sed.
25697         Reported-by: Michael Felt <aixtools@gmail.com>
25699 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25701         intprops: port to older XL C
25702         Problem reported by Alexander Samoilov in:
25703         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
25704         http://savannah.nongnu.org/bugs/?49448
25705         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
25706         Define to 1 only for XL C 12.1 or later, since this bug
25707         occurs in XL C for AIX 6.0 but not in 12.1.
25709 2016-11-02  Pádraig Brady  <P@draigBrady.com>
25711         backupfile: initialize default suffix within the implementation
25712         * lib/backupfile.c (find_backup_file_name): Initialize the
25713         global variable here, to simplify usage, and to only call
25714         getenv() when needed.
25716 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25718         futimens: remove FIXME for old Linux kernels
25719         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
25720         this in 2012" FIXME, like that for utimensat.
25722         utimensat: remove FIXME for old Linux kernels
25723         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
25724         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
25725         this in 2012" FIXME, by assuming the file system bug is absent
25726         unless demonstrated to be present.  We no longer need to worry
25727         about Linux kernel 2.6.32 when building with newer kernels.
25729 2016-10-16  Bruno Haible  <bruno@clisp.org>
25731         qsort_r: Fix macrology for platforms that lack the function.
25732         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
25733         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
25734         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
25735         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
25736         not exist.
25737         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
25738         the function exists.
25739         * modules/qsort_r: Add comments.
25741 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25743         sys_types: fix Texinfo typos
25744         * doc/glibc-functions/gnu_dev_major.texi:
25745         * doc/glibc-functions/gnu_dev_makedev.texi:
25746         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
25748 2016-10-26  John David Anglin  <dave.anglin@bell.net>
25750         getprogname: port to HP-UX
25751         See Bug#24805.
25752         * lib/getprogname.c (getprogname) [__hpux]: Port.
25753         * tests/test-getprogname.c (STREQ) [__hpux]:
25754         Special-case for HP-UX limitations on program name length.
25756 2016-10-20  Bruno Haible  <bruno@clisp.org>
25758         Update doc about target platforms.
25759         * doc/gnulib-intro.texi (Target Platforms): Update list.
25761 2016-10-15  Bruno Haible  <bruno@clisp.org>
25763         opendir, readdir, closedir: Relicense under LGPLv2+.
25764         * modules/opendir (License): Change to LGPLv2+.
25765         * modules/readdir (License): Likewise.
25766         * modules/closedir (License): Likewise.
25768 2016-10-16  Bruno Haible  <bruno@clisp.org>
25770         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
25771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
25772         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
25773         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
25774         HAVE_DECL_STRERROR_R.
25776 2016-10-16  Bruno Haible  <bruno@clisp.org>
25778         Make the 'argp' module work without the 'error' module.
25779         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
25781 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25783         diffseq: restore TOO_EXPENSIVE heuristic
25784         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
25785         (Bug#24715).  The simplest solution is to restore the
25786         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
25787         using a higher threshold to avoid Bug#16848 on smaller files.
25788         * lib/diffseq.h (struct context): Restore member too_expensive.
25789         (struct partition): Restore members lo_minimal, hi_minimal.
25790         (diag, compareseq): Restore arg find_minimal.  All uses changed.
25791         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
25792         1993 to make 'diff' run faster (but not as well) on large inputs,
25793         but use a threshold of 4096 instead of the old 256.
25794         * lib/fstrcmp.c (strcmp_bounded):
25795         * lib/git-merge-changelog.c (compute_differences):
25796         Adjust to diffseq.h changes.
25798 2016-10-22  Bruno Haible  <bruno@clisp.org>
25800         iconv: Avoid compilation error when bootstrapping GNU libiconv.
25801         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
25802         declaration yet, define ICONV_CONST to empty.
25804 2016-10-15  Bruno Haible  <bruno@clisp.org>
25806         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
25807         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
25808         module.
25810 2016-10-16  Bruno Haible  <bruno@clisp.org>
25812         system-quote tests: Avoid compiler warning on AIX.
25813         * tests/test-system-quote-child.c (fopen): Redefine like the system's
25814         <stdio.h> does.
25816 2016-10-16  Bruno Haible  <bruno@clisp.org>
25818         Fix some "gcc -Wall" warnings.
25819         * tests/test-ffsl.c (main): Use variable x, not i.
25820         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
25821         freopen.
25822         * tests/test-sethostname1.c (main): Explicitly ignore the return value
25823         of sethostname.
25825 2016-10-16  Bruno Haible  <bruno@clisp.org>
25827         gnulib-tool: Make --create-testdir on all modules work again.
25828         * gnulib-tool (func_create_testdir): Don't include the
25829         non-recursive-gnulib-prefix-hack module.
25831 2016-10-21  Daiki Ueno  <ueno@gnu.org>
25833         libunistring: change the maintainer to 'all'
25834         * modules/gen-uni-tables, modules/libunistring:
25835         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
25836         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
25837         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
25838         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
25839         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
25840         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
25841         * modules/uniwidth/*: Change the maintainer to 'all'.
25843 2016-10-16  Bruno Haible  <bruno@clisp.org>
25845         Simplify "configure: checking ..." messages.
25846         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
25847         AC_MSG_NOTICE.
25848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25850 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25852         quotearg-tests: pacify gcc -Wall
25853         Problem reported by Bruno Haible in:
25854         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
25855         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
25856         * tests/test-quotearg.h: ... from here.
25858 2016-10-20  Pádraig Brady  <P@draigBrady.com>
25860         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
25861         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
25862         Needed on Centos <= 4.
25864 2016-10-20  Jim Meyering  <meyering@fb.com>
25866         printf.m4: fix a bug in detecting printf %j support
25867         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
25868         uintmax_t is defined in neither stdint.h nor inttypes.h.
25869         Before, this macro might have mistakenly set
25870         gl_cv_func_printf_sizes_c99=yes on such a system.
25871         Spotted by Zev Weiss.
25873 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
25875         sched: substitute HAVE_SYS_CDEFS_H too
25876         Problem reported by Tom G. Christensen in:
25877         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
25878         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
25879         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
25881 2016-10-19  Pádraig Brady  <P@draigBrady.com>
25883         quotearg: never write beyond the returned length
25884         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
25885         scan of the string when we initially encounter a single quote when
25886         shell quoting, so that if we then switch to a more concise quoting method
25887         we will not have written beyond that returned length.
25888         This is significant for sh-quote, which has separate routines
25889         to determine the length and do the actual quoting.
25890         * tests/test-quotearg.h: Reinstate the buffer bounds checking
25891         now that we never write more than the returned length.
25893 2016-10-18  Bruno Haible  <bruno@clisp.org>
25895         getprogname tests: Avoid failure in packages that use libtool.
25896         * tests/test-getprogname.c (main): Strip "lt-" prefix.
25897         Based on a patch by Jim Meyering.
25899 2016-10-16  Bruno Haible  <bruno@clisp.org>
25901         getprogname: Fix test failure on Cygwin. Comments.
25902         * lib/getprogname.h: Add comments.
25903         * lib/getprogname.c: Add comments. Fix #elif indentation.
25904         * tests/test-getprogname.c (main): On Cygwin, expect a result without
25905         ".exe" suffix.
25907 2016-10-16  Bruno Haible  <bruno@clisp.org>
25909         Make sure the libunistring detection rejects older versions with a
25910         known bug.
25911         * modules/unistr/u8-strtok (configure.ac): Bump required version.
25912         * modules/unistr/u16-strtok (configure.ac): Likewise.
25913         * modules/unistr/u32-strtok (configure.ac): Likewise.
25915 2016-10-18  Bruno Haible  <bruno@clisp.org>
25917         sh-quote, system-quote: revert regression of unit test.
25918         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
25919         * tests/test-system-quote-main.c (check_one): Likewise.
25921 2016-10-16  Pádraig Brady  <P@draigBrady.com>
25923         quotearg: fix stale tests
25924         * tests/test-quotearg.c [locale_results]: Add the missing str7
25925         entries to the expected results.
25926         * tests/test-system-quote-main.c (check_one): Don't enforce that we
25927         don't write beyond the returned length, since that's no longer the
25928         case if we switch to a more concise quoting style.
25929         * tests/test-sh-quote.c (check_one): Likewise.
25930         (main): Adjust for the new more concise quoting style.
25931         Reported by Bruno Haible.
25933 2016-10-16  Jim Meyering  <meyering@fb.com>
25935         non-recursive-gnulib-prefix-hack: fix inconsequential typo
25936         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
25937         to "$1".  This macro is always invoked with $1 == lib.
25938         Spotted by Bruno Haible
25940 2016-10-16  Bruno Haible  <bruno@clisp.org>
25942         Fix a test crash.
25943         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
25944         fails.
25946 2016-10-16  Pádraig Brady  <P@draigBrady.com>
25948         test-limits-h: suppress -Woverlength-strings
25949         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
25951 2016-10-15  Bruno Haible  <bruno@clisp.org>
25953         gettime, timespec, utimens: Relicense under LGPL.
25954         * modules/gettime (License): Change to LGPL.
25955         * modules/timespec (License): Likewise.
25956         * modules/utimens (License): Likewise.
25958 2016-10-14  Bruno Haible  <bruno@clisp.org>
25959             Pádraig Brady  <P@draigBrady.com>
25961         canonicalize-lgpl: Support the case path_max > INT_MAX.
25962         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
25963         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
25965 2016-10-13  Jim Meyering  <meyering@fb.com>
25967         getprogname: IBM z/OS: avoid NULL-dereference
25968         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
25969         upon strdup failure.
25971 2016-10-12  Jim Meyering  <meyering@fb.com>
25973         test-stdint: use _GL_VERIFY rather than "verify" for some tests
25974         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
25975         and an abbreviated diagnostic rather than verify with the full one,
25976         because the full-length strings would evoke warnings from gcc with
25977         -Woverlength-strings.
25979 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25981         stdint: port SIZE_MAX to glibc s390
25982         Problem reported by Eric Blake in:
25983         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
25984         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
25985         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
25986         correct type, if possible.
25988 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
25990         getprogname: port to IBM z/OS
25991         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
25993 2016-10-11  Jim Meyering  <meyering@fb.com>
25995         maint: remove stray space after "." in AC_DEFINE comment.
25996         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
25997         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25999 2016-10-05  Jim Meyering  <meyering@fb.com>
26001         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26002         * lib/long-options.c (parse_long_options): Add a break statement
26003         to avoid this new warning/failure:
26004         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26005           --create-testdir --dir=/t/x --with-tests --test long-options
26006         ../../gllib/long-options.c: In function 'parse_long_options':
26007         ../../gllib/long-options.c:66:12: error: this statement may \
26008           fall through [-Werror=implicit-fallthrough]
26009                    (*usage_func) (EXIT_SUCCESS);
26010                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26012 2016-10-05  Jim Meyering  <meyering@fb.com>
26014         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26015         Testing this module would fail when using GCC 7 like this:
26016         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26017           --dir=/tmp/x --with-tests --test utimecmp
26018         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26019         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26020           [-Werror=bool-operation]
26021                          time_t s = src_s & ~ (res == 2 * BILLION);
26022                                             ^
26023         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26024           [-Werror=bool-operation]
26025                src_s &= ~ (res == 2 * BILLION);
26026                         ^
26027         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26028         Instead, make it explicit that we intend to apply it to 0 or 1.
26030 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26032         dfa: save memory for states
26033         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26034         states if dfa has a lot of caches.
26036 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26038         wchar, wctype-h: fix for MinGW 3.22.2
26039         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26040         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26041         when included from <string.h>.
26042         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26043         convention for MinGW 3.22.2, to solve issues with their
26044         wctype.h when included from <ctype.h>.
26046 2016-10-05  Jim Meyering  <meyering@fb.com>
26048         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26049         * lib/long-options.c (parse_long_options): Add a break statement
26050         to avoid this new warning/failure:
26051         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26052           --create-testdir --dir=/t/x --with-tests --test long-options
26053         ../../gllib/long-options.c: In function ‘parse_long_options’:
26054         ../../gllib/long-options.c:66:12: error: this statement may \
26055           fall through [-Werror=implicit-fallthrough]
26056                    (*usage_func) (EXIT_SUCCESS);
26057                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26059         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26060         Testing this module would fail when using GCC 7 like this:
26061         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26062           --dir=/tmp/x --with-tests --test utimecmp
26063         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26064         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26065           [-Werror=bool-operation]
26066                          time_t s = src_s & ~ (res == 2 * BILLION);
26067                                             ^
26068         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26069           [-Werror=bool-operation]
26070                src_s &= ~ (res == 2 * BILLION);
26071                         ^
26072         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26073         Instead, make it explicit that we intend to apply it to 0 or 1.
26075 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26077         quotearg: minimize shell quoting using double quotes
26078         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26079         quote in encountered then use double quotes (c style quoting)
26080         when possible, as it simplifies the quoting.
26081         * tests/test-quotearg-simple.c: Add test cases.
26082         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26083         for the fact we now may write beyond the returned length.
26085 2016-10-02  Jim Meyering  <meyering@fb.com>
26087         vasnprintf.c: avoid spurious warning from GCC 7
26088         The presence of cpp directives renders this "FALLTHROUGH" comment
26089         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26090         from GCC 7 built from git on 2016-10-02.
26091         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26092         directives, so that it takes effect once again.  This is clearly
26093         not a proper change, and I will revert it once this bug is fixed:
26094         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26096 2016-10-01  Jim Meyering  <meyering@fb.com>
26098         getprogname: correct the test for a __progname variable
26099         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26100         and AC_LINK_IFELSE to check for a global __progname.  If found,
26101         define HAVE_VAR___PROGNAME.
26102         * lib/getprogname.c (getprogname): Reflect the new name of the
26103         feature- checked preprocessor symbol:
26104         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26106 2016-09-28  Jim Meyering  <meyering@fb.com>
26108         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26109         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26110         fall-through case with a /* fallthrough */ comment.
26112         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26113         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26114         /* fallthrough */ comment.
26116         getprogname: avoid __progname vs program_invocation_short_name pitfall
26117         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26118         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26119         not with Fedora 24's glibc-2.23.1-10.
26120         * lib/getprogname.c (__progname): Move this declaration down...
26121         (getprogname): ... into the #elif block where used, and make it
26122         explicitly "extern".
26124         getprogname: port to OpenBSD 5.1
26125         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26126         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26127         * modules/getprogname (configure.ac): Move most of this code...
26128         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26129         increment serial number, and add a test for __progname.
26130         https://bugs.gnu.org/24562
26131         Reported by Nelson H. F. Beebe.
26133 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26135         sched: port to GCC 6.2.1 on macOS Sierra
26136         Problem reported by Denis Davydov in:
26137         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26138         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26139         Include <sys/cdefs.h> before <sched.h>.
26140         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26141         so that we needn’t worry about the sched.h include bug here.
26142         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26143         and include it before <sched.h> if it exists, when
26144         checking for <sched.h>.
26146         tests/init.sh: port Alpine fix to AIX 7.1
26147         * tests/init.sh (compare_): When attempting to use diff -U3,
26148         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26149         diff -u not outputting a space after leading '+', as the users
26150         of 'compare' should not be that picky about its output format.
26151         In the AIX 7.1 case, return with diff exit status (or with 2 if
26152         trouble), instead of some random nonzero exit status.
26153         * tests/test-init.sh (test_compare): Remove space after leading
26154         '+', so that AIX 7.1 'diff' passes the test.
26156 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26158         nl_langinfo: pacify GCC
26159         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26160         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26162         stdint: also set GL_GENERATE_LIMITS_H
26163         Problem reported by Jim Meyering in:
26164         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26165         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26167         limits-h, stdint: Don't assume extensions, fix typo
26168         * m4/limits-h.m4 (gl_LIMITS_H):
26169         * m4/stdint.m4 (gl_STDINT_H):
26170         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26171         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26172         reported by Jim Meyering in:
26173         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26175 2016-09-21  Jim Meyering  <meyering@fb.com>
26177         getprogname: port to AIX
26178         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26179         and strdup to obtain a short program name string.  Using code from
26180         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26181         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26182         Assaf Gordon reported that this new file would fail to compile on
26183         AIX-7.1 32bit.
26185 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26187         extensions: fix typo in comment
26188         * m4/extensions.m4: Sync from Autoconf master.
26190         stdint: support new _WIDTH macros
26191         * doc/posix-headers/stdint.texi: Document this.
26192         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26193         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26194         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26195         * modules/stdint (Depends-on): Add limits-h.
26196         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26197         * modules/stdint-tests (Depends-on): Add extensions, so that
26198         INTMAX_MAX etc. are defined.
26199         * tests/test-stdint.c: Verify the new macros.
26201         limits-h: new module
26202         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26203         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26204         * doc/posix-headers/limits.texi: Document new module.
26205         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26206         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26208         stdio: don't redefine __USE_MINGW_ANSI_STDIO
26209         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
26210         if it is already defined.  Apparently GNU Emacs relies on this.  See:
26211         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
26213 2016-09-15  Eric Blake  <eblake@redhat.com>
26215         sys_types: avoid glibc 2.25 warnings about major()
26216         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
26217         older autoconf.
26218         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
26219         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
26220         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
26221         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
26223         mountlist: include sysmacros.h for glibc
26224         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
26225         AC_HEADER_MAJOR.
26226         * lib/mountlist.c (includes): Use correct headers.
26228 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26230         extensions: port to more ISO C TSes
26231         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
26232         master, to add support for more recent ISO C TRs and TSes.
26234 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26236         intprops: new macro TYPE_WIDTH
26237         * lib/intprops.h (TYPE_WIDTH): New macro.
26238         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
26239         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
26240         * lib/parse-datetime.y (parse_datetime2):
26241         Use it.
26243         extensions: port to recent ISO C TRs
26244         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26245         Sync from Autoconf master, to add support for recent ISO C TRs.
26246         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
26247         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
26248         the MinGW option is not an extension.
26250 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26252         dfa: port to Solaris 9
26253         Problems reported by Tom G. Christensen in:
26254         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26255         * modules/dfa (Depends-on): Add isblank.
26256         * modules/dfa-tests (dfa_match_aux_LDADD):
26257         Rename from test_stat_LDADD, to fix typo.
26258         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26260 2016-09-10  Jim Meyering  <meyering@fb.com>
26262         strverscmp: avoid link failure on OS X
26263         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26264         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26266 2016-08-16  Jim Meyering  <meyering@fb.com>
26268         dfa: new module, importing grep's DFA matcher
26269         Since grep's DFA matcher is now being used by two gnulib-enabled
26270         projects, grep and sed, it makes sense to version-control its
26271         sources and unit tests in one place: here.
26272         * modules/dfa: New module.
26273         * modules/dfa-tests: New file.
26274         * lib/dfa.c: New file, from grep.
26275         * lib/dfa.h: Likewise.
26276         * lib/localeinfo.c: Likewise.
26277         * lib/localeinfo.h: Likewise.
26278         * tests/dfa-match-aux.c: Likewise.
26279         * tests/dfa-invalid-char-class.sh: Likewise.
26280         * tests/dfa-match.sh: Likewise, with minor changes.
26281         * MODULES.html.sh (Misc): Add "dfa" to this list.
26283 2016-09-09  Jim Meyering  <meyering@fb.com>
26285         getprogname-tests: don't depend on assert-h
26286         * modules/getprogname-tests (Depends-on): Remove assert-h.
26287         It was not needed, and in fact would cause build failure for
26288         coreutils on some systems.  Reported by Assaf Gordon in https:
26289         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26291 2016-09-07  Jim Meyering  <meyering@fb.com>
26293         getprogname-tests: work also when EXEEXT is nonempty
26294         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26295         * tests/test-getprogname.c (main): Use it.
26296         Suggested by Gisle Vanem.
26298 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26300         getprogname: fix errors in previous change
26301         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26302         s/program_invocation_name/base/
26303         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26305 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26307         parse-datetime: restrict debug output to input string
26308         * lib/parse-datetime.y (parse_datetime2): If we parse
26309         all of the input but determine it's invalid, ensure
26310         we don't output the now invalid input pointer.
26311         This issue was seen with `date -d 'now +1'`.
26313 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26315         flexmember: new macro FLEXALIGNOF
26316         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26317         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26318         this macro.  Update comments.
26320 2016-09-07  Jim Meyering  <meyering@fb.com>
26322         getprogname: port to systems with __argv (mingw, msvc)
26323         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26324         last_component: more general than open coding it with hard-coded "/".
26325         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26326         * modules/getprogname (Depends-on): Add dirname-lgpl.
26327         (configure.ac): Check for __argv in <stdlib.h>.
26328         * modules/getprogname-tests: New file.
26329         * tests/test-getprogname.c: New file.
26330         Suggested by Gisle Vanem in
26331         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26333 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26335         flexmember: port better to GCC + valgrind
26336         With a char[] flexible array member in a struct with nontrivial
26337         alignment, GCC-generated code can access past the end of the
26338         array, because GCC assumes there are padding bytes to get the
26339         struct aligned.  So the common idiom of malloc (offsetof (struct
26340         s, m), n) does not properly allocate an n-byte trailing member, as
26341         malloc’s argument should be the next multiple of alignof (struct s).
26342         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26343         Although C11 apparently permits this GCC optimization (i.e., there
26344         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26345         See the thread containing:
26346         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26347         * lib/flexmember.h: New file.
26348         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26349         * lib/localename.c, lib/time_rz.c:
26350         Include flexmember.h.
26351         * lib/fnmatch_loop.c (struct patternlist):
26352         * lib/localename.c (struct hash_node):
26353         Use FLEXIBLE_ARRAY_MEMBER.
26354         * lib/fnmatch_loop.c (EXT):
26355         * lib/fts.c (fts_alloc):
26356         * lib/glob.c (glob_in_dir):
26357         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26358         * lib/localename.c (gl_lock_define_initialized):
26359         * lib/time_rz.c (tzalloc):
26360         Use FLEXSIZEOF instead of offsetof.
26361         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26362         Check that the size of the struct can be taken.
26363         * modules/flexmember (Files): Add lib/flexmember.h.
26364         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26365         Add flexmember.
26367 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26369         getprogname: port to Solaris 10
26370         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26371         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26372         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26374         stdalign: correct mistake in alignof doc
26375         Problem reported by Joseph Myers in:
26376         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26377         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26378         alignof(S) where S is a structure containing a flexible array
26379         member.  The Gnulib substitute does not support this, but C11 does.
26381 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26383         main.mk: remove sc_program_name, since there is no more need to
26384         use set_program_name in tools (getprogname is enough for most
26385         of the cases).
26386         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
26387         * top/maint.mk (sc_program_name): Remove.
26389 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26391         Port tests away from progname, since modules that need the
26392         program name already depend on getprogname.
26393         * modules/acl-tests (Depends-on): Remove progname.
26394         * modules/argmatch (Depends-on): Likewise.
26395         * modules/argmatch-tests (Depends-on): Likewise.
26396         * modules/argp-tests (Depends-on): Likewise.
26397         * modules/argp-version-etc-tests (Depends-on): Likewise.
26398         * modules/array-list-tests (Depends-on): Likewise.
26399         * modules/array-oset-tests (Depends-on): Likewise.
26400         * modules/avltree-list-tests (Depends-on): Likewise.
26401         * modules/avltree-oset-tests (Depends-on): Likewise.
26402         * modules/avltreehash-list-tests (Depends-on): Likewise.
26403         * modules/carray-list-tests (Depends-on): Likewise.
26404         * modules/copy-file-tests (Depends-on): Likewise.
26405         * modules/exclude-tests (Depends-on): Likewise.
26406         * modules/fchownat-tests (Depends-on): Likewise.
26407         * modules/fdopendir-tests (Depends-on): Likewise.
26408         * modules/filenamecat-tests (Depends-on): Likewise.
26409         * modules/fstatat-tests (Depends-on): Likewise.
26410         * modules/fstrcmp-tests (Depends-on): Likewise.
26411         * modules/linked-list-tests (Depends-on): Likewise.
26412         * modules/linkedhash-list-tests (Depends-on): Likewise.
26413         * modules/mkdirat-tests (Depends-on): Likewise.
26414         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
26415         * modules/nonblocking-socket-tests (Depends-on): Likewise.
26416         * modules/obstack-printf-tests (Depends-on): Likewise.
26417         * modules/openat-tests (Depends-on): Likewise.
26418         * modules/parse-datetime-tests (Depends-on): Likewise.
26419         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
26420         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
26421         * modules/quotearg-simple-tests (Depends-on): Likewise.
26422         * modules/quotearg-tests (Depends-on): Likewise.
26423         * modules/rbtree-list-tests (Depends-on): Likewise.
26424         * modules/rbtree-oset-tests (Depends-on): Likewise.
26425         * modules/rbtreehash-list-tests (Depends-on): Likewise.
26426         * modules/spawn-pipe-tests (Depends-on): Likewise.
26427         * modules/system-quote-tests (Depends-on): Likewise.
26428         * modules/uniname/uniname-tests (Depends-on): Likewise.
26429         * modules/uninorm/nfc-tests (Depends-on): Likewise.
26430         * modules/uninorm/nfd-tests (Depends-on): Likewise.
26431         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
26432         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
26433         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
26434         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
26435         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
26436         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
26437         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
26438         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
26439         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
26440         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
26441         * modules/unlinkat-tests (Depends-on): Likewise.
26442         * modules/version-etc-tests (Depends-on): Likewise.
26443         * modules/xalloc-die-tests (Depends-on): Likewise.
26444         * modules/xmemdup0-tests (Depends-on): Likewise.
26445         * modules/xprintf-posix-tests (Depends-on): Likewise.
26446         * modules/xvasprintf-tests (Depends-on): Likewise.
26447         * tests/test-argmatch.c: Do not include progname.h.
26448         (main) Stop calling set_program_name.
26449         * tests/test-argp-version-etc.c: Likewise.
26450         * tests/test-argp.c: Likewise.
26451         * tests/test-argv-iter.c: Likewise.
26452         * tests/test-array_list.c: Likewise.
26453         * tests/test-array_oset.c: Likewise.
26454         * tests/test-avltree_list.c: Likewise.
26455         * tests/test-avltree_oset.c: Likewise.
26456         * tests/test-avltreehash_list.c: Likewise.
26457         * tests/test-carray_list.c: Likewise.
26458         * tests/test-copy-acl.c: Likewise.
26459         * tests/test-copy-file.c: Likewise.
26460         * tests/test-exclude.c: Likewise.
26461         * tests/test-fchownat.c: Likewise.
26462         * tests/test-fdopendir.c: Likewise.
26463         * tests/test-filenamecat.c: Likewise.
26464         * tests/test-fstatat.c: Likewise.
26465         * tests/test-fstrcmp.c: Likewise.
26466         * tests/test-linked_list.c: Likewise.
26467         * tests/test-linkedhash_list.c: Likewise.
26468         * tests/test-mkdirat.c: Likewise.
26469         * tests/test-nonblocking-pipe-main.c: Likewise.
26470         * tests/test-nonblocking-socket-main.c: Likewise.
26471         * tests/test-obstack-printf.c: Likewise.
26472         * tests/test-openat.c: Likewise.
26473         * tests/test-parse-datetime.c: Likewise.
26474         * tests/test-pipe-filter-gi1.c: Likewise.
26475         * tests/test-pipe-filter-gi2-main.c: Likewise.
26476         * tests/test-pipe-filter-ii1.c: Likewise.
26477         * tests/test-pipe-filter-ii2-main.c: Likewise.
26478         * tests/test-quotearg-simple.c: Likewise.
26479         * tests/test-quotearg.c: Likewise.
26480         * tests/test-rbtree_list.c: Likewise.
26481         * tests/test-rbtree_oset.c: Likewise.
26482         * tests/test-rbtreehash_list.c: Likewise.
26483         * tests/test-sameacls.c: Likewise.
26484         * tests/test-set-mode-acl.c: Likewise.
26485         * tests/test-spawn-pipe-main.c: Likewise.
26486         * tests/test-system-quote-main.c: Likewise.
26487         * tests/test-unlinkat.c: Likewise.
26488         * tests/test-version-etc.c: Likewise.
26489         * tests/test-xalloc-die.c: Likewise.
26490         * tests/test-xfprintf-posix.c: Likewise.
26491         * tests/test-xmemdup0.c: Likewise.
26492         * tests/test-xprintf-posix.c: Likewise.
26493         * tests/test-xvasprintf.c: Likewise.
26494         * tests/uniname/test-uninames.c: Likewise.
26495         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26496         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26497         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26498         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26499         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26500         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26501         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26502         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26503         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26504         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26505         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26506         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26507         * tests/test-c-stack.c: (program_name): Do not define.
26508         (main): Do not set program_name.
26509         * tests/test-closein.c: Likewise.
26510         * tests/test-xstrtol.c: Likewise.
26511         * tests/test-yesno.c: Likewise.
26513 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26515         Port modules to use getprogname explicitly, instead of requiring
26516         progname to be used (or program_name to be provided).
26517         * lib/argmatch.c: Do not include progname.h.
26518         [TEST] (program_name): Do not define.
26519         [TEST] (main): Call getprogname instead of using program_name.
26520         * lib/c-stack.c: Do not include progname.h.
26521         (program_name): Do not define.
26522         (die): Call getprogname instead of using program_name.
26523         * lib/chdir-long.c: Do not include progname.h.
26524         [TEST_CHDIR] (main): Do not set program_name.
26525         * lib/error.c [!_LIBC]: Include progname.h.
26526         [!_LIBC] (program_name): Define using getprogname.
26527         * lib/euidaccess.c: Do not include progname.h.
26528         [TEST] (main): Do not set program_name.
26529         * lib/git-merge-changelog.c: Include getprogname.h instead of
26530         progname.h.
26531         (usage): Call getprogname instead of using program_name.
26532         (main): Likewise.  Stop calling set_program_name.
26533         * lib/group-member.c: Do not include progname.h.
26534         [TEST] (main): Do not set program_name.
26535         * modules/argmatch (Depends-on): Add getprogname.
26536         * modules/c-stack (Depends-on): Likewise.
26537         * modules/error (Depends-on): Likewise.
26538         * modules/git-merge-changelog (Depends-on): Likewise.
26539         Also remove progname.
26541 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
26543         * NEWS: Document the deprecation of the 'progname' module.
26545 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26547         getprogname: new module
26548         This provides a LGPL module for getting the name of the current
26549         program, using the same API found on *BSD systems.
26550         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
26551         * modules/getprogname: New files.
26552         * MODULES.html.sh (Misc): Add getprogname.
26554 2016-09-02  Jim Meyering  <meyering@fb.com>
26556         manywarnings: add -fno-common
26557         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
26558         to the list.  Quoting the manual, "Compiling with -fno-common is
26559         useful on targets for which it provides better performance, or if
26560         you wish to verify that the program will work on other systems that
26561         always treat uninitialized variable declarations this way [putting
26562         it in the data section]."  If diffutils had been using this sooner,
26563         it would have prevented this duplicate declaration issue:
26564         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
26566 2016-08-31  Simon Josefsson  <simon@josefsson.org>
26568         parse-datetime: Fix typo.
26569         * lib/parse-datetime.y (parse_datetime2): Fix typo.
26571 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26573         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
26574         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
26575         GCC 5 and 6 that have __builtin_sub_overflow but not
26576         __builtin_sub_overflow_p.  With the recent changes, these
26577         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
26578         implementation than with INT_SUBTRACT_OVERFLOW implementation,
26579         since the former needs just one runtime comparison whereas the
26580         latter needs two.
26582         strverscmp: sync with glibc
26583         Although this doesn't exactly synchronize with glibc
26584         byte-for-byte, it makes the code behave the same as glibc.
26585         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
26586         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
26587         difference shouldn't matter in practical use.  All uses changed
26588         back to isdigit.
26589         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
26590         (next_state): Now unsigned char array; redo elements.
26591         (result_type): Now signed char array; redo elements.
26592         (__strverscmp): Fix glibc bug 9913 by using new states.
26593         * tests/test-strverscmp.c (main): Test glibc bug 9913.
26595 2016-08-29  Jim Meyering  <meyering@fb.com>
26597         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
26598         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
26599         similarly to how it was done to intprops.h.
26601 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26603         intprops.h: port recent changes to GCC 6.2.0
26604         * lib/intprops.h (__has_builtin): Move earlier.
26605         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
26606         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
26607         the last argument can be null.  All uses changed.
26608         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
26609         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26610         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
26611         and it's not clear which GCC versions it works for.
26612         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
26613         its definiens.
26615         intprops.h: use __typeof__ with GCC 7
26616         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
26617         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
26618         This avoids computing the expression's value (which might overflow!).
26620 2016-08-29  Jim Meyering  <meyering@fb.com>
26622         intprops.h, xalloc-oversized.h: work with gcc 7
26623         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
26624         __builtin_mul_overflow each accept a NULL pointer as the third
26625         argument.  However in gcc 7, that is no longer accepted.
26626         Instead, one must use the "_p"-suffixed names, with which, the
26627         third parameter is no longer a pointer.
26628         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
26629         the definition: not true for gcc 7 and subsequent.
26630         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
26631         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26632         Provide new definitions for gcc 7 and subsequent.
26633         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
26634         that works with gcc-7.
26636         intprops.h: fix missing-backslash problems
26637         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
26638         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
26640 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26642         intprops: fix paren typo on old platforms
26643         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
26644         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
26645         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
26646         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
26647         && !defined LLONG_MAX]:
26648         Remove stray paren.
26650         intprops: port to OpenVMS
26651         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
26652         * doc/posix-headers/limits.texi: Document the problem.
26653         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
26654         Define if not already defined.
26656 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
26658         parse-datetime: improve debug implementation
26659         Follow-up to commit 12ad79069 ("add optional debug printing").
26660         Improve parse-datetime's debug implementation: remove macros,
26661         replace global debug flag variable with a function parameter,
26662         use nstrftime for formatting.
26663         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
26664         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
26665         (parse_datetime2): New function, accepts 'flags' parameter, supporting
26666         debug flag. Existing interface 'parse_datetime' left unmodified.
26667         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
26668         (struct parser_control): add 'parse_datetime_debug' member variable.
26669         (parse_datetime): Call new function 'parse_datetime2' without debug.
26670         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
26671         pc.parse_datetime_debug variable as needed.
26672         (to_year): Accept new flags parameter, instead of using global variable.
26673         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
26674         use struct 'debug' variable instead of global variable.
26675         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
26676         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
26677         correspnding functions directly instead of using macros.
26678         * modules/parse-datetime: Add gnulib's strftime module.
26680 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
26682         c-strcase-tests: port to EBCDIC
26683         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
26684         which assume ASCII encoding semantics to run only in ASCII
26685         mode, as they fail in EBCDIC.
26687         sigpipe-tests: fix typo
26688         * tests/test-sigpipe.sh: C, not B.
26690 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26692         canonicalize-lgpl: fix errno after malloca fails
26693         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
26694         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
26695         * lib/canonicalize-lgpl.c (__realpath):
26696         Don't assume malloca sets errno on failure.
26698 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26700         strtod: port errno handling to z/OS
26701         * lib/strtod.c (strtod): Save and restore errno more reliably.
26703 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26705         strtod: port to z/OS
26706         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26707         implementation.
26709 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26711         strtod: port to z/OS
26712         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26713         implementation.
26715         regex, string: rename to avoid '__string'
26716         * lib/regex.h, lib/string.in.h: Do not use the identifier
26717         '__string', as it is effectively reserved by string.h on z/OS.
26719         c-strcase-tests, wcwidth-tests: depend on c-ctype
26720         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
26721         Add c-ctype.
26723 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26725         thread: port to z/OS
26726         * lib/glthread/thread.c, lib/glthread/thread.h:
26727         Rudimentary gl_thread support for z/OS.
26729         maint: port tests to z/OS errno behavior
26730         * tests/test-nonblocking-reader.h:
26731         * tests/test-nonblocking-writer.h:
26732         Accommodate z/OS errno code preferences. (I believe this should
26733         still be within spec; IBM is good at following the letter if not
26734         the spirit of such things.)
26736         maint: preprocessor changes to support z/OS
26737         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
26738         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
26739         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
26740         * tests/test-nonblocking-pipe.h:
26742         fclose, strstr-simple, wchar: port to z/OS
26743         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
26744         Changes to the Autoconf M4 code to support z/OS.  Note that
26745         fclose() is broken in a different way on z/OS than it is on other
26746         systems, thus the special-case in fclose.m4.
26748         iconv_open-utf-tests, iconv-tests: port to EBCDIC
26749         * tests/test-iconv-utf.c, tests/test-iconv.c:
26750         Added appropriately conditional #pragmas so that the test strings
26751         in test-iconv-utf.c are correctly interpreted in ASCII instead of
26752         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
26753         addressed in a more portable way by simply rewriting all the ASCII
26754         literal characters as octal escapes, but then you would lose the
26755         partial readability that the strings have now. Also, iconv_open()
26756         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
26758         c-strcase-tests, wcwidth-tests: port to EBCDIC
26759         * tests/test-c-strcasecmp.c: Include c-ctype.h.
26760         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
26761         * tests/test-wcwidth.c: Likewise.
26763 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26765         stdbool: don't require _Bool for C++
26766         Problem reported by David Seifert in:
26767         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
26768         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
26769         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
26770         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
26771         stricter about checking that bool and _Bool are compatible in C.
26773 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
26775         getdelim: remove dependency on realloc-posix
26776         * lib/canonicalize-lgpl.c (alloc_failed)
26777         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
26778         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
26779         Use __set_errno where needed, for consistency.
26780         * lib/getdelim.c (alloc_failed): New function.
26781         (getdelim): Use it.
26783 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
26785         parse-datetime: add optional debug printing
26786         Print parsing information, warnings, and errors to stderr.
26787         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
26788         * lib/parse-datetime.y:
26789         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
26790         (PROGRESS*): Same as DEBUG, for progress reporting.
26791         (dbg_printf): Print message to stderr, with 'date' prefix.
26792         (struct parser_control): Add 'debug_*_seen' variables.
26793         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
26794         (debug_print_current_time, debug_print_relateive_time): Prints the
26795         current/relative date/time value of parser_control.
26796         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
26797         (to_year): Warn about 2-digit year parsing.
26798         (yylex):   Warn about unrecognized words.
26799         (get_effective_timezone): Returns current timezone in minutes.
26800         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
26801         clearly and unambigiously as possible.
26802         (debug_mktime_not_ok): Print detailed information about failed
26803         date/time values.
26804         (parse_datetime): Add DEBUG messages for failures, warnings. Add
26805         PROGRESS messages for status messages.
26806         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
26808 2016-08-06  Jim Meyering  <meyering@fb.com>
26810         tests/init.sh: exclude dash with bad "local" semantics
26811         * tests/init.sh (gl_shell_test_script_): Add a function to
26812         eliminate a shell like "dash" (unlike bash, zsh) that has
26813         surprising/risky "local var='...'" semantics.  Inspired by
26814         the problem and discussion in https://bugs.gnu.org/24116#11.
26816 2016-08-02  Ján Tomko  <jtomko@redhat.com>
26818         maint.mk: expand the prohibit_doubled_word regex
26819         This check has a static list of words that are checked for
26820         repetitions.  Expand it before running the perl script to
26821         avoid using expensive captures.  This decreases the cost
26822         for libvirt from 1.66s to 0.66s.
26823         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
26824         (sc_prohibit_doubled_word): Use it.
26826 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26828         useless-if-before-free: skip non-matching lines early
26829         * build-aux/useless-if-before-free: First match each line with the
26830         simple/quick /\bif\b/ and reject if there is no match. This often
26831         saves the cost of the much more involved regular expression.
26832         For libvirt, this decreases the cost from 1.44s to 1.02s.
26834 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26836         maint.mk: speed up sc_po_check
26837         sc_po_check would skip files based on their names, or on the
26838         existence of files with derived names. Rewrite it to use perl
26839         instead of shell to make the check faster.
26840         * top/maint.mk (perl_translatable_files_list_): Define.
26841         (sc_po_check): Use it.
26843 2016-07-30  Ján Tomko  <jtomko@redhat.com>
26845         maint.mk: speed up require_config_h_first
26846         Instead of spawning three processes per file,
26847         rewrite the check in perl and run it once for all the files.
26848         * top/maint.mk (perl_config_h_first_): Define.
26849         (sc_require_config_h_first): Use it in place of shell code.
26851 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26853         maint.mk: speed up sc_po_check
26854         sc_po_check would skip files based on their names, or on the
26855         existence of files with derived names. Rewrite it to use perl
26856         instead of shell to make the check faster.
26857         * top/maint.mk (perl_translatable_files_list_): Define.
26858         (sc_po_check): Use it.
26860 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26862         obstack: pacify GCC 6 with -Wnull-dereference
26863         Problem reported by Assaf Gordon in:
26864         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
26865         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
26866         Declare with __attribute_noreturn__.
26867         * lib/obstack.h (__attribute_noreturn__): New macro.
26869 2016-07-13  Eric Blake  <eblake@redhat.com>
26871         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
26872         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
26873         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
26875 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
26877         doc: mention glibc SSIZE_MAX buglet
26878         * doc/posix-headers/limits.texi (limits.h): Document the bug.
26880 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
26882         printf-posix: Fix mingw build
26883         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
26884         expression for detecting C symbol prefixes but forgot to qoute square
26885         brackets in the command line arguments for grep.  That way when
26886         building with mingw the condition was false although it ought to be
26887         true instead.  In particular scenarios this led to the following
26888         compile error:
26890             Cannot export rpl_printf: symbol not found
26891             Cannot export rpl_scanf: symbol not found
26892             collect2: error: ld returned 1 exit status
26894         Fix this by properly quoting square brackets.
26896 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26898         mktime: call tzset as per POSIX
26899         Problem reported by Ludovic Courtès in:
26900         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
26901         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
26902         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
26904 2016-06-26  Pádraig Brady  <P@draigBrady.com>
26906         fts: handle readdir() errors
26907         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
26908         but also upon error when it will also set errno.  Therefore
26909         flag the error case from readdir().  We treat the case where
26910         no items are read the same as if the dir can't be accessed,
26911         i.e. by setting fts_errno to FTS_DNR.
26913 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
26915         intprops: port better to GCC 7
26916         GCC 7 __builtin_add_overflow supports a new usage form, where the
26917         last argument is a null pointer, and which merely returns 1 if an
26918         overflow would occur.  This is a constant expression if all
26919         arguments are constants, and should generate faster code when code
26920         needs to be generated.
26921         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
26922         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26923         Use builtin operations if available.
26924         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
26925         operations are available, as it's almost surely faster.
26927 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26929         intprops-test: port to GCC 6
26930         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
26931         since the bug is not fixed in GCC 6.1.
26933 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
26935         xalloc-oversized: port to GCC 7; fewer warnings
26936         GCC 7 will have a better way to deal with integer overflow.
26937         Plus, fix a warnings problem reported by Tim Ruehsen in:
26938         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
26939         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
26940         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
26941         For GCC 5, use __xalloc_oversized if both args are constants,
26942         or if pedantic.
26944 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
26946         regex: port to Sun C
26947         Reported by Daiki Ueno.
26948         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
26949         __restrict, in prototype.  This fixes a problem I introduced in
26950         the 2016-02-19 merge from glibc.
26952 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
26954         stdbool: Restore __bool_true_false_are_defined check
26955         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
26956         __bool_true_false_are_defined is still defined, even with C++11.
26958 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
26960         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
26961         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
26963 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
26965         Use GCC_LINT, not lint
26966         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
26967         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
26968         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
26969         Document problem with lint and _Noreturn.
26970         * lib/diffseq.h (IF_LINT, IF_LINT2):
26971         * lib/fts.c (sccsid):
26972         * lib/getndelim2.c (IF_LINT):
26973         * lib/gl_anylinked_list2.h (gl_linked_iterator)
26974         (gl_linked_iterator_from_to):
26975         * lib/gl_anytree_list2.h (gl_tree_iterator)
26976         (gl_tree_iterator_from_to):
26977         * lib/gl_anytree_oset.h (gl_tree_iterator):
26978         * lib/gl_array_list.c (gl_array_iterator)
26979         (gl_array_iterator_from_to):
26980         * lib/gl_array_oset.c (gl_array_iterator):
26981         * lib/gl_carray_list.c (gl_carray_iterator)
26982         (gl_carray_iterator_from_to):
26983         * lib/idcache.c:
26984         * lib/inet_ntop.c (IF_LINT):
26985         * lib/regcomp.c (build_charclass_op, create_tree):
26986         * lib/regex_internal.c (re_acquire_state)
26987         (re_acquire_state_context):
26988         * lib/trigl.c (rcsid):
26989         * lib/trim.c (IF_LINT):
26990         * lib/vasnprintf.c (IF_LINT):
26991         * lib/verify.h (assume):
26992         Treat GCC_LINT like lint.
26994 2016-05-29  Bruno Haible  <bruno@clisp.org>
26996         secure_getenv: Port to many more platforms.
26997         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
26998         functions.
26999         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27000         for non-BSD Unix platforms and for native Windows.
27001         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27002         Prompted by a request from Nikos Mavrogiannopoulos.
27004 2016-05-27  Eric Blake  <eblake@redhat.com>
27006         canonicalize: Fix broken probe for realpath.
27007         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27008         in logic introduced in 54615b95.
27010 2016-05-26  Eric Blake  <eblake@redhat.com>
27012         unsetenv: relax to LGPLv2+
27013         * modules/unsetenv (License): Match setenv license.
27015 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27017         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27018         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27019         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27020         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27021         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27022         (generate_html, generate_info, generate_tex, outdir)
27023         (source_extra, split, srcfile, texarg): Move above 'version'.
27024         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27026 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27028         manywarnings: update for GCC 6.1
27029         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27030         Add GCC 6.1 options that apply to C.
27031         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27032         do not apply to C, are obsolescent, etc.
27034 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27036         glob: size_t overflow checks
27037         * lib/glob.c (__has_builtin): New macro.
27038         (size_add_wrapv, glob_use_alloca): New static functions.
27039         (glob, glob_in_dir): Check for size_t overflow in several places,
27040         and fix some size_t checks that were not quite right.
27042         glob: don't assume INT_MAX < SIZE_MAX
27043         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27044         latter is not portable to (probably theoretical) hosts where
27045         SIZE_MAX <= INT_MAX.
27047 2016-05-09  Bruno Haible  <bruno@clisp.org>
27049         Fix undefined behaviour in gettext.h.
27050         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27051         pointer's value after the storage it points to has been freed.
27052         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27053         Spotted by Coverity.
27055 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27057         git-version-gen: avoid undefined shift
27058         Problem reported by Mosè Giordano in:
27059         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27060         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27061         with --prefix or --fallback but without a later argument.  While
27062         we're at it, omit unnecessary quotes.
27064 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27066         glob: merge glibc changes into lib/glob.c
27067         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27068         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27069         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27070           struct dirent [BZ #19779]
27071         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27072           callback gl_readdir
27073         2015-10-20 Convert miscellaneous function definitions to prototype style
27074         2015-10-20 Convert 113 more function definitions to prototype style
27075           (files with assertions)
27076         2015-06-12 Fix getlogin_r namespace (bug 18527).
27077         2014-02-10 Use glibc_likely instead __builtin_expect.
27078         2013-10-20 When glob pattern contains a trailing slash match only
27079           directories. Fixes bug 10278.
27080         2013-09-04 glob: silence -Wattribute warnings
27081         2013-06-07 Avoid use of "register" as optimization hint.
27082         2012-09-25 Use size_t instead of int for internal variables in glob
27083           (bug 14621)
27084         2011-07-20 Check for overflows in expressions
27085         2011-05-28 Remove unused variable
27086         2011-05-22 Add a few more alloca size checks
27087         2010-03-27 Whitespace fixes
27088         2010-03-27 Fix one more issue with the glob patch
27089         2010-03-24 Fix glob with empty pattern
27090         2008-05-27 Remove useless more "if" tests before "free"
27091         * modules/glob (Depends-on): Add stdint.
27093 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27095         mktime: port to stricter signed overflow checking
27096         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27097         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27098         instead of merely for INT_MAX * 2.  In practice platforms that
27099         do the latter also do the former.
27100         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27101         (shr): New static function, replacing SHR.  All uses changed.
27102         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27103         and TIME_T_MAX.  All uses changed.
27104         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27105         Use long_int, not time_t.
27106         (long_int_avg): New static function, replacing time_t_avg.
27107         All uses changed.  Round toward positive infinity, as that
27108         generates slightly better code.
27109         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27110         by INT_ADD_WRAPV.
27111         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27112         (convert_time): New static function.
27113         (ranged_convert): Use it
27114         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27115         Use simpler test for loop exit.
27116         (__mktime_internal): Store negative of guessed offset, to simplify
27117         overflow checking.  Remove no-longer-needed test for small time_t
27118         overflows.
27120         mktime: speed up DEBUG_MKTIME benchmarks
27121         Call tzset just once, at the start, rather than for every test
27122         case.  This lets us measure the CPU cost of mktime as opposed to
27123         that of tzset.  This is relevant when TZ is not set and glibc is
27124         being used.  This speeds up tests by a factor of 40 on my Fedora
27125         23 x86-64 platform.
27126         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27127         to call tzset and as a sanity check.  Later on, use localtime_r
27128         instead of localtime.
27130         mktime: resurrect DEBUG_MKTIME testing
27131         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27132         Include <string.h>, for strcmp.
27134         mktime: simplify DEBUG_MKTIME
27135         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27136         Simplify later usage accordingly.
27138         Port mktime_internal offset to unsigned time_t
27139         This avoids some assumptions about wraparound arithmetic on
27140         signed integer overflow.
27141         * lib/mktime-internal.h (mktime_offset_t): New type.
27142         (mktime_internal): Use it in decl.
27143         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27145         * lib/mktime.c (__mktime_internal, localtime_offset):
27146         * lib/timegm.c (timegm): Use it.
27147         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27148         (gl_FUNC_MKTIME): Require it.
27150 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27152         xstrtol: prohibit monstrosities like "1bB"
27153         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27154         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27155         "B" only if the first suffix needs a base.
27156         * tests/test-xstrtol.sh: Test this.
27158 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27160         xstrtod: reinstate setting of *result upon ERANGE
27161         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27162         the returned limits upon ERANGE, so allow and document that.
27164 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27166         xstrtod: modify *result only if no errors
27167         * lib/xstrtod.c (XSTRTOD).
27169 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27171         btowc: document problems in C locale
27172         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27173         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27175 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27177         mktime: improve integer overflow checking
27178         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27179         (WRAPV): Remove; no longer needed.
27180         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27181         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27182         Remove.  Use intprops.h defns instead.
27183         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27184         Use bool for Boolean, for clarity.
27185         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27186         detect integer overflow.
27187         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27189         intprops: check two's complement assumption
27190         Suggested by Eric Blake in:
27191         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27192         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27193         short, int, long, and (if available) long long are two's complement.
27194         * modules/intprops (Depends-on): Add 'verify'.
27196         intprops, mktime, strtol: assume two's complement
27197         These macros were not portable to every conforming C11 ones'
27198         complement platform.  It's not worth the hassle of porting to some
27199         platforms that use ones' complement or signed magnitude, as such
27200         platforms are almost purely theoretical nowadays and porting even
27201         to some of them makes the code harder to review for little
27202         practical benefit.  Problem reported by Florian Weimer in:
27203         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27204         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27205         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27206         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27207         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27208         (TYPE_SIGNED_MAGNITUDE):
27209         Remove.  All uses rewritten to assume two's complement, which is
27210         all we can reasonably test nowadays anyway.
27211         * top/maint.mk (_intprops_names): Remove the removed macros.
27213 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27215         stdint: port to strict C11 left shift
27216         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
27217         Pacify clang -Wshift-negative-value, which should be an issue only
27218         on clang setups where stdint.h does not conform to C11 or to C++11.
27219         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
27221 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27223         mbrtowc: work around glibc bug#19932
27224         Fix mbrtowc so that it never returns -1 in the C locale,
27225         as this conflicts with a future version of POSIX
27226         http://austingroupbugs.net/view.php?id=663#c2738
27227         and causes problems with GNU grep: http://bugs.gnu.org/23234
27228         See glibc bug 19932:
27229         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
27230         * doc/posix-functions/mbrlen.texi (mbrlen):
27231         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27232         Document the glibc bug.
27233         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
27234         Include hard-locale.h, locale.h.
27235         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
27236         if the bug is possible.
27237         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
27238         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
27239         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
27240         * modules/mbrtowc (Depends-on): Add hard-locale.
27241         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
27242         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
27243         * tests/test-mbrtowc5.sh: New file.
27245 2016-04-03  Pedro Alves  <palves@redhat.com>
27247         stdint: detect good enough pre-C++11 stdint.h in C++ mode
27248         When gnulib is configured in C++ mode for a system with a working C99
27249         implementation of stdint.h that predates C++11, gnulib ends up
27250         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27251         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27252         MinGW is LLP64.  Instead of trying to detect the right types, detect
27253         good-enough-pre-C++11 stdint.h and in such case define
27254         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27255         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27256         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27257         conforms to C99.  If it does, check whether it hides symbols
27258         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27259         does, define those macros in config.h.
27261 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27263         argp: merge changes from glibc
27264         Among other things, this should fix problems found by a Coverity
27265         scan and reported by Andrei Borzenkov:
27266         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27267         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27268         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27269         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27270         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27271         * lib/argp.h:
27272         Merge changes from glibc.
27273         * tests/test-argp-2.sh: Adjust to match new behavior.
27275 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27277         stddef: support configuring with g++
27278         Problem reported by Ángel González in:
27279         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27280         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27281         Do not define if _GCC_MAX_ALIGN_T is defined.
27283 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27285         test-framework-sh: minor cleanups
27286         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27287         since strictly speaking POSIX requires this.
27288         (setup_): Do not use the variable 'fail', as that makes the
27289         trace output harder to read ('fail' is typically used by
27290         tests to mean the test failed).  Treat // portably.
27291         Check that new directory is not merely a sibling of the tmp dir.
27292         Avoid unnecessary invocation of tr.
27294         test-framework-sh: revert port to NetBSD 7.0
27295         It was a false alarm; I misinterpreted Assaf Gordon's report.
27296         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27297         Restore.
27298         (test_dir_): Adjust to mktempd_ change.
27299         (mktempd_): Restore 2nd arg.  Use -t again.
27300         (base_template_, template_, nx_): Resurrect old code.
27302         Port better to Alpine Linux
27303         Its diff implementation does not support -c, but does support -U3.
27304         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27305         * tests/init.sh (diff_opt_): New var.
27306         (compare_): Prefer diff -U3 to diff -c to plain diff.
27308 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27310         test-framework-sh: port to NetBSD 7.0
27311         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27312         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27313         Remove.  All uses removed.
27314         (test_dir_): Adjust to mktempd_ change.
27315         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27316         (base_template_, template_, nx_): Simplify by hardcoding.
27318 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27320         gitlog-to-changelog: suppress ignored chatter
27321         * build-aux/gitlog-to-changelog: Do not warn about skipping
27322         an SHA if it would have been ignored anyway.
27324 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27326         setlocale: add "sv" to Windows language table
27327         * lib/setlocale.c (language_table) [W32]: Add "sv".
27328         Reported in <https://savannah.gnu.org/bugs/?44588>.
27330 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27332         sys_select: port to new Cygwin
27333         Problem reported by Ken Brown in:
27334         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27335         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27336         diagnostics.
27338 2016-03-17  Jim Meyering  <meyering@fb.com>
27340         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27341         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27342         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27343           test-userspec.c:176:9: error: statement is indented as if it were \
27344             guarded by... [-Werror=misleading-indentation]
27345                    {
27346                    ^
27347           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27348                  if (!diag && !T[i].result)
27349                  ^~
27351 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27353         time_rz: port to clang -Wunused-const-variable
27354         * lib/time_rz.c (TZ): Remove.  All uses removed.
27356         std-gnu11: improve clang support
27357         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27358         2016-03-15 Also try clang
27359         2016-03-15 Port C11 and C++11 testing to clang
27361         select: port more to Intel 2016.1.150 compiler
27362         Problem reported by Balázs Hajgató in:
27363         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27364         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27366 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27368         select: try to port to 2016.1.150 compiler
27369         Problem reported by Balázs Hajgató in:
27370         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27371         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27372         POSIX specifies 'restrict'.
27374 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27376         localename-tests: memory allocation fixes
27377         * tests/test-localename.c (test_locale_name)
27378         (test_locale_name_thread): Don't call freelocale on a locale
27379         that was the base of a successful newlocale, as that
27380         results in a double free.  Problem reported by Assaf Gordon.
27381         (test_locale_name_thread): Free saved names after use, to pacify
27382         gcc -fsanitize=address.
27384 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27386         intprops: make .h file license match module
27387         * lib/intprops.h: Change the license wording to match glibc format.
27388         This is what is in modules/intprops anyway.  See:
27389         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
27391 2016-03-08  Eric Blake  <eblake@redhat.com>
27393         acl: fix missing return on Cygwin
27394         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
27395         fall off end of function. Fixes http://bugs.gnu.org/22949
27397 2016-03-05  Bruno Haible  <bruno@clisp.org>
27399         extern-inline: port to PGI CC
27400         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
27401         keyword 'inline'.
27402         Reported by Adam James Stewart in:
27403         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
27405 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27407         signbit: port back to pre-C++11 GCC
27408         * lib/math.in.h (signbit): Do previous change only if
27409         __cplusplus < 201103.  See Jonathan Wakely in:
27410         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
27412 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
27414         mountlist: recognize autofs-mounted remote file systems, too
27415         Originally reported at: https://bugzilla.redhat.com/1309247
27416         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
27417         "-hosts" because it is used by autofs to mount remote file systems.
27419 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27421         signbit: port to C++ with GCC 6
27422         * lib/math.in.h (signbit) [__cplusplus]:
27423         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
27424         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
27426         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
27428         regex: make it closer to libc
27429         Make Idx a signed type, rather than possibly unsigned.
27430         The unsignedness was not really buying us anything, since the code
27431         overflows for other reasons before getting to PTRDIFF_MAX.  Making
27432         it signed allows us to use -1 and -2 with abandon, like libc does,
27433         thus lessening the number of differences between gnulib and libc.
27434         Also, it should help avoid gratuitous warnings like the one
27435         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
27436         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
27439         regex: merge patches from libc
27441         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
27442         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
27443         Convert miscellaneous function definitions to prototype style.
27444         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
27445         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
27446         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
27447         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
27448         (re_search_internal):
27449         Convert to prototype-style function definition.
27450         Use internal_function for internal functions.
27452 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
27454         stdalign: port to older HP and IBM cc
27455         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
27456         C compilers, by checking their version numbers.  These version
27457         numbers appear in MariaDB and in Qt code that dates way back and
27458         that conditiionally uses the 'aligned' attribute.
27460 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27462         stdalign: port to clang 3.7.0
27463         Problem reported by Herbert J. Skuhra in:
27464         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
27465         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
27466         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
27467         https://llvm.org/bugs/show_bug.cgi?id=26547
27469 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27471         readdir_r: now obsolescent
27472         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
27473         * lib/mountlist.c (read_file_system_list): Add a FIXME.
27475 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27477         misc: port better to gcc -fsanitize=address
27478         Without these patches, ./configure CFLAGS='-fsanitize=address'
27479         would compute incorrect values.  This patch fixes some (but not all)
27480         test failures with recent glibc, with this configuration.
27481         * m4/acl.m4 (gl_ACL_GET_FILE):
27482         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
27483         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
27484         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
27485         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
27486         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
27487         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
27488         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
27489         * m4/getline.m4 (gl_FUNC_GETLINE):
27490         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
27491         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
27492         * m4/regex.m4 (gl_REGEX):
27493         * m4/strndup.m4 (gl_FUNC_STRNDUP):
27494         * tests/test-calloc-gnu.c (main):
27495         * tests/test-duplocale.c (main):
27496         * tests/test-getgroups.c (main):
27497         * tests/test-getline.c (main):
27498         * tests/test-inttostr.c (main):
27499         * tests/test-localename.c (test_locale_name)
27500         (test_locale_name_thread, test_locale_name_environ)
27501         (test_locale_name_default):
27502         * tests/test-regex.c (main):
27503         * tests/test-setlocale1.c (main):
27504         * tests/test-stat.h (test_stat_func):
27505         Free heap-allocated storage before exiting.
27506         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
27507         Don't match *_foo symbols inserted by AddressSanitizer.
27508         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
27510 2016-02-02  Jim Meyering  <meyering@fb.com>
27512         verify-tests: also remove stray test-verify.Tpo
27513         * modules/verify-tests (Makefile.am): Arrange for "make clean"
27514         to remove the test-verify.Tpo file that is left behind by
27515         the automake-generated rule upon compilation failure.
27516         Otherwise, that .Tpo file would cause a failed "make distcheck"
27517         at least for grep.
27519 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27521         std-gnu11: new module
27522         This makes it easier for applications to prefer C11 and C++11
27523         to older variants, when compiling C and C++ code.
27524         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
27525         a nontrivial chunk of GPLed Autoconf source code.
27526         * COPYING: Mention the m4/*.m4 copyright situation.
27527         * MODULES.html.sh (std-gnu11): New module.
27528         * m4/std-gnu11.m4, modules/std-gnu11: New files.
27530 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27532         get-permissions, strftime: fix grammar in comments
27533         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
27534         some grammar fixes Alan Mackenzie made to GNU Emacs.
27536 2016-01-25  Daiki Ueno  <ueno@gnu.org>
27538         gettext: mark as obsolete
27539         Suggested by Paul Eggert in:
27540         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
27541         * modules/gettext (Status): Mark as obsolete.
27542         (Notice): Suggest to use 'gettext-h' instead.
27543         * modules/gettext-h (Description): Suggest GNU gettext, instead of
27544         the 'gettext' module.
27546 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27548         gnulib-tool: don't give up on ln -s so easily
27549         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
27550         because an earlier one failed.  The targets could be on different
27551         file systems.  Problem reported by KO Myung-Hun in:
27552         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
27554         closedir: fix OS/2-related typos
27555         Problem reported by KO Myung-Hun in:
27556         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
27557         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
27558         in the last couple of changes.
27560 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
27562         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
27563         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
27564         copying a directory.
27566 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27568         regex: treat [x] as x if x is a unibyte encoding error
27569         Problem reported by Aharon Robbins in:
27570         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
27571         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
27572         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
27574         closedir, dirfd, opendir: port to OpenSolaris 5.10
27575         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
27576         * m4/dirfd.m4 (gl_FUNC_DIRFD):
27577         * m4/opendir.m4 (gl_FUNC_OPENDIR):
27578         Don't use ${word##pat} substitution, as it doesn't work in
27579         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
27580         http://bugs.gnu.org/22443#11
27582 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27584         bootstrap: use American spelling
27585         * build-aux/bootstrap: Honor American spelling.
27587 2016-01-22  Karl Berry  <karl@freefriends.org>
27589         * doc/posix-functions/localtime.texi,
27590         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
27592 2016-01-21  Bruno Haible  <bruno@clisp.org>
27594         hash-pjw-bare: fix comment
27595         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
27597         wcwidth: Replace also on OpenBSD 5.8
27598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
27599         * doc/posix-functions/wcwidth.texi: Update.
27601 2016-01-20  Pádraig Brady  <P@draigBrady.com>
27603         gnu-web-doc-update: fix addition of new files
27604         If there were already added (emnpty) dirs,
27605         then cvs aborts the add with the message:
27606           cvs [add aborted]: there is a version in <./dirname> already
27607         * build-aux/gnu-web-doc-update: Add directories separately
27608         to the addition of files, to avoid the above issue
27609         impacting the addition of files.
27611 2016-01-19  Daiki Ueno  <ueno@gnu.org>
27613         utimens-tests: avoid pulling gettext .m4 files
27614         Although this is not the right fix to the original problem:
27615         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
27616         it makes it possible again for consumer projects to use arbitrary
27617         version of gettext, through the steps described at:
27618         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
27619         See here for details:
27620         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
27621         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
27622         'gettext'.
27623         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
27624         'gettext'.
27626 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27628         regex: pacify static checkers
27629         Problem and draft fix reported by Aharon Robbins in:
27630         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27631         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
27632         Clear memory to pacify static checkers.
27634         regex: fix [ diagnostic
27635         Problem and fix reported by Aharon Robbins in:
27636         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27637         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
27639         regex: fix memory leaks
27640         Problem and draft fix reported by Aharon Robbins in:
27641         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27642         * lib/regcomp.c (build_range_exp, build_charclass_op)
27643         * lib/regex_internal.c (re_dfa_add_node):
27644         Fix memory leak on failure.
27646 2016-01-18  Pádraig Brady  <P@draigBrady.com>
27648         fts: don't unconditionally use leaf optimization for NFS
27649         NFS st_nlink are not accurate on all implementations,
27650         leading to aborts() if that assumption is made.
27651         See <https://bugzilla.redhat.com/1299169>
27652         * lib/fts.c (leaf_optimization_applies): Remove NFS from
27653         the white list, and document the issue.
27655 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27656             KO Myung-Hun  <komh@chollian.net>
27658         gnulib-tool: don't assume ln -s works
27659         * gnulib-tool (func_ln_s): New function.
27660         (func_ln): Use it.
27662 2016-01-15  KO Myung-Hun  <komh@chollian.net>
27664         utimes: detect utimes() correctly on OS/2 kLIBC
27665         utimes() of OS/2 kLIBC has some limitations.
27666         1. OS/2 itself supports a file date since 1980 year in local time.
27667         2. OS/2 itself supports only even seconds for a file time.
27668         3. utimes() of OS/2 kLIBC does not work on an opened file.
27669         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
27670         * doc/posix-functions/utimes.texi: Document the above limitations of
27671         utimes() on OS/2 kLIBC.
27673 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27674             KO Myung-Hun  <komh@chollian.net>
27676         openat_proc_name: port to OS/2 kLIBC
27677         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
27678         instead of /proc/self/fd.
27679         * lib/openat-proc.c (openat_proc_name):
27680         Don't assume file name length is less than INT_MAX.
27681         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
27683 2016-01-14  KO Myung-Hun  <komh@chollian.net>
27685         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
27686         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
27687         definitions of intptr_t and uintptr_t (which use int and unsigned)
27688         to avoid clashes with declarations of system functions like sbrk.
27689         * lib/stdint.in.h (intptr_t, uintptr_t): Check
27690         _INTPTR_T_DECLARED before defining them.
27692         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
27693         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
27694         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
27695         Declare on kLIBC.
27696         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
27697         fd associated with dirp.
27698         (_gl_register_dirp_fd): New. Register fd associated with dirp to
27699         dirp_fd_list.
27700         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
27701         (dirfd): Implemented for kLIBC.
27702         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
27703         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
27704         succeeds.
27705         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
27706         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27707         (REPLACE_DIRFD): Define to 1 if replaced.
27708         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
27709         * modules/closedir (Depends-on): Add dirfd.
27710         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
27711         condition.
27712         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
27713         * modules/opendir (Depends-on): Add dirfd.
27715         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
27716         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
27717         * lib/dup.c (dup_nothrow): New.
27718         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
27719         (klibc_dup2): New.
27720         * lib/fcntl.c (klibc_fcntl): New.
27721         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
27722         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
27723         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
27724         fd.
27726         pipe_filter_ii_execute: port to OS/2 kLIBC
27727         Pipes on kLIBC do not support O_NONBLOCK like Win32.
27728         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
27729         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
27730         Reuse Win32 code on OS/2 kLIBC.
27731         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
27732         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
27734         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
27735         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
27736         static inline function.  The implementation of wcwidth in wcwidth.c
27737         causes a "conflicting types" error.
27738         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
27740         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
27741         spawn() on OS/2 kLIBC is not silly like one on Windows
27742         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
27743         empty string on OS/2 kLIBC.
27745         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
27746         On OS/2 kLIBC, select() works only on sockets.
27747         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
27749         binary-io: don't put fd in binary mode if it is a console on EMX
27750         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
27751         a console on EMX.
27753 2016-01-15  Pádraig Brady  <P@draigBrady.com>
27755         doc: mention unfixed issues with unsupported localtime() values
27756         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
27757         returns nonsense for localtime(2^56).
27758         * doc/posix-functions/localtime_r.texi: Likewise.
27760 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27762         doc: mention setlocale() issues on OpenBSD
27763         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
27764         never fails, and the need to check categories individually.
27766 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27768         sig2str: list all signals on FreeBSD >= 7
27769         FreeBSD >= 7 is contravening POSIX by not defining NSIG
27770         to the maximal statically defined signal value.
27771         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
27772         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
27773         where available, even when NSIG is defined.
27775 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27777         acl-permissions: port to USE_ACL==0 platforms
27778         I ran into this problem when building bleeding-edge GNU Emacs
27779         with gcc -fsanitize=address on Fedora 23.  On this platform
27780         the ACL library does not pass the 'configure' test and Emacs
27781         then does not build due in part to what appear to be typos in the
27782         ACL part of Gnulib.
27783         * lib/acl-internal.c (free_permission_context):
27784         * lib/acl-internal.h (struct permission_context):
27785         Test whether USE_ACL is nonzero, not whether it is defined.
27787 2016-01-12  Martin Sebor  <msebor@redhat.com>
27789         mktime: rename macro to avoid glibc clash
27790         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
27791         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
27793 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27795         Port "$@" to OpenIndiana ksh93
27796         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
27797         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
27798         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
27799         bug long-dead shells, so remove the workaround.
27800         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
27801         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27802         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
27803         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
27804         Use "$@" instead of ${1+"$@"}.
27806         Port Universal Time settings to strict POSIX
27807         * build-aux/announce-gen, build-aux/bootstrap:
27808         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
27809         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27810         * build-aux/gnupload, build-aux/mkinstalldirs:
27811         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
27812         * build-aux/update-copyright, build-aux/useless-if-before-free:
27813         * build-aux/vc-list-files, tests/test-strftime.c:
27814         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
27815         but POSIX says the behavior of TZ="UTC" is undefined.
27817 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
27819         msvc-inval: fix problem with unset shell var
27820         Problem reported by Karl Berry in:
27821         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
27822         * modules/msvc-inval (Depends-on):
27823         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
27824         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
27826 2016-01-01  Pádraig Brady  <P@draigBrady.com>
27828         tests: for compare_(), use cmp -s where available
27829         * tests/init.sh (compare_): Only fall back to cmp without
27830         the POSIX defined -s option, where this is not available.
27832 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27834         version-etc: new year
27835         * build-aux/gendocs.sh (version):
27836         * doc/gendocs_template:
27837         * doc/gendocs_template_min:
27838         * doc/gnulib.texi:
27839         * lib/version-etc.c (COPYRIGHT_YEAR):
27840         Update copyright dates by hand in templates and the like.
27841         * all files: Run 'make update-copyright'.
27843 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
27845         human: fix output buffer overrun by 1
27846         * lib/human.c (human_readable): Fix off-by-one typo in buffer
27847         calculation that could lead to a one-byte buffer overrun.
27849 2015-12-28  Daiki Ueno  <ueno@gnu.org>
27851         maint: fix operator precedence in mbrtowc test
27852         This is a fix for test breakage introduced by commit 45228d96; the
27853         equality expression must be parenthesized when negated with '!',
27854         otherwise we always get:
27856           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
27858         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
27859         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
27861 2015-12-23  James Youngman  <jay@gnu.org>
27863         regexprops-generic: update from regex.h
27864         * doc/regexprops-generic.texi: update by running the regexprops binary
27865         from findutils (the command line is 'regexprops "Regular Expressions"
27866         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
27867         gnulib with GNU grep had made this document out-of-date.
27869 2015-12-23  Pádraig Brady  <P@draigBrady.com>
27871         strftime-tests: avoid false failure on OS X
27872         * tests/test-strftime.c (struct localtime_rz_test): Add an
27873         ahistorical member which is used to warn rather than fail
27874         when tm_isdst isn't set for such entries.  This is the case for
27875         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
27877 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
27879         fts: ensure leaf optimization is used for NFS
27880         NFS provides usable dirent.d_type but not necessarily for all entries
27881         of large directories.  See <https://bugzilla.redhat.com/1252549>
27882         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
27884 2015-12-20  Pádraig Brady  <P@draigBrady.com>
27886         fts: enable leaf optimization for XFS
27887         XFS provides usable dirent.d_type only for DT_DIR,
27888         but the noleaf optimization still applies.
27889         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
27891 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
27893         intprops: comment fix
27894         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
27895         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
27897         intprops-test: work around GCC bug 68971
27898         Problem reported by Pádraig Brady in:
27899         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
27900         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
27901         (main): Add a case that better tests 64-bit long in this area.
27903 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
27905         gnulib-tool: allow multiple --local-dir usage
27906         * gnulib-tool: Use --local-dir to construct compound
27907         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
27908         PATH_SEPARATOR early.
27909         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
27910         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
27911         func_determine_path_separator because that needs to be detected
27912         earlier now.
27913         (func_determine_path_separator): New function.
27914         (func_path_foreach, func_path_foreach_inner): New functions.
27915         (func_path_prepend, func_path_append): Likewise.
27916         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
27917         (func_lookup_file, func_all_modules): Use new functions to work
27918         with local_gnulib_path.
27919         (func_modules_in_dir, func_exists_module): New callbacks for
27920         func_path_foreach.
27921         (func_exists_module, func_get_tests_module): Likewise.
27922         (func_is_local_file, func_should_symlink): New helper methods.
27923         (func_add_file, func_update_file): Use new func_should_symlink
27924         instead, DRY.
27925         (func_reconstruct_cached_local_gnulib_path): New helper.
27926         (func_reconstruct_cached_dir): New callback.
27927         (func_import): The cached_local_gnulib_dir renamed to
27928         cached_local_gnulib_path similarly to local_gnulib_dir.
27929         Use new func_reconstruct_cached_local_gnulib_path.
27930         (func_count_relative_local_gnulib_path): New sub-method.
27931         (func_create_testdir): Use func_should_symlink, DRY.
27932         (func_create_megatestdir): Use new functions to work with
27933         local_gnulib_path correctly.
27934         (func_append_local_dir): New helper.
27936 2015-12-08  Pádraig Brady  <P@draigBrady.com>
27938         fix freadptr to work with ungetc on all uClibc configs
27939         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
27940         where GNU coreutils cut(1) generates invalid output on uClibc
27941         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
27942         * lib/freadptr.c (freadptr): Return NULL if there are
27943         ungotten chars.  In this case freadseek() will iterate
27944         again to process the ungotten character.
27946 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
27948         xalloc-oversized: improve performance with GCC 5
27949         * lib/xalloc-oversized.h (xalloc_oversized):
27950         Improve performance with GCC 5 by using __builtin_mul_overflow.
27952 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27954         intprops: new public macro EXPR_SIGNED
27955         Emacs can use this macro, so make it public.
27956         * doc/intprops.texi (Arithmetic Type Properties): Rename from
27957         'Integer Type Determination', since some of these macros apply
27958         to non-integer types.  Clarify what kinds of constant expressions
27959         these macros return.  Say when the arguments can be non-integers.
27960         Mention newly published macro EXPR_SIGNED.
27961         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
27962         make it public.  All uses changed.
27964         intprops: fix typo in clang port
27965         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
27966         '__builtin_add_overflow' that is not caught by compiler.
27968 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27970         test-timespec: fix typo in previous change
27971         * tests/test-timespec.c (main): Fix typo that reduced test quality.
27973         timespec-sub: fix overflow bug; add tests
27974         * lib/timespec-add.c (timespec_add):
27975         * lib/timespec-sub.c (timespec_sub):
27976         Work even if time_t is narrower than int (a theoretical
27977         possibility).  Redo code for a bit more clarity.
27978         * lib/timespec-sub.c (timespec_sub):
27979         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
27980         * modules/timespec-tests, tests/test-timespec.c: New files.
27982         intprops-test: suppress -Woverlength-strings
27983         Problem reported by Pádraig Brady in:
27984         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
27985         It is not worth the hassle to port this test to compilers that
27986         cannot handle long strings in diagnostics.
27987         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
27989 2015-11-03  Pádraig Brady  <P@draigBrady.com>
27991         quotearg: add quotearg_n_style_colon()
27992         This quotes with default options of the specified style,
27993         but with quoting enabled for instances of ':'.
27994         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
27995         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
27997 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27999         intprops: revise _WRAPV macros, revert _OVERFLOW
28000         The incompatible changes to the _OVERFLOW macros were too much of
28001         a hassle in practice, so revert them.  Instead, change the new
28002         _WRAPV macros to make them closer in behavior to GCC 5's new
28003         builtin_add_overflow etc. functions.  No other software was using
28004         these newly-added macros yet, so this should be OK.
28005         * NEWS: Revert previous change, since the incompatible change
28006         has been reverted, and nobody used the incompatible version.
28007         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28008         Document revised behavior.
28009         (Integer Range Overflow): Adjust example to match above revisions.
28010         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28011         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28012         these can be used in integer constant expressions again.
28013         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28014         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28015         needed.
28016         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28017         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28018         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28019         Remove, as they did not seem that useful.
28020         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28021         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28022         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28023         Support new semantics.
28024         (__has_builtin): New macro, if not alreay defined.
28025         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28026         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28027         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28028         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28029         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28030         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28031         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28032         New macros.
28033         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28035 2015-11-03  Jim Meyering  <meyering@fb.com>
28037         intprops: add parentheses for when OP has precedence lower than "-"
28038         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28039         "a OP b" must be parenthesized for when OP is like "<<", which has
28040         lower precedence than the following "-". Reported by Pádraig Brady.
28042 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28044         quotearg: constify get_quoting_style parameters
28045         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28046         * lib/quotearg.c (get_quoting_style): Likewise.
28048 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28050         quotearg: add support for $'' shell escaping
28051         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28052         items and descriptions.
28053         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28054         above types by quoting like "shell", but using $'...' syntax
28055         for non printable characters, which should provide unambiguous
28056         printable output for any input.
28057         * tests/test-quotearg-simple.c: Update accordingly.
28059 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28061         maint: use a more standard return from mbrtowc test
28062         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28063         from the test program as this is non standard and often
28064         indicates an unhandled case in the test program.
28065         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28067 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28069         intprops: add WRAPV and const flavors for GCC 5
28070         If available, use GCC 5's builtin functions for efficient integer
28071         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28072         and safely compute the low-order bits of the correct answer.
28073         A downside of these efficient functions is that they cannot be
28074         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28075         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28076         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28077         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28078         Document the changes.
28079         (Wraparound Arithmetic): New section.
28080         (Integer Range Overflow):
28081         Put this subsection last, since it's least useful.
28082         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28083         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28084         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28085         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28086         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28087         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28088         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28089         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28090         New macros.
28091         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28092         Generate calls to GCC builtins if available, for speed.
28093         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28094         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28095         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28096         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28097         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28098         (CHECK_QUOTIENT, CHECK_REMAINDER):
28099         Test WRAPV and CONST flavors (when available) too.
28101 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28103         doc: use extended timezone format in iso-8601 example
28104         * doc/parse-datetime.texi: The standard states that extended format
28105         is to be used consistently throughout.
28106         Note that lib/parse-datetime.y can handle either tz format.
28108 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28110         stdalign: port to Sun C 5.9
28111         * doc/posix-headers/stdalign.texi: Document this.
28112         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28113         __attribute__ ((__aligned__ (...))).
28115 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28117         time_rz: fix comment about tzalloc
28118         * lib/time_rz.c (tzalloc): Fix comment.
28120 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28122         stdalign: work around pre-4.9 GCC x86 bug
28123         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28124         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28125         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28127 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28129         maint.mk: sc_tight_scope: remove extraneous expressions
28130         * top/maint.mk (tight_scope): This is not really required since
28131         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28132         that matches all nm entries.  But it does remove extraneous entries
28133         that may be confusing or cause issue in future maintenance.
28135 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28137         time_rz: return NULL if localtime_r fails
28138         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28139         while still attempting to pacify bleeding-edge GCC.
28141         fts: port to C11 alignof
28142         * doc/posix-headers/stdalign.texi (stdalign.h):
28143         Document the C11 restriction.
28144         * lib/fts.c: Include stddef.h, for max_align_t.
28145         (fts_alloc): Align using max_align_t, not FTSENT.
28146         * modules/fts (Depends-on): Add stddef.
28148 2015-10-18  Jim Meyering  <meyering@fb.com>
28150         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28151         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28152         would see this:
28154         lib/time_rz.c: In function 'localtime_rz':
28155         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28156           [-Werror=nonnull]
28157                    if (tm && !save_abbr (tz, tm))
28158                        ^
28160         That was complaining about "tm" because it is a parameter that was
28161         declared with the __nonnull__ attribute.
28162         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28163         result of localtime_r.
28165 2015-10-17  Jim Meyering  <meyering@fb.com>
28167         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28168         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28169         name-extraction regexp mistakenly used \S+, and would mistakenly
28170         extract "*F" from "extern int *F()" rather than the desired "F".
28171         Use \w+ instead.
28173 2015-10-17  Jim Meyering  <meyering@fb.com>
28175         maint.mk: sc_tight_scope: factor and support OS X
28176         * top/maint.mk (_gl_tight_scope): Address three issues:
28177         - factor out four instances of code that wraps a string in "^...$"
28178         - allow nm-reported symbol names to have an optional leading "_"
28179         - add "main" to the list of ignored variable names, because on os x,
28180         "main" has nm-reported type "S" in the variable-checking section.
28182 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28184         safe-alloc-tests: fix typo in license header
28185         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28187 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28189         copy-file: fix mem leak in error case
28190         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28191         upon error opening or performing I/O to the src and dest files.
28193 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28195         localename: control langinfo.h inclusion
28196         This header is only used to work around buggy behavior in old
28197         versions of glibc, so do not include it all the time.  Otherwise
28198         we get build failures on systems that do not provide langinfo.h.
28199         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28200         in the source later on.
28201         The patch was originally submitted to gettext as:
28202         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28204 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28206         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28207         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28208         * lib/u64.c, lib/unistd.c:
28209         Append 'typedef int dummy;', to pacify compilers that are picky
28210         about empty translation units.
28212 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
28214         accept4-tests: fix to avoid non portable flags
28215         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
28216         as they are the only documented ones, and passing others may trigger
28217         EINVAL (seen on FreeBSD 10.1-RELEASE).
28218         * doc/glibc-functions/accept4.texi: Mention that we don't provide
28219         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
28221 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
28223         gnulib-tool: fix tests of 'extensions' module
28224         This complements f8fe25fab60e3c687a124 commit.
28225         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
28226         emitting of initial gl_EARLY macros.
28227         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
28228         replaced with func_emit_pre_early_macros call.
28230 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28232         unicase/locale-language: fix typo in utf-8 cookie
28233         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
28234         Problem reported by Zbigniew Jędrzejewski-Szmek.
28236 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28238         xalloc: do not worry about GCC 5 warning on 32 bit
28239         * lib/xalloc.h: Revert previous change.
28240         I found a better way to fix this in coreutils.
28242 2015-10-02  Pádraig Brady  <P@draigBrady.com>
28244         xalloc: avoid GCC 5.1 warning on 32 bit
28245         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
28246         xalloc_oversized(), which was seen to give this warning
28247         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
28248         when simplifying conditional".
28250 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28252         uniname/uniname-tests: avoid compiler warnings
28253         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28254         unused local variables.
28255         (test_alias_lookup): Fix alias name display in failure cases.
28257 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28259         c-ctype: do not worry about EBCDIC + char signed
28260         Drop support for EBCDIC with char being signed, as this breaks too
28261         many programs.  Problem reported by Ben Pfaff in:
28262         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28263         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28264         char being signed.
28265         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28266         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28267         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28268         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28269         * tests/test-c-ctype.c (test_all):
28270         Simplify by assuming standard char values cannot be negative.
28271         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28273 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28275         c-ctype: port better to z/OS EBCDIC
28276         Problems reported by Daniel Richard G. in:
28277         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28278         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28279         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28280         (_C_CTYPE_OTHER_CNTRL): New macro.
28281         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28282         from SCHAR_MIN, as the functions are defined only from values
28283         promoted from char or from unsigned char, not necessarily from
28284         signed char.
28286 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28288         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28290         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28291         and ARFLAGS variables.  Doing this unconditionally could break
28292         later Automake's AM_PROG_AR invocation (at least it's
28293         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28295         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28296         Amsterdam Compiler Kit, so make the previous code to have effects
28297         only on ACK, and rather automatically call the Automake's
28298         AM_PROG_AR as soon as possible to decide other cases.
28300         References:
28301         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28303         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28304         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28305         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28306         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28307         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28308         'extensions' module is used.
28309         * modules/extensions (configure.ac-early): Remove as this snippet
28310         is added to gnulib-comp.m4 earlier anyway.
28312 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28314         sockets: MS Windows initalization fixes
28315         Problem reported by Test User in:
28316         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28317         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28318         Correct the endianness.
28319         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28320         number mismatch, not just on <.  Cleanup before any such failure.
28322 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28324         gc: fix detection of installed libgcrypt version
28325         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28326         at least as recent as 1.4.4.  The previously used macro is not
28327         available now, since modules were removed in version 1.6.0.
28329 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28331         c-ctype: rewrite to use inline functions
28332         This simplifies maintenance, since it makes for just one
28333         implementation of each function, letting the compiler have the fun
28334         of optimization.  In practice this works well nowadays with GCC.
28335         E.g., c_isascii might need only three instructions even though the
28336         source code lists every ASCII character individually in a large
28337         switch statement.
28338         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28339         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28340         * NEWS: Document the API change.
28341         * lib/c-ctype.c: Drastically simplify, since this now just expands
28342         inline functions.
28343         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28344         (C_CTYPE_INLINE): New macro.
28345         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28346         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28347         Verify that either ASCII or EBCDIC is being used.
28348         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28349         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28350         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28351         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28352         New private macros.
28353         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28354         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28355         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28356         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28357         (c_tolower, c_toupper): When converting, return the unsigned char,
28358         as that is what z/OS does.
28359         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28360         of some c-ctype.h macros.
28361         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28362         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28363         c_tolower promotion to be compatible with z/OS.
28365 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28367         gitlog-to-changelog: trim only trailing whitespaces
28368         This is fix for --format regression introduced by commit
28369         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28370         doubled %n string) had no effect anymore.  This format
28371         specification has been used e.g. by GNU paxuitils (commit
28372         edfd8bcc3).
28374         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28375         newlines in commmit messages.
28377 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28379         Test that c_iscntrl agrees with iscntrl, etc.
28380         Suggested by Daniel Richard G. in:
28381         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
28382         * modules/c-ctype-tests (Depends-on): Add ctype.
28383         * tests/test-c-ctype.c: Include <ctype.h>.
28384         (NCHARS): New constant.
28385         (test_agree_with_C_locale): New function.
28386         (main): Use it.
28387         (test_all): Use named constants.
28389         c-ctype: improve c_isascii testing
28390         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
28391         Add a test to count the number of ASCII characters.
28393 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28395         savewd: remove SAVEWD_CHDIR_READABLE
28396         It was problematic in the light of file systems that ignore umask.
28397         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
28398         * NEWS: Document this.
28399         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
28400         successful, -1 (setting errno) on failure, rather than something
28401         more complicated than that.
28402         * lib/mkdir-p.c (make_dir_parents):
28403         Do not use SAVEWD_CHDIR_READABLE.
28404         * lib/savewd.c (savewd_chdir):
28405         Remove support for SAVEWD_CHDIR_READABLE.
28406         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
28408         c-ctype: port better to EBCDIC
28409         Problems reported by Daniel Richard G. in
28410         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
28411         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
28412         Include "verify.h".
28413         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
28414         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
28415         Define as enum constants with value false, if not defined, so that
28416         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
28417         code more portable, as both branches of the 'if' are compiled on
28418         all platforms.
28419         (C_CTYPE_EBCDIC): New constant.
28420         Verify that the character set is either ASCII or EBCDIC.
28421         (to_char): New static function.
28422         (c_isascii, c_iscntrl):
28423         Assume standard control-character assignments for EBCDIC.
28424         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
28425         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
28426         Rewrite to use 'if' instead of 'ifdef'.
28427         Use to_char if non-ASCII.  Prefer <= to >=.
28428         Prefer true and false to 1 and 0, for booleans.
28429         (c_iscntrl): Use 'if', not 'ifdef'.
28430         * modules/c-ctype (Depends-on): Add verify.
28431         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
28432         (to_char): New function.
28433         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
28435 2015-09-21  Pádraig Brady  <P@draigBrady.com>
28437         nanosleep: fix return code for interrupted replacement
28438         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
28439         that we return -1 in the case the call is interrupted by a signal,
28440         rather than the current value of 1.
28441         Diagnosed and tested by Daniel Richard G.
28443 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28445         Diagnose ERE '()|\1'
28446         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
28447         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
28448         track of the set of previously-completed subexpressions available
28449         before the first alternative, and restore this set just before
28450         parsing each subsequent alternative.  This lets us diagnose the
28451         invalid back-reference in the ERE '()|\1'.
28453         regex: merge patches from libc
28455         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
28456         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
28457         * lib/regex_internal.h:
28458         Include <libc-lock.h> instead of <bits/libc-lock.h>.
28460         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
28461         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
28462         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
28463         wcscoll.
28464         * lib/regexec.c (check_node_accept_bytes): Likewise.
28466         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28467         Fix regex wcrtomb namespace (bug 18496).
28468         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
28469         instead of wcrtomb.
28471         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28472         Fix regex wctype namespace (bug 18495).
28473         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
28474         instead of towlower.
28475         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
28476         instead of iswlower.  Call __towupper instead of towupper.
28477         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
28478         instead of iswalnum.
28480         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28481         * lib/regcomp.c (parse_bracket_exp): Initialize type to
28482         COLL_SYM in a couple of places to avoid uninitialized variable
28483         wanings on tilegx gcc 4.8.2.
28485         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28486         * lib/regex_internal.h: Remove NOT_IN_libc.
28488         2014-11-17  Andreas Schwab  <schwab@suse.de>
28489         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
28491         2014-09-11  Roland McGrath  <roland@hack.frob.com>
28492         Move findidx nested functions to top-level.
28493         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
28494         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
28495         Pass new arguments to findidx.
28496         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
28497         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
28498         Don't #include it inside the function.  Pass new arguments to findidx.
28499         * lib/regex_internal.h:
28500         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
28501         (re_string_elem_size_at): Don't #include it inside the function.
28502         Pass new arguments to findidx.
28504         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28505         Check if DEBUG is defined in regex_internal.c
28506         * lib/regex_internal.c: Check if DEBUG is defined and is set.
28508 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
28510         ceill: detect buggy OpenBSD implementation
28511         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
28512         which returns zero for small values.  Discussed here:
28513         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
28515 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
28517         mountlist: add me_mntroot field on Linux machines
28518         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
28519         mount_entry so Linux machines based on /proc/self/mountinfo can
28520         distinguish between bind mounts and original mounts.  In reality bind
28521         mounts aren't treated differently than mountroot=/ mounts by the
28522         kernel, but the user often wants these bind mounts distinguished.
28523         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
28524         More details at https://pad.lv/1432871
28526 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
28528         doc: Describe to use multiple instances of gnulib
28529         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
28530         instances of gnulib with different modules can be used, for example one
28531         for a lib and another one for associated tools.
28533 2015-09-01  Pádraig Brady  <P@draigBrady.com>
28535         base32: mark function as __attribute__ const
28536         * lib/base32.h (isbase32): Mark __attribute__ const as
28537         suggested by GCC, and consistent with the base64 module.
28539 2015-08-20  Daiki Ueno  <ueno@gnu.org>
28541         gnulib-tool: don't transform binary files with sed
28542         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
28543         .mo and .class files.
28544         Reported by Denis Denisov.
28546 2015-08-10  Daiki Ueno  <ueno@gnu.org>
28548         gperf: respect silent rules
28549         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
28550         V_GPERF_0 for silent rules.
28551         * modules/iconv_open (Makefile.am): Use V_GPERF.
28552         * modules/unicase/locale-language (Makefile.am): Likewise.
28553         * modules/unicase/special-casing (Makefile.am): Likewise.
28554         * modules/unictype/category-byname (Makefile.am): Likewise.
28555         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
28556         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
28557         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
28558         * modules/unictype/property-byname (Makefile.am): Likewise.
28559         * modules/unictype/scripts (Makefile.am): Likewise.
28560         * modules/uninorm/composition (Makefile.am): Likewise.
28562 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28564         Improve port of stdalign to C++11
28565         Problem reported by Sundaram in:
28566         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
28567         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
28568         (__alignas_is_defined): Define if C++11 or newer.
28570 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
28572         pmccabe2html: fix gawk regex escaping
28573         * build-aux/pmccabe2html: Add one more backslash to properly
28574         escape the gsub replacement value.  Fixes this error:
28575         gawk: ./build-aux/pmccabe2html:425: \
28576         warning: escape sequence `\&' treated as plain `&'
28578 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
28580         time_rz: port to pedantic memcpy
28581         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
28582         that reject memcpy (..., NULL, 0).
28584 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
28586         time_rz: port better to MinGW
28587         Don't change tzname, as this makes MinGW dump core (Bug#21020).
28588         Instead, store the tzname copy in the struct tm_zone object.
28589         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
28590         * lib/strftime.c [!_LIBC]:
28591         * lib/time_rz.c: Include time-internal.h.
28592         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
28593         name from *TZ rather than from TZNAME, doable because *TZ now has
28594         a tzname_copy member.
28595         * lib/time-internal.h: New file, with contents taken from
28596         lib/time_rz.c.  It's separate because strftime.c now accesses
28597         struct tm_zone members.
28598         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28599         New member tzname_copy.
28600         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
28601         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28602         Initialize tzname_copy member.
28603         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
28604         in tzname_copy member.
28605         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
28606         (restore_tzname): Remove; no longer needed.  All calls removed.
28607         * modules/time_rz (Files): Add lib/time-internal.h.
28609         time: port __need_time_t to MinGW
28610         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
28611         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
28613 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28615         strftime: fix newly-introduced bug on Solaris
28616         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
28617         consistently at the start, rather than doing some of the setup at
28618         the start and some in the %Z format spec.  This is cleaner, and
28619         works better with time_rz on platforms like Solaris where struct
28620         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
28621         mktime_z and localtime_rz can mess up the tzname cache.
28623         test-strftime: test for Solaris bug
28624         * modules/strftime-tests (Depends-on): Add strerror.
28625         * tests/test-strftime.c: Include <errno.h>.
28626         (posixtm_test): New function, containing the old 'main'.
28627         (struct tzalloc_test, struct localtime_rz_test): New types.
28628         (TZ, LT): New static vars.
28629         (tzalloc_test): New function.
28630         (main): Rewrite in terms of posixtm_test and tzalloc_test.
28632         time_rz: port to Solaris etc.
28633         Works around a tzname problem on platforms like Solaris that have
28634         tzname but not tm_zone, by setting tzname at the appropriate time
28635         and restoring it later.
28636         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
28637         New static vars.
28638         (save_abbr) [HAVE_TZNAME]: Set them.
28639         (revert_tz) [HAVE_TZNAME]: Clear or use them.
28640         (restore_tzname): New function.
28641         (localtime_rz, mktime_z): Use it.
28643         time_rz: now LGPL
28644         * modules/time_rz (License): Now LGPL, because strftime depends on it.
28646         time_rz: make a constant 'const'
28647         * lib/time_rz.c (local_tz): Now const.
28649         time_rz: fix off-by-one typo
28650         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
28652 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
28654         fprintftime, strftime: use timezone_t args
28655         * NEWS: Document the change.
28656         * lib/fprintftime.h (fprintftime):
28657         * lib/strftime.c (extra_args) [my_strftime]:
28658         * lib/strftime.h (nstrftime):
28659         Time zone arg is now of type timezone_t, not int.
28660         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
28661         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
28662         (my_strftime) [emacs && !my_strftime]:
28663         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
28664         Remove; Emacs doesn't need this any more.
28665         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
28666         fprintftime and nstrftime to call tzset.
28667         (ut) [!my_strftime]: Remove, replacing with ...
28668         (tz) [!my_stftime]: ... this new macro.  All uses changed.
28669         (strftime_case_): Use localtime_rz and mktime_z instead
28670         of localtime_r and mktime.
28671         * modules/fprintftime (Depends-on): Add time_rz.
28672         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
28673         * tests/test-strftime.c (main): Adjust to new nstrftime API.
28675         time_rz: new module
28676         * MODULES.html.sh: Add time_rz.
28677         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
28678         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
28679         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
28680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
28681         New var HAVE_TIMEZONE_T (default 0).
28682         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
28683         New var GNULIB_TIME_RZ (default 0).
28684         * modules/time (time.h): Substitute the new vars.
28686         flexmember: license is now unlimited
28687         * modules/flexmember (License): Change to unlimited,
28688         since its only source file gives an unlimited license.
28690 2015-07-15  Eric Blake  <eblake@redhat.com>
28692         maint: update copyright paper procedures
28693         * config/srclist.txt: Drop outdated files.
28694         * doc/Copyright/conditions.txt: Update to latest.
28695         * doc/Copyright/assign.changes.manual: Delete.
28696         * doc/Copyright/assign.future.manual: Likewise.
28697         * doc/Copyright/assign.manual: Likewise.
28698         * doc/Copyright/assign.translation.manual: Likewise.
28699         * doc/Copyright/disclaim.changes.manual: Likewise.
28700         * doc/Copyright/disclaim.manual: Likewise.
28701         * doc/Copyright/disclaim.program: Likewise.
28703 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28705         localename: fix link error on Illumos
28706         Illumos defines __sun, but does not have getlocalename_l nor the
28707         equivalent.  This partially reverts commit 387c214.
28708         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
28709         available, as well as uselocale.
28710         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
28711         use getlocalename_l if it is not available.
28713 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28715         unistr/uN-strtok-tests: avoid a trivial leak
28716         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
28717         input and delim after the multibyte delimiter tests.
28719 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28721         file-has-acl, acl-permissions: fix HP-UX typos
28722         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
28723         * lib/file-has-acl.c (file_has_acl):
28724         * lib/set-permissions.c (context_acl_from_mode)
28725         (context_aclv_from_mode, set_acls):
28726         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
28727         They were introduced by the recent ACL changes.
28729         regex: match current GNU grep behavior
28730         These symbols have not matched GNU grep behavior for quite some time.
28731         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
28732         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
28733         Change to match current GNU behavior.
28734         Simplify by expressing it as differences from POSIX BREs and EREs.
28735         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
28737 2015-07-03  Jim Meyering  <meyering@fb.com>
28739         set-permissions.c: adjust acl_from_mode's cpp guard
28740         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
28741         directives identical to those guarding the sole use.
28742         Otherwise, on some systems, we'd get a warning about
28743         the function being defined but not used.
28744         Also, filter through cppi to correct misleading indentation
28745         of cpp directives.
28747 2015-07-03  Pádraig Brady  <P@draigBrady.com>
28749         tests: restrict shells to those that support 'local'
28750         The local keyword is very widely supported and used
28751         in tests in coreutils and grep at least.  Therefore
28752         restrict to testing with shells that support it.
28753         This mainly excludes /bin/sh on Solaris.
28754         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
28756 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
28757         and Daiki Ueno  <ueno@gnu.org>
28759         unistr/uN-strtok: handle multibyte delimiters
28760         Previously, uN_strtok moved PTR to the next unit to the token end.
28761         When DELIM contained a multibyte character, the new position could
28762         be a middle of a multibyte character.
28763         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
28764         after the token.
28765         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
28766         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
28767         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
28768         * modules/unistr/u8-strtok (Depends-on): Depend on
28769         unistr/u8-strmblen.
28770         * modules/unistr/u16-strtok (Depends-on): Depend on
28771         unistr/u16-strmblen.
28772         * modules/unistr/u32-strtok (Depends-on): Depend on
28773         unistr/u32-strmblen.
28774         * tests/unistr/test-u-strtok.h: New file.
28775         * tests/unistr/test-u8-strtok.c: New file.
28776         * tests/unistr/test-u16-strtok.c: New file.
28777         * tests/unistr/test-u32-strtok.c: New file.
28778         * modules/unistr/u8-strtok-tests: New file.
28779         * modules/unistr/u32-strtok-tests: New file.
28780         * modules/unistr/u16-strtok-tests: New file.
28782 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
28784         update-copyright: fix test failure with perl >= 5.22 (trivial)
28785         * build-aux/update-copyright: Escape a literal left curly bracket,
28786         required with perl >= 5.22
28788 2015-07-02  Daiki Ueno  <ueno@gnu.org>
28790         u{16,32}-strstr-tests: relax timeout condition
28791         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
28792         tests can take longer than 5 seconds to complete.
28793         Reported by Dagobert Michelsen in:
28794         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
28795         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
28796         seconds to 10 seconds.
28797         * tests/unistr/test-u32-strstr.c (main): Likewise.
28799 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28801         gnulib-common.m4: change the ARFLAGS default to 'cr'
28802         In some GNU/Linux distributions people started to compile 'ar'
28803         binary with --enable-deterministic-archives (binutils project).
28804         That, however, in combination with previous autotools long time
28805         working default AR{_,}FLAGS=cru causes warnings on such
28806         installations:
28807         ar: `u' modifier ignored since `D' is the default (see `U')
28808         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
28809         set already.
28811 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28813         selinux-h: avoid double free after *getfilecon()
28814         Originally reported by Ben Shelton on bug-tar:
28815         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
28816         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
28817         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
28818         param should be freed by freecon(3) (regardless the return value).
28820 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
28822         fix pty related tests issues on Windows (trivial)
28823         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
28824         however it's still present in tests/ subdirectory of the final project.
28825         Therefore avoid it to pass `make check`.
28826         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
28827         will just return -ENOSYS, so avoid this non applicable test allowing
28828         the build to proceed.
28830 2015-07-01  Pádraig Brady  <P@draigBrady.com>
28832         acl: fix definition of acl_from_mode on FreeBSD
28833         This was causing basic coreutils copy operations to fail
28834         with ENOTSUP or ENOENT error messages.
28835         * lib/acl-internal.h (acl_from_mode): Only define when
28836         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
28837         of acl_from_mode() defined in lib/set-permissions.c to
28838         be used on FreeBSD at least.
28839         * lib/set-permissions.c: Fix up comment spelling,
28840         and a redundant variable assignment; noticed in passing.
28842 2015-06-30  Pádraig Brady  <P@draigBrady.com>
28844         readutmp: port to FreeBSD >= 9
28845         * lib/readutmp.h: Map utmpxname() to setutxdb().
28846         With that coreutils who(1) and pinky(1) tests pass.
28848 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28850         mgetgroups: port to strict OS X
28851         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
28852         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
28853         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
28854         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
28856 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
28858         mgetgroups: port to strict OS X
28859         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
28860         Document the getgrouplist problem.
28861         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
28862         New macro.
28863         (mgetgroups): Use it.
28864         * m4/mgetgroups.m4 (gl_MGETGROUPS):
28865         Check for OS X signature for getgrouplist.
28867 2015-06-29  Jim Meyering  <meyering@fb.com>
28869         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
28870         It started like this when building coreutils' latest on OS X,
28871         invoking ./configure with a nonempty --cache=.cache:
28873           lib/linkat.c:46:42: error: operator '||' has no right operand
28874           lib/linkat.c: In function 'rpl_linkat':
28875           lib/linkat.c:330:27: error: #if with no expression
28877         Here's linkat.c's line 46:
28879           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
28881         Here's some context:
28883           $ grep linkat_nofoll .cache
28884           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
28885           $ grep LINKAT_SYM lib/config.h
28886           #define LINKAT_SYMLINK_NOTSUP
28888         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
28889         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
28890         but that violates a tenet of AC_CACHE_CHECK: it must
28891         have no side effect other than setting its cache variable.
28893         What happens is that when the cache is set, we'd skip the
28894         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
28895         defined to whatever value it happened to have in configure's
28896         environment.  In my case, it was not defined, so this later code:
28898           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
28899             [Define to 1 if linkat can create hardlinks to symlinks])
28901         would emit code with an empty RHS.
28903         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
28904         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
28906 2015-06-28  Jim Meyering  <meyering@fb.com>
28908         mountlist: avoid an unused-label warning on OS X
28909         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
28910         Building on OS X, I saw a warning about the "free_then_fail" label
28911         being unused.  Give it the _GL_UNUSED_LABEL attribute.
28913         error.c: correct printf-style format: %d -> %u
28914         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
28915         rather than %d, to match the type of "line_number", unsigned int.
28917 2015-06-25  Pádraig Brady  <P@draigBrady.com>
28919         fts: avoid reading beyond the heap allocation
28920         GCC 5.1.1 with -O2 and -fsanitize=address reports
28921         a read of size 4 from a heap object of size 3 is indeed invalid,
28922         though this may be due to incorrect padding assumptions by GCC, see:
28923         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
28924         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
28925         * modules/fts: Depend on stdalign.
28927 2015-06-24  Pádraig Brady  <P@draigBrady.com>
28929         savedir: avoid undefined behavior in qsort call
28930         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
28931         "runtime error: null pointer passed as argument 1,
28932          which is declared to never be null"
28933         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
28935 2015-06-24  Pádraig Brady  <P@draigBrady.com>
28937         userspec: avoid undefined behavior in gettext call
28938         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
28939         "runtime error: null pointer passed as argument 2,
28940          which is declared to never be null"
28941         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
28943 2015-06-20  Glenn Morris  <rgm@gnu.org>
28945         gitlog-to-changelog: improve gitmerge.el commits
28946         Let the Emacs ChangeLog generation process exclude "skipped"
28947         messages from merge commits (Bug#20717).
28948         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
28950 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
28952         wchar: fix MinGW compilation warnings
28953         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
28954         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
28955         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
28957 2015-06-20  Daiki Ueno  <ueno@gnu.org>
28959         uniname/uniname-tests: use pristine data files
28960         For copyright and maintenance reasons, use the data files from UCD
28961         without modification.
28962         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
28963         (getfield): Remove.
28964         (aliases_count): New global variable.
28965         (fill_names): Skip comments and empty lines in the input.  Don't
28966         use getfield.
28967         (fill_aliases): Likewise.
28968         (main): Change the expected command line arguments to:
28969         NAMES... ["--" ALIASES...].
28970         * tests/uniname/test-uninames.sh: Adjust to the change in
28971         test-uninames.c.
28972         * tests/uniname/UnicodeDataNames.txt: Remove.
28973         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
28974         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
28975         file from Unicode 8.0.0.
28977 2015-06-19  Pádraig Brady  <P@draigBrady.com>
28979         linked-list, linkedhash-list: avoid compiler warnings
28980         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28981         -Werror=suggest-attribute=pure (from GCC 5.1.1).
28983 2015-06-19  Daiki Ueno  <ueno@gnu.org>
28985         libunistring: bump minimum version to 0.9.6
28986         * all modules depending on updated Unicode data: Regenerate.
28987         The modules are listed by a script that does:
28988         - for each file listed by: git show --oneline --name-only 705f4efc
28989           - deduce the containing modules, based on "Files:"
28990         - deduce the modules which depend on the containing modules, based
28991           on "Depends-on:"
28993 2015-06-18  Daiki Ueno  <ueno@gnu.org>
28995         uniname/uniname: update to Unicode 8.0.0
28996         * lib/uniname/uninames.h: Regenerate.
28997         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
28998         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29000 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29002         libunistring: update to Unicode 8.0.0
29003         * lib/gen-uni-tables.c (SIZEOF): New macro.
29004         (output_numeric): Increase the maximum number of fractions from
29005         128 to 160.  Increase the level3 value width from 7 bits to 8
29006         bits.  Use SIZEOF instead of a hard-coded integer.
29007         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29008         0x28000.
29009         (fill_blocks): Increase the maximum number of blocks from 256 to
29010         384.  Use SIZEOF instead of a hard-coded integer.
29011         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29012         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29013         value width.
29014         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29015         a new case added to LBP22.
29016         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29017         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29018         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29019         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29020         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29021         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29022         lib/uniwidth/width.c.
29023         * all generated files under lib/uni* and tests/uni*: Regenerate.
29025 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29027         gnu-web-doc-update: add --mirror to remove stale files
29028         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29029         out of date files from the CVS server.  Since this is usually
29030         appropriate, a prompt is given when the option is not specified,
29031         along with the `cvs remove` command that would be run.
29033 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29035         acl-permissions: pacify -Wsuggest-attribute=const
29036         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29037         * lib/acl-internal.h (free_permission_context):
29038         Declare with attribute const if ! (defined USE_ACL &&
29039         (HAVE_ACL_GET_FILE || defined GETACL)).
29041         fsync: document AIX misbehavior
29042         * doc/posix-functions/fsync.texi (fsync):
29043         Document failure on AIX with read-only file descriptor.
29045 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29047         stdio: Don't redefine gets when using C++
29048         * lib/stdio.in.h (gets): Disable warning on C++.
29050 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29052         acl-permissions: port to AIX, C89 HP-UX
29053         Problems reported by Michael Felt.
29054         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29055         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29056         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29057         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29058         Add cast for AIX, whose system calls are declared to accept
29059         char * even though the arguments are really char const *.
29060         * lib/get-permissions.c (get_permissions):
29061         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29062         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29063         that broke a build.
29064         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29065         Rework types to pacify xlc.
29067 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29069         vasprintf-posix: avoid compiling vasnprintf where possible
29070         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29071         module where not required.  For example on a GNU/Linux system
29072         when gnulib-tool is run with the --conditional-dependencies option.
29074 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29076         file-has-acl: fix build on Mac OS X 10
29077         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29078         which has an incompatible 6 parameter getxattr() call.
29079         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29080         call on Mac OS X >= 10.4.
29081         * doc/glibc-functions/fgetxattr.texi: Likewise.
29082         * lib/file-has-acl.c: Revert to more complete combined check.
29083         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29084         Reported by Jack Howarth.
29086 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29088         prefix-gnulib-mk: remove no longer needed special case
29089         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29090         continued lib_SOURCES lines are no longer present,
29091         so special case handling of such entries is not required.
29093 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29095         acl: don't depend on the deprecated qacl module
29096         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29098 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29100         gnulib-tool: concatenate lib_SOURCES to a single line
29101         * gnulib-tool: Refactor the line merging sed logic,
29102         and use that to output a single lib_SOURCES line for each module.
29103         gnulib using projects often postprocess this output to prepend
29104         subdir paths to each item, and having a single line simplifies this
29105         processing allowing better decoupling from the gnulib-tool output.
29107 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29109         pthread_sigmask: discount system version if a simple macro (trivial)
29110         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29112         function to ensure it's available.
29114 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29116         readlinkat: avoid OS X 10.10 trailing slash bug
29117         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29118         has this bug.
29119         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29120         that OS X 10.10 has this function.
29121         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29122         as done for readlink().
29123         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29124         trailing slash bug, and assume readlinkat() has the same issue.
29125         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29126         rather than the correct $gl_cv_decl_readlinkat_works.
29128 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29130         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29131         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29132         module rewrite.
29134         acl-permissions: Fix build on Solaris and Cygwin
29135         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29136         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29137         ace_entries variables have moved into struct permission_context but
29138         they were still accessed as local variables here.
29140 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29142         linkat: avoid OS X 10.10 trailing slash with symlink bug
29143         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29144         causes the symlink to be dereferenced, and if it points
29145         to a non existent file, that file will be created as
29146         a hard link to "path1".
29147         This fixes a test failure in test-linkat.c.
29148         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29149         this case.  The existing workaround in linkat.c for
29150         trailing slash issues, suffices for this case.
29151         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29152         the list of platforms with trailing slash issues.
29154 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29156         unlinkat: handle ignoring of ".." on Darwin 14
29157         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29158         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29159         so handle in the same manner.
29160         * m4/unlinkat.m4: Comment on this Darwin issue.
29161         * doc/posix-functions/unlink.texi: Update the latest version
29162         where the issue was seen.
29163         * doc/posix-functions/unlinkat.texi: Mention this issue.
29164         Fixes a test failure in test-unlinkat.c.
29166 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29168         qacl: split into qcopy-acl and qset-acl
29169         Emacs needs the former, but not the latter.
29170         * modules/acl-permissions: New file, containing most of the old qacl.
29171         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29172         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29173         * modules/qcopy-acl, modules/qset-acl: New files.
29174         * MODULES.html.sh (File system functions):
29175         Mention the new modules, and mention qacl while we're at it.
29177 2015-05-27  Glenn Morris  <rgm@gnu.org>
29179         gitlog-to-changelog: new option --ignore-line
29180         (This patch is imported from the GNU Emacs master.)
29181         This option ignores individual commit lines matching a pattern.
29182         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29184 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29186         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29187         Implement get_permissions and set_permissions primitives for getting all
29188         the permissions of a file, storing them, and later setting them. (In the
29189         minimal case, the permissions consist only of a file mode.) Reimplement
29190         qset_acl and qcopy_acl based on these new primitives: this avoids code
29191         duplication and makes error handling more consistent.
29192         The Solaris and Cygwin code still uses duplicate code paths for setting
29193         a file mode while making sure that no acls exist and setting an explicit
29194         acl; this is no worse than before, but could be cleaned up.  The AIX
29195         code still doesn't read ACLs, it only makes sure that acls don't get in
29196         the way when setting a file mode.
29197         * lib/acl-internal.h (struct permission_context): New data structure.
29198         (get_permissions, set_permissions, free_permission_context): Declare.
29199         * lib/acl-internal.c (free_permission_context): New helper function.
29200         * lib/get-permissions.c (get_permissions): New helper function split off
29201         from qcopy_acl.
29202         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29203         AIX, set a file's permissions based only on a file mode.
29204         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29205         other platforms construct a temporary acl from the file mode and set
29206         that acl in the same way as setting an acl read from the source file.
29207         This should help avoid code duplication and inconsistent / buggy
29208         behavior.
29209         (set_acls): New helper function Split off from qcopy_acl.
29210         (chmod_or_fchmod): Moved here from qset-acl.c.
29211         (set_permissions): New helper function.
29212         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
29213         set_permissions.
29214         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
29215         * modules/qacl: Add get-permissions.c and set-permissions.c.
29217         file-has-acl: Split feature tests again (Bug#20667)
29218         * lib/file-has-acl.c: Instead of testing for
29219         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
29220         define them when needed.
29221         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
29222         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
29224 2015-05-27  Pádraig Brady  <P@draigBrady.com>
29226         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
29227         This avoids a conflict with "FORTIFY_SOURCE" variants
29228         of the string functions when they're replaced on NetBSD-6.0.1
29229         and Darwin-14.3.0 at least.
29230         * lib/string.in.h: Avoid including our "lib/string.h" while
29231         including the system <string.h>.
29233 2015-05-26  Eric Blake  <eblake@redhat.com>
29235         stdio: limit __gnu_printf__ witness to gcc 4.4+
29236         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
29237         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
29239         error: use correct printf attributes on mingw
29240         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
29242         inttypes: force correct mingw PRIdMAX even without <stdio.h>
29243         * modules/inttypes (Depends-on): Require extensions, so that mingw
29244         always uses GNU style inttypes.
29245         * lib/inttypes.in.h: On mingw, include <stdio.h>.
29247         stdio: fix probe on mingw under gcc 5.1
29248         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29249         around new gcc preprocessor rules.
29251 2015-05-07  Glenn Morris  <rgm@gnu.org>
29253         gitlog-to-changelog: parse "Tiny-change"
29254         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29255         "Copyright-paperwork-exempt".  (Bug#20324)
29257 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29259         doc: document glibc posix_fallocate() issues
29260         * doc/posix-functions/posix_fallocate.texi: Mention the
29261         glibc efficiency problems and issues with NFS.
29263 2015-05-05  Karl Berry  <karl@freefriends.org>
29265         * build-aux/gendocs.sh (usage): document new css default
29266         for HTML (--htmlarg).
29268 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29270         extern-inline: no need for workaround in GCC 5.1
29271         * doc/extern-inline.texi (extern inline):
29272         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29273         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29274         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29275         two we can remove these workarounds.
29277 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29279         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29280         Avoid [-Wunknown-attributes] warnings like:
29281         warning: unknown attribute '__alloc_size__' ignored
29282         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29283         with clang, as support has been fully removed as of clang 3.5:
29284         https://github.com/llvm-mirror/clang/commit/c047507a
29285         * lib/eealloc.h: Likewise.
29286         * lib/pagealign_alloc.h: Likewise.
29288 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29290         tests: pacify GCC 5.1's stricter printf checking
29291         * tests/test-dirname.c (main):
29292         * tests/test-getaddrinfo.c (simple):
29293         * tests/test-getlogin.c (main):
29294         * tests/test-getndelim2.c (main):
29295         * tests/test-inttostr.c (CK):
29296         * tests/test-md5.c (main):
29297         * tests/test-read-file.c (main):
29298         * tests/test-sha1.c (main):
29299         Fix mismatches between printf format and value signedness.
29300         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29301         Remove, as CAST_VAL always returned a value of type uintmax_t.
29303         fts: port to GCC 5.1 with --enable-gcc-warnings
29304         Without this fix, GCC 5.1 (correctly) warns about a subscript
29305         error on the fts_name component of FTSENT.  It's actually a
29306         flexible member, so define it that way on C99 or later hosts.
29307         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29308         structure that now has a flexible array member.
29309         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29310         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29311         * modules/fts (Depends-on): Add flexmember.
29313 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29315         file-has-acl: port to CentOS 6
29316         Problem reported by Tom G. Christensen in:
29317         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29318         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29319         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29320         HAVE_GETXATTR.
29321         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29322         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29323         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29324         file-has-acl.c actually needs.
29326 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29328         file-has-acl: always return false when ACLs aren't supported
29329         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29330         change the GNU/Linux getxattr path, to transform "not supported"
29331         errors to a false return rather than an error.  This is handled
29332         within file_has_acl() due to the platform specific tests to
29333         determine if ACLs are not supported.
29335 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29337         gettext: propagate po/Makefile.in.in too
29338         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29339         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29340         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29341         between Makefile.in.in and the gettext-runtime m4 files.
29343 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29345         file-has-acl: new module, split from acl
29346         And add a new module file-has-acl-tests to match.
29347         I ran into a problem with the recent changes to the acl module,
29348         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29349         When using the fixed version with Emacs, I discovered that
29350         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29351         had multiple libraries, but needed only one), so I fixed that too.
29352         * NEWS: Document this incompatible change.
29353         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29354         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29355         Initialize gl_need_lib_has_acl.
29356         (gl_FUNC_ACL): Require it.
29357         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29358         Move the file-has-acl.c-relevant stuff to ...
29359         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29360         use_xattrs = 0' typo, and omit some needless work.  Set
29361         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29362         when gl_FUNC_ACL is called.
29363         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29364         (Link): Remove $(LIB_HAS_ACL).
29365         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29366         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29367         modules/file-has-acl-tests.
29368         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29370         manywarnings: add GCC 5.1 warnings
29371         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29372         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29373         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29374         -Wsuggest-override, -Wuse-without-only.  Change
29375         -Wnormalized=... operands to match 5.1.
29376         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29377         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29378         -Wdiscarded-qualifiers, -Wformat-signedness,
29379         -Wincompatible-pointer-types, -Wint-conversion,
29380         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
29381         -Wshift-count-negative, -Wshift-count-overflow,
29382         -Wsizeof-array-argument, -Wsuggest-final-methods,
29383         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
29384         and add -Warray-bounds=2 as a special case.
29386 2015-04-21  Simon Josefsson  <simon@josefsson.org>
29388         doc: update FDL template to match FDL examples.
29389         * doc/alloca-opt.texi:
29390         * doc/alloca.texi:
29391         * doc/c-ctype.texi:
29392         * doc/c-strcase.texi:
29393         * doc/c-strcaseeq.texi:
29394         * doc/c-strcasestr.texi:
29395         * doc/c-strstr.texi:
29396         * doc/c-strtod.texi:
29397         * doc/c-strtold.texi:
29398         * doc/ctime.texi:
29399         * doc/error.texi:
29400         * doc/gcd.texi:
29401         * doc/gnulib-tool.texi:
29402         * doc/inet_ntoa.texi:
29403         * doc/intprops.texi:
29404         * doc/lib-symbol-visibility.texi:
29405         * doc/maintain.texi:
29406         * doc/parse-datetime.texi:
29407         * doc/quote.texi:
29408         * doc/regexprops-generic.texi:
29409         * doc/standards.texi: Remove spurious 'with' in FDL license
29410         template.
29412 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
29414         lstat: fix cross-compilation 'ln -s' problem
29415         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
29416         Have the test program call 'symlink' rather than a separate
29417         script run 'ln -s'; this is more likely to work in
29418         cross-compilation environments.  Reported by Pavel Fedin in:
29419         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
29421 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
29423         gendocs.sh: default to a common CSS style sheet for HTML output
29424         * build-aux/gendocs.sh (htmlarg): Change default value.
29426 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
29428         gnulib-tool: output bold attribute more portably
29429         * gnulib-tool (func_show_module_list): Change hexadecimal
29430         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
29431         encoded numbers as arguments to `printf' is not portable,
29432         and is not claimed by POSIX.  This is the case with FreeBSD.
29434 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29436         qacl: Simplify HP-UX acl_nontrivial check
29437         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
29438         acl_nontrivial. Check if the acl has at most three entries instead (it must
29439         have exactly three entries according to the HP-UX documentation). Ignore
29440         uids and gids as long as an entry is either for a user (i.e., the owner),
29441         a group (i.e., the owning group), or others.
29442         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
29443         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
29445 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
29447         acl: On Linux, check for acls without libacl
29448         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
29449         library function to check for the presence of acls, avoiding a library.
29450         * lib/file-has-acl.c: Include xattr headers if we have them.
29451         (file_has_acl): On Linux, use getxattr().
29452         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
29453         file_has_acl(). Check for xattr headers and getxattr().
29455 2015-04-14  Ángel González  <keisial@gmail.com>
29457         tempname: avoid unused parameter warnings (trivial)
29458         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
29459         (try_nocreate): Likewise.
29461 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
29463         fseeko: fix build failure on NetBSD >= 6 (trivial)
29464         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
29465         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
29467 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29469         gitlog-to-changelog: port to MS-Windows
29470         * build-aux/gitlog-to-changelog (git_dir_option):
29471         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
29472         MS-Windows Perl.  Reported by Eli Zaretskii in:
29473         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
29475 2015-04-07  Karl Berry  <karl@gnu.org>
29477         gendocs: new option --tex for passing args to texi2dvi.
29478         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
29479         (TEXI2DVI): cut to just command name.
29480         (usage): mention new option, and update copyright.
29481         <generate_tex>: use it.
29483 2015-04-07  Karl Berry  <karl@gnu.org>
29485         * config/srclistvars.sh (GETTEXT): new definition.
29486         * config/srclist.txt: use it for gettext .m4 files.
29487         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
29488         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
29489         and continuing into April.
29491 2015-04-07  Daiki Ueno  <ueno@gnu.org>
29493         uniname/uniname-tests: fix failure due to alias
29494         Reported by Jack Howarth in:
29495         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
29496         * tests/uniname/test-uninames.c (name_has_alias): New function.
29497         (test_inverse_lookup): Exclude character name with valid alias,
29498         from randomly generated character names.
29499         (main): Fill unicode_aliases before calling test functions.
29501 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
29503         hash: remove deprecated hash_insert0 function
29504         * lib/hash.h (hash_insert0): Remove deprecated function.
29505         * lib/hash.c (hash_insert0): Likewise.
29507 2015-04-02  Pádraig Brady  <P@draigBrady.com>
29509         mountlist: remove dependency on libmount
29510         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
29511         directly, rather than depending on libmount, which has many
29512         dependencies due to its dependence on libselinux, as detailed at:
29513         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
29514         Note we restrict this to __linux__ as that's probably where this
29515         interface will remain.  If ever porting, it would be best
29516         to first pull the makedev() wrapper from coreutils to a gnulib module.
29517         Note also we don't add a getline dependency to the mountlist module,
29518         as all Linux versions are sufficient.
29520 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29522         stddef: port to pre-C11 GCC on x86
29523         On this platform, max_align_t should have an alignment of 8 even
29524         though the storage alignments of double, long, etc. max out at 4.
29525         Inspired by a comment of Andreas Schwab's here:
29526         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
29527         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
29528         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
29529         * tests/test-stddef.c: Test __alignof__ too, if available.
29531 2015-03-24  Pádraig Brady  <P@draigBrady.com>
29533         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
29534         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
29536 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
29538         yesno: make EOL optional in ENABLE_NLS case also (trival)
29539         * lib/yesno.c (yesno): Check for EOL before replacing.
29540         * tests/test-yesno.sh: Add a test case (test along with gettext).
29542 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29544         fdopendir-tests: test it does not close its arg
29545         * tests/test-fdopendir.c (main): Test that fdopendir does not
29546         close its argument.  From a suggestion by David Grayson in:
29547         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
29549 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
29551         gitlog-to-changelog: trim trailing white space
29552         * build-aux/gitlog-to-changelog (main):
29553         Trim trailing white space from commit message lines.
29554         This is helpful for processing the GNU Emacs repository,
29555         which dates back to 1985 and contains a lot of such lines.
29557         gitlog-to-changelog: new option --ignore-matching
29558         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
29559         Support new option --ignore-matching=PAT, which ignores all
29560         commit messages whose first line matches PAT.
29562 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29564         fdopendir: port better to MinGW
29565         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
29566         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
29567         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
29568         * modules/fdopendir (Depends-on): Add dirfd.
29570 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29572         fdopendir: fix typo in comment
29573         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
29575 2015-03-09  Eric Blake  <eblake@redhat.com>
29577         error: document all entry points provided
29578         * doc/glibc-functions/error_print_progname.texi
29579         (error_print_progname): Mention the error module.
29580         * doc/glibc-functions/error_at_line.texi (error_at_line):
29581         Likewise.
29582         * doc/glibc-functions/error_message_count.texi
29583         (error_message_count): Likewise.
29584         * doc/glibc-functions/error_one_per_line.texi
29585         (error_one_per_line): Likewise.
29587 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
29589         vasnprintf: pacify clang 3.5.0
29590         Problem reported by Werner Lemberg in:
29591         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
29592         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
29593         The casts aren't needed, since the characters in question are ASCII.
29595 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
29597         glob, etc.: port to MSVC v18 on MS-Windows 8.1
29598         * lib/dirent--.h (GNULIB_defined_opendir):
29599         * lib/dirent.in.h (GNULIB_defined_opendir)
29600         (GNULIB_defined_closedir):
29601         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
29602         #undef only if Gnulib defined it.
29604         poll: port to MSVC v18 on MS-Windows 8.1
29605         Problem reported by Gisle Vanem in:
29606         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
29607         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
29608         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
29609         Add sys_socket.
29611 2015-02-24  Pádraig Brady  <P@draigBrady.com>
29613         tests: support stderr verification with returns_()
29614         * tests/init.sh (returns_): Disable tracing for this wrapper
29615         function, so that stderr of the wrapped command is unchanged,
29616         allowing for verification of the contents.
29618 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
29620         passfd: avoid valgrind uninitalised data warning
29621         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
29622         to include just the fd we've initialized, rather than including
29623         the extra space used for alignment.
29625 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29627         uniwbrk/u32-wordbreaks-tests: fix copyright
29628         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
29630         dup2: doc and test for Android bug
29631         Reported by Kevin Cernekee in:
29632         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
29633         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29634         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
29636 2015-02-23  Kevin Cernekee  <cernekee@google.com>
29638         Replace dup2() on Android
29639         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
29640         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
29641         fails.  Using rpl_dup2() fixes this because it has an explicit test
29642         for this condition.
29644 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
29646         Android doesn't define RLIM_SAVED_*
29647         Portability problem reported by Kevin Cernekee in:
29648         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
29649         * doc/posix-headers/sys_resource.texi (sys/resource.h):
29650         Mention the portability problem.
29651         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
29652         Define if not defined.
29653         * m4/dup2.m4 (gl_FUNC_DUP2):
29654         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29655         Likewise.
29657 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29659         vasnprintf-posix-tests: use consistent test
29660         * tests/test-vasnprintf-posix.c (test_function):
29661         Use "<" in assert instead of "<=", for consistency with other tests.
29663 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29665         printf, isinf, etc.: noncanonical != NaN
29666         Do not require that isinf, printf, etc. treat noncanonical
29667         values as NaNs.  Instead, require only that they do not crash.
29668         Problem reported by Joseph Myers in:
29669         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
29670         * doc/posix-functions/dprintf.texi (dprintf):
29671         * doc/posix-functions/fprintf.texi (fprintf):
29672         * doc/posix-functions/isfinite.texi (isfinite):
29673         * doc/posix-functions/isinf.texi (isinf):
29674         * doc/posix-functions/isnan.texi (isnan):
29675         * doc/posix-functions/printf.texi (printf):
29676         * doc/posix-functions/snprintf.texi (snprintf):
29677         * doc/posix-functions/sprintf.texi (sprintf):
29678         * doc/posix-functions/vdprintf.texi (vdprintf):
29679         * doc/posix-functions/vfprintf.texi (vfprintf):
29680         * doc/posix-functions/vprintf.texi (vprintf):
29681         * doc/posix-functions/vsnprintf.texi (vsnprintf):
29682         * doc/posix-functions/vsprintf.texi (vsprintf):
29683         Document this.
29684         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
29685         * m4/isinf.m4 (gl_ISINFL_WORKS):
29686         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
29687         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
29688         * tests/test-isfinite.c (test_isfinitel):
29689         * tests/test-isinf.c (test_isinfl):
29690         * tests/test-isnan.c (test_long_double):
29691         * tests/test-isnanl.h (main):
29692         * tests/test-snprintf-posix.h (test_function):
29693         * tests/test-sprintf-posix.h (test_function):
29694         * tests/test-vasnprintf-posix.c (test_function):
29695         * tests/test-vasprintf-posix.c (test_function):
29696         Test only that noncanonical values do not cause crashes, not that
29697         they are treated as NaNs.  In some cases this means a larger
29698         output buffer is needed.
29700 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
29702         fts: remove redundant close() (trivial)
29703         * lib/fts.c (fts_read): Remove redundant call to close().
29704         Spotted by coverity.
29706 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29708         getdtablesize: port better for Android
29709         Problem reported by Kevin Cernekee in:
29710         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
29711         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
29712         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
29713         Instead, just use getrlimit, taking care to avoid Cygwin bug.
29715         poll: fixes for large fds
29716         * lib/poll.c (poll): Don't check directly for NFD too large.
29717         Don't rely on undefined behavior in FD_SET when an arg exceeds
29718         FD_SETSIZE.  Always set revents afterwards, even if to zero.
29719         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
29720         as that makes the test a bit stricter.
29722 2015-02-19  Kevin Cernekee  <cernekee@google.com>
29724         fcntl: Fix cross compiling
29725         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
29726         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
29728 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
29730         dup2, fcntl: cross-compile better for Android
29731         Problem reported by Kevin Cernekee in:
29732         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
29733         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
29734         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
29735         there's little need to cross-compile for older kernels nowadays.
29736         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
29737         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
29739 2015-02-18  Pádraig Brady  <P@draigBrady.com>
29741         getopt: don't crash on memory exhaustion
29742         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
29743         memory exhaustion.  In the _LIBC case we use alloca() as is
29744         already done in glibc, so we don't need to consider the separate
29745         error path in that awkward case.  Also fix a memory leak when
29746         ambiguous options are present.
29747         Reported by Tobias Stoeckmann
29749 2015-02-17  Mike Miller  <mtmiller@ieee.org>
29751         tempname: allow compilation with C++ (trivial)
29752         * lib/tempname.h [C++]: Specify extern "C" linkage.
29753         * lib/tempname.h (try_tempname):
29754         * lib/tempname.c (__try_tempname, __gen_tempname):
29755         Rename 'try' to 'tryfunc'.
29757 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
29759         dup2, fcntl: port to AIX
29760         * m4/dup2.m4 (gl_FUNC_DUP2):
29761         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29762         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
29763         The former works on AIX 7.1 but the latter does not.
29764         Also, this may work better with Android; see:
29765         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
29767 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
29769         getdtablesize, dup2, fcntl: port to Android
29770         Problem reported by Kevin Cernekee in:
29771         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
29772         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
29773         Mention that getdtablesize doesn't work on Android.
29774         * lib/getdtablesize.c: Use getrlimit substitute only if
29775         getdtablesize is declared.  This should suffice for Cygwin
29776         while not breaking Android.
29777         * m4/dup2.m4 (gl_FUNC_DUP2):
29778         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29779         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
29780         standardized but the latter is not, and sysconf works on Android.
29781         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
29782         Also check that getdtablesize is declared.
29783         This removes the need for a special case for Android.
29785 2015-02-16  Kevin Cernekee  <cernekee@google.com>
29787         localename: Implement gl_locale_name_thread_unsafe for Android
29788         * lib/localename.c: Android API level >= 21 supports two hardcoded
29789         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
29790         the internal __locale_t struct.
29792 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
29794         fts: avoid crash when a cycle is added while traversing
29795         This could be triggered by auto-mounting a recursive bind mount.
29796         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
29797         * lib/fts.c (fts_read): Avoid removing the original hash table item
29798         when leaving a directory that caused a cycle, and preserve the FTS_DC
29799         flag.
29801 2015-02-16  Daiki Ueno  <ueno@gnu.org>
29803         uniname/uniname: support character alias
29804         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
29805         Generate one-way mapping from aliases to codepoints in the
29806         generated tables.  Special case variation selectors to reduce
29807         table size.
29808         * lib/uniname/uniname.c (unicode_character_name): Special case
29809         variation selectors.
29810         (unicode_name_character): Special case variation selectors and
29811         their aliases.
29812         * lib/uniname/uninames.h: Regenerate.
29813         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
29814         * modules/uniname/uniname-tests (Files): Add
29815         tests/uniname/NameAliases.txt.
29816         * tests/uniname/test-uninames.c: Mark as static.
29817         (ALIASLEN): Define.
29818         (struct unicode_alias): New struct.
29819         (unicode_aliases): New variable.
29820         (fill_aliases): New function.
29821         (test_alias_lookup): New test function.
29822         (main): Run the 'test_alias_lookup' test if the second argument is
29823         given.
29824         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
29825         second argument.
29827 2015-02-11  Kevin Cernekee  <cernekee@google.com>
29829         Fix FILE struct compatibility with Android API level >= 21
29830         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
29831         __sferror.  Recent versions of Bionic's stdio.h no longer define
29832         __sferror.
29833         * lib/fbufmode.c: Likewise.
29834         * lib/fflush.c: Likewise.
29835         * lib/fpurge.c: Likewise.
29836         * lib/freadable.c: Likewise.
29837         * lib/freadahead.c: Likewise.
29838         * lib/freading.c: Likewise.
29839         * lib/freadptr.c: Likewise.
29840         * lib/freadseek.c: Likewise.
29841         * lib/fseeko.c: Likewise.
29842         * lib/fseterr.c: Likewise.
29843         * lib/fwritable.c: Likewise.
29845         Assume unbroken ungetc() on Android
29846         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
29847         test case passed when running on an Android host, and the code
29848         hasn't really changed since 2009.
29850         getdtablesize: Fix Android build
29851         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
29852         versions have this symbol in the .so library (at least 32-bit
29853         platforms) but are missing the declaration in the header file,
29854         causing the m4 logic to guess incorrectly.
29856         localename: Fix Android build
29857         * modules/localename (Depends-on): Add langinfo.
29859         getugroups: Fix Android build
29860         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
29861         functions.
29863         euidaccess: Fix Android build
29864         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
29865         AT_EACCESS gets declared.
29867         linkat_nofollow: Add fallback case for cross compiling
29868         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
29870         net_if: Handle content-free <net/if.h> system headers
29871         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
29872         struct if_nameindex.  If not, enable the replacement header.
29874         signal_h: Fix Android build
29875         * lib/signal.in.h: Add Android to the list of platforms that declare
29876         pthread_sigmask() in <pthread.h> instead of <signal.h>.
29878         duplocale: Fix Android build of duplocale-tests
29879         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
29880         is included by test-duplocale.c (but not by duplocale.c).
29881         * modules/duplocale-tests (configure.ac): Check for monetary.h.
29882         * tests/test-duplocale.c: Skip test if monetary.h is absent.
29883         * doc/posix-headers/monetary.texi: Add Android to the list of
29884         platforms missing monetary.h.
29886 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29888         tests: avoid recent -Werror=unused-variable regression in test-locale
29889         * tests/test-locale.c (main): Reference the variable to avoid the
29890         "unused variable" warning.
29892 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29894         maint: various whitespace cleanups in tempname
29895         * lib/tempname.c: Normalize spacing and line length.
29896         * lib/tempname.h: Likewise.
29897         * modules/tempname: Likewise.
29899 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29901         tests: provide returns_() to simplify exit status checking
29902         * tests/init.sh (returns_): A new function for use in tests,
29903         to allow for easier checking of return values, where you expect
29904         a command to exit with failure status.  By checking for a particular
29905         exit code, you don't hide any crashes for example.
29907 2015-02-11  Pádraig Brady  <P@draigBrady.com>
29909         mountlist: only use libmount when specified
29910         There are currently many shared libs dependencies introduced by
29911         libmount with associated runtime and virt mem overhead.
29912         Therefore don't enable by default.
29913         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
29915 2015-02-08  Daiki Ueno  <ueno@gnu.org>
29917         uniname/unimame-tests: don't link with -lunistring
29918         * modules/uniname/uniname-tests (Makefile.am): Don't link against
29919         $(LIBUNISTRING).  Document the rationale why we need to
29920         conditionalize the test.
29922 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
29924         fstrcmp: don't assume strlen < INT_MAX
29925         * lib/fstrcmp.c: Include stddef.h and stdint.h.
29926         (uintptr_t): Remove, as we're now assuming stdint.
29927         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
29928         Prefer ptrdiff_t to int when the value could exceed INT_MAX
29929         if the input string is long.
29930         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
29931         uintptr_t to size_t when the underlying value is a pointer casted
29932         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
29933         * modules/fstrcmp (Depends-on): Add stdint.
29935         diffseq: prefer ptrdiff_t to ssize_t
29936         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
29937         ptrdiff_t is the natural type for signed indexes.
29938         On a few older platforms, ssize_t is narrower than size_t.
29940         xalloc: fix typo that suppressed warnings
29941         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
29942         This typo, introduced a couple of years ago, mistakenly suppressed
29943         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
29944         -Wmissing-declarations warnings.
29946         full-read: fix license notice typo
29947         * lib/full-read.h: Remove a stray line in the license notice.
29948         Reported by Sam Ellis in: http://bugs.gnu.org/19808
29950         crypto/gc: fix a -Wswitch warning
29951         Reported by Bruce Korb in:
29952         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
29953         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
29955 2015-02-03  Pádraig Brady  <P@draigBrady.com>
29957         gnulib-tool: fix handling of patch(1) diagnostics
29958         * gnulib-tool: Send diagnostics from patch(1) to stderr,
29959         as otherwise gnulib-tool will reparse that output and attempt
29960         to lookup modules.
29962 2015-02-03  Pádraig Brady  <P@draigBrady.com>
29964         bootstrap: exit immediately upon gnulib-tool failure
29965         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
29966         This was noticed when gnulib-tool exited early due to failure
29967         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
29968         but various confusing errors were then given as the build proceeded.
29970 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
29972         symlinkat: include all required header files
29973         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
29974         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
29975         Reported at https://savannah.gnu.org/bugs/index.php?44151
29976         and by Jack Howarth.
29978 2015-01-29  Pádraig Brady  <P@draigBrady.com>
29980         localename: support Solaris 12 and illumos
29981         * lib/localename.c (gl_locale_name_thread_unsafe): call
29982         getlocalename_l() on newer __sun platforms.
29983         Reported by Alexander Pyhalov.
29984         Fix suggested by Rich Burridge.
29986 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
29988         locale: fix tests on illumos (trivial)
29989         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
29990         so move from global scope to main().
29992 2015-01-24  Daiki Ueno  <ueno@gnu.org>
29994         unictype: avoid undefined left-shift behavior
29995         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
29996         gcc's -fsanitize=shift and running its tests triggered:
29997           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
29998             places cannot be represented in type 'int'
29999         Cast LHS to 'unsigned int' after integer promotion.
30000         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30001         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30003 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30005         libunistring: bump version of unitypes dependants
30006         Due to the header file search order, all the headers which depend
30007         on unitypes.h need to be generated, when the preinstalled
30008         libunistring is older.
30009         * modules/unicase/base (configure.ac): Bump minimum version to
30010         0.9.4.
30011         * modules/uniconv/base (configure.ac): Likewise.
30012         * modules/unilbrk/base (configure.ac): Likewise.
30013         * modules/uninorm/base (configure.ac): Likewise.
30014         * modules/unistdio/base (configure.ac): Likewise.
30015         * modules/unistr/base (configure.ac): Likewise.
30016         * modules/uniwbrk/base (configure.ac): Likewise.
30017         * modules/uniwidth/base (configure.ac): Likewise.
30019 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30021         unictype/category-none: fix link with libunistring
30022         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30023         prefixed with "libstring_" when compiled as part of libunistring.
30024         To avoid undefined symbol at link time, increase the minimum
30025         version when the dependant modules are updated.
30026         * modules/unictype/category-none (configure.ac): Bump minimum
30027         version to 0.9.5.
30029 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30031         unitypes: fix build with installed libunistring
30032         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30033         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30034         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30036 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30038         time: port to MinGW32 3.21
30039         Problem reported by Eli Zaretskii in:
30040         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30041         * lib/time.in.h:
30042         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30043         * modules/time (Depends-on):
30044         Fall back on unistd.h if the other include files don't define
30045         struct timespec.
30047         update-copyright: apply to self
30048         * build-aux/update-copyright: Fix copyright date.  How ironic!
30050 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30052         libunistring: update to Unicode 7.0.0
30053         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30054         Manichaean names.
30055         * lib/unictype/joininggroup_name.h: Likewise.
30056         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30057         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30058         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30059         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30060         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30061         enum values.
30062         (is_property_alphabetic): Accept newly added characters to
30063         cuneiform numeric signs.
30064         (is_property_default_ignorable_code_point): Reject U+0605.
30065         (FIELDLEN): Increase from 120 to 160.
30066         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30067         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30068         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30069         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30070         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30071         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30072         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30073         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30074         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30075         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30076         U+1E8D0..U+1E8D6.
30077         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30078         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30079         lib/uniwidth/width.c.
30080         * all generated files under lib/uni* and tests/uni*: Regenerate.
30082 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30084         libunistring: update to Unicode 6.3.0
30085         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30086         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30087         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30088         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30089         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30090         Update WB5, WB9, WB10, WB13a, and WB13b.
30091         * tests/uniwbrk/test-uc-wordbreaks.c
30092         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30093         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30094         (UC_BIDI_PDI): New enumeration values.
30095         (bidi_category_byname): Support those enum values.
30096         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30097         dedicated property assigned.
30098         (is_property_case_ignorable): Check 0x0027.
30099         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30100         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30101         (output_wbp): Support those enum values.
30102         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30103         (UC_BIDI_PDI): New enumeration values.
30104         * lib/unictype/bidi_byname.gperf: Add those property names.
30105         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30106         U+180E, U+1A1B, and U+2066..U+2069.
30107         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30108         lib/uniwidth/width.c.
30109         * all generated files under lib/uni* and tests/uni*: Regenerate.
30111 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30113         libunistring: update to Unicode 6.2.0
30114         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30115         (unilbrk_table): Adjust table size.
30116         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30117         for LBP_RI.
30118         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30119         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30120         Normalize table index skipping ignored properties.
30121         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30122         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30123         the table.
30124         * lib/uniwbrk/wbrktable.h: Adjust table size.
30125         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30126         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30127         Support rule GB8a.
30128         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30129         * tests/unigbrk/test-uc-is-grapheme-break.c
30130         (graphemebreakproperty_to_string): Support GBP_RI.
30131         * tests/uniwbrk/test-uc-wordbreaks.c
30132         (wordbreakproperty_to_string): Support WBP_RI.
30133         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30134         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30135         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30136         LBP_AL to LBP_ID.
30137         (output_lbp): Support LBP_RI.
30138         (WBP_RI): New enumeration value.
30139         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30140         (output_wbp): Support WBP_RI.
30141         (GBP_RI): New enumeration value.
30142         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30143         * all generated files under lib/uni* and tests/uni*: Regenerate.
30145 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30147         libunistring: update to Unicode 6.1.0
30148         * lib/gen-uni-tables.c (output_joining_group): Switch to
30149         3-level table to accommodate joining groups defined with higher
30150         codepoint value.  Since there are only 88 groups defined in
30151         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30152         (get_lbp): Update for Unicode 6.1.0.
30153         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30154         3-level table.
30155         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30156         joining group name.
30157         * lib/unictype/joininggroup_name.h: Likewise.
30158         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30159         (unilbrk_table): Adjust table size.
30160         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30161         for LBP_HL.
30162         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30163         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30164         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30165         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30166         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30167         U+302E..U+302F.
30168         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30169         lib/uniwidth/width.c.
30170         * all generated files under lib/uni* and tests/uni*: Regenerate.
30171         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30173 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30175         uniwbrk/u32-wordbreaks-tests: add conformance test
30176         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30177         tests/uniwbrk/test-uc-wordbreaks.c,
30178         tests/uniwbrk/test-uc-wordbreaks.sh, and
30179         tests/uniwbrk/WordBreakTest.txt.
30180         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30181         test-uc-wordbreaks to $(check_PROGRAMS), and define
30182         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30183         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30184         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30186 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30188         uniwbrk: ignore Extended/Format characters at BOL not BOS
30189         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30190         characters if the previous character property is one of
30191         WBP_NEWLINE, WBP_CR, and WBP_LF.
30193 2015-01-11  Jim Meyering  <meyering@fb.com>
30195         test-strstr.c: avoid a trivial leak
30196         * tests/test-strstr.c (main): Free haystack.
30198         update-copyright: recognize groff's \(co marker
30199         * build-aux/update-copyright (circle_c_re): Also accept
30200         uses of \(co, as found in gzip.1.
30202 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30204         maint.mk: fix compatibility with OS X nm
30205         * top/maint.mk (_gl_tight_scope): Use the -g option to
30206         show exported items rather than the -e option which is
30207         ignored on all platforms except OS X where it gives an error.
30208         Reported by Assaf Gordon.
30210 2015-01-07  KO Myung-Hun  <komh@chollian.net>
30212         localcharset: improve charset detection on OS/2
30213         Use system codepage when appropriate.  Map OS/2 codepages to
30214         GNU canonical charset names if possible.
30215         * lib/config.charset: Don't output aliases if "$os" is os2*.
30216         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
30217         result for OS/2.
30218         (locale_charset) [OS2]: Use system codepage if codeset is omitted
30219         from the locale name which is neither "C" nor "POSIX".
30221 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30223         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
30224         This reverts the last patch but one, as it shouldn't be needed now
30225         that the typo is fixed.
30226         * lib/count-leading-zeros.h (count_leading_zeros_ll):
30227         * lib/count-trailing-zeros.h:
30228         * lib/count-one-bits.h:
30229         Go back to using 64-bit intrinsics.
30231         count-leading-zeros: fix pragma typos
30232         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
30233         Fix typos in declaration of intrinsics when _MSC_VER.
30235 2015-01-06  Pádraig Brady  <P@draigBrady.com>
30237         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
30238         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
30239         intrinsics in this case.
30240         * lib/count-trailing-zeros.h: Likewise.
30241         * lib/count-one-bits.h: Likewise.
30243 2015-01-06  Daiki Ueno  <ueno@gnu.org>
30245         uniname/uniname: update to Unicode 7.0.0
30246         To accommodate new characters added since Unicode 5.1.0, this
30247         changes the internal representation of codepoint ranges.
30248         Previously, we grouped codepoint ranges by manually assigned 4-bit
30249         tag, which only allowed 16 groups.  This removes the limitation by
30250         switching to binary search on a table.  For the detail rationale
30251         and the benchmark results, see:
30252         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30253         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30254         to INDEX, as it no longer represents a codepoint.
30255         (range): New struct.
30256         (main): Switch to intervals list from a bit-pattern based
30257         classification.
30258         * lib/uniname/uninames.h: Regenerate.
30259         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30260         * modules/uniname/base (configure.ac): Bump minimum version to
30261         0.9.5.
30262         * modules/uniname/uniname (configure.ac): Bump minimum version to
30263         0.9.5.
30265 2015-01-05  Eric Blake  <eblake@redhat.com>
30267         doc: update INSTALL from autoconf
30268         * doc/install.texi: Resync from autoconf.
30269         * doc/INSTALL: Reflect recent autoconf update.
30270         * doc/INSTALL.ISO: Likewise.
30271         * doc/INSTALL.UTF-8: Likewise.
30273         stdio: fix use of PRIdMAX on modern mingw
30274         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30275         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30276         to work with modern mingw.
30278 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30280         pthread: detect git mingw builds with only partial pollution
30281         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30282         pollution, as seen temporarily in Fedora 21.
30284 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30286         lib-symbol-versions: cache script check
30287         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30288         Cache the check for linker version scripts.
30289         From a suggestion by Christophe Curis in:
30290         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30292 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30294         maint: fix grammar nits in propername (trivial change)
30295         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30296         and use an adequate verb and tense.
30298 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30300         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30301         * module/gendocs: Add 'doc/gendocs_template_min'.
30303         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30304         from to Gnulib's.
30305         (scripturl, templateurl): Adjust accordingly.
30307 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30309         gendocs: copyright date and version fix
30310         Reported by Karl Berry in:
30311         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30312         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30313         Fix copyright date.
30314         * build-aux/gendocs.sh (scriptversion): Update.
30316 2015-01-01  Karl Berry  <karl@gnu.org>
30318         * doc/install.texi,
30319         * build-aux/mdate-sh,
30320         * build-aux/depcomp,
30321         * build-aux/config.guess,
30322         * build-aux/config.sub,
30323         * build-aux/ar-lib,
30324         * build-aux/compile: revert copyright updates (some from last
30325         year) in slaved files.
30327 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30329         version-etc: new year
30330         * doc/gnulib.texi:
30331         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30332         * all files: Run 'make update-copyright'.
30334 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30336         xstrtol: ensure errno is reset
30337         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30338         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30340         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30342 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30344         utimens: fix dependency typo
30345         * modules/utimens (Depends-on): Remove 'assure'.
30346         This bug was introduced in the recent 'assure' patch.
30348 2014-12-22  Eric Blake  <eblake@redhat.com>
30350         docs: mention why libgen.h is bad
30351         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30353 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30355         assure: new module
30356         This works better than 'assert' when compiling with -DNDEBUG,
30357         as it avoids some compiler diagnostics in that case.
30358         Reported by Norihiro Tanaka in:
30359         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30360         * MODULES.html.sh (func_all_modules): Add 'assure'.
30361         * lib/assure.h, modules/assure: New files.
30362         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30363         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30364         Prefer 'assure' to 'assert'.
30365         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30366         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30367         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30368         Depend on 'assure'.
30370 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30372         stdalign: port better to HP compilers
30373         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30374         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30376         stdalign: work around Apple GCC 4.0 bug
30377         Reported by David Fang in:
30378         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30379         * lib/stdalign.in.h (_Alignas):
30380         * m4/stdalign.m4 (gl_STDALIGN_H):
30381         Do not use aligned attribute with GCC 4.0 on Apple.
30383 2014-12-16  Pádraig Brady  <P@draigBrady.com>
30385         getcwd: fix test failure on OS X 10.9
30386         * m4/getcwd-path-max.m4: Avoid the replacement if it
30387         won't be effective due to the PATH_MAX limitation of lstat().
30388         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
30389         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
30390         for this case for use in tests, and also exclude this
30391         case when setting REPLACE_GETCWD.
30392         * tests/test-getcwd.c (test_long_name): Restrict the
30393         tested path length so that lstat() will not be passed
30394         a path greater than PATH_MAX.
30395         Also key a test condition on HAVE_OPENAT_SUPPORT rather
30396         than AT_FDCWD, since the latter is set unconditionally
30397         since Sep 2009 in commit 52c658e9.
30399 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
30401         parse-datetime: avoid a compiler warning with byacc (trivial)
30402         * lib/parse-datetime.y (yylex): Use the same prototype in the
30403         function definition as the declaration, to avoid a -Wstrict-prototypes
30404         warning seen when using byacc.
30406 2014-12-12  Daiki Ueno  <ueno@gnu.org>
30408         unicase/locale-language-tests: fix LOCALE_FR test
30409         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
30410         a French locale with traditional encoding.
30411         Reported by umerqayam in:
30412         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
30414 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30416         stddef: support C11's max_align_t
30417         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
30418         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
30419         Do not undef, as that might cause max_align_t to be defined twice.
30420         Instead, change use to check for _GL_STDDEF_WINT_T too.
30421         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
30422         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
30423         Check for max_align_t.
30424         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
30425         * modules/stddef-tests (Depends-on): Add stdalign.
30426         * tests/test-stddef.c: Test max_align_t.
30428 2014-12-11  Daiki Ueno  <ueno@gnu.org>
30430         unistd: fix iOS check conditional
30431         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
30432         as 0 or 1 in <TargetConditionals.h>, and the previous check always
30433         yielded true on non-iOS environment.
30434         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
30435         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
30436         they are defined.
30438 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
30440         posixtm: avoid compiler warning in a better way
30441         * lib/posixtm.c (IF_LINT): Remove.
30442         (year, posix_time_parse):
30443         Return true (not 0) if successful.  All callers changed.
30444         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
30446 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30448         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
30449         started with '/' on EMX.
30451 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30453         freopen: workaround freopen() on OS/2 kLIBC
30454         * lib/freopen.c (rpl_freopen): Workaround.
30455         * m4/freopen.m4: Add os2* case.
30457         get_shared_library_fullname: port to EMX
30458         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
30459         on EMX, respectively.
30460         (_DLL_InitTerm): New on EMX.
30461         (get_shared_library_fullname): Implement on EMX.
30463         find_executable: port to EMX
30464         * lib/progreloc.c (find_executable): Implement on EMX.
30466         sched: check struct sched_param in spawn.h as well
30467         * lib/sched.in.h: Include spawn.h on kLIBC.
30468         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
30470 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
30472         bootstrap: Allow perl modules in $buildreq
30473         * build-aux/bootstrap: Add case for perl modules.
30475 2014-12-08  Pádraig Brady  <P@draigBrady.com>
30477         apply _GL_ATTRIBUTE_PURE to some inline functions
30478         clang 3.4.2 flagged these inline functions as pure
30479         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
30480         * lib/sig-handler.h (get_handler): Likewise.
30481         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
30482         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
30484 2014-12-06  Pádraig Brady  <P@draigBrady.com>
30486         vasnprintf: fix potential use after free
30487         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
30488         flagged by clang-analyzer 3.4.2.
30490 2014-12-05  Pádraig Brady  <P@draigBrady.com>
30492         filevercmp, posixtm: avoid compiler warnings with -O3
30493         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
30494         * lib/posixtm.c: (IF_LINT): Define.
30495         (posix_time_parse): Use it to void a "may be used uninitialized"
30496         warning, seen only with -O3.
30498 2014-12-05  Bruno Haible  <bruno@clisp.org>
30500         Fix LDBL80_WORDS macro on big endian platforms.
30501         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
30502         LDBL80_WORDS macro.
30503         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30504         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30505         * tests/test-isfinite.c (test_isfinitel): Likewise.
30506         * tests/test-isinf.c (test_isinfl): Likewise.
30507         * tests/test-isnan.c (test_long_double): Likewise.
30508         * tests/test-isnanl.h (main): Likewise.
30509         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
30510         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
30511         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
30512         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
30513         Reported by Pádraig Brady.
30515 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
30517         git-version-gen: do not print new line characters
30518         * build-aux/git-version-gen: Use printf instead of echo and tr.
30520         gnulib-tool: recognize x:* as an absolute path
30521         * gnulib-tool (func_gnulib_dir): Add ?:* case.
30522         (func_relconcat): Likewise.
30524 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
30526         argp: avoid extraneous translation and mem leak with empty pre doc
30527         * lib/argp-help.c (argp_doc): Never translate the empty string,
30528         when "\v" is the first or last character of the string, as that
30529         has a reserved meaning to return the header info from a po file.
30530         This also fixes a small memory leak in the !post case.
30531         The issue can be seen with this command for example:
30532         LC_MESSAGES=en_US grub2-mknetdir --help
30534 2014-11-27  Daiki Ueno  <ueno@gnu.org>
30536         uniname/uniname-tests: skip if system's libunistring is used
30537         * modules/uniname/uniname-tests (Makefile.am): Skip test if
30538         uniname/uniname module is not compiled.
30540 2014-11-27  Pádraig Brady  <P@draigBrady.com>
30542         printf: fix configure check on big endian systems
30543         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
30545 2014-11-22  Daiki Ueno  <ueno@gnu.org>
30547         pipe-filter-gi, pipe-filter-ii: port to AIX
30548         On AIX 7.1, 'select' is defined as static and cannot be referred
30549         to from inline function.
30550         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
30551         the definition...
30552         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
30553         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
30555 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30557         gitlog-to-changelog: add --until
30558         * build-aux/gitlog-to-changelog: Support new --until option.
30559         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
30561 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30563         extern-inline: update commentary about GCC bugs
30564         * m4/extern-inline.m4: Add another GCC bug number to comments.
30566 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30568         gen-uni-tables: untabify
30569         * lib/gen-uni-tables.c: Untabify.
30571 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30573         gen-uni-tables: check out-of-range values added to 3-level tables
30574         * lib/gen-uni-tables.c (output_category, output_bidi_category)
30575         (output_joining_type, output_ident_category): Check out-of-range
30576         values added to 3-level tables.
30578 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30580         gen-uni-tables: utilize 'assert'
30581         * lib/gen-uni-tables.c: Include <assert.h>.
30582         (output_category, output_combclass, output_decimal_digit_test)
30583         (output_decimal_digit, output_digit_test, output_digit)
30584         (output_numeric, get_mirror_value, fill_properties)
30585         (fill_property30, is_property_alphabetic)
30586         (is_property_default_ignorable_code_point)
30587         (is_property_uppercase, is_property_lowercase)
30588         (is_property_cased, is_property_case_ignorable)
30589         (is_property_changes_when_lowercased, is_property_iso_control)
30590         (is_property_math, fill_arabicshaping, output_joining_group)
30591         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
30592         (output_wbp, fill_org_gbp, get_decomposition)
30593         (output_decomposition, fill_composition_exclusions)
30594         (debug_output_composition_tables, output_composition_tables)
30595         (redistribute_casefolding_rules, output_casing_rules): Use
30596         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
30597         reporting.
30599 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30601         gen-uni-tables: cosmetic improvements
30602         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
30603         variables specification.
30604         (is_outdigit): Remove unused function.
30606 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
30608         fcntl-h-tests: port to PA-RISC GNU/Linux
30609         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
30611 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30613         fts: port to C89
30614         Problem reported for MSVC 16 by Gisle Vanem in:
30615         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
30616         * lib/fts.c (fts_build): Avoid declaration before statement.
30618 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30620         unistd: port to iOS
30621         Problem reported by André Klitzing in:
30622         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
30623         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
30625 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30627         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
30628         Problem reported by Alan Modra in:
30629         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
30630         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
30631         Always cast the function arg, reverting this part of the previous
30632         change.
30634 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30636         obstack: avoid potentially-nonportable function casts
30637         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
30638         Remove, replacing with ...
30639         (call_chunkfun, call_freefun): New static functions.
30640         All uses changed.  Avoid potentially-nonportable casts.
30641         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
30642         (_obstack_begin_worker): Omit last two args, since they
30643         rely on potentially-nonportable casts.  All callers changed.
30644         * lib/obstack.h (_OBSTACK_CAST): New macro.
30645         Use it everywhere the old API used a potentially-nonportable cast.
30646         The new API doesn't cast.
30647         (struct obstack): Use unions rather than requiring
30648         potentially-nonportable casts.
30649         (obstack_chunkfun, obstack_freefun): Return void.
30651 2014-11-03  Alan Modra  <amodra@gmail.com>
30653         obstack: fix macro return values
30654         * lib/obstack.h (obstack_next_free): Return void *.
30655         (obstack_1grow_fast, obstack_blank_fast): Return void.
30656         For __GNUC__ macros:
30657         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
30658         For !__GNUC__ macros:
30659         (obstack_make_room, obstack_grow, obstack_grow0)
30660         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
30662 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30664         obstack: do not assume system-supplied obstack is size_t safe
30665         * m4/obstack.m4: New file.
30666         * modules/obstack (Files): Add it.
30668         obstack: port to platforms that #define __alignof__
30669         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
30670         not if !_LIBC.  We don't know of any platforms that #define
30671         __alignof__, but it might be useful in tests.  Conversely,
30672         glibc assumes GCC.
30674 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30676         linkat: don't unconditionally replace on GNU/Linux
30677         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
30678         was redundant for a few reasons.  It was present to support compiling
30679         on new systems but running on the old narrow window of Linux 2.6.1[67].
30680         It setup and cleaned up test files which weren't actually used.
30681         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
30682         implicit in the following check.
30684 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30686         linkat: wrap to handle symlinks on OS X 10.10
30687         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
30688         but not usable because it doesn't support creating hardlinks
30689         to symlinks.  Therefore add a generic test for this capability
30690         and fallback to our emulation if linkat() fails with ENOTSUP.
30692 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30694         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
30695         * doc/posix-functions/open.texi (open):
30696         * doc/posix-functions/openat.texi (openat):
30697         Document that these functions do not set errno to ELOOP when
30698         a symlink is opened with O_NOFOLLOW.
30700 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30702         obstack: add NEWS entry for recent incompatible changes
30703         * NEWS: Describe recent changes.
30705 2014-10-30  Pádraig Brady  <P@draigBrady.com>
30707         mountlist: don't use libmount to decide on dummy/remote
30708         * lib/mountlist.c (read_file_system_list): Don't use the libmount
30709         routines to determine whether a file system is dummy or remote,
30710         as they're not currently compatible.  For example the remoteness
30711         is determined on file system type (for which the list seems incomplete),
30712         rather than simply checking for a ':' in the device name.
30713         Also libmount currently determines that 'tmpfs' is a dummy file system
30714         even though it has associated storage.
30716 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30718         obstack: prefer __alignof__ to alignof
30719         This is for portability to pre-4.7 GCC when compiling glibc.
30720         See Joseph S. Myers in:
30721         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
30722         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
30723         New macro, defined by including and using <alignof.h>.
30724         (MAX): New macro.
30725         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
30726         Do not use enums as they are not portable to some broken compilers.
30727         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
30729         obstack: prefer alignof to calculating alignments by hand
30730         * lib/obstack.c: Include <stdalign.h>.
30731         (struct fooalign): Remove.
30732         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
30733         * modules/obstack (Depends-on): Add stdalign.
30735 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
30737         obstack: use size_t alignments and check for overflow
30738         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
30739         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
30740         * lib/obstack.h (struct obstack.alignment_mask):
30741         Use _OBSTACK_SIZE_T, not int, for alignments.
30742         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
30743         overflows, e.g., when adding the alignment.
30745 2014-10-29  Alan Modra  <amodra@gmail.com>
30747         obstack: 64-bit obstack support, part 3
30748         This finally enables full 64-bit obstack support.  The glibc
30749         shared library specific code is removed from obstack.c too, and
30750         the error handling code conditionally compiled under control of
30751         another macro, _OBSTACK_NO_ERROR_HANDLER.
30752         * lib/obstack.h: Include string.h earlier.
30753         (_OBSTACK_INTERFACE_VERSION): Define.
30754         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
30755         * lib/obstack.c: Don't include shlib-compat.h.
30756         (OBSTACK_INTERFACE_VERSION): Delete.
30757         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
30758         glibc code is compatible with version 2.  Don't include stdio.h for
30759         __GNU_LIBRARY.
30760         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
30761         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
30762         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
30763         glibc shared library specific source.
30765         obstack: 64-bit obstack support, part 2
30766         This gets us 4G obstack support, without changing ABI
30767         compatibility, apart from possibly introducing some
30768         signed/unsigned comparison warnings in code that uses obstack.h.
30769         a) Replace "int" size parameters, return values, and macro local vars
30770            with _OBSTACK_SIZE_T, an "unsigned int" for now.
30771         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
30772         c) Make all obstack macros checking available room use obstack_room.
30773            "next_free + desired > chunk_limit" may wrap the lhs for chunks
30774            allocated near the top of memory.
30775         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
30776         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
30777         in place of "int" size parameters, return values and local vars.
30778         (_CHUNK_SIZE_T): Define.
30779         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
30780         union use an _OBSTACK_SIZE_T integer type.
30781         For __GNUC__ versions of the following macros...
30782         (obstack_room): Rename local var.
30783         (obstack_make_room): Use obstack_room.
30784         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30785         obstack_int_grow, obstack_blank): Likewise.
30786         (obstack_finish): Use unsigned comparison when comparing aligned
30787         next_free against chunk_limit.
30788         (obstack_free): Cast OBJ to remove possible const qualifier.
30789         For !__GNUC__ versions of the following macros...
30790         (obstack_make_room): Use obstack_room.
30791         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30792         obstack_int_grow, obstack_blank): Likewise.
30793         (obstack_finish): Use unsigned comparision when comparing aligned
30794         next_free against chunk_limit.
30795         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
30796         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
30797         _OBSTACK_SIZE_T.
30798         (_obstack_begin, _obstack_begin_1): Likewise.
30799         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
30800         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
30802         obstack: 64-bit obstack support, part 1
30803         a) Correct calls to alloc function, to use a size_t arg.  "long" is
30804            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
30805            and "size_t" 64 bits.
30806         b) Consolidate _obstack_begin and _obstack_begin1 code.
30807         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
30808         use "size_t" rather than "long".
30809         (_obstack_begin, _obstack_begin1): Likewise.
30810         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
30811         obstack_chunkfun): Update alloc function casts.
30812         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
30813         (chunkfun_type, freefun_type): New typdefs.
30814         (_obstack_begin_worker): Split out from ..
30815         (_obstack_begin, _obstack_begin_1): ..here.
30817         obstack: tidy part 2
30818         a) Don't be concerned about "not polluting the namespace with stddef.h
30819            symbols" in obstack.h, since gnulib string.h includes stddef.h
30820            anyway, and it seems unlikely that anyone would care.
30821         b) Don't roll our own slow memcpy in _obstack_newchunk.
30822         c) Rename obstack_free to _obstack_free.  This makes the naming
30823            consistent with other obstack functions and obviates the need for
30824            __obstack_free.  Ancient obstack.c defined both obstack_free and
30825            _obstack_free.  We continue to do that for _LIBC via an alias.
30826         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
30827            is clever, but nowadays gcc warns on undefined macros.  You'll get
30828            an undefined macro warning if simulating an old gcc with -U__GNUC__
30829            -U__GNUC_MINOR__ -D__GNUC__=1.
30830         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
30831         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
30832         (__obstack_free): Delete, update refs.
30833         (_obstack_free): Rename from obstack_free.
30834         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
30835         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
30836         * lib/obstack.c: Don't include stddef.h.
30837         (COPYING_UNIT): Delete.
30838         (_obstack_begin): Formatting fix.
30839         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
30840         (_obstack_free): Rename from __obstack_free, update alias.  Move
30841         undef of obstack_free to where it is needed.
30843         obstack: tidy part 1
30844         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
30845            to me, and result in overlong lines after later patches.
30846         b) Move error handling code, to avoid a forward declaration and to
30847            simplify later patches in this series.
30848         * lib/obstack.h (struct obstack <temp>): Rename fields of union
30849         and update all uses.
30850         * lib/obstack.c: Include stdlib.h earlier.
30851         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
30852         in file.
30853         (print_and_abort): Remove now redundant forward declaration.
30855 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30857         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
30858         Without this change, in bleeding-edge fileutils Autoconf complains
30859         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
30860         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
30861         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
30862         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
30864 2014-10-24  Daiki Ueno  <ueno@gnu.org>
30866         iconv: avoid false detection of non-working iconv
30867         The INBUF arguments of iconv can be either 'const char **'
30868         or 'char **'.  If CC is g++, the difference causes a compile error
30869         and thus leads to a false detection of non-working iconv.
30870         Reported by Eli Zaretskii and Werner LEMBERG in:
30871         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
30872         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
30873         iconv.  Bump serial number.
30875 2014-10-23  Pádraig Brady  <P@draigBrady.com>
30877         bootstrap: print more diagnostics for missing programs
30878         * build-aux/bootstrap: only suppress stderr when checking for
30879         alternative program names.  This supports programs issuing non
30880         standard error messages.
30882 2014-10-23  Pádraig Brady  <P@draigBrady.com>
30884         bootstrap: only update the gnulib submodule
30885         * build-aux/bootstrap: Restrict the "submodule update" command
30886         to the gnulib path.
30888 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30890         symlinkat: port to AIX 7.1
30891         * doc/posix-functions/symlinkat.texi (symlinkat):
30892         Mention AIX porting problem.
30893         * lib/symlinkat.c: Always include errno.h.
30894         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
30895         * lib/unistd.in.h (symlinkat): Add replacement machinery.
30896         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
30897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
30898         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
30899         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
30900         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
30902         readlinkat: port to AIX 7.1
30903         * doc/posix-functions/readlink.texi (readlink):
30904         * doc/posix-functions/readlinkat.texi (readlinkat):
30905         Mention AIX porting problem.
30906         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
30907         New function.
30908         * lib/unistd.in.h (readlinkat): Add replacement machinery.
30909         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
30910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
30911         * modules/readlinkat (configure.ac): Also compile replacement
30912         if REPLACE_READLINKAT.
30913         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
30915 2014-10-12  Karl Berry  <karl@gnu.org>
30917         * doc/posix-functions/dirname.texi: remove spurious {.
30919 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
30921         basename, dirname: Improve documentation.
30922         * doc/posix-functions/basename.texi: Mention dirname module and
30923         base_name() function.
30924         * doc/posix-functions/dirname.texi: Mention dir_name() and
30925         mdir_name() functions.
30926         Suggested by Werner LEMBERG <wl@gnu.org>.
30928 2014-09-24  Jim Meyering  <meyering@fb.com>
30930         exclude: declare exclude_patopts static
30931         * lib/exclude.c (exclude_patopts): Declare static,
30932         to avoid triggering a -Wmissing-prototypes warning.
30933         The alternative (declaring it in the .h file) would
30934         require publicizing the private "struct patopts".
30936 2014-09-21  Werner Lemberg  <wl@gnu.org>
30938         dirname: support compilation with C++
30939         * lib/dirname.h: Add necessary C linkage declarations.
30941 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30943         qsort_r: include <config.h>
30944         Problem reported by Tom G. Christensen in:
30945         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
30946         * lib/qsort.c [!_LIBC]: Include <config.h> first.
30948 2014-09-16  Dylan Cali  <calid1984@gmail.com>
30950         avltree-list: avoid compiler warnings (trivial)
30951         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30952         -Werror=suggest-attribute=pure.
30953         * lib/gl_array_list.c: Likewise.
30954         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
30955         declaration to avoid -Werror=missing-prototypes.  This is not added
30956         to a header as only exported for tests.  Add (void) to the
30957         check_invariants() call to indicate we're discarding the result
30958         in this context which avoids -Werror=unused-value.  Note we don't
30959         use ignore_value here to avoid a dependency as we know we'll not
30960         be adding __attribute__((warn_unused_result)) to check_invariants().
30961         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
30963 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30965         qsort_r: new module, for GNU-style qsort_r
30966         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
30968 2014-09-15  Werner LEMBERG  <wl@gnu.org>
30970         strerror_r-posix: support compilation with C++
30971         * lib/strerror_r.c: Add necessary C linkage declarations.
30973 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
30975         fcntl-h: fix compilation with Intel C++ compiler (trivial)
30976         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
30978 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
30980         mountlist: use /proc/self/mountinfo when available
30981         Use libmount to propagate device IDs provided by Linux in
30982         /proc/self/mountinfo.  This will give more accurate output when
30983         using df in chroot'ed environments as the device IDs are not
30984         determined by stat() which may be inaccurate within the chroot.
30985         * lib/mountlist.c (read_file_system_list): Use the libmount routines
30986         from util-linux to parse "/proc/self/mountinfo" or fall back to
30987         standard getmntent() processing.
30988         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
30989         getmntent() is used, as is the case on GNU/Linux.
30991 2014-09-07  Eric Wong  <normalperson@yhbt.net>
30993         users.txt: add cmogstored
30994         cmogstored has used gnulib since the beginning in 2012 to support
30995         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
30997 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
30999         Trivial change.
31000         * gnulib-tool: Use same options as build-aux/bootstrap to download
31001         PO files.
31003 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31005         Trivial change.
31006         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31008 2014-09-04  Eric Blake  <eblake@redhat.com>
31010         maintainer-makefile: add syntax check for useless ';;'
31011         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31013 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31015         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31016         Problem reported by Assaf Gordon in:
31017         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31018         Apparently Ubuntu is doing some fancy link-time optimization
31019         that doesn't work with -lpthread but does work with -pthread.
31020         Work around the bug by preferring -pthread to -lpthread.
31021         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31022         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31023         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31024         Treat -pthread like -lpthread.
31026 2014-09-04  Eric Blake  <eblake@redhat.com>
31028         error: drop spurious semicolon
31029         * lib/error.c (__error_at_line): Fix ';;'.
31031 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31033         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31034         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31035         Override AC_C_RESTRICT unconditionally.
31036         Update from autoconf, incorporating:
31037         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31038         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31040 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31042         manywarnings: add GCC 4.9 warnings
31043         Also, make it easier to maintain this in the future.
31044         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31045         -Wconditionally-supported, -Wdelete-incomplete,
31046         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31047         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31048         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31049         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31050         only for older GCC versions that need them.  Handle
31051         -Wnormalized=nfc specially, so that the 'comm' command used
31052         for maintenance doesn't get confused.
31054 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31056         vasnprintf: fix bugs in width computation
31057         * lib/vasnprintf.c (VASNPRINTF):
31058         Rework previous change, which introduced a bug,
31059         to avoid the warning in a different way.
31060         Avoid undefined behavior if the width arg is less than -INT_MAX.
31061         Avoid unnecessary use of HAS_WIDTH local.
31063 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31065         vasnprintf: Avoid signed/unsigned comparison warning.
31066         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31067         compare end addr of generated string w/ maximum end addr.
31069 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31071         parse-datetime: Avoid pointer difference.
31072         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31073         instead of calculating difference of pointers.  This removes an
31074         annoying warning, devoid of any use.
31076 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31078         qsort_r: new module, for GNU-style qsort_r
31079         This works even on FreeBSD, which has an incompatible qsort_r API.
31080         * MODULES.html.sh: Add it.
31081         * doc/glibc-functions/qsort_r.texi: It's now supported.
31082         * lib/qsort.c: New file, taken from glibc with minor changes
31083         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31084         removed.
31085         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31086         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31088         * modules/qsort_r, modules/qsort_r-tests: New files.
31089         * modules/stdlib (Makefile): Set up its defaults.
31090         * tests/test-qsort_r.c: New file.
31092 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31094         vla: new module
31095         GNU RCS can use this, mostly for documentation I expect.  See:
31096         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31097         * MODULES.html.sh: Add vla.
31098         * lib/vla.h, modules/vla: New files.
31100 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31102         localename: make gl_locale_name_thread really thread-safe on Windows
31103         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31104         "glthread/lock.h".
31105         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31106         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31108 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31110         getpass: don't assume struct termios
31111         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31112         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31113         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31115         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31116         Problem reported by Jonas 'Sortie' Termansen in:
31117         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31118         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31119         Implement via sysconf for platforms that lack getdtablesize.
31121         vararrays: modernize AC_C_VARARRAYS for C11
31122         This backports a change I recently made to Autoconf.
31123         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31124         VLAs are not supported, as this is what C11 does.  The old macro
31125         HAVE_C_VARARRAYS is still defined if they are supported, but is
31126         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31128 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31130         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31131         * build-aux/install-reloc (func_create_wrapper): Also wrap
31132         strerror-override, stat, stat.
31134 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31136         sys_select: fix FD_ZERO problem on Solaris 10
31137         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31138         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31139         to expand to an expression that invoked memset without necessarily
31140         including <string.h>.  The problem was that the first include
31141         defined _SYS_TIME_H, causing the second include to short-circuit.
31142         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31143         Also, fix what appears to be a cut-and-paste typo, by replacing
31144         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31145         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31147         accept: document Solaris 10 type glitch
31148         * doc/posix-functions/accept.texi (accept): Mention that
31149         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31151 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31153         extern-inline: port to FreeBSD, DragonFly
31154         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31155         is present if either __DragonFly__ or __FreeBSD__ is defined.
31156         FreeBSD problem reported by Andrey Borzenkov in:
31157         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31158         Also, worry about __APPLE__ only if __MACH__ is also defined,
31159         as this is more consistent with the rest of gnulib.
31160         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31161         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31163 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31165         regex: Make #if/#ifdef usage consistent for DEBUG
31166         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31167         of the inconsistent usage of #if and #ifdef as that works with
31168         both Glibc and Gnulib's style.
31170 2014-07-31  Eric Blake  <eblake@redhat.com>
31172         openat-die: use _Noreturn markup
31173         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31174         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31175         _Noreturn.
31177 2014-07-30  Eric Blake  <eblake@redhat.com>
31179         test-open: port to cygwin, which lacks Fortify
31180         * tests/test-open.h (ALWAYS_INLINE): New macro.
31181         (__always_inline): Don't abuse internal symbol on non-glibc.
31183 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31185         localename: Enforce declarations before statements.
31186         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31187         first statement.
31189 2014-07-18  Jim Meyering  <meyering@fb.com>
31191         test-userspec: don't look up numeric user names
31192         * tests/test-userspec.c: I found a system for which getpwnam("0")
31193         returned a pointer to a non-root user's entry, and that made the
31194         test fail.
31195         (T): Prefix each numeric input with "+", to inhibit lookup.
31197 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31199         localcharset, localename: MS-Windows support for non-default locales
31200         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31201         falling back on the default system codepage, try extracting
31202         the codepage from what 'setlocale' returns.  This allows to
31203         take into account changes of the codeset due to non-default
31204         locale set by a previous call to 'setlocale'.
31205         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31206         Define if not already defined.
31207         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31208         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
31209         current locale by calling 'setlocale', then converting the
31210         locale name into LCID by calling 'get_lcid'.  This allows to
31211         take into account changes in the current locale from the
31212         default one, in contrast to GetThreadLocale.
31214 2014-07-14  Daiki Ueno  <ueno@gnu.org>
31216         announce-gen: avoid failure when Digest::SHA is installed
31217         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
31218         Digest::SHA1->new in print_checksums fails.
31219         * build-aux/announce-gen (digest_classes): New associative array
31220         for available message digest implementations.
31221         (print_locations): Use it.
31223 2014-07-13  Pádraig Brady  <P@draigBrady.com>
31225         gettext: revert "update macros to version 0.19"
31226         This reverts commit 9b9370ca, as it currently requires that
31227         developers of any project that explicitly uses the gettext module
31228         or implicitly uses it through the utimens-tests or
31229         futimens-tests modules, use gettext >= 0.19.
31230         However there are some stability and availablity issues with
31231         that version at present.  We can reinstate this soon, when stability
31232         is addressed and packages are more readily available.
31234 2014-07-12  Jim Meyering  <meyering@fb.com>
31236         regex: don't deref NULL upon heap allocation failure
31237         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
31238         failure in one more place.
31239         To trigger the segfault, configure grep -with-included-regex,
31240         build it, and run these commands:
31241         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31242         I discovered this while replying to a private report from
31243         Jens Schleusener about excessive memory consumption by grep
31244         when using a regular expression like the one above.
31246 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31248         regex: fix memory leak in compiler
31249         Fix by Andreas Schwab in:
31250         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31251         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31252         constructed tree before returning error.
31254 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31256         announce-gen: avoid perl warnings
31257         * build-aux/announce-gen: add two minor checks to avoid
31258         "use of uninitialized value" warnings when command-line parameters are
31259         missing.
31261 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31263         localename: avoid -Wsuggest-attribute={const,pure} warnings
31264         * lib/localename.c (string_has): Tag internal function as pure.
31265         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31266         as const when appropriate.
31268 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31270         nl_langinfo: Fix last change.
31271         * lib/nl_langinfo.c (includes): Drop redundant include.
31273 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31275         error: Fix -Wundef warnings in glibc
31276         * lib/error.c [_LIBC]: Define default macros for
31277         glibc.
31278         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31279         Check _LIBC before STRERROR_R_CHAR_P.
31281         error: Sync from glibc master
31282         * lib/error.c [_LIBC]: Remove INTUSE usage.
31283         (error_tail): Remove unused macro ALLOCA_LIMIT.
31284         Fix potential buffer overflow.  Fix potential NULL dereference
31285         in strcmp.
31287 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31289         nl_langinfo: fix build under mingw
31290         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31292 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31294         mountlist: do not classify a bind-mounted dir entry as "dummy"
31295         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31296         1-argument getmntent() (instead of assuming absence).
31298 2014-07-08  Eric Blake  <eblake@redhat.com>
31300         maint.mk: less syntax-check noise when SIGPIPE is ignored
31301         * top/maint.mk (_sc_header_without_use)
31302         (sc_require_config_h_first): Parse full list.
31304 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31305             Paul Eggert  <eggert@cs.ucla.edu>
31307         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31308         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31309         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31310         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31311         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31312         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31313         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31314         Include <stdio.h> if Microsoft Windows.
31315         Include <time.h> if !REPLACE_NL_LANGINFO.
31316         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31317         and with improvements for Microsoft Windows.
31318         (rpl_nl_langinfo): Use it.
31319         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31320         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31321         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31322         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31323         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31324         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31325         corresponding values returned by 'localeconv'.  Compute the values
31326         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31327         'strftime' with a suitable struct tm value.
31329 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31331         Bruno Haible has stepped down as maintainer.
31332         See Karl Berry in:
31333         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31334         Daiki Ueno has volunteered to maintain libunistring; see:
31335         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31336         * modules/gen-uni-tables, modules/libunistring:
31337         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31338         * modules/unicase/base, modules/unicase/cased:
31339         * modules/unicase/empty-prefix-context:
31340         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31341         * modules/unicase/locale-language, modules/unicase/special-casing:
31342         * modules/unicase/tocasefold, modules/unicase/tolower:
31343         * modules/unicase/totitle, modules/unicase/toupper:
31344         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31345         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31346         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31347         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31348         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31349         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31350         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31351         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31352         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31353         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31354         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31355         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31356         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31357         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31358         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31359         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31360         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31361         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31362         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31363         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31364         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31365         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31366         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31367         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31368         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31369         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31370         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31371         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31372         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31373         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31374         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31375         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31376         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31377         * modules/uniconv/u16-conv-to-enc:
31378         * modules/uniconv/u16-strconv-from-enc:
31379         * modules/uniconv/u16-strconv-from-locale:
31380         * modules/uniconv/u16-strconv-to-enc:
31381         * modules/uniconv/u16-strconv-to-locale:
31382         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
31383         * modules/uniconv/u32-strconv-from-enc:
31384         * modules/uniconv/u32-strconv-from-locale:
31385         * modules/uniconv/u32-strconv-to-enc:
31386         * modules/uniconv/u32-strconv-to-locale:
31387         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
31388         * modules/uniconv/u8-strconv-from-enc:
31389         * modules/uniconv/u8-strconv-from-locale:
31390         * modules/uniconv/u8-strconv-to-enc:
31391         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
31392         * modules/unictype/bidicategory-all:
31393         * modules/unictype/bidicategory-byname:
31394         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
31395         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
31396         * modules/unictype/bidiclass-byname:
31397         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
31398         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
31399         * modules/unictype/block-all, modules/unictype/block-list:
31400         * modules/unictype/block-of, modules/unictype/block-test:
31401         * modules/unictype/category-C, modules/unictype/category-Cc:
31402         * modules/unictype/category-Cf, modules/unictype/category-Cn:
31403         * modules/unictype/category-Co, modules/unictype/category-Cs:
31404         * modules/unictype/category-L, modules/unictype/category-LC:
31405         * modules/unictype/category-Ll, modules/unictype/category-Lm:
31406         * modules/unictype/category-Lo, modules/unictype/category-Lt:
31407         * modules/unictype/category-Lu, modules/unictype/category-M:
31408         * modules/unictype/category-Mc, modules/unictype/category-Me:
31409         * modules/unictype/category-Mn, modules/unictype/category-N:
31410         * modules/unictype/category-Nd, modules/unictype/category-Nl:
31411         * modules/unictype/category-No, modules/unictype/category-P:
31412         * modules/unictype/category-Pc, modules/unictype/category-Pd:
31413         * modules/unictype/category-Pe, modules/unictype/category-Pf:
31414         * modules/unictype/category-Pi, modules/unictype/category-Po:
31415         * modules/unictype/category-Ps, modules/unictype/category-S:
31416         * modules/unictype/category-Sc, modules/unictype/category-Sk:
31417         * modules/unictype/category-Sm, modules/unictype/category-So:
31418         * modules/unictype/category-Z, modules/unictype/category-Zl:
31419         * modules/unictype/category-Zp, modules/unictype/category-Zs:
31420         * modules/unictype/category-all, modules/unictype/category-and:
31421         * modules/unictype/category-and-not, modules/unictype/category-byname:
31422         * modules/unictype/category-longname, modules/unictype/category-name:
31423         * modules/unictype/category-none, modules/unictype/category-of:
31424         * modules/unictype/category-or, modules/unictype/category-test:
31425         * modules/unictype/category-test-withtable:
31426         * modules/unictype/combining-class:
31427         * modules/unictype/combining-class-all:
31428         * modules/unictype/combining-class-byname:
31429         * modules/unictype/combining-class-longname:
31430         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
31431         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
31432         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
31433         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
31434         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
31435         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
31436         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
31437         * modules/unictype/digit, modules/unictype/joininggroup-all:
31438         * modules/unictype/joininggroup-byname:
31439         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
31440         * modules/unictype/joiningtype-all:
31441         * modules/unictype/joiningtype-byname:
31442         * modules/unictype/joiningtype-longname:
31443         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
31444         * modules/unictype/mirror, modules/unictype/numeric:
31445         * modules/unictype/property-all, modules/unictype/property-alphabetic:
31446         * modules/unictype/property-ascii-hex-digit:
31447         * modules/unictype/property-bidi-arabic-digit:
31448         * modules/unictype/property-bidi-arabic-right-to-left:
31449         * modules/unictype/property-bidi-block-separator:
31450         * modules/unictype/property-bidi-boundary-neutral:
31451         * modules/unictype/property-bidi-common-separator:
31452         * modules/unictype/property-bidi-control:
31453         * modules/unictype/property-bidi-embedding-or-override:
31454         * modules/unictype/property-bidi-eur-num-separator:
31455         * modules/unictype/property-bidi-eur-num-terminator:
31456         * modules/unictype/property-bidi-european-digit:
31457         * modules/unictype/property-bidi-hebrew-right-to-left:
31458         * modules/unictype/property-bidi-left-to-right:
31459         * modules/unictype/property-bidi-non-spacing-mark:
31460         * modules/unictype/property-bidi-other-neutral:
31461         * modules/unictype/property-bidi-pdf:
31462         * modules/unictype/property-bidi-segment-separator:
31463         * modules/unictype/property-bidi-whitespace:
31464         * modules/unictype/property-byname:
31465         * modules/unictype/property-case-ignorable:
31466         * modules/unictype/property-cased:
31467         * modules/unictype/property-changes-when-casefolded:
31468         * modules/unictype/property-changes-when-casemapped:
31469         * modules/unictype/property-changes-when-lowercased:
31470         * modules/unictype/property-changes-when-titlecased:
31471         * modules/unictype/property-changes-when-uppercased:
31472         * modules/unictype/property-combining:
31473         * modules/unictype/property-composite:
31474         * modules/unictype/property-currency-symbol:
31475         * modules/unictype/property-dash:
31476         * modules/unictype/property-decimal-digit:
31477         * modules/unictype/property-default-ignorable-code-point:
31478         * modules/unictype/property-deprecated:
31479         * modules/unictype/property-diacritic:
31480         * modules/unictype/property-extender:
31481         * modules/unictype/property-format-control:
31482         * modules/unictype/property-grapheme-base:
31483         * modules/unictype/property-grapheme-extend:
31484         * modules/unictype/property-grapheme-link:
31485         * modules/unictype/property-hex-digit:
31486         * modules/unictype/property-hyphen:
31487         * modules/unictype/property-id-continue:
31488         * modules/unictype/property-id-start:
31489         * modules/unictype/property-ideographic:
31490         * modules/unictype/property-ids-binary-operator:
31491         * modules/unictype/property-ids-trinary-operator:
31492         * modules/unictype/property-ignorable-control:
31493         * modules/unictype/property-iso-control:
31494         * modules/unictype/property-join-control:
31495         * modules/unictype/property-left-of-pair:
31496         * modules/unictype/property-line-separator:
31497         * modules/unictype/property-logical-order-exception:
31498         * modules/unictype/property-lowercase, modules/unictype/property-math:
31499         * modules/unictype/property-non-break:
31500         * modules/unictype/property-not-a-character:
31501         * modules/unictype/property-numeric:
31502         * modules/unictype/property-other-alphabetic:
31503         * modules/unictype/property-other-default-ignorable-code-point:
31504         * modules/unictype/property-other-grapheme-extend:
31505         * modules/unictype/property-other-id-continue:
31506         * modules/unictype/property-other-id-start:
31507         * modules/unictype/property-other-lowercase:
31508         * modules/unictype/property-other-math:
31509         * modules/unictype/property-other-uppercase:
31510         * modules/unictype/property-paired-punctuation:
31511         * modules/unictype/property-paragraph-separator:
31512         * modules/unictype/property-pattern-syntax:
31513         * modules/unictype/property-pattern-white-space:
31514         * modules/unictype/property-private-use:
31515         * modules/unictype/property-punctuation:
31516         * modules/unictype/property-quotation-mark:
31517         * modules/unictype/property-radical:
31518         * modules/unictype/property-sentence-terminal:
31519         * modules/unictype/property-soft-dotted:
31520         * modules/unictype/property-space:
31521         * modules/unictype/property-terminal-punctuation:
31522         * modules/unictype/property-test, modules/unictype/property-titlecase:
31523         * modules/unictype/property-unassigned-code-value:
31524         * modules/unictype/property-unified-ideograph:
31525         * modules/unictype/property-uppercase:
31526         * modules/unictype/property-variation-selector:
31527         * modules/unictype/property-white-space:
31528         * modules/unictype/property-xid-continue:
31529         * modules/unictype/property-xid-start:
31530         * modules/unictype/property-zero-width, modules/unictype/scripts:
31531         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
31532         * modules/unictype/syntax-c-whitespace:
31533         * modules/unictype/syntax-java-ident:
31534         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
31535         * modules/unigbrk/u16-grapheme-breaks:
31536         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
31537         * modules/unigbrk/u32-grapheme-breaks:
31538         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
31539         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
31540         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
31541         * modules/unigbrk/uc-is-grapheme-break:
31542         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
31543         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
31544         * modules/unilbrk/u16-width-linebreaks:
31545         * modules/unilbrk/u32-possible-linebreaks:
31546         * modules/unilbrk/u32-width-linebreaks:
31547         * modules/unilbrk/u8-possible-linebreaks:
31548         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
31549         * modules/unilbrk/ulc-possible-linebreaks:
31550         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
31551         * modules/uniname/uniname, modules/uninorm/base:
31552         * modules/uninorm/canonical-decomposition:
31553         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
31554         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
31555         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
31556         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
31557         * modules/uninorm/nfkc, modules/uninorm/nfkd:
31558         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
31559         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
31560         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
31561         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
31562         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
31563         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
31564         * modules/unistdio/base, modules/unistdio/u-printf-args:
31565         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
31566         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
31567         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
31568         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
31569         * modules/unistdio/u16-u16-sprintf:
31570         * modules/unistdio/u16-u16-vasnprintf:
31571         * modules/unistdio/u16-u16-vasprintf:
31572         * modules/unistdio/u16-u16-vsnprintf:
31573         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
31574         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
31575         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
31576         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
31577         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
31578         * modules/unistdio/u32-u32-asnprintf:
31579         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
31580         * modules/unistdio/u32-u32-sprintf:
31581         * modules/unistdio/u32-u32-vasnprintf:
31582         * modules/unistdio/u32-u32-vasprintf:
31583         * modules/unistdio/u32-u32-vsnprintf:
31584         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
31585         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
31586         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
31587         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
31588         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
31589         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
31590         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
31591         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
31592         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
31593         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
31594         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
31595         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
31596         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
31597         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
31598         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
31599         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
31600         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
31601         * modules/unistr/u16-check, modules/unistr/u16-chr:
31602         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
31603         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
31604         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
31605         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
31606         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
31607         * modules/unistr/u16-move, modules/unistr/u16-next:
31608         * modules/unistr/u16-prev, modules/unistr/u16-set:
31609         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
31610         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
31611         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
31612         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
31613         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
31614         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
31615         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
31616         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
31617         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
31618         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
31619         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
31620         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
31621         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
31622         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
31623         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
31624         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
31625         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
31626         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
31627         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
31628         * modules/unistr/u32-next, modules/unistr/u32-prev:
31629         * modules/unistr/u32-set, modules/unistr/u32-startswith:
31630         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
31631         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
31632         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
31633         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
31634         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
31635         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
31636         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
31637         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
31638         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
31639         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
31640         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
31641         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
31642         * modules/unistr/u8-check, modules/unistr/u8-chr:
31643         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
31644         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
31645         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
31646         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
31647         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
31648         * modules/unistr/u8-next, modules/unistr/u8-prev:
31649         * modules/unistr/u8-set, modules/unistr/u8-startswith:
31650         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
31651         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
31652         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
31653         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
31654         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
31655         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
31656         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
31657         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
31658         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
31659         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
31660         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
31661         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
31662         * modules/uniwbrk/base, modules/uniwbrk/table:
31663         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
31664         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
31665         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
31666         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
31667         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
31668         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
31669         * modules/uniwidth/width, modules/utf16-ucs4:
31670         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
31671         * modules/utf8-ucs4-unsafe:
31672         Change maintainer from Bruno Haible to Daiki Ueno.
31673         This is my guess at the libunistring modules; please feel free
31674         to fix if I guessed incorrectly.
31675         * modules/accept4, modules/acl, modules/acos, modules/acosf:
31676         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
31677         * modules/areadlink, modules/array-list, modules/array-mergesort:
31678         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
31679         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
31680         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
31681         * modules/binary-io, modules/bison-i18n, modules/btowc:
31682         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
31683         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
31684         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
31685         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
31686         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
31687         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
31688         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
31689         * modules/closedir, modules/concat-filename, modules/copy-file:
31690         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
31691         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
31692         * modules/csharpcomp-script, modules/csharpexec:
31693         * modules/csharpexec-script, modules/ctype, modules/diffseq:
31694         * modules/dprintf, modules/dprintf-posix, modules/dup:
31695         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
31696         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
31697         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
31698         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
31699         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
31700         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
31701         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
31702         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
31703         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
31704         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
31705         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
31706         * modules/findprog, modules/findprog-lgpl, modules/floor:
31707         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
31708         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
31709         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
31710         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
31711         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
31712         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
31713         * modules/freadable, modules/freadahead, modules/freadptr:
31714         * modules/freadseek, modules/freopen, modules/frexp:
31715         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
31716         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
31717         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
31718         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
31719         * modules/ftello, modules/full-read, modules/full-write:
31720         * modules/fwritable, modules/fwriteerror, modules/gcd:
31721         * modules/get-rusage-as, modules/get-rusage-data:
31722         * modules/getdtablesize, modules/getrusage, modules/gettext:
31723         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
31724         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
31725         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
31726         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
31727         * modules/iconv, modules/iconv-h, modules/iconv_open:
31728         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
31729         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
31730         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
31731         * modules/integer_length_ll, modules/ioctl, modules/isatty:
31732         * modules/isblank, modules/isnand, modules/isnand-nolibm:
31733         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
31734         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
31735         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
31736         * modules/javaexec, modules/javaexec-script, modules/javaversion:
31737         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
31738         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
31739         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
31740         * modules/lib-symbol-visibility, modules/libsigsegv:
31741         * modules/linked-list, modules/linkedhash-list, modules/list:
31742         * modules/localcharset, modules/locale, modules/localeconv:
31743         * modules/localename, modules/lock, modules/log, modules/log-ieee:
31744         * modules/log10, modules/log10-ieee, modules/log10f:
31745         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
31746         * modules/log1p, modules/log1p-ieee, modules/log1pf:
31747         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
31748         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
31749         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
31750         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
31751         * modules/logf, modules/logf-ieee, modules/login_tty:
31752         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
31753         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
31754         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
31755         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
31756         * modules/mbscspn, modules/mbsinit, modules/mbslen:
31757         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
31758         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
31759         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
31760         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
31761         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
31762         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
31763         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
31764         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
31765         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
31766         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
31767         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
31768         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
31769         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
31770         * modules/posix_spawn, modules/posix_spawn-internal:
31771         * modules/posix_spawn_file_actions_addclose:
31772         * modules/posix_spawn_file_actions_adddup2:
31773         * modules/posix_spawn_file_actions_addopen:
31774         * modules/posix_spawn_file_actions_destroy:
31775         * modules/posix_spawn_file_actions_init:
31776         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
31777         * modules/posix_spawnattr_getpgroup:
31778         * modules/posix_spawnattr_getschedparam:
31779         * modules/posix_spawnattr_getschedpolicy:
31780         * modules/posix_spawnattr_getsigdefault:
31781         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
31782         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
31783         * modules/posix_spawnattr_setschedparam:
31784         * modules/posix_spawnattr_setschedpolicy:
31785         * modules/posix_spawnattr_setsigdefault:
31786         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
31787         * modules/pow, modules/powf, modules/printf-frexp:
31788         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
31789         * modules/progname, modules/propername, modules/pselect:
31790         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
31791         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
31792         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
31793         * modules/read, modules/readdir, modules/readlink:
31794         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
31795         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
31796         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
31797         * modules/relocatable-script, modules/remainder:
31798         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
31799         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
31800         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
31801         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
31802         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
31803         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
31804         * modules/setlocale, modules/sh-quote, modules/shutdown:
31805         * modules/signal, modules/signbit, modules/sigpipe:
31806         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
31807         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
31808         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
31809         * modules/snippet/link-warning, modules/snippet/unused-parameter:
31810         * modules/snprintf, modules/snprintf-posix, modules/spawn:
31811         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
31812         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
31813         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
31814         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
31815         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
31816         * modules/streq, modules/strerror_r-posix, modules/striconv:
31817         * modules/striconveh, modules/striconveha, modules/strncat:
31818         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
31819         * modules/sublist, modules/sys_resource, modules/sys_utsname:
31820         * modules/sys_wait, modules/system-posix, modules/system-quote:
31821         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
31822         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
31823         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
31824         * modules/truncf, modules/truncf-ieee, modules/truncl:
31825         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
31826         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
31827         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
31828         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
31829         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
31830         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
31831         * modules/wait-process, modules/waitpid, modules/wcpcpy:
31832         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
31833         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
31834         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
31835         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
31836         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
31837         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
31838         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
31839         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
31840         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
31841         * modules/write, modules/xconcat-filename, modules/xlist:
31842         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
31843         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
31844         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
31845         * modules/y0, modules/y1, modules/yn:
31846         Remove Bruno Haible as maintainer; if he's the sole maintainer,
31847         change the maintainer to 'all'.  Let's hope someone volunteers.
31849 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
31851         mktime: merge #if/#ifdef usage from glibc
31852         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
31853         as that works with both Glibc's and Gnulib's style.
31854         See thread starting at Siddhesh Poyarekar's bug report at:
31855         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
31857 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
31859         git-version-gen: improve option descriptions
31860         * build-aux/git-version-gen: Mention that --prefix and --fallback
31861         have a mandatory argument.
31863 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
31865         regex: fix memory leak in compiler
31866         Fix by Andreas Schwab in:
31867         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
31868         * lib/regcomp.c (parse_expression): Deallocate partially
31869         constructed tree before returning error.
31871         regex: merge patch from libc
31872         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
31873         Combine __USE_BSD and __USE_SVID into __USE_MISC.
31874         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
31876 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
31878         acl: port to gcc -Wredundant-decls
31879         From a request by Dmitry Antipov in:
31880         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
31881         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
31882         "#ifndef _GL_ACL_H".
31884 2014-06-11  Bruce Korb  <bkorb@gnu.org>
31885         Jim Meyering  <meyering@fb.com>
31887         parse-duration: eliminate 68-year duration limit
31888         * lib/parse-duration.c: Include "intprops.h".
31889         (TIME_MAX): Rename to MAX_DURATION and define to
31890         TYPE_MAXIMUM(time_t).
31891         * modules/parse-duration (Depends-on): Add intprops.
31892         Reported by Jonas 'Sortie' Termansen.
31894 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31896         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
31897         * modules/pthread (Depends-on): Add 'extensions', as it defines
31898         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
31899         (configure.ac-early): New section.
31900         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
31901         it is no longer needed.
31903 2014-06-14  Pádraig Brady  <P@draigBrady.com>
31905         pthread: define thread-safe macros on some platforms
31906         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
31907         for thread-safe operation on some platforms.
31909 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
31911         regex: don't be multithreaded if USE_UNLOCKED_IO.
31912         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
31913         * lib/regex_internal.h: Do not use multithreaded version if
31914         USE_UNLOCKED_IO is defined.  This is a hack, but it works
31915         around a porting bug with coreutils 8.22 on AIX 7.1.
31917 2014-06-11  Daiki Ueno  <ueno@gnu.org>
31919         gettext: update macros to version 0.19
31920         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
31921         depend on gl_EXTERN_INLINE and drop support for older Bison
31922         versions.
31924 2014-06-10  Pádraig Brady  <P@draigBrady.com>
31926         select,poll: fix console handle check on windows 8
31927         lib/poll.c (IsConsoleHandle): Change from testing the lower
31928         2 bits of the handle to the more expensive but accurate syscall.
31929         lib/select.c: Likewise.
31931 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
31933         select: fix waiting on anonymous pipes on MS-Windows
31934         * lib/select.c (rpl_select): Fall back to polling when select()
31935         indicates there is nothing to check, while due to the timeout not
31936         expiring, activity is indicated on one of the handles.
31937         Also clear the TIMEOUT argument if the timer does expire.
31939 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
31941         times: fix to return non constant value on MS-Windows
31942         * lib/times.c (times): Don't use the process creation time,
31943         rather clock() which on windows returns the number of
31944         clock ticks since the process started.
31946 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
31948         isatty: fix to work on windows 8
31949         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
31950         2 bits of the handle to the more expensive but accurate syscall.
31952 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
31954         maint: fix typo in fdl.texi
31955         * doc/fdl.texi: Fix typo (missing '@').
31956         Somehow this was in fdl.texi but not fdl-1.3.texi.
31958 2014-06-06  Ben Walton  <bdwalton@gmail.com>
31960         mountlist: avoid hasmntopt const type warning on solaris
31961         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
31962         with char * instead of const char *.  Passing the constant string
31963         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
31964         to avoid the warning.
31966 2014-06-04  Eric Blake  <eblake@redhat.com>
31968         maintainer-makefile: delete obsolete code
31969         * top/maint.mk (build_aux): Drop old code, as threatened.
31971         maintainer-makefile: avoid spurious error messages
31972         * top/maint.mk (syntax-check): Guard definition and use of
31973         $(shell) by whether Makefile is present.
31975 2014-06-03  Ben Walton  <bdwalton@gmail.com>
31977         rename: avoid unused-but-set-variable compiler warning
31978         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
31979         it is possible that dst_exists may be set but not used.  Mark it with
31980         the unused attribute to avoid compiler warnings.
31982 2014-06-02  Ben Walton  <bdwalton@gmail.com>
31984         rename: mark a label as potentially unused
31985         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
31986         by marking the out label as potentially unused.
31987         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
31989 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31991         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
31992         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
31994 2014-06-02  Ben Walton  <bdwalton@gmail.com>
31996         acl: apply pure attribute to two functions
31997         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
31998         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32000 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32002         gnulib-common.m4: add _GL_UNUSED_LABEL
32003         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32004         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32006 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32008         dup2, fcntl, fcntl-h: port to AIX 7.1
32009         This fixes some porting problems discovered when testing the latest
32010         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32011         in grep but it could be important for other applications.
32012         * doc/posix-functions/dup2.texi:
32013         * doc/posix-functions/fcntl.texi:
32014         * doc/posix-headers/fcntl.texi:
32015         Document AIX bugs.
32016         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32017         Define to 0 if outside 'int' range.
32018         * m4/dup2.m4 (gl_FUNC_DUP2):
32019         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32020         Check for getdtablesize.  If it's available, test a value just
32021         outside its range instead of testing 1000000.  When cross-compiling,
32022         guess that AIX will fail this improved test.
32024 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32026         printf, config.rpath: Port to FreeBSD 10.
32027         Problem reported by Tijl Coosemans in:
32028         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32029         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32030         (hardcode_direct): Simplify FreeBSD configuration.
32031         (library_names_spec): Don't mishandle FreeBSD 10+.
32032         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32033         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32034         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32035         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32036         Don't mishandle FreeBSD 10+ when cross-compiling.
32038         ftoastr: work around compiler bug in IBM xlc 12.1
32039         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32040         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32041         around a compiler bug in IBM xlc 12.1.0.0: it complains
32042         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32043         _GL_FLT_PREC_BOUND.'
32045 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32047         valgrind-tests: fixed misleading help message
32048         * m4/valgrind-tests.m4: The help message generated by configure
32049         implied that valgrind was disabled by default, which it wasn't.
32050         Adjusted the help message using s/enable/disable/ to clarify.
32052 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32054         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32055         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32056         first double of a PowerPC "double double" pair.
32057         * tests/test-isinf.c (test_isinfl): Likewise.
32058         * tests/test-isnan.c (test_long_double): Likewise.
32059         * tests/test-isnanl.h (main): Likewise.
32060         * tests/test-signbit.c (test_signbitl): Likewise.
32062 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32064         exclude-tests: port to AIX 7.1
32065         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32066         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32067         the regex code uses locks.
32069 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32071         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32072         Without this fix, Emacs would sometimes call sigprocmask instead
32073         of pthread_sigmask, which is a no-no in multithreaded applications.
32074         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32075         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32076         Suppress check for pthread_sigmask working without -lpthread if
32077         the application always links with -lpthread.  Do not link with
32078         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32079         * m4/timer_time.m4 (gl_TIMER_TIME):
32080         Require gl_THREADLIB only if it is defined.  Do not append
32081         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32083 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32085         gnulib-tool: wget translations using --no-verbose rather than --quiet
32086         This allows the user to see error messages if any (--quiet hides them)
32087         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32089 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32091         gnulib-tool: adjust translation wget to avoid a https redirection
32092         Context: http://translationproject.org/latest/gnulib redirects to
32093            https://translationproject.org/latest/gnulib/
32094         Rationale: if the user falls back to wget, she doesn't have rsync and
32095         is probably in a minimal build environment, where packages such as
32096         'ca-certificates' are missing as well, resulting in a failed (and
32097         difficult to detect since ignored) translation initial fetch.
32098         Consequently let's avoid https if possible, and add the missing
32099         trailing slash.  This also avoids an unnecessary 302 redirection.
32100         * gnulib-tool: Add trailing slash to gnulib URL.
32102 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32104         getlogin_r-tests: check return value rather than errno
32105         * tests/test-getlogin_r.c (main): As per POSIX we should be
32106         verifying the return value from getlogin_r() rather than errno.
32108 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32110         getlogin_r-tests: fix various issues in recent change
32111         * tests/test-getlogin_r.c: Include required headers that were
32112         missed in recent commit eec20b4e.
32113         Also consistently check the errno rather than the return value from
32114         getlogin_r as POSIX only specifies that non zero is returned on error.
32115         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32117 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32119         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32120         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32121         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32122         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32123         * lib/spawn-pipe.c:
32124         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32125         and then 'int open64(const char *, int, ...);', which means the
32126         declaration for 'open' gets lost if we later '#undef open'.
32127         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32128         where the compilation reported the non-fatal error "In function
32129         'openat_proc_name' ... warning: implicit declaration of function
32130         'open'".  In this case the error is relatively harmless, but in
32131         other cases it might not be so minor.
32133 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32135         xalloc: don't potentially generate invalid code for xmemdup calls
32136         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32137         this function can initialize the newly-allocated storage with new
32138         pointers, which means this function is not malloc-like.  See:
32139         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32141 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32143         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32144         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32145         changes from commit 97249cf29 to not depend on environment variables.
32147 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32149         getlogin-tests: avoid false failure under cron
32150         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32151         since that's not what's under test.  Centos 6 was seen to return
32152         EINVAL for ttyname() when run from cron.
32154 2014-05-16  Jim Meyering  <meyering@fb.com>
32156         mbrtowc.m4: fix a comment typo
32157         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32158         emitted documentation string.
32160 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32162         mbrlen, mbrtowc: fix bug with empty input
32163         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32164         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32165         so this is mainly for documentation.
32166         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32167         (gl_FUNC_MBRTOWC): Use it.
32168         * tests/test-mbrtowc.c (main): Test for the bug.
32170 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32172         doc: document mbrtowc and mbrlen problem with empty input
32173         * doc/posix-functions/mbrlen.texi (mbrlen):
32174         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32175         Document portability problem when the input string is empty.  See:
32176         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32178         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32179         Problem reported by Eli Zaretskii in:
32180         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32181         * doc/posix-functions/execl.texi (execl):
32182         * doc/posix-functions/execle.texi (execle):
32183         * doc/posix-functions/execlp.texi (execlp):
32184         * doc/posix-functions/execv.texi (execv):
32185         * doc/posix-functions/execve.texi (execve):
32186         * doc/posix-functions/execvp.texi (execvp):
32187         Mention spawn+exit problem on non-Cygwin Windows platforms.
32189 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32191         getlogin-tests: avoid false failure under sudo/ssh etc.
32192         * modules/getlogin-tests (configure.ac): Check for ttyname().
32193         * tests/test-getlogin.c (main): Don't depend on environment variables
32194         to correlate with getlogin(), since sudo and ssh etc. can tamper
32195         with the LOGNAME and USER env vars.  Instead lookup the name from
32196         the uid associated with the stdin tty.
32198 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32200         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32201         These were found when building the latest grep snapshot on IRIX 6.5.
32202         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32203         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32204         never used later.
32205         * lib/quotearg.c (quoting_options_from_style):
32206         * lib/xstrtol.c (__xstrtol):
32207         Use enum instead of 0, to pacify IRIX 6.5 cc.
32209 2014-04-18  Pádraig Brady  <P@draigBrady.com>
32211         gitlog-to-changelog: revert inclusion of git-log-fix file
32212         * build-aux/git-log-fix: Delete dummy file.
32213         * modules/gitlog-to-changelog: Don't reference (overwrite)
32214         the project specific git-log-fix file.
32216 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
32218         maint.mk: Relax the copyright check to cater for non FSF projects
32219         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
32220         to not require the "Free" suffix after the copyright years.
32222 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
32224         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
32225         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
32226         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
32227         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
32228         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
32230 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
32232         exclude: port to strict C99
32233         Strict C does not allow converting a function pointer to void *
32234         and vice versa.  Pass a pointer to a function pointer instead.
32235         * lib/exclude.c (add_exclude_file):
32236         Pass the address of the function pointer.
32237         (call_addfn): And deference the address here, to match.
32239 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32241         regex: do not depend on malloc-gnu
32242         * modules/regex (Depends-on): Remove malloc-gnu.
32243         It's no longer needed, because of the 2012-12-29 patch
32244         "regex: port to hosts where malloc (0) == NULL".
32245         Reported by Nathan Kennedy in:
32246         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
32248 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32250         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32251         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32252         * doc/posix-functions/expl.texi: Mention the workaround.
32254 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32256         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32257         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32258         size to be zero even when the pointer is nonnull.  This
32259         accommodates the use case where P is malloc (0) and *PN is 0 on a
32260         host where malloc (0) yields nonnull.
32262 2014-04-09  Eric Blake  <eblake@redhat.com>
32264         fts: avoid unnecessary strlen calls
32265         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32267 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32269         fts: avoid unnecessary strlen calls
32270         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32271         when that can be faster than strlen.
32273 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32275         fts: avoid unnecessary strlen calls
32276         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32277         (fts_build): Store the length of the dp->d_name entry in a local variable
32278         instead of calling strlen() several times via the above, removed macro.
32279         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32280         run by ~4%, yet this reduces the execution time by about a third if run
32281         via "ltrace -c rm -rf some-dir".
32283 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32285         obstack: Remove ancient NeXTSTEP gcc support conditional
32286         This change will ease merging with glibc.  The "#if ... __NEXT__"
32287         causes a warning with -Wundef which glibc now enables by default.
32288         Problem reported by Will Newton in
32289         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32290         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32291         so go with that.
32292         * lib/obstack.h (__extension__):
32294 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32296         obstack: merge with glibc changes
32297         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32298         This is mostly indenting and commentary changes.
32299         Instances of 'register' have been removed.
32301 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32303         strftime: wrap macros in "do {...} while(0)"
32304         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32305         this macro in "do {...} while(0)" to prevent false use as a
32306         single statement, e.g., in an un-braced "{}" else-block.
32307         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32308         (strftime_case_): Remove 'else' after 'goto' - which was the
32309         only non-fatal, un-braced use of one of the above macros.
32310         Spotted by coverity (NESTING_INDENT_MISMATCH).
32312 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32314         modechange: avoid memory leaks for invalid octal modes
32315         * lib/modechange.c (mode_compile): During the parsing of
32316         notations like +40, free the 'mc' buffer for invalid mode
32317         strings like +17777 (greater than the maximum octal mode),
32318         =18 (bad octal mode characters) or u=1 ('affected' with
32319         octal modes).
32320         Reproducer, e.g.:
32321             $ valgrind --leak-check=full chmod +17777 file
32322         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32323         add notations +40, 00440, etc.".
32324         Spotted by coverity (RESOURCE_LEAK).
32326 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32328         gitlog-to-changelog: include a dummy git-log-fix file
32329         Problem reported by Nathan Stratton Treadway in:
32330         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32331         * build-aux/git-log-fix: New file.
32333 2014-03-13  Jim Meyering  <meyering@fb.com>
32335         gitlog-to-changelog: also include the file, git-log-fix
32336         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32337         Reported by Assaf Gordon.
32339 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32341         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32342         This fixes a bug when ignoring case and when comparing the
32343         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32344         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32345         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32346         titlecase letter is neither lowercase nor uppercase, but
32347         uppercasing the titlecase letter (via towupper) yields the
32348         uppercase letter, so the two letters should match when ignoring case.
32349         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32350         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32351         Don't test whether a character is lowercase before uppercasing it.
32353 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32355         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32356         This is basically one of the options Bruno Haible proposed in:
32357         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32358         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32359         * lib/stdint.in.h: Use it.
32360         * modules/stdint (Depends-on): Add sys_types.
32362 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32364         parse-datetime: fix crash or infloop in TZ="" parsing
32365         * lib/parse-datetime.y (parse_datetime): Break out of the
32366         TZ="" parsing loop once the second significant " is found.
32367         Also skip over any subsequent whitespace to be consistent
32368         with the non TZ= case.
32369         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32371 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32373         savedir: new symbol for fast-read version
32374         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32375         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32376         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32377         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32379 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32381         unistd: port readlink to Mac OS X 10.3.9
32382         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
32383         around self-include problem in Mac OS X 10.3.9 when combined with
32384         readlink module.  Problem reported by Klaus Zietler in
32385         <http://bugs.gnu.org/16825>.
32387 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
32389         diffseq: remove TOO_EXPENSIVE heuristic
32390         Problem with diffutils reported by Vincent Lefevre in
32391         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
32392         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
32393         Although appropriate for circa-1993 hardware, these days the heuristic
32394         seems to be more trouble than it's worth.
32395         * lib/diffseq.h: Modernize citations.
32396         (struct context): Remove member too_expensive.
32397         All uses changed.
32398         (struct partition): Remove members lo_minimal, hi_minimal.
32399         All uses changed.
32400         (diag, compareseq): Remove arg find_minimal.  All uses changed.
32401         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
32402         1993 to make 'diff' run faster (but not as well) on large inputs.
32403         These days, computers are fast enough that it's typically better
32404         to run slower but more accurately.
32405         * lib/fstrcmp.c: Remove duplicate comment.
32406         * lib/fstrcmp.c (strcmp_bounded):
32407         * lib/git-merge-changelog.c (compute_differences):
32408         Adjust to diffseq.h changes.
32409         * NEWS: Document the change.
32411         savedir: simplify by using stpcpy
32412         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
32413         (streamsavedir): Use stpcpy instead.
32414         * modules/savedir (Depends-on): Add stpcpy.
32416 2014-02-21  Pádraig Brady  <P@draigBrady.com>
32418         spawn: fix link error on uclibc
32419         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
32420         to incorporate -lrt if needed (on uclibc for example).
32421         * modules/posix_spawn: Reference the substituted LIB.
32423 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
32424         timer: fix uClibc detection of threading
32425         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
32426         enabled in uClibc.
32428 2014-02-21  Eric Blake  <eblake@redhat.com>
32430         maintainer-makefiles: provide AC_PROG_SED for older autoconf
32431         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
32433 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32435         exclude: add support for posix regexps
32437         This commit adds support for POSIX extended regular expressions
32438         and fixes a long-standing memory leak (pattern buffer was never
32439         freed).  It also implements a new interface function to read
32440         exclude patterns from a FILE, which passes an additional parameter
32441         to its callback function, thereby allowing to preserve its state
32442         between invocations.
32444         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
32445         (pattern_buffer): New struct.
32446         (exclude): New member patbuf.
32447         (exclude_add_pattern_buffer): New function.
32448         (free_exclude_segment): Free regexps.
32449         (free_exclude): Free allocated pattern buffers.
32450         (exclude_patopts): New function.
32451         (file_pattern_matches): Use exclude_patopts.
32452         (add_exclude): support regexps.
32453         (add_exclude_fp): New function.
32454         (add_exclude_file): Rewrite using add_exclude_fp.
32455         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32456         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32457         (add_exclude_fp)
32458         (add_exclude_file): Rewrite using add_exclude_fp.
32459         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32460         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32461         (add_exclude_fp)
32462         (exclude_add_pattern_buffer): New prototypes.
32463         * modules/exclude: Depends on regex and filename.
32465 2014-02-20  Eric Blake  <eblake@redhat.com>
32467         maintainer-makefiles: use $(SED) for syntax check
32468         * modules/maintainer-makefile (configure.ac): Check for sane sed.
32469         * top/maint.mk: Change sed to $(SED).
32471 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
32472             Paul Eggert  <eggert@cs.ucla.edu>
32474         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
32475         Patch based on an idea by Dick Streefland in
32476         <https://savannah.gnu.org/patch/?7892>.
32477         * NEWS: Document this.
32478         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
32479         (direntry_t, comparison_function): New types.
32480         (direntry_cmp_name): New function.
32481         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
32482         (streamsavedir, savedir): New arg OPTION.
32483         (streamsavedir): Simplify memory allocation.
32484         (fdsavedir): Remove.
32485         * lib/savedir.h (enum savedir_option): New type.
32486         (streamsavedir, savedir): New arg OPTION.
32487         (fdsavedir): Remove.
32489 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32491         file-type: add support for doors and other less-common file types
32492         Problem with S_ISDOOR reported by Rich Burridge.
32493         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
32494         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
32495         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
32497 2014-01-23  Eric Blake  <eblake@redhat.com>
32499         pthread: work around winpthread header pollution on mingw
32500         * lib/time.in.h: Move pthread workarounds...
32501         * lib/pthread.in.h: ...here.
32502         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
32503         detect macro pollution on mingw.
32504         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
32506 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32508         qacl: check for fchmod
32509         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
32510         and qset-acl.c both use HAVE_FCHMOD.
32512 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32514         fdopen-tests: port to Tru64
32515         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
32516         descriptor that is not open, as POSIX doesn't specify the
32517         resulting behavior and the test does not work on Tru64.
32518         Problem reported by Steven M. Schweda in:
32519         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
32521         stdalign: port to HP-UX compilers
32522         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
32523         if __HP_cc or __HP_aCC are nonzero.
32525 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32527         strtoimax: port to platforms lacking 'long long'
32528         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
32529         check whether strtoll is declared, which causes the C file to
32530         wrongly report an error.  Problem reported by Steven M. Schweda in:
32531         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
32532         * lib/strtoimax.c (strtoull):
32533         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
32534         (strtoll): Declare only if HAVE_LONG_LONG_INT.
32536 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
32538         relocatable-perl: fix texi syntax
32539         * doc/relocatable-maint.texi: Escape braces.
32541 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
32543         relocatable-perl: like relocatable-script, but for Perl scripts
32544         * build-aux/relocatable.pl.in: Add.
32545         * doc/relocatable-maint.texi: Add documentation.
32546         * modules/relocatable-perl: Add.
32548 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
32550         tests: fix export bug in previous patch
32551         Problem reported by Jim Meyering.
32552         * tests/init.sh (re_shell): New var, which is exported instead of
32553         re_shell_.
32555         tests: simplify porting to Solaris 10 /bin/sh
32556         Some test cases in 'grep' need a shell that groks '$(';
32557         export re_shell_ for their benefit.  Problem reported for 'grep'
32558         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
32559         * tests/init.sh (re_shell_): Export if it's used.
32561 2014-01-06  Eric Blake  <eblake@redhat.com>
32563         md5, sha1, sha256, sha512: support older autoconf
32564         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
32565         for autoconf < 2.63b.
32567         include_next: port to autoconf 2.63
32568         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
32570 2014-01-04  Jim Meyering  <meyering@fb.com>
32572         maint: add a gnulib-local rule to keep non-ascii out of .texi files
32573         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
32574         so that "make sc_maint" will ding anyone who puts non-ascii
32575         in any of gnulib's .texi files.
32577 2014-01-03  Jim Meyering  <meyering@fb.com>
32579         freadable, fwritable, fwriting: declare with the "pure" attribute
32580         * lib/freadable.h (freadable): Declare with the "pure" attribute.
32581         * lib/fwritable.h (fwritable): Likewise.
32582         * lib/fwriting.h (fwriting): Likewise.
32583         Suggested by Bruno Haible.
32585         maint.mk: adapt openat.h-include-without-use test
32586         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
32587         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
32588         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
32589         With this change, running "make sc_maint" in gnulib's top-level
32590         directory now passes for me.
32592 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32594         doc: use ASCII in .texi files where UTF-8 isn't needed
32595         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
32596         * doc/posix-functions/setkey.texi, doc/regex.texi:
32597         Use ASCII input, not UTF-8.
32599 2014-01-02  Jim Meyering  <meyering@fb.com>
32601         freading: declare with the "pure" attribute
32602         * lib/freading.h (freading): Declare with the "pure" attribute.
32604         manywarnings: remove -Wmudflap
32605         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
32606         it is no longer supported in gcc-4.9-to-be.
32608 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32610         relocatable-script: remove unused code
32611         Problem reported by Reuben Thomas in:
32612         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
32613         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
32615 2014-01-01  Jim Meyering  <meyering@fb.com>
32617         maint: fix public-submodule-commit to work with newer git
32618         * top/maint.mk (public-submodule-commit): Remove excess quoting.
32619         We were over-quoting the test arguments, and somewhere prior to
32620         version 1.8.5.2.229, git stopped removing those excess quotes,
32621         which made the test fail, since the unexpanded strings would
32622         always differ; using GIT_TRACE=1 confirmed that the git merge-base
32623         command wasn't even being run.
32625 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32627         doc: update main copyright year
32628         * doc/gnulib.texi: Update copyright date.
32630 2014-01-01  Eric Blake  <eblake@redhat.com>
32632         version-etc: new year
32633         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
32634         * all files: run 'make update-copyright'
32636 2013-12-24  Eric Blake  <eblake@redhat.com>
32638         passfd: give nicer error for recvfd at eof
32639         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
32640         * tests/test-passfd.c (main): Enhance test to cover this.
32642 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32644         gettimeofday: port recent C++ fix to Emacs
32645         Without this further patch, Emacs won't build due to
32646         the portcheck failing.  Also, this simplifies the patch a bit.
32647         * lib/time.in.h (localtime, gmtime): Don't replace unless
32648         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
32649         * lib/time.in.h (localtime, gmtime):
32650         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
32651         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32652         * modules/time (time.h):
32653         Don't worry about the possibility of localtime and gmtime
32654         being absent; they're present in all C libraries we know about.
32655         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32656         Don't assume sys_time is present and has been initialized.
32657         Instead, use a hack that should work even if it hasn't been.
32658         Don't use a portcheck for gmtime or localtime; this supports
32659         the hack.
32660         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
32662 2013-12-17  John W. Eaton  <jwe@gnu.org>
32664         gettimeofday: fix C++ crosscompilation
32666         Never replace gmtime and localtime by macros when compiling with
32667         C++, this prevents <ctime> from being included.
32669         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
32670         define gmtime and localtime as preprocessor macros.  Instead
32671         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
32672         REPLACE_LOCALTIME substitutions.
32673         * lib/time.in.h: Declare gmtime and localtime when needed.
32674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
32675         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
32676         * modules/time: Depend on gettimeofday, and substitute the above
32677         variables in time.h.
32679 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32681         qacl: port to Windows better
32682         See Eli Zaretskii in
32683         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
32684         * lib/file-has-acl.c (acl_access_nontrivial):
32685         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
32686         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
32688 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
32690         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
32691         * lib/gl_openssl.h: Cast void pointers to a specific type.
32693 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32695         open-tests: fix build failure with -Werror=old-style-declaration
32696         * tests/test-open.h: Reorder the inline to avoid the issue.
32698 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32700         md5, sha1, sha256, sha512: fix link error with partial libcrypto
32701         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
32702         init time, so that if early checks find crypto routines,
32703         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
32704         avoiding link failures.
32706 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32708         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
32709         This provides a new way to specify the default for
32710         gl_CRYPTO_CHECK, one that is reflected in the --help message.
32711         Emacs uses this, as well as the old way.
32712         This attempts to implement a suggestion by Pádraig Brady in
32713         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
32714         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
32715         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
32717         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
32718         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
32719         Add support for a new option, --with-openssl=auto, which causes
32720         the library to be used if available and silently ignored if not.
32721         Add support to allow configure.ac to specify its own
32722         default, by setting with_openssl_default before invoking gl_INIT.
32724 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32726         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
32727         Problem reported by Daiki Ueno in:
32728         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
32729         * tests/test-open.h (__always_inline):
32730         New macro, if not already defined.
32731         (test_open): Use it.
32733 2013-12-04  Eric Blake  <eblake@redhat.com>
32735         include_next: minimize code duplication
32736         * modules/include_next (Depends-on): Add absolute-header.
32737         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
32738         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
32740 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32742         getcwd: fix compile error in configure check
32743         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
32745 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32747         regex: suppress core dumps from detection code
32748         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
32749         to suppress core dumps that may well occur on glibc systems.
32750         These core dumps might not be cleaned up automatically, or could
32751         trigger some system core dump handling logic.
32753 2013-12-03  Pádraig Brady  <P@draigBrady.com>
32755         md5, sha1, sha256, sha512: support mandating use of openssl
32756         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
32757         description, to list the now 3 separate options.  also don't
32758         mention the default=no, since this is implicit given the option
32759         is described as --with-openssl rather than --without-openssl.
32760         If projects change the default they're free to document that.
32761         with --with-openssl[=yes] we now error out when the specified
32762         hash algorithm is not available in libcrypto.
32764 2013-12-03  Ivailo  <xakepa10@gmail.com>
32766         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
32767         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
32768         -Wformat-nonliteral checks, as these edge cases are part of the test.
32770 2013-12-03  Eric Blake  <eblake@redhat.com>
32772         regex: avoid glibc deadlock during configure
32773         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
32774         glibc bug 15078 in turn triggers bug 16159.
32775         Reported by Michal Privoznik.
32777 2013-12-02  Pádraig Brady  <P@draigBrady.com>
32779         md5, sha1, sha256, sha512: use openssl routines if available.
32780         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
32781         routines will be used if available, requiring apps to link @LIB_CRYPTO@
32782         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
32783         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
32784         in the standard system location.
32785         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
32786         * m4/sha256.m4: Likewise with SHA256.
32787         * m4/sha512.m4: Likewise with SHA512.
32788         * m4/md5.m4: Likewise with MD5.
32789         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
32790         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
32791         * lib/sha256.h: Likewise with SHA256.
32792         * lib/sha512.h: Likewise with SHA512.
32793         * lib/md5.h: Likewise with MD5.
32794         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
32795         * lib/sha256.c: Likewise with SHA256.
32796         * lib/sha512.c: Likewise with SHA512.
32797         * lib/md5.c: Likewise with MD5.
32798         * modules/crypto/sha1 (Link:): Add the new optional lib.
32799         (Depends-on:): Add dependency on extern-inline.
32800         * modules/crypto/sha256: Likewise.
32801         * modules/crypto/sha512: Likewise.
32802         * modules/crypto/md5: Likewise.
32803         * modules/crypto/sha1-tests: Reference the lib here too.
32804         * modules/crypto/md5-tests: Likewise.
32805         * modules/crypto/gc-des-tests: Likewise.
32806         * modules/crypto/gc-hmac-md5-tests: Likewise.
32807         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32808         * modules/crypto/gc-hmac-sha256-tests: Likewise.
32809         * modules/crypto/gc-hmac-sha512-tests: Likewise.
32810         * modules/crypto/gc-md5-tests: Likewise.
32811         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32812         * modules/crypto/gc-sha1-tests: Likewise.
32813         * modules/crypto/gc-tests: Likewise.
32814         * modules/crypto/hmac-md5-tests: Likewise.
32815         * modules/crypto/hmac-sha1-tests: Likewise.
32816         * modules/crypto/hmac-sha256-tests: Likewise.
32817         * modules/crypto/hmac-sha512-tests: Likewise.
32819 2013-11-29  RV1971  <rv1971@web.de>
32821         base64: (trivial) fix compilation regression on some compilers
32822         * lib/base64.c: Don't return the void function,
32823         instead split to a separate return statement.
32825 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32827         ignore-value: revert previous code change
32828         * lib/ignore-value.h (ignore_value): Use __extension__ and
32829         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
32830         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
32831         Change the comment to try to explain this better.
32833 2013-11-27  Pádraig Brady  <P@draigBrady.com>
32835         selinux-h: improve stub types and add more stub functions
32837         * lib/se-selinux.in.h: Change security_context_t to a typedef
32838         rather than a define, as it's a pointer type and so is better
32839         as a typedef to avoid issues declaring multiple variables
32840         with the comma operator.  Also add stub for string_to_security_class().
32841         * lib/se-context.in.h: Add stub functions for
32842         context_{type,range,role,user}_get().
32844 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32846         ignore-value: prefer GCC version back through 2.0
32847         The code didn't match the comments, so I did a bit of software
32848         archaeology.  GCC 2.0 seems to support __extension__ and
32849         __typeof__, so fix both code and comments to use 2.0.
32850         * lib/ignore-value.h (ignore_value): Use __extension__ and
32851         __typeof__ for GCC 2.0 through 3.3, too.
32853 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
32855         pty: Activate the signature wrapper of forkpty.
32856         The intended preprocessor macro HAVE_FORKPTY is
32857         never defined, yet `lib/forkpty.c' depends on it.
32859         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
32860         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
32861         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
32863 2013-11-18  Jim Meyering  <meyering@fb.com>
32864         and Paul Eggert  <eggert@cs.ucla.edu>
32866         quotearg: don't attempt to store 1 << 31 into an "int"
32867         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
32868         gcc's new -fsanitize=undefined and running its tests triggered some
32869         new test failures due to undefined behavior, all with this diagnostic:
32870           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
32871             cannot be represented in type int
32872         Rather than shifting "1" left to form a mask, shift the bits right and
32873         simply use "1" as the mask.
32875 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
32877         error: depend on stdio
32878         Problem reported by Nikos Mavrogiannopoulos in
32879         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
32880         * modules/error (Depends-on): Add stdio.
32882 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
32884         * doc/relocatable-maint.texi (Supporting Relocation): Improve
32885         wording.
32886         Reported by Reuben Thomas <rrt@sc3d.org>.
32888 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
32890         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
32891         New function and macro, to work around _DARWIN_C_SOURCE problem.
32892         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
32894 2013-11-11  Pádraig Brady  <P@draigBrady.com>
32896         base64: provide a fast path for encoding well sized buffers
32897         Avoid conditionals in the base64 encoding loop,
32898         which was seen to give 60% better throughput.
32899         * lib/base64.c (base64_encode_fast): A new function to be called
32900         when we don't want to NUL terminate, and we have enough space
32901         in the output to encode the given input.
32902         (base64_encode): Call the _fast() version when appropriate.
32903         Also remove a redundant mask with 0x3F on the first encoded byte.
32905 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32907         extern-inline: port better to OS X 10.9
32908         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
32909         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
32910         OS X 10.9, except for g++ where the bug is still present.
32911         See <http://trac.macports.org/ticket/41033>.
32913 2013-11-08  Eric Blake  <eblake@redhat.com>
32915         fpending: fix regression on DragonFly BSD
32916         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
32917         * lib/fpending.h (__fpending): Don't declare twice.
32918         Reported by GW in
32919         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
32921 2013-11-05  Jim Meyering  <meyering@fb.com>
32923         hash: relax license to LGPLv2+, for libguestfs
32924         * modules/hash (License): Change from GPL to LGPLv2+.
32926 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32928         intprops: port to Oracle Studio c99
32929         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
32930         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
32932 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32934         obstack: pacify HP C
32935         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
32936         warning "conversion from pointer to smaller integer" from HP
32937         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
32938         C89 or later nowadays, so cast to void instead of int.  Privately
32939         reported by H.Merijn Brand.  Also, change header to match glibc's,
32940         to make checking against glibc easier.
32942 2013-10-29  Jim Meyering  <meyering@fb.com>
32944         maint.mk: prefer gpgv2 over gpgv
32945         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
32946         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
32947         Reported by Gary Vaughan.
32949 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32951         isnan: port to VAX
32952         Reported by John Klos for NetBSD-5/VAX in
32953         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
32954         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
32955         (FUNC): Use it.
32957 2013-10-28  Jim Meyering  <meyering@fb.com>
32959         gnulib-tool: protect against CDPATH
32960         * gnulib-tool: Many "cd" built-in functions print a directory name
32961         to stdout when CDPATH is set, e.g.,
32962           $ bash -c 'CDPATH=/; cd tmp'
32963           /tmp
32964         Unset it, when possible.  Prompted by a comment from Bruce Korb.
32966         maint.mk: restore functionality removed by recent change...
32967         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
32968         the context of a shallow-cloned gnulib repository: "git describe"
32969         would fail in such a directory.  However, that change made it so
32970         the reported gnulib revision no longer includes the version number
32971         or a commit count, even when run from a full clone.
32972         * top/maint.mk (gnulib-version): Use the full "git describe"
32973         output when possible, e.g., the form above, rather than the
32974         abbreviated, no-tag, no-commit-count string, and fall back to
32975         using a 10-byte hash, rather than the default minimal-length
32976         hash prefix, since while the minimal-length one may be fine today,
32977         it is likely not to be unique for very long.
32979 2013-10-26  Jim Meyering  <meyering@fb.com>
32981         maint.mk: fix "release" target to build _version
32982         This fixes a bug in README-release whereby following the outlined
32983         steps, one would publish a tarball whose programs would report
32984         --version output not consistent with the package version number.
32985         This bug caused grep-2.15 to produce a grep program whose
32986         --version option made it print 2.14.56-1e3d rather than 2.15.
32987         * top/maint.mk (release): Making this target build "_version"
32988         ensures that the new version number is reflected in configure.
32990 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
32992         install-reloc: Support multi-binary installation.
32993         * build-aux/install-reloc: Support installing multiple programs in
32994         one invocation, as done by Automake starting with commit
32995         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
32996         Haible <bruno@clisp.org>, archived at
32997         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
32998         Reported by Sylvain <beuc@gnu.org>.
33000 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33002         selinux-h: Really build without selinux when library is missing.
33003         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33004         continue without selinux, as already told in the warning message.
33006 2013-10-21  Jim Meyering  <meyering@fb.com>
33008         regex: also remove dependency on HAVE_WCSCOLL
33009         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33011 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33013         xfreopen: Fix typo. s/frepoen/freopen/
33014         * lib/xfreopen.c: Fix description.
33015         * modules/xfreopen: Likewise.
33017 2013-10-21  Jim Meyering  <meyering@fb.com>
33019         regex: don't depend on wcscoll
33020         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33021         It is no longer used.
33023 2013-10-20  Jim Meyering  <meyering@fb.com>
33025         error: add the printf attribute to a static function
33026         * lib/error.c (error_tail): Add the printf attribute, to placate
33027         gcc's -Werror=suggest-attribute=format option.
33029 2013-09-30  Jim Meyering  <meyering@fb.com>
33031         fpending, obstack, strerror-override: use pure+const function attrs
33032         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33033         * lib/obstack.c (_obstack_allocated_p): Likewise.
33034         * lib/obstack.h (_obstack_memory_used): Likewise.
33035         (_obstack_memory_used): Likewise.
33036         * lib/strerror-override.h (strerror_override): Declare with
33037         the "const" attribute.
33039 2013-10-18  Eric Blake  <eblake@redhat.com>
33041         extern-inline: make safe for -Wundef usage
33042         Reported by Vladimir 'phcoder' Serbinenko in
33043         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33044         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33046 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33048         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33049         Problem reported by Daniel Richard G. in
33050         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33051         * doc/posix-functions/mkfifo.texi (mkfifo):
33052         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33053         * doc/posix-functions/mknod.texi (mknod):
33054         * doc/posix-functions/mknodat.texi (mknodat):
33055         Document the HP-UX 11.11 bug.
33056         * tests/test-mkfifo.h (test_mkfifo):
33057         Allow the HP-UX 11.11 bug.
33059 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33061         acl: allow cross-compilation to Gentoo
33062         Problem reported by Gabriel Marcano in
33063         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33064         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33065         test only whether it links.
33067 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33069         mgetgroups: remove dependency on realloc-gnu
33070         The dependency violates the comment in realloc-gnu, which
33071         says that tests can't depend on realloc-gnu; some tests depend
33072         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33073         Problem reported by Daniel Richard G. in
33074         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33075         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33076         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33077         not realloc-gnu.
33079 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33081         regex-tests: port to HP-UX 11.11
33082         Problem reported by Daniel Richard G. in
33083         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33084         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33086 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33088         verify: document some 'assume' pitfalls
33089         * doc/verify.texi (Compile-time Assertions):
33090         Mention that 'assume (E)' can sometimes slow things down.
33091         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33093 2013-10-10  Eric Blake  <eblake@redhat.com>
33095         strtoumax: fix typo in previous commit.
33096         * modules/strtoumax (Depends-on): Fix typo.
33097         * modules/strtoimax (Depends-on): Likewise.
33099 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33101         strtoumax: port to Solaris 8
33102         This problem was introduced in the recent HP-UX patch.
33103         Reported by Tom G. Christensen in
33104         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33105         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33106         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33108 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33110         strtoimax, strtoumax: port to HP-UX 11.11
33111         Problem reported by Daniel Richard G. in
33112         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33113         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33114         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33115         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33116         REPLACE_STRTOUMAX.
33117         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33118         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33119         Replace the function if defined as a macro but not as a function.
33120         * modules/inttypes-incomplete (inttypes.h): Substitute
33121         REPLACE_STRTOUMAX.
33122         * modules/strtoumax (configure.ac): Replace strtoumax if
33123         REPLACE_STRTOUMAX.
33125 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33127         strtoimax: port to HP-UX 11.11
33128         Problem reported by Daniel Richard G.
33129         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33130         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33131         they might clash with inttypes.h.
33133 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33135         New module 'count-trailing-zeros'.
33136         * MODULES.html.sh: Mention it.
33137         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33138         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33139         * modules/count-trailing-zeros-tests:
33140         * tests/test-count-trailing-zeros.c:
33141         New files.
33143         count-leading-zeros: port to MSC; support types wider than 64 bits
33144         The ideas behind the MSC port are stolen from Emacs.
33145         * lib/count-leading-zeros.h:
33146         Don't include verify.h: it's no longer needed, as types wider than
33147         64 bits are now supported.
33148         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33149         performance with MSC.  All uses changed.  Do not assume that TYPE
33150         has at most 64 bits.
33151         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33152         All uses changed.  Fold the subtraction from 31 into the table.
33154         count-one-bits: port to MSC; support types wider than 64 bits
33155         The ideas behind the MSC port are stolen from Emacs.
33156         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33157         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33158         Don't include verify.h: it's no longer needed, as types wider than
33159         64 bits are now supported.
33160         (COUNT_ONE_BITS_GENERIC): New macro.
33161         (popcount_supported) [_MSC_VER]: New inline function.
33162         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33163         performance with MSC.  All uses changed.  Do not assume that TYPE
33164         has at most 64 bits.
33165         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33167 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33169         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33170         * lib/mountlist.c (read_file_system_list): fix leak of directory
33171         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33173 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33175         tests: improve diagnostic when an assertion fails
33176         * tests/macros.h (ASSERT): Report the assertion that failed.
33178 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33180         verify: new macro 'assume'
33181         This is taken from Emacs, and should be generally useful.
33182         * doc/verify.texi (assume): Document it.
33183         * lib/verify.h (assume): New macro.
33184         (__has_builtin): Expand to 0 if not defined.
33186 2013-09-26  Eric Blake  <eblake@redhat.com>
33188         dup2, dup3: work around another cygwin crasher
33189         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33190         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33191         * tests/test-dup2.c (main): Likewise.
33192         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33193         * lib/dup3.c (dup3): Likewise.
33194         * doc/posix-functions/dup2.texi (dup2): Document it.
33195         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33197         getdtablesize: work around cygwin issue
33198         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33199         * modules/getdtablesize (configure.ac): Build replacement.
33200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33201         * modules/unistd (Makefile.am): Expose the witness.
33202         * lib/unistd.in.h (getdtablesize): Declare replacement.
33203         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33204         * tests/test-getdtablesize.c (main): Test it.
33205         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33207 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
33209         pmccabe2html: escaping of special characters
33210         Escape all '<', '>', and '&' in HTML output.
33211         * build-aux/pmccabe2html (html_fnc): Call gsub()
33212         instead of sub() to capture all '<', '>', and '&'.
33213         Neither of '<' and '>' is special in a regexp,
33214         so first arguments to gsub() are corrected. Also,
33215         in replacement strings, ampersand must be escaped.
33216         Finally, '&' must be handled first, then '<' and '>'.
33218 2013-09-24  Eric Blake  <eblake@redhat.com>
33220         manywarnings: enable nicer gcc warning messages
33221         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
33222         some -f options for optimal warnings.
33224 2013-09-21  Jim Meyering  <meyering@fb.com>
33226         timespec: use the new TIMESPEC_RESOLUTION in a few more places
33227         * lib/timespec-add.c (timespec_add): Also replace 999999999
33228         with TIMESPEC_RESOLUTION - 1.
33229         * lib/timespec-sub.c (timespec_sub): Likewise.
33231 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33233         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
33234         Problem reported by Dagobert Michelsen via Eric Blake in
33235         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
33236         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
33237         not AC_COMPILE_IFELSE.
33239 2013-09-23  Eric Blake  <eblake@redhat.com>
33241         configmake: support new --runstatedir option
33242         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
33243         even if autoconf was too old to provide the command line option.
33244         * modules/configmake (Makefile.am): Propagate it to .h file.
33246 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33248         ctype, string: depend on extern-inline
33249         This is needed to complete the recent OS X fixes.
33250         Also, fix related documentation as suggested by Eric Blake.
33251         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33252         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33253         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33254         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33255         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33256         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33257         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33258         * doc/posix-functions/toupper.texi:
33259         List the 'ctype' gnulib module.
33260         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33261         * doc/posix-functions/strncpy.texi:
33262         List the 'string' gnulib module.
33263         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33264         Add string.
33265         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33267 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33269         userspec: support optional parameters to parse_user_spec()
33270         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33271         then avoid group processing and treat the full spec as a user.
33272         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33273         be optional params (NULL), in which case they're ignored.
33275 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33277         timespec: new function make_timespec, and new constants
33278         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33279         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33280         (make_timespec): New function.
33281         * lib/dtotimespec.c (dtotimespec):
33282         * lib/timespec-add.c (timespec_add):
33283         * lib/timespec-sub.c (timespec_sub):
33284         * lib/utimens.c (validate_timespec):
33285         * lib/utimensat.c (rpl_utimensat):
33286         Use these new constants and functions.
33288         stdio: OS X port of putc_unlocked + extern inline
33289         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33290         * doc/posix-functions/putc_unlocked.texi:
33291         * doc/posix-functions/putchar_unlocked.texi:
33292         Document this portability problem.
33294         signal: OS X port of sigaddset etc. + extern inline
33295         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33296         (sigismember): #undef on problematic Apple platforms.
33297         * doc/posix-functions/sigaddset.texi:
33298         * doc/posix-functions/sigdelset.texi:
33299         * doc/posix-functions/sigemptyset.texi:
33300         * doc/posix-functions/sigfillset.texi:
33301         * doc/posix-functions/sigismember.texi:
33302         Document this portability problem.
33304         extern-inline: do not always suppress extern inline on OS X
33305         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33306         extern inline on Apple only if the particular compile-time
33307         configuration is known to have the problem.
33308         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33309         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33310         other Gnulib modules.
33312         extern-inline: document fixes for ctype and wctype macros
33313         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33314         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33315         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33316         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33317         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33318         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33319         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33320         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33321         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33322         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33323         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33324         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33325         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33326         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33327         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33328         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33329         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33330         * doc/posix-functions/strncpy.texi:
33331         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33332         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33333         Document that Gnulib fixes portability problems with these
33334         functions on OS X 10.8 and earlier when called from plain inline
33335         or extern inline functions.
33337 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33339         fflush, freadahead, fseeko: Fix for Android
33340         Suggested by Bruno Haible in:
33341         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33342         * lib/stdio-impl.h: Use local __sfileext definition.
33344 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33346         pmccabe2html: Portability to other awk versions.
33347         The functions systime() and strftime() are available
33348         in Gawk only.  Properly close two HTML-tags 'style'
33349         and 'span'.
33350         * build-aux/pmccabe2html (BEGIN): Store timing
33351         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33352         systime() in HTML_COMMENT.
33353         (html_header): Correctly close tag 'style'.
33354         (END): Replace strftime() by CHRONOS_TIME.  Close
33355         tag 'span' correctly, not as 'div'.
33357 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33359         getgroups: statement without effect
33360         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33361         Change equality conditional to expected assignment.
33363 2013-09-09  Eric Blake  <eblake@redhat.com>
33365         glob: fix compilation
33366         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33368 2013-09-07  Eric Blake  <eblake@redhat.com>
33370         glob: fix build for platforms without __THROW
33371         * lib/glob.in.h (__THROW): Add definition again.
33373 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33375         regex-quote: fix buffer access out of bounds
33376         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33377         * lib/regex-quote.c (regex_quote_spec_pcre):
33378         Fix typo that resulted in an out-of-bounds read.
33380 2013-09-04  Eric Blake  <eblake@redhat.com>
33382         glob: avoid -Wattribute warnings on glibc
33383         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
33384         __THROWNL, not __THROW, on static functions.
33385         * lib/glob.in.h (__THROW): Adjust...
33386         (__THROWNL): ...accordingly.
33388 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33390         headers: check that _GL_INLINE_HEADER_BEGIN is defined
33391         Suggested by Bruce Korb in:
33392         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
33393         * doc/extern-inline.texi (extern inline):
33394         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
33395         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
33396         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
33397         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
33398         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
33399         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33400         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
33401         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
33402         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
33403         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
33404         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
33405         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
33406         * lib/xtime.h:
33407         Check that _GL_INLINE_HEADER_BEGIN is defined.
33409 2013-08-29  Pádraig Brady  <P@draigBrady.com>
33411         bootstrap: remove the --version requirement from ancillary tools
33412         * build-aux/bootstrap (check_exists): A new refactored function to
33413         determine if a command exists.
33414         (find_tool): Use the new function which does not require the
33415         --version option to be supported.
33416         (check_versions): Use the new function.
33418 2013-08-26  Simon Josefsson  <simon@josefsson.org>
33420         gc: support HMAC-SHA256 and HMAC-SHA512.
33421         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
33422         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
33423         functions.
33424         (gc_hmac_md5): Use symbolic constant.
33425         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
33426         (gc_hmac_sha256, gc_hmac_sha512): New functions.
33427         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
33428         * m4/sha256.m4: Protect against empty expansion.
33429         * m4/sha512.m4: Likewise.
33430         * lib/hmac-sha256.c: New file.
33431         * lib/hmac-sha512.c: Likewise.
33432         * m4/gc-hmac-sha256.m4: Likewise.
33433         * m4/gc-hmac-sha512.m4: Likewise.
33434         * m4/gc-sha256.m4: Likewise.
33435         * m4/gc-sha512.m4: Likewise.
33436         * modules/crypto/gc-hmac-sha256: Likewise.
33437         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33438         * modules/crypto/gc-hmac-sha512: Likewise.
33439         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33440         * modules/crypto/hmac-sha256: Likewise.
33441         * modules/crypto/hmac-sha256-tests: Likewise.
33442         * modules/crypto/hmac-sha512: Likewise.
33443         * modules/crypto/hmac-sha512-tests: Likewise.
33444         * tests/test-gc-hmac-sha256.c: Likewise.
33445         * tests/test-gc-hmac-sha512.c: Likewise
33446         * tests/test-hmac-sha256.c: Likewise.
33447         * tests/test-hmac-sha512.c: Likewise
33449 2013-08-24  Daiki Ueno  <ueno@gnu.org>
33451         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
33452         of AC_CHECK_DECLS.
33454 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33456         selinux-at: omit unnecessary include
33457         * lib/selinux-at.c: Don't include dosname.h; not needed, since
33458         this source file doesn't use its macros, and subsidiary files that
33459         use the macros already include it.
33461 2013-08-21  Eric Blake  <eblake@redhat.com>
33463         d-ino: avoid false negative on symlink
33464         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
33465         Reported by Stephane Chazelas.
33467 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
33469         bootstrap: port to OpenBSD sed
33470         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
33471         does not interpret `-' as a file argument to mean stdin.
33473 2013-08-15  Eric Blake  <eblake@redhat.com>
33475         warnings: minor optimization
33476         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
33478         warnings: check -Wfoo rather than -Wno-foo
33479         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
33480         -Wno-, test if the compiler recognizes the positive form instead.
33482 2013-08-15  Karl Berry  <karl@gnu.org>
33484         * config/srclist-update: add option "doclicense" to placate
33485         pulling *.texi files from Emacs.  Write terse usage
33486         documentation at the top.
33488 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
33490         xvasprintf-tests: port to GCC with hardening flags
33491         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
33492         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
33493         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
33495 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33497         fpending: port to recent Cygwin change to stdio_ext.h
33498         Reported by LRN in
33499         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
33500         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
33501         just declare __fpending unless it's a macro.
33502         A duplicate decl shouldn't hurt.
33503         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
33504         call compiles and links, instead of separately checking for
33505         decl and lib function.
33506         * modules/fpending (configure-ac):
33507         Adjust to fpending.m4's renaming of shell variable.
33509 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33511         sys_time: port to OpenBSD
33512         * lib/sys_time.in.h: Simply delegate to the system's header
33513         in the BSDish cases as well.  Problem reported by Mike Miller in
33514         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
33515         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
33516         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
33517         wider than time_t.
33519 2013-08-09  Pádraig Brady  <P@draigBrady.com>
33521         bootstrap: support checksum utils having -c but not --status
33522         * build-aux/bootstrap: Only look for sha1sum if updating po files.
33523         Add sha1 to the list of supported checksum utils since it's now
33524         supported through adjustments below.
33525         (update_po_files): Remove the use of --status
33526         in a way that will suppress all error messages, but since this is
33527         only used to minimize updates, it shouldn't cause an issue.
33528         Exit early if there is a problem updating the po file checksums.
33529         (find_tool): Remove the check for --version support as this
33530         is optional as per commit 86186b17.  Don't even check for the
33531         presence of the command as if that is needed, it's supported
33532         through configuring prerequisites in bootstrap.conf.
33533         Prompt that when a tool isn't found, one can define an environment
33534         variable to add to the hardcoded search list.
33536 2013-08-05  Jim Meyering  <meyering@fb.com>
33538         regex: port to non-glibc/lock-using systems
33539         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
33540         system with GNULIB_LOCK would fail due to absence of the
33541         included "glthread/lock.h".  This would affect any package
33542         for which the "lock" module is used only by the regex module,
33543         and not explicitly used.
33544         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
33545         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
33546         Add a dependency on the "lock" module.
33548 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33550         localecharset: make locale_charset thread-safe on Mac OS X
33551         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
33552         instead of MB_CUR_MAX.
33554 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33556         gettext: update to version 0.18.3
33557         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
33558         require AC_PROG_SED to allow user to specify custom sed command when
33559         generating en@quot PO file.
33561 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
33563         bootstrap: use correct source when copying build-aux files
33564         * build-aux/bootstrap (gnulib_extra_files): This variable is
33565         relative to upstream gnulib layout, not downstream.
33567 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
33569         tmpdir: fix bug in VMS port
33570         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
33571         See Steven M. Schweda in
33572         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
33574 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33576         tmpdir: port to VMS, to // != /, and to long dirs
33577         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
33578         __secure_getenv, so that we're more like the glibc version.
33579         All uses changed.
33580         (path_search): Don't put slash after directory if __VMS.
33581         Problem reported by Steven M. Schweda in
33582         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
33583         Simplify code to add slash; no need for a loop.
33584         Do not remove trailing slash from "//".
33585         Do not assume dlen <= INT_MAX.
33587 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33589         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
33590         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
33591         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
33592         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
33594         accept4, dup3, pipe2: port to Cygwin
33595         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
33596         * lib/accept4.c (accept4) [O_BINARY]:
33597         * lib/dup3.c (dup3) [O_BINARY]:
33598         * lib/pipe2.c (pipe2) [O_BINARY]:
33599         Use set_binary_mode, not setmode.
33600         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
33601         * modules/binary-io (Depends-on): Remove module indicator.
33602         These last two bits undo the previous change to pipe2 and binary-io.
33604 2013-07-09  Pádraig Brady  <P@draigBrady.com>
33606         mountlist: add support for deallocating returned list entries
33607         * lib/mountlist.c (free_mount_entry): A new exported function
33608         to deallocate a mount list entry.
33609         (read_file_system_list): Refactor to use the new deallocation function.
33610         Suggested by Anton Ovchinnikov.
33612 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
33614         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
33615         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
33616         * lib/stdalign.in.h (_Alignas, _Alignof):
33617         Port to FreeBSD 9.1, and to C11 and C++11.
33618         (_Alignas): Also support ICC.
33619         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
33620         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
33622 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33624         fnmatch: don't goto over declaration
33625         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
33626         undefined behavior for goto over a declaration.
33627         Problem reported by Charlie Brown in
33628         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
33630         pipe2: decouple from binary-io a bit
33631         This is for Emacs, which needs pipe2 but not binary-io.
33632         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
33633         * modules/binary-io (Depends-on): Add module indicator.
33635 2013-07-03  Eric Blake  <eblake@redhat.com>
33637         mgetgroups: relax license to LGPLv2+
33638         * modules/getugroups (License): Change from GPLv3+.
33639         * modules/mgetgroups (License): Likewise.
33640         * modules/getgroups (License): Change from LGPLv3+.
33642         xalloc-oversized: relax license to LGPLv2+
33643         * modules/xalloc-oversized (License): Change from GPLv3+.
33645         nproc: relax license to LGPLv2+
33646         * modules/nproc (License): Change from LGPLv3+.
33648         bootstrap: honor --no-git
33649         * build-aux/bootstrap: Don't even try to use git when user is
33650         pointing to a static checkout.
33652 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33654         ignore-value: port to gcc -pedantic
33655         * lib/ignore-value.h (ignore_value):
33656         Port to gcc -pedantic, by using __extension__.
33657         Reindent as per usual gnulib style nowadays.
33658         Simplify GCC version check.
33660 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33662         extern-inline: port to gcc -std=c89
33663         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33664         Do not use __gnu_inline__ if pedantic and pre-C99.
33666 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33668         doc: document extern-inline
33669         * doc/extern-inline.texi: New file.
33670         * doc/gnulib.texi (alloca-opt): Include it.
33671         * m4/extern-inline.m4: Move some comments to documentation,
33672         and others closer to what they describe.
33674         doc: chatter less
33675         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
33676         (updated-stamp): Use it.  This causes 'make' to output just
33677         one file name rather than zillions.
33679         fflush, fseeko: port to musl cross-compiles
33680         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
33681         on some implementation that (1) is not known to be buggy,
33682         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
33683         cross-compiled to so we can't easily check for lack of
33684         conformance.  This is for cross-compiling to musl.
33685         Reported by Rich Felker in
33686         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
33687         * m4/fclose.m4 (gl_FUNC_FCLOSE):
33688         * m4/fflush.m4 (gl_FUNC_FFLUSH):
33689         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
33690         Adjust to above change.
33691         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
33692         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
33693         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
33694         known not to work, or unknown.
33696 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33698         msvc-inval: port to mingw-w64
33699         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
33700         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
33701         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
33703 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
33705         getcwd-lgpl: port to Tru64
33706         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
33707         Problem reported by Steven M. Schweda in
33708         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
33710         tests: port large-fd POSIX spawn tests to OS X
33711         Problem reported by Daiki Ueno in
33712         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
33713         * tests/test-posix_spawn_file_actions_addclose.c:
33714         * tests/test-posix_spawn_file_actions_adddup2.c:
33715         * tests/test-posix_spawn_file_actions_addopen.c:
33716         Include <limits.h>, for OPEN_MAX, if available.
33717         (big_fd): New static function.
33718         (main): Use it.
33720 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
33722         tests/nap.h: use an adaptive delay to avoid ctime update issues
33723         The recent change in nap.h (5191133e) decreased the probability of lost
33724         races to about a third, however such problems could still be observed
33725         in virtual machines and openSUSE's OBS.
33726         Before, nap() detected the needed time once empirically and then used
33727         that delay (together with a small correction multiplier) in further
33728         calls.  This problem has been reported and discussed several times,
33729         including guesses about possible kernel issues:
33730         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
33731         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
33732         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
33733         http://bugs.gnu.org/12820
33734         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
33735         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
33736         Now, nap() avoids the race alltogether by verifying on a reference
33737         file whether a timestamp difference has happened.
33738         * tests/nap.h (nap_fd): Define file descriptor variable for the
33739         witness file.
33740         (nap_works): Change return value to bool.  Change passing
33741         the old file's status by value instead of by reference as this function
33742         does no longer update that timestamp; rename the function argument from
33743         st to old_st.  Remove the local variables cdiff and mdiff because that
33744         function now returns true/false instead of the precise delay.
33745         (guess_delay): Remove function.
33746         (clear_tmp_file): Add new function to close and unlink the witness file.
33747         (nap): Instead of re-using the delay which has been calculated during
33748         the first call, avoid the race by actually verifying that a timestamp
33749         difference can be observed on the current file system.  Use an adaptive
33750         approach for the delay to minimize execution time.  Assert that the
33751         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
33752         = 2^31 - 1 = 2.1s.
33753         Use atexit to call clear_tmp_file when the process terminates.
33755 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
33757         sig2str: port to C++
33758         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
33759         Reported by Daniel J Sebald in
33760         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
33762 2013-05-30  Eric Blake  <eblake@redhat.com>
33764         docs: mention cygwin shortcoming in <sys/un.h>
33765         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
33767         vasnprintf: silence mingw compiler warning
33768         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
33770 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33772         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
33773         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
33774         This fixes a porting bug I recently reintroduced in regex, and
33775         some other instances that I discovered while testing the fix.
33776         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
33777         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
33778         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
33779         with an empty argument if this is a pedantic pre-C99 GCC.
33780         * lib/verify.h: Do not use _Static_assert if this is a pedantic
33781         pre-C11 GCC.
33783         regex: adapt to locking regime instead of depending on pthread
33784         Instead of depending on pthread, adapt to whatever thread
33785         modules are in use.  Problem reported by Ludovic Courtès in
33786         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
33787         and by Mats Erik Andersson in
33788         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
33789         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33790         Support either the 'lock' module, or the 'pthread' module, or
33791         no module.
33792         (lock_lock, lock_unlock): New macros.
33793         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
33794         * modules/lock, modules/pthread (configure.ac): Add module indicator.
33795         * modules/regex (Depends-on): Remove pthread.
33797 2013-05-22  Eric Blake  <eblake@redhat.com>
33799         getgroups: document portability issues
33800         * doc/glibc-functions/initgroups.texi (initgroups): Mention
33801         multithread safety.
33802         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
33803         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
33804         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
33805         getugroups.
33806         * doc/posix-functions/getgroups.texi (getgroups): Mention
33807         multithread safety and mgetgroups.
33809 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
33811         test-lchown, test-chown: also skip test if chown fails with EPERM
33812         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
33813         skip this test, to handle FAT file systems.
33814         * tests/test-chown.h (test_chown): Likewise.
33816 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33818         regex: fix dfa race in multithreaded uses
33819         Problem reported by Ludovic Courtès in
33820         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
33821         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33822         New macros.  All uses of __libc_lock_define, __libc_lock_init
33823         changed to use the first two of these.
33824         (__libc_lock_lock, __libc_lock_unlock): New macros, for
33825         non-glibc platforms.
33826         (struct re_dfa_t): Define the lock unconditionally.
33827         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
33828         '#ifdef _LIBC"s.
33829         * modules/regex (Depends-on): Add pthread, if we use the
33830         included regex.
33832         * lib/regcomp.c: Do actions that are not needed for glibc,
33833         but may be needed elsewhere.
33834         (regfree, re_compile_internal): Destroy the lock.
33835         (re_compile_internal): Check for lock-initialization failure.
33837         malloca: port to compilers that reject size-zero arrays
33838         This fixes a bug introduced in my previous patch.
33839         * lib/malloca.c (struct preliminary_header): Use an int
33840         rather than a character array of size int; that's simpler.
33841         (struct header): Remove, replacing with ...
33842         (union header): New type.  This avoids the need for declaring a
33843         character array of size zero, which is not allowed on some platforms.
33844         All uses changed.
33846 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
33848         parse-datetime, tests: don't use "string" + int
33849         Recent versions of 'clang' complain about C source code that
33850         uses expressions of the form '"string literal" + integer',
33851         I guess on the theory that it's confusing for readers who are
33852         used to C++.  On those grounds I suppose it's OK to make this
33853         minor style change.
33854         * lib/parse-datetime.y (parse_datetime):
33855         * tests/test-fchdir.c (main):
33856         * tests/test-snprintf-posix.h (test_function):
33857         * tests/test-snprintf.c (main):
33858         * tests/test-vasnprintf-posix.c (test_function):
33859         * tests/test-vasnprintf.c (test_function):
33860         * tests/test-vsnprintf.c (main):
33861         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
33862         Rewrite '"str" + E' to '&"str"[E]'.
33864 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33866         argmatch: port to C++
33867         * lib/argmatch.h [__cplusplus]: Add extern "C".
33869         argp: typo fix
33870         * lib/argp-help.c: Typo in comment.
33872 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33874         manywarnings: update for GCC 4.8.0
33875         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
33876         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
33877         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
33878         -Wmissing-noreturn, as they are duplicates of other warnings.
33879         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
33880         was documented to be flaky in earlier versions of GCC.
33882         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
33883         * tests/test-spawn.c (main):
33884         * tests/test-sys_socket.c (main):
33885         * tests/test-sys_wait.c (main):
33886         Don't have a switch value that isn't covered by a case.
33888         getaddrinfo-tests: port --enable-gcc-warnings to clang
33889         * tests/test-getaddrinfo.c (simple):
33890         Avoid casts from looser to stricter-aligned pointers.
33892         thread: port --enable-gcc-warnings to clang
33893         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
33894         Include <signal.h>, to pacify a warning about pthread_sigmask.
33896         stdio: use __REDIRECT for fwrite, fwrite_unlocked
33897         * lib/stdio.in.h (fwrite):
33898         When working around bug 11959, use __REDIRECT rather than '#define
33899         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
33900         fix the -Wunused-value issue with clang, and it works with GCC too.
33901         Problem with targeting reported by Eric Blake in
33902         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
33903         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
33904         debugging the fwrite issue.
33906         stdio: port --enable-gcc-warnings to clang
33907         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
33908         since the GCC workaround for fwrite does not pacify clang.
33910         sig2str: port --enable-gcc-warnings to clang
33911         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
33913         obstack: port --enable-gcc-warnings to clang
33914         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
33915         Avoid casts from looser to stricter-aligned pointers.
33917         memchr2: port --enable-gcc-warnings to clang
33918         * lib/memchr2.c (memchr2):
33919         Avoid casts from looser to stricter-aligned pointers.
33921         mbsstr: port --enable-gcc-warnings to clang
33922         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
33923         Avoid casts from looser to stricter-aligned pointers.
33925         malloca: port --enable-gcc-warnings to clang
33926         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
33927         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
33929         inttostr: port --enable-gcc-warnings to clang
33930         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
33932         warnings: port to clang
33933         Problem reported by Daniel P. Berrange via Eric Blake in
33934         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
33935         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
33936         (gl_WARN_ADD): Use it.
33938 2013-05-11  Jim Meyering  <meyering@fb.com>
33940         quotearg: do not read beyond end of buffer
33941         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
33942         end of an ARG for which no length was specified.  With an N-byte
33943         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
33944         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
33945         via coreutils' misc/sort-debug-keys.sh test and detected by running
33946         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
33947         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
33948         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
33949         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
33950         characters correctly."
33952 2013-05-11  Daiki Ueno  <ueno@gnu.org>
33954         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
33955         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
33956         compilation target is Mac OS X 10.6.
33957         Problem reported by parafin and Andoni Morales in
33958         <http://savannah.gnu.org/bugs/?37844> and
33959         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
33961 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33963         mkdir-p: remove assumptions about umask and mode
33964         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
33965         umask is 0, or that MODE is a subset of MODE_BITS.
33967 2013-05-10  Eric Blake  <eblake@redhat.com>
33969         maint.mk: catch more abuse of HAVE_DECL in syntax-check
33970         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
33972 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
33974         deps: require Automake >= 1.9.6 in generated Makefile fragments
33976         That is the same minimal version required in the DEPENDENCIES file.
33977         Moreover, the old code generated a requirement of Automake >= 1.5,
33978         and that is an insanely outdated version.
33980         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
33981         * tests/havelib/rpathlx/Makefile.am: Likewise.
33982         * tests/havelib/rpathly/Makefile.am: Likewise.
33983         * tests/havelib/rpathlyx/Makefile.am: Likewise.
33984         * tests/havelib/rpathlz/Makefile.am: Likewise.
33985         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
33986         * tests/havelib/rpathx/Makefile.am: Likewise.
33987         * tests/havelib/rpathy/Makefile.am: Likewise.
33988         * tests/havelib/rpathz/Makefile.am: Likewise.
33990 2013-05-08  Eric Blake  <eblake@redhat.com>
33992         bootstrap: AC_INIT may have more than four parameters
33993         * build-aux/bootstrap (extract_package_name): Correctly extract
33994         non-empty tarname field.  Avoid range in regex.
33995         Based on a report by Sami Kerola <kerolasa@iki.fi>.
33997 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
33999         qacl: port to MS-Windows port of GNU Emacs
34000         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34001         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34002         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34003         <http://bugs.gnu.org/14295#14>.
34005 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34007         acl: include quote.h
34008         * lib/copy-acl.c: Include quote.h.
34009         * lib/set-acl.c: Likewise.
34011 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34013         fchownat, renameat, unlinkat: update statat dependencies
34014         These modules use statat and lstatat, not fstatat; so depend on
34015         the statat module, which was split out recently from fstatat.
34016         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34017         * modules/renameat: Likewise.  Also delete fstat.
34018         URL: http://bugs.gentoo.org/468790
34020 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34022         Assume gnulib is checked out from Git, not CVS
34024         In fact, access to the gnulib repository through CVS has been
34025         disabled, or more precisely, got broken and was never restored; see:
34026         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34028         Note that support for CVS is not removed completely and unthinkingly
34029         by this change: only support for CVS checkouts of gnulib itself is
34030         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34031         files and CVS directories, for the benefit of those poor gnulib clients
34032         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34034         * gnulib-tool: Simplify accordingly.
34035         * posix-modules: Likewise.
34036         * MODULES.html.sh: Likewise.
34037         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34038         repository.
34039         * doc/gnulib-intro.texi: Likewise.
34040         * doc/gnulib-readme.texi: Likewise.
34041         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34042         sample '.gitignore' file rather than a sample '.cvsignore'.
34043         * NEWS: Update.
34044         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34045         to "CVS Autoconf" rather than "git Autoconf".
34047 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34049         utimensat-tests, etc.: try to fix some races
34050         Problem reported by Bernhard Voelker in
34051         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34052         I don't know whether this patch fixes that race condition, but it
34053         fixes *some* race conditions, so it should be a win.
34054         * modules/chown-tests (Depends-on):
34055         * modules/fchownat-tests (Depends-on):
34056         * modules/fdutimensat-tests (Depends-on):
34057         * modules/futimens-tests (Depends-on):
34058         * modules/lchown-tests (Depends-on):
34059         * modules/stat-time-tests (Depends-on):
34060         * modules/utimens-tests (Depends-on):
34061         * modules/utimensat-tests (Depends-on):
34062         Depend on nanosleep, not usleep.
34063         * modules/chown-tests (test_chown_LDADD):
34064         * modules/lchown-tests (test_lchown_LDADD):
34065         * modules/stat-time-tests (test_stat_time_LDADD):
34066         New macro.
34067         * modules/fchownat-tests (test_fchownat_LDADD):
34068         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34069         * modules/futimens-tests (test_futimens_LDADD):
34070         * modules/utimens-tests (test_utimens_LDADD):
34071         * modules/utimensat-tests (test_utimensat_LDADD):
34072         Add $(LIB_NANOSLEEP).
34073         * modules/stat-time-tests (Files): Add tests/nap.h.
34074         * tests/nap.h: Include <limits.h>, for INT_MAX.
34075         (lt_mtime): Remove.
34076         (diff_timespec): New function.
34077         (get_stat): Rename from get_mtime.  All callers changed.
34078         (nap_works): Determine the needed delay by inspecting the
34079         file system's timestamp jumps; this should be more reliable.
34080         Look at both mtime and ctime, and take the maximum of the two jumps.
34081         (nap_works, guess_delay):
34082         Return a nanosecond count, not a microsecond count.
34083         All callers changed.
34084         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34085         failure.
34086         (nap): Multiply the guess by 1.125, to accommodate the case where
34087         the file system's clock is a bit slower than nanosleep's clock.
34088         * tests/test-stat-time.c (BASE): New macro.
34089         Include nap.h.
34090         (nap): Remove; nap.h now defines this.  This removes a duplicate
34091         implementation of 'nap'.
34093         utimens, utimensat: work around Solaris UTIME_OMIT bug
34094         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34095         Linux kernel 2.6.32 does.  Work around it in the same way.
34096         * doc/posix-functions/futimens.texi (futimens):
34097         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34098         * lib/utimens.c (fdutimens, lutimens):
34099         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34101         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34102         Formerly, it was your responsibility to do this for all Makefile.ams
34103         other than Gnulib's.  Now it's your responsibility to do it for
34104         Gnulib's Makefile.am, too.
34105         * NEWS: Document this.
34106         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34108         acl: include errno.h to get errno
34109         Reported by Daiki Ueno in
34110         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34111         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34113 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34115         tests: don't assume getdtablesize () <= 10000000
34116         * modules/cloexec-tests:
34117         * modules/dup2-tests:
34118         * modules/dup3-tests:
34119         * modules/nonblocking-tests:
34120         * modules/posix_spawn_file_actions_addclose-tests:
34121         * modules/posix_spawn_file_actions_adddup2-tests:
34122         * modules/posix_spawn_file_actions_addopen-tests:
34123         * modules/unistd-safer-tests:
34124         Depend on the getdtablesize module.
34125         * tests/test-cloexec.c:
34126         * tests/test-dup-safer.c:
34127         * tests/test-dup2.c:
34128         * tests/test-dup3.c:
34129         * tests/test-fcntl.c:
34130         * tests/test-nonblocking.c:
34131         * tests/test-posix_spawn_file_actions_addclose.c:
34132         * tests/test-posix_spawn_file_actions_adddup2.c:
34133         * tests/test-posix_spawn_file_actions_addopen.c:
34134         Don't assume getdtablesize () <= 10000000.
34136 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34138         extern-inline: work around bug in Sun c99
34139         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34140         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34142 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34144         qacl: new module, broken out from the acl module
34145         This is for GNU Emacs, which wants the acl functions but does
34146         not want 'error' invoked when they fail.
34147         * lib/acl-internal.h: Do not include error.h, quote.h.
34148         (ENOSYS, ENOTSUP): Remove; no longer needed.
34149         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34150         * lib/acl.h: Include <stdbool.h>.
34151         (acl_errno_valid): New function.
34152         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34153         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34154         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34155         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34156         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34157         * lib/file-has-acl.c (file_has_acl):
34158         * lib/qcopy-acl.c (qcopy_acl):
34159         * lib/qset-acl.c (qset_acl):
34160         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34161         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34162         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34163         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34164         Add lib/set-acl.c.
34165         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34166         Add qacl.
34167         (configure.ac): Move gl_FUNC_ACL to qacl module.
34168         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34169         Rename set-mode-acl.c to set-acl.c.
34170         * lib/acl-errno-valid.c: New file.
34171         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34172         copy_acl function remains in copy-acl.c.
34173         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34174         (_): Remove; not needed.
34175         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34176         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34177         * modules/qacl: New file, moved from the old modules/acl.
34178         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34179         Remove set-mode-acl.c, copy-acl.c.
34180         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34182         alignof, intprops, malloca: port better to IBM's C compiler
34183         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34184         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34185         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34187 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34189         wctype-h: fix gettext link error on mingw
34190         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34191         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34192         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34193         rpl_towupper and rpl_towupper.
34195 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34197         regex-tests, regex: allow glibc re_search behavior
34198         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34199         re_search input data to make the multi-character collating element
34200         in it clearly visible, and treat re_search return code 0 as valid.
34201         * m4/regex.m4 (gl_REGEX): Likewise.
34203 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34205         stdalign: doc fix
34206         * doc/posix-headers/stdalign.texi (stdalign.h):
34207         Gnulib doesn't support '_Alignof expr'.
34209 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34211         stdalign: port to stricter ISO C11
34212         ISO C11 says that _Alignof's operand must be a parenthesized type.
34213         Problem reported by Eli Zaretskii in
34214         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
34215         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34216         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
34218 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
34220         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
34221         Problem reported by Marco Atzeri in
34222         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
34223         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
34224         Simply delegate to the system <sys/select.h> in this case too.
34225         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
34226         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
34227         be needed on Solaris either.
34228         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
34229         Simply delegate to the system <sys/time.h> in this case.
34231 2013-03-19  Karl Berry  <karl@gnu.org>
34233         * build-aux/gnupload: check for erroneous (with gnupload) use of
34234         ftp-upload.gnu.org, tweak help.
34236 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34238         copy-file, rpmatch: fix problems found by cppcheck
34239         Reported by Arno Onken in
34240         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
34241         * lib/rpmatch.c (try): Fix memory leak.
34242         * lib/copy-file.c: Include "ignore-value.h".
34243         (qcopy_file_preserving): Ignore chown value.
34244         * modules/copy-file (Depends-on): Add ignore-value.
34246 2013-01-27  Jim Meyering  <jim@meyering.net>
34248         prefix-gnulib-mk: give better diagnostics
34249         * build-aux/prefix-gnulib-mk: Don't just "die".
34250         Give better diagnostics upon failure.
34252 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34254         putenv: port to Solaris 10
34255         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34256         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34257         is not what is wanted here.
34258         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34259         declaration, not for its existence.
34261 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34263         mktime: fix configure typo
34264         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34266 2013-03-12  Eric Blake  <eblake@redhat.com>
34268         regex-tests: skip UTF-8 test on mingw
34269         * modules/regex-tests (Depends-on): Add localcharset.
34270         * tests/test-regex.c (main): Use it to skip test on mingw.
34272 2013-03-11  Eric Blake  <eblake@redhat.com>
34274         tests: make it easier to bypass alarm time in debugger
34275         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34276         * tests/test-memmem.c (main): Likewise.
34277         * tests/test-passfd.c (main): Likewise.
34278         * tests/test-ptsname.c (main): Likewise.
34279         * tests/test-ptsname_r.c (main): Likewise.
34280         * tests/test-strcasestr.c (main): Likewise.
34281         * tests/test-strstr.c (main): Likewise.
34283         regex: port to mingw's recent addition of undeclared alarm
34284         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34285         exists but still doesn't work in newer mingw.
34286         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34287         not existence.  Ensure SIGALRM is not trapped.
34288         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34289         * m4/regex.m4 (gl_REGEX): Likewise.
34290         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34291         * tests/test-regex.c (main): Use correct probe for alarm.
34293         putenv: avoid compilation warning on mingw
34294         * lib/putenv.c (_unsetenv): Protect variable declaration.
34295         (putenv): Fix indentation.
34297 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34299         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34300         * lib/unistd.in.h: be careful not to include un-needed system
34301         stdlib.h from here, because that prevents gnulib stdlib.h from
34302         defining rpl_strtod correctly.
34304 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34306         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34307         changesets, but for the 'precision 0' test.
34308         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34309         round-to-even, since POSIX says rounding is implementation-defined
34310         and OS X 10.8.2 rounds 1.51 to 1 here.
34312         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34313         changeset.
34314         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34315         round-to-even, since POSIX says rounding is implementation-defined
34316         and OS X 10.8.2 rounds 1.5 to 1 here.
34318 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34320         vasnprintf-posix-tests: allow rounding 1.5 to 1
34321         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34322         round-to-even, since POSIX says rounding is implementation-defined
34323         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34324         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34326         bootstrap: port to FreeBSD
34327         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34328         that treat '--' differently.  Reported by Mats Erik Andersson in
34329         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34331 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34333         regex: rename remaining __attribute calls to __attribute__.
34334         2012-02-25 changed definition of __attribute, but left some uses
34335         unchanged, preventing compilation of regex module on most non-gcc
34336         environments.
34337         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34338         (lookup_collation_sequence_value, build_range_exp)
34339         (build_collating_symbol): Set attributes with newly renamed
34340         __attribute__ decorator.
34341         * lib/regex_internal.c (re_string_peek_byte_case)
34342         (re_node_set_compare, re_node_set_contains): Likewise.
34343         * lib/regexec.c (acquire_init_state_context): Likewise.
34345 2013-03-06  Bruno Haible  <bruno@clisp.org>
34347         execute: Revert last change, but use a different condition.
34348         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34349         on Windows.
34351 2013-03-05  Eric Blake  <eblake@redhat.com>
34353         execute: drop dead code
34354         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34356 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34358         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34359         * m4/non-recursive-gnulib-prefix-hack.m4
34360         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34361         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34362         <http://bugs.gnu.org/10305#237>.
34364 2013-03-04  Eric Blake  <eblake@redhat.com>
34366         test-getsockopt: avoid compiler warning
34367         * tests/test-getsockopt.c (includes): Ensure close is declared.
34369 2013-03-02  Bruno Haible  <bruno@clisp.org>
34371         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34372         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34374 2013-03-02  Bruno Haible  <bruno@clisp.org>
34376         gettext: Update to version 0.18.2.
34377         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34378         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34379                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
34381 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34383         regex: merge patches from libc
34385         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34386         * lib/regex_internal.h (__attribute__): Rename from __attribute.
34387         All uses changed.
34388         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
34389         (re_string_wchar_at, re_string_elem_size_at):
34390         Mark function as possibly unused.
34392         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
34393         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
34394         elements compare against the byte sequence of it, not its name.
34396 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34398         putenv: port better to native Windows
34399         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34400         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
34401         (_unsetenv): Use _putenv if available.
34402         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
34403         a bit less likely to cause damage.
34404         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34405         Fix the wrong value with SetEnvironmentVariable.
34406         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34407         code better.
34409 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34411         regex: ignore old-style-definition warnings
34412         * lib/regex.c: Add pragma to ignore these warnings.
34413         Problem reported for GNU tar by Pavel Raiskup.
34415 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34417         getcwd: support coreutils better
34418         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
34419         but this might not be correct in coreutils, which disables
34420         the raw decl checks.  Problem reported by Nagendra in
34421         <http://bugs.gnu.org/10305#192>.
34422         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
34423         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34424         Test the getcwd function, not any macro, since getcwd.c wants the
34425         function.
34426         * m4/getcwd.m4 (gl_FUNC_GETCWD):
34427         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
34428         compile, as might happen if there's a macro but no function.
34430         strtod: support coreutils better
34431         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
34432         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
34433         disables the raw decl checks.  This assumes there is an underlying
34434         strtod, but that's a safe assumption these days.
34435         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
34437         mountlist: port to HP NonStop
34438         Reported by Joachim Schmitz in
34439         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
34440         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
34441         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
34443 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34445         extern-inline: avoid compilation error with HP-UX cc
34446         Reported by Richard Lloyd in
34447         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
34448         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34449         Suppress extern inline with HP-UX cc.  This should be safe,
34450         though it may hurt performance.  Perhaps someone with some HP-UX
34451         experience can come up with a higher-performance fix.
34453 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34455         putenv: fix heap corruption with mixed putenv/_putenv
34456         Problem reported by Michael Goffioul in
34457         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
34458         * lib/putenv.c (putenv) [HAVE__PUTENV]:
34459         Rely on _putenv to allocate the new environment.
34460         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34461         * modules/putenv (configure.ac): Use it.
34463 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
34465         unsetenv etc.: port to Solaris 11 + GNU Emacs
34466         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
34467         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
34468         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
34469         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
34470         idea but is too painful to fix right now), and without this gnulib
34471         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
34472         compiling unsetenv.c on Solaris 11.  Fix the problem for
34473         unsetenv.c, and fix other similar occurrences.
34475 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34477         secure_getenv: fix C++ declaration typo
34478         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
34479         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
34480         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
34482 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34484         careadlinkat: stop exporting careadlinkatcwd
34485         Only Emacs used it directly, and Emacs no longer needs it.
34486         * NEWS: Document this simplification.
34487         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
34488         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
34489         for readlink.
34490         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
34491         Don't include stdlib.h; no longer needed.
34492         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
34493         * lib/relocwrapper.c: Adjust comment to match new dependencies.
34494         * modules/areadlink (Depends-on): Add readlink.
34495         (Maintainer): Add self.
34496         * modules/careadlinkat (Depends-on): Remove readlink.
34498         extensions: port better to HP-UX
34499         This is merged from git Autoconf.
34500         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34501         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
34502         so that it's compatible with the value used when compiling.
34504         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
34505         Problem reported by Mats Erik Andersson in
34506         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
34507         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34508         openpty function exists, not merely when we intend to replace it.
34509         This corrects the 2013-01-31 patch, which mistakenly defined
34510         HAVE_OPENPTY even on hosts that lacked it.
34512 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34514         secure_getenv: fix include typo
34515         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
34517         secure_getenv: port better to FreeBSD and Solaris
34518         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
34519         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
34520         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
34521         This works better on BSDish platforms.
34522         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
34523         Test for issetugid if __secure_getenv is missing.
34525 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34527         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
34528         Some of these changes are merged in from git Autoconf.
34529         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34530         When deciding whether to define _XOPEN_SOURCE, inspect the
34531         preprocessor macro __hpux instead of the more-heavyweight
34532         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
34533         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
34534         as the key for __EXTENSIONS__.
34536         unistd: avoid namespace pollution on non-glibc systems
34537         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
34538         This avoids namespace pollution on non-glibc systems, by causing
34539         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
34540         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
34541         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
34543 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34545         tmpdir: use secure_getenv
34546         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
34547         Define to secure_getenv, not getenv.
34548         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
34549         as that's now secure_getenv's job.
34550         * modules/tmpdir (Depends-on): Add secure_getenv.
34552         tempname: use secure_getenv
34553         * lib/tempname.c (__secure_getenv) [!_LIBC]:
34554         Define to secure_getenv, not getenv.
34555         * modules/tempname (Depends-on):
34556         Add secure_getenv.
34558         secure_getenv: new module
34559         * MODULES.html.sh (Extra functions based on ANSI C 89):
34560         Add secure_getenv.
34561         * doc/glibc-functions/secure_getenv.texi: New file.
34562         * doc/gnulib.texi: Include it.
34563         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
34564         New files.
34565         * lib/stdlib.in.h (secure_getenv): New decl.
34566         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
34567         * modules/stdlib (stdlib.h):
34568         Add secure_getenv checks.
34570 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
34572         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
34573         Reported for OS X 10.8.2 by Assaf Gordon in
34574         <http://bugs.gnu.org/13516>.
34575         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
34576         !HAVE_OPENAT && !HAVE_FDOPENDIR.
34577         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
34578         so that they can be kept in sync more easily.  Avoid PATH_MAX
34579         test on the Hurd.  Sync from test-getcwd.c for errno tests after
34580         mkdir or chdir failure.
34581         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
34582         lib/getcwd.c.
34583         (test_abort_bug): Do not test for the deep directory bug unless we
34584         have openat support.  Avoid PATH_MAX test on the Hurd.
34586         regex-tests, regex: fix bug: memset undeclared
34587         * tests/test-regex.c: Don't include regex.h twice.  Include
34588         string.h, to declare memset.  Christensen's report also mentioned
34589         this issue.
34590         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
34591         test-regex.c, to avoid future problems like this.  Remove
34592         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
34593         twice.
34595         regex-tests: fix link errors on older Solaris
34596         These need to link with @LIBINTL@ to get libintl_gettext.
34597         Problem reported by Tom G. Christensen in
34598         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
34599         * modules/regex-tests (test_regex_LDADD): New macro.
34601 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
34603         regex-tests: new module
34604         * modules/regex-tests, tests/test-regex.c: New files.
34606         regex: fix off-by-one error in configure test
34607         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
34609 2013-01-31  Eric Blake  <eblake@redhat.com>
34611         regex: avoid infinite configure test
34612         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
34614 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
34616         openpty: fix bug where HAVE_OPENPTY wasn't defined
34617         See the thread starting at:
34618         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
34619         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34620         openpty function exists, not merely when we intend to replace it.
34622 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
34624         sys_time: port to Solaris 2.6
34625         There is a circularity problem on Solaris 2.6, where <time.h> includes
34626         <sys/time.h> for struct timespec.  The include nesting is gnulib
34627         <time.h>, system <time.h>, gnulib <sys/time.h>, system
34628         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
34629         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
34630         <sys/siginfo.h>; the last, innermost file needs struct
34631         timestruc_t, which is defined in <sys/time.h>, which has not been
34632         fully parsed.  Problem reported by Tom G. Christensen in
34633         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
34634         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
34635         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
34636         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
34637         uses split double-inclusion guards.
34639 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
34641         regex: test for buffer overrun
34642         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
34643         for the just-fixed regex bug.
34645 2013-01-29  Andreas Schwab  <schwab@suse.de>
34647         regex: fix buffer overrun in regexp matcher [BZ #15078]
34648         * lib/regexec.c (extend_buffers): Add parameter min_len.
34649         (check_matching): Pass minimum needed length.
34650         (clean_state_log_if_needed): Likewise.
34651         (get_subexp): Likewise.
34653 2013-01-28  Pádraig Brady  <P@draigBrady.com>
34655         mountlist: don't consider "devtmpfs" as dummy
34656         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
34657         as there is storage associcated with it.
34659 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34661         futimens-tests, utimens-tests: Depend on gettext.
34662         This works around a problem introduced in my 2013-01-12 patch,
34663         which added @LIBINTL@ to these modules.
34664         * modules/futimens-tests (Depends-on):
34665         * modules/utimens-tests (Depends-on): Add gettext.
34667 2013-01-26  Eric Blake  <eblake@redhat.com>
34669         test-getpeername: fix typo
34670         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
34672 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
34674         bootstrap: remove the need for a sorted .gitignore file
34675         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
34676         rename to insert_if_absent(), so that we don't need or generate
34677         a sorted .gitignore file.  We do require a .gitignore with no
34678         existing duplicate entries and enforce that.
34679         (sort_patterns): Remove this function as we now use the simpler
34680         technigue of inserting blacklist entries at the top of the file,
34681         assuming gnulib won't be inserting !whitelist entries.
34683 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34685         readlinkat: don't depend on gl_FUNC_OPENAT
34686         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
34687         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
34688         renameat.m4, symlinkat.m4; but one thing at a time.
34690         statat: new module, split out from fstatat
34691         GNU Emacs needs the POSIX-specified fstatat, but not the
34692         gnulib-specified statat and lstat.  Split the latter two into a
34693         new module 'statat'.
34694         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
34695         * lib/openat.h, lib/statat.c (STATAT_INLINE):
34696         Rename from FSTATAT_INLINE. All uses changed.
34697         * modules/fstatat (Files): Remove lib/statat.c.
34698         (gl_MODULE_INDICATOR([fstatat])): Remove.
34699         (lib_SOURCES): Remove.
34700         (Maintainer): Add self.
34701         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
34702         * tests/test-fstatat.c (BASE): Don't define if already defined.
34703         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
34705 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34707         tests: don't assume fd 99 is closed
34708         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
34709         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
34710         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
34711         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
34712         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
34713         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
34714         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
34715         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
34716         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
34717         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
34718         * tests/test-fwrite.c, tests/test-getpeername.c:
34719         * tests/test-getsockname.c, tests/test-getsockopt.c:
34720         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
34721         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
34722         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
34723         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
34724         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
34725         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
34726         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
34727         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
34728         * tests/test-unlinkat.c, tests/test-unlockpt.c:
34729         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
34730         Close file descriptor 99, instead of assuming it's already closed.
34732 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34734         stpncpy: port to OS X 10.8
34735         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
34736         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
34738 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34740         unistd: port to recent mingw
34741         * lib/unistd.in.h: Remove special invocation convention for mingw,
34742         which breaks for the latest mingw version.  See John W. Eaton in
34743         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
34745         largefile: port better to Mac OS X 10.5
34746         This patch is backported from Autoconf git.
34747         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
34748         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
34749         with ino_t size being different for configuration time versus
34750         build/run time.  Problem reported by PHO in
34751         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
34753 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34755         doc: clarify -Werror
34756         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
34757         clarify that it's intended for developers, not for ordinary builds,
34758         and mention --enable-gcc-warnings as one possible use.
34760 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
34762         stdint: fix build with Android's Bionic fox x86
34763         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
34764         was already included as _SSIZE_T_DEFINED_ might also be defined
34765         in include/machine/_types.h, which is included by stdio.h
34767 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
34769         net_if-tests: port to Solaris 7 + GCC 3.4.6
34770         Problem reported by Tom G. Christensen in
34771         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
34772         * tests/test-net_if.c (ni): Move to next the code that uses it,
34773         so that it's declared only if needed.
34775 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
34777         net_if-tests: port to older Solaris
34778         Problem reported by Tom G. Christensen in
34779         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34780         * modules/net_if-tests (NET_IF_LIB): New substitution.
34781         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
34782         (HAVE_IF_NAMEINDEX): New C macro.
34783         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
34785         system-quote-tests: port to older Solaris
34786         Problem reported by Tom G. Christensen in
34787         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34788         * tests/test-system-quote-child.c (fopen, fread): Undef.
34790         c-xvasprintf etc.: fix link errors on older Solaris
34791         These need to link with @LIBINTL@ to get libintl_gettext.
34792         Problem reported by Tom G. Christensen in
34793         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34794         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
34795         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
34796         * modules/futimens-tests (test_futimens_LDADD):
34797         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
34799 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34801         locale: port to Solaris 2.6 and 7 + GNU gettext
34802         * lib/locale.in.h: Just include_next <locale.h> when
34803         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
34804         when combining the localename module with GNU gettext 0.18.2.
34805         Problem reported by Tom G. Christensen in
34806         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
34808 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34810         stdlib: port to Solaris 2.6
34811         Also, the code worked on Solaris 7 through 9 only by accident.
34812         Problem reported by Tom G. Christensen in
34813         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
34814         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
34815         simply include the system stdlib.h.
34816         * lib/getopt.in.h (__need_system_stdlib_h):
34817         * lib/pthread.in.h (__need_system_stdlib_h):
34818         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
34819         Define when including <stdlib.h>, to avoid problems at least for
34820         the pthread case on Solaris 2.6 and 7.  These .h files can get by
34821         with the system stdlib.h.
34823 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
34825         doc: update main copyright year
34826         * doc/gnulib.texi: Update copyright date.
34828         doc: improve ISO 8601 discussion
34829         * doc/parse-datetime.texi (Combined date and time of day items):
34830         Specify more carefully what formats are supported and what is
34831         done with excess precision.
34833 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
34835         doc: avoid small caps
34836         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
34837         they're more trouble than they're worth.  Suggested by Karl Berry
34838         in <http://bugs.gnu.org/13360>.
34840         regex: conform to strict C
34841         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
34842         From Aharon Robbins.
34844         gnulib-tool: fix incompatibility with autopoint 0.18.2
34845         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
34846         Problem reported by Tom G. Christensen in
34847         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
34849 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34851         fprintftime: bring back and reword fwrite comment
34852         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
34854         stdio: remove now-unnecessary stdio.c
34855         Since stdio.in.h no longer uses inline functions, we no longer
34856         need to compile the extern versions.
34857         * lib/stdio.c: Remove.
34858         * modules/stdio (Files): Remove lib/stdio.c.
34859         (lib_SOURCES): Remove.
34861         unicodeio: depend on stdio, not ignore-value
34862         * lib/unicodeio.c: Do not include ignore-value.h.
34863         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
34864         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
34866         fprintftime: depend on stdio, not ignore-value
34867         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
34868         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
34869         since the stdio module arranges to silence that warning now.
34870         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
34872 2012-10-04  Simon Josefsson  <simon@josefsson.org>
34874         stdint-tests: Fix expanded-before-required-warning.
34875         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
34877 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34879         fwrite: silence __wur only for older glibc versions
34880         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
34881         This will help us remove this workaround some time in the far future.
34883 2013-01-03  Eric Blake  <eblake@redhat.com>
34885         fwrite: silence __wur without using inline
34886         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
34887         just gcc, and in a way that avoids inline issues.
34888         * modules/stdio (Depends-on): Drop extern-inline.
34890 2013-01-03  Jim Meyering  <jim@meyering.net>
34892         update-copyright: avoid copyright notice date corruption
34893         Given a sequence of copyright year numbers in which the final
34894         one was a two-digit number that happened to be a substring of
34895         a preceding four-digit year number, we would mistakenly update
34896         the substring (from two- to four-digit) rather than the two-digit
34897         number at the end, which, combined with the addition of the current
34898         4-digit year number would yield two 5-digit year numbers, e.g.,
34899         here, it would convert the first "99" to "1999, 2013" rather than
34900         the final one:
34901           1991, 99
34902           11999, 20131, 1999
34903         * build-aux/update-copyright: Tighten a regexp.
34904         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
34905         Reported by Joseph Myers in
34906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
34908 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34910         regex: omit needless signed-pointer casts
34911         * lib/regcomp.c (build_charclass, build_charclass_op):
34912         Use char *, not unsigned char *, for class name and extra.
34913         The char values are always nonnegative so there's no need to
34914         insist on unsigned char * here, and using char * removes the need
34915         for casts.  Reported by Aharon Robbins in
34916         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34918         regex: support Gawk, which never uses alloca
34919         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
34920         Do not include in this case.  Gawk doesn't supply a substitute
34921         alloca.h and doesn't need one.
34923         regex: port __libc_lock_define usage to C89
34924         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
34925         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
34926         does not conform to C89, as it has an empty macro argument.
34927         Reported by Aharon Robbins in
34928         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34930 2013-01-01  Eric Blake  <eblake@redhat.com>
34932         maint: update all copyright year number ranges
34933         Run "make update-copyright".
34935         version-etc: bump copyright year reported in --version
34936         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
34938 2012-12-31  Eric Blake  <eblake@redhat.com>
34940         sigprocmask-tests: skip test if pid is unexpectedly large
34941         * tests/test-sigprocmask.c (main): Add range check.
34943         git-version-gen: avoid test -z portability glitch
34944         * build-aux/git-version-gen: Prefer portable test spelling, since
34945         git-version-gen is run on more than just developer machines.
34947 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
34949         git-version-gen: add --fallback option to use if git is not present
34950         * build-aux/git-version-gen: Add support for the new option --fallback,
34951         which comes into play when there is no $tarball_version_file and
34952         git is not working.
34953         (scriptversion): Update.
34955         maint.mk: handle missing git with more grace
34956         * top/maint.mk (no-submodule-changes, public-submodule-commit):
34957         Quietly proceed if git is not present.
34959 2012-12-31  Eric Blake  <eblake@redhat.com>
34961         dup2: work around cygwin bug
34962         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
34963         * lib/dup2.c (rpl_dup2): Work around it.
34964         * doc/posix-functions/dup2.texi (dup2): Document it.
34966 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
34968         regex: remove unnecessary dependency on localcharset.h
34969         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
34970         hasn't been needed for years.
34971         * modules/regex (Depends-on): Remove localcharset.
34973         regex: revert single-byte change
34974         * lib/regexec.c (check_node_accept_bytes): Revert previous change
34975         to this function.  This was alredy fixed in a different way, at
34976         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
34977         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
34978         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
34980         regex: simplify based on Gawk version
34981         * lib/regex_internal.c (re_dfa_add_node): Simplify.
34982         Reported by Aharon Robbins in
34983         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34985 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34987         regex: check that pattern char is single-byte
34988         Reported by Aharon Robbins in
34989         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34990         * lib/regexec.c (check_node_accept_bytes):
34991         Return 0 if the pattern string has a multibyte character here.
34993         regex: implement rational ranges
34994         Reported by Aharon Robbins in
34995         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
34996         * lib/regcomp.c (build_range_exp) [!_LIBC]:
34997         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
34998         Implement rational ranges.
35000         regex: avoid redefining __wctype
35001         Reported by Aharon Robbins in
35002         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35003         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35004         #undef before defining.
35006         regex: port to hosts where malloc (0) == NULL
35007         Reported by Aharon Robbins in
35008         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35009         * lib/regex_internal.c (re_node_set_alloc):
35010         Don't assume that malloc (0) yields nonnull.
35011         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35012         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35013         * modules/regex (Files): Add m4/eealloc.m4.
35015         regex: port to C89
35016         Reported by Aharon Robbins in
35017         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35018         * lib/regcomp.c (init_word_char): Declaration before statement.
35020         regex: merge glibc changes
35021         Also, copy the license wording from glibc.  This simplifies
35022         merging changes.  gnulib-tool will change the wording to GPL as
35023         appropriate, when importing it to other packages.  The only
35024         glibc change made since the last merge, which needs merging, is:
35025         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35026         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35028         * users.txt: Add Emacs.
35030         doc: omit mention of version when not needed
35031         * doc/gnulib-intro.texi (Portability and Application Code):
35032         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35033         Don't mention particular dates or versions when not necessary, so
35034         that the documentation won't go out of date so quickly.
35036         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35038 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35040         bootstrap: pass --force to autoreconf.
35041         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35042         Add "--force" so that Automake's ylwrap and other such tools
35043         be updated at each bootstrap invocation.
35044         Use it.
35046 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35048         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35049         The earlier patch forgot to update one of the #if conditions, causing
35050         a problem on Debian testing i386 reported by Mats Erik Andersson
35051         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35052         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35053         (__argp_fmtstream_puts, argp_fmtstream_puts)
35054         (__argp_fmtstream_write, argp_fmtstream_write)
35055         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35057         * doc/gnulib-readme.texi: Minor fixups.
35058         (Portability guidelines): Modernize URLs.  Remove some repetition.
35059         (Indent with spaces not TABs): Reword to avoid too-long lines.
35060         Remove some '@ifset standalone' stuff that isn't used.
35062         * doc/gnulib-readme.texi (Portability guidelines):
35063         ctype.h, not ctime.h.
35065         Correct name of POSIX.1-2001.
35066         * doc/posix-functions/fgetc.texi (fgetc):
35067         * doc/posix-functions/fgets.texi (fgets):
35068         * doc/posix-functions/fread.texi (fread):
35069         * doc/posix-functions/fscanf.texi (fscanf):
35070         * doc/posix-functions/getc.texi (getc):
35071         * doc/posix-functions/getchar.texi (getchar):
35072         * doc/posix-functions/scanf.texi (scanf):
35073         POSIX.1-2001, not POSIX-2001.
35075         doc: move README into manual
35076         * README: Move contents to new file doc/gnulib-readme.texi.
35077         Replace with a one-line summary.
35078         * doc/gnulib.texi (Brief Overview): New section,
35079         with old intro preface.  Include gnulib-readme.texi for contents.
35080         (Philosophy): Rename from "Introduction", since this
35081         section no longer introduces the rest.  Write a new preface.
35082         * doc/gnulib-readme.texi: New file, with the old contents of
35083         README texinfo-ized.  This way, the README info appears
35084         in the online and printed manual.
35086 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35088         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35089         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35090         c_vasprintf() prototype.
35092 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35094         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35095         * lib/c-vasprintf.h: Remove stray semicolon.
35097 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35099         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35100         It is obsolete and is planned to be removed from Automake 1.14; see
35101         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35102         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35103         (installdirs-data, installdirs-data-yes):
35104         Use $(MKDIR_P), not $(mkdir_p).
35105         * m4/intl.m4 (AM_INTL_SUBDIR):
35106         * m4/po.m4 (AM_PO_SUBDIRS):
35107         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35109 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35111         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35112         On this platform, we are not optimizing but we are using
35113         the substitute for extern inlines, so compile as if
35114         C99-style extern inline, or a substitute, is available.
35115         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35116         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35117         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35118         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35119         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35120         Declare as ARGP_FS_EI, not as extern.
35121         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35122         (__option_is_short, _option_is_end, __option_is_end)
35123         [!_LIBC && __USE_EXTERN_INLINES]:
35124         Declare as ARGP_EI, not as extern.
35126 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35128         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35129         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35130         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35131         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35132         ...), as the latter is fatal with older Autoconfs.
35133         Problem reported and fix suggested by Eric Blake in thread starting at
35134         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35136 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35138         AC_PROG_MKDIR_P: don't workaround if not buggy
35139         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35140         Define only for Autoconf versions before 2.62.
35141         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35142         undocumented m4_PACKAGE_VERSION, for consistency with the
35143         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35144         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35145         was introduced in 2.62.
35147 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35149         New 'c-*printf' modules for formatted output in C locale.
35151         New module 'c-vasnprintf'.
35152         * modules/c-vasnprintf: New file.
35153         * lib/c-vasnprintf.c: New file.
35154         * lib/c-vasnprintf.h: New file.
35156         New module 'c-snprintf'.
35157         * modules/c-snprintf: New file.
35158         * modules/c-snprintf-tests: New file.
35159         * lib/c-snprintf.c: New file.
35160         * lib/c-snprintf.h: New file.
35161         * tests/test-c-snprintf.c: New file.
35162         * tests/test-c-snprintf.sh: New file.
35164         New module 'c-vsnprintf'.
35165         * modules/c-vsnprintf: New file.
35166         * modules/c-vsnprintf-tests: New file.
35167         * lib/c-vsnprintf.c: New file.
35168         * lib/c-vsnprintf.h: New file.
35169         * tests/test-c-vsnprintf.c: New file.
35170         * tests/test-c-vsnprintf.sh: New file.
35172         New module 'c-vasprintf'.
35173         * modules/c-vasprintf: New file.
35174         * modules/c-vasprintf-tests: New file.
35175         * lib/c-asprintf.c: New file.
35176         * lib/c-vasprintf.c: New file.
35177         * lib/c-vasprintf.h: New file.
35178         * tests/test-c-vasprintf.c  +: New file.
35179         * tests/test-c-vasprintf.sh: New file.
35181         New module 'c-xvasprintf'.
35182         * modules/c-xvasprintf: New file.
35183         * modules/c-xvasprintf-tests: New file.
35184         * lib/c-xasprintf.c: New file.
35185         * lib/c-xvasprintf.c: New file.
35186         * lib/c-xvasprintf.h: New file.
35187         * tests/test-c-xvasprintf.c: New file.
35188         * tests/test-c-xvasprintf.sh: New file.
35190 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35192         argp: better 'inline'
35193         Use extern-inline module to declare extern inline functions.
35194         This avoids some bogus warning diagnostics.  Problem discovered
35195         when modifying GNU tar to use the manywarnings module.
35196         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35197         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35198         Define based on extern-inline.
35199         * modules/argp (Depends-on): Add extern-inline.
35201 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35203         filemode, sys_stat: Handle MPX files a la AIX.
35204         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35205         * lib/sys_stat.in.h (S_ISMPX): New macro.
35206         * tests/test-sys_stat.c: Add tests for MPX files.
35208 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35210         x-to-1: honor $PERL
35211         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
35212         a chance to use his preferred version of Perl.  This is typically
35213         required by Darwin users whose default /usr/bin/perl does not have all
35214         the libraries required by help2man, and who need to use their MacPorts
35215         installation of Perl instead.
35217 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35219         gnu-web-doc-update: add all the new files, even in new directories
35220         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
35221         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
35222         Use it.
35223         (main): Don't use cvsutils to get the list of unknown files,
35224         just add all the existing files and directories.
35226 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35228         gnu-web-doc-update: improve --help
35229         * build-aux/gnu-web-doc-update: Move comments into --help.
35231 2012-12-07  Eric Wong  <normalperson@yhbt.net>
35233         mountlist: recognize more "dummy" file systems
35234         * lib/mountlist.c (ME_DUMMY_0):
35235         Add these dummy FS names to the list:
35236         - "debugfs" virtual filesystem for kernel debugging
35237         - "devpts" PTY slave filesystem
35238         - "devtmpfs" device filesystem on top of tmpfs/ramfs
35239         - "fusectl" control filesystem for FUSE
35240         - "mqueue" enumerates POSIX message queues
35241         - "rpc_pipefs" kernel <-> userspace bridge for NFS
35242         - "sysfs" is for exporting kernel objects
35243         - "devfs" device filesystem for Linux 2.4 and FreeBSD
35245 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
35247         extern-inline: avoid incompatibility with Darwin Libc
35248         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35249         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35250         Problem reported by Akim Demaille in
35251         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35253 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35255         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35256         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35257         let it handle password prompting.
35259 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35261         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35262         * lib/canonicalize.c (canonicalize_filename_mode):
35263         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35264         fetching the current directory.  Don't overrun the beginning of
35265         rpath if there's no slashes after the MS-Windows drive letter.
35267 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35269         maint.mk: avoid extra forks
35270         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35271         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35272         So use that instead of "$(shell test -f FILE && echo FILE)".
35274 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35276         vasnprintf: fix ASCII_ONLY typo
35277         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35278         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35279         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35280         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35281         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35283 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35285         list, oset, xlist, xoset: fix extern inline issue with C99
35286         This was introduced by my recent changes for 'inline'.
35287         Problem reported for gettext by Daiki Ueno in
35288         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35289         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35290         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35291         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35292         (gl_list_previous_node, gl_list_get_at)
35293         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35294         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35295         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35296         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35297         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35298         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35299         (gl_list_iterator_free, gl_sortedlist_search)
35300         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35301         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35302         (gl_sortedlist_remove):
35303         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35304         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35305         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35306         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35307         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35308         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35309         (gl_list_add_at, gl_sortedlist_add):
35310         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35311         Wrap these extern decls inside "#if 0", because they are implemented
35312         as inline functions, and extern inline is not what's wanted here.
35313         It would simplify these .h files to remove the extern decls entirely,
35314         although a downside would be less-clear separation between
35315         specification and implementation.
35317 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35319         sys_stat: no 'static inline'
35320         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35321         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35323         extern-inline: no 'static inline'
35324         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35325         Do not require AC_C_INLINE.
35326         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35327         'static inline', for older compilers.
35329         snippet/warn-on-use: no 'static inline'
35330         * build-aux/snippet/warn-on-use.h:
35331         Remove unnecessary 'inline' in comment.
35333         rbtree-list, rbtreehash-list: no 'static inline'
35334         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35335         * lib/gl_anytree_list2.h (node_at):
35336         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35337         (gl_oset_first, add_nodes_to_buckets):
35338         Now static, not static inline.
35340         regex: no 'static inline'
35341         * lib/regex_internal.c (calc_state_hash):
35342         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35343         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35344         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35345         Now static, not static inline.
35346         (inline) [__GNUC__ < 3 && _LIBC]:
35347         Remove macro; no longer needed.
35349         xvasprintf: no 'static inline'
35350         * lib/xvasprintf.c (xstrcat):
35351         Now static, not static inline.
35352         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35353         Do not require AC_C_INLINE.
35355         parse-datetime, parse-duration: no 'static inline'
35356         * lib/parse-datetime.y (to_uchar):
35357         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35358         (scale_n_add):
35359         Now static, not static inline.
35360         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35361         * modules/parse-duration (configure.ac):
35362         Do not require AC_C_INLINE.
35364         getaddrinfo: no 'static inline'
35365         * lib/getaddrinfo.c (validate_family):
35366         Now static, not static inline.
35367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35368         Do not require AC_C_INLINE.
35370         ftruncate, fts, lstat, openat, raise: no 'static inline'
35371         * lib/ftruncate.c (chsize_nothrow):
35372         * lib/fts.c (opendirat, diropen):
35373         * lib/lstat.c (orig_lstat):
35374         * lib/openat.c (orig_openat):
35375         * lib/raise.c (raise_nothrow):
35376         Now static, not static inline.
35377         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35378         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35379         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35380         * m4/openat.m4 (gl_PREREQ_OPENAT):
35381         * m4/raise.m4 (gl_PREREQ_RAISE):
35382         Do not require AC_C_INLINE.
35384         fflush, stat: no 'static inline'
35385         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35386         (clear_ungetc_buffer, disable_seek_optimization)
35387         (restore_seek_optimization, update_fpos_cache):
35388         * lib/stat.c (orig_stat):
35389         Now static, not static inline.
35390         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
35391         (update_fpos_cache):
35392         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
35393         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
35394         * m4/stat.m4 (gl_PREREQ_STAT):
35395         Do not require AC_C_INLINE.
35397         error, filevercmp: no 'static inline'
35398         * lib/error.c (is_open, flush_stdout):
35399         * lib/filevercmp.c (order):
35400         Now static, not static inline.
35401         * m4/error.m4 (gl_PREREQ_ERROR):
35402         * modules/filevercmp (configure.ac):
35403         Do not require AC_C_INLINE.
35405         dup, execute, fatal-signal, etc.: no 'static inline'
35406         * lib/dup.c (dup_nothrow):
35407         * lib/execute.c (nonintr_close, nonintr_open):
35408         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
35409         * lib/fopen.c (orig_fopen):
35410         * lib/freadseek.c (freadptrinc):
35411         * lib/freopen.c (orig_freopen):
35412         * lib/fstat.c (orig_fstat, fstat_nothrow):
35413         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
35414         (get_rusage_as_via_iterator):
35415         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35416         * lib/getdtablesize.c (_setmaxstdio_nothrow):
35417         * lib/isatty.c (_isatty_nothrow):
35418         * lib/open.c (orig_open):
35419         * lib/read.c (read_nothrow):
35420         * lib/sigprocmask.c (signal_nothrow):
35421         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
35422         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
35423         * lib/wait-process.c (unregister_slave_subprocess):
35424         * lib/write.c (write_nothrow):
35425         Now static, not static inline.
35426         * lib/spawn-pipe.c (nonintr_open): Define only if
35427         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
35428         * m4/dup.m4 (gl_PREREQ_DUP):
35429         * m4/execute.m4 (gl_EXECUTE):
35430         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
35431         * m4/fopen.m4 (gl_PREREQ_FOPEN):
35432         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
35433         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
35434         * m4/fstat.m4 (gl_PREREQ_FSTAT):
35435         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
35436         * m4/isatty.m4 (gl_PREREQ_ISATTY):
35437         * m4/open.m4 (gl_PREREQ_OPEN):
35438         * m4/read.m4 (gl_PREREQ_READ):
35439         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
35440         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
35441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
35442         * m4/wait-process.m4 (gl_WAIT_PROCESS):
35443         * m4/write.m4 (gl_PREREQ_WRITE):
35444         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
35445         Do not require AC_C_INLINE.
35447         c-strtod, memcoll, readutmp: no 'static inline'
35448         * lib/c-strtod.c (c_locale):
35449         * lib/memcoll.c (strcoll_loop):
35450         * lib/readutmp.c (desirable_utmp_entry):
35451         Now static, not static inline.
35452         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
35453         * m4/memcoll.m4 (gl_MEMCOLL):
35454         * m4/readutmp.m4 (gl_READUTMP):
35455         Do not require AC_C_INLINE.
35457         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
35458         * lib/arctwo.c (to_uchar):
35459         * lib/md4.c (set_uint32):
35460         * lib/md5.c (set_uint32):
35461         * lib/sha1.c (set_uint32):
35462         * lib/sha256.c (set_uint32):
35463         * lib/sha512.c (set_uint64):
35464         Now static, not static inline.  This is a bit simpler, and doesn't
35465         affect performance with GCC and default optimization.
35466         * m4/arctwo.m4 (gl_ARCTWO):
35467         * m4/md4.m4 (gl_MD4):
35468         * m4/md5.m4 (gl_MD5):
35469         * m4/sha1.m4 (gl_SHA1):
35470         * m4/sha256.m4 (gl_SHA256):
35471         * m4/sha512.m4 (gl_SHA512):
35472         Do not require AC_C_INLINE.
35474         cond, lock, thread: better 'inline'
35475         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
35476         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
35477         New macros.  Use them instead of static inline, for header functions.
35478         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
35479         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35480         * lib/glthread/lock.c (gl_waitqueue_init)
35481         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35482         * lib/glthread/thread.c (get_current_thread_handle):
35483         Change 'static inline' to 'inline'.
35484         * lib/glthread/cond.h, lib/glthread/thread.h:
35485         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35486         * m4/cond.m4 (gl_COND):
35487         * m4/lock.m4 (gl_PREREQ_LOCK):
35488         * m4/thread.m4 (gl_THREAD):
35489         Do not require AC_C_INLINE.
35490         * modules/cond, modules/thread (Depends-on): Add extern-inline.
35492         chdir-long, cycle-check, savewd: better 'inline'
35493         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
35494         (find_non_slash):
35495         * lib/cycle-check.c (is_zero_or_power_of_two):
35496         * lib/savewd.c (savewd_delegating):
35497         Change 'static inline' to 'inline'.
35498         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
35499         Replace all remaining uses of 'static inline' with it.
35500         * lib/savewd.h:
35501         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35502         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
35503         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35504         * m4/savewd.m4 (gl_SAVEWD):
35505         Do not require AC_C_INLINE.
35506         * modules/savewd (Depends-on): Add extern-inline.
35508         base32, base64: no need for 'inline'
35509         * lib/base32.c (to_uchar, get_8, decode_8):
35510         * lib/base64.c (to_uchar, get_4, decode_4):
35511         Change 'static inline' to 'inline'.
35512         * m4/base32.m4 (gl_PREREQ_BASE32):
35513         * m4/base64.m4 (gl_PREREQ_BASE64):
35514         Do not require AC_C_INLINE.
35516         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
35517         * lib/gl_array_oset.c (gl_array_nx_add_at):
35518         (gl_array_remove_at):
35519         * lib/gl_linkedhash_list.c (hash_resize_after_add)
35520         (add_to_bucket, remove_from_bucket):
35521         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
35522         Change 'static inline' to 'static', as it's simpler to omit
35523         'inline' unless there's a significant performance advantage.
35525         list, oset, xlist, xoset, xsublist: simplify via extern inline
35526         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
35527         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
35528         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
35529         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
35530         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
35531         New macro.  Replace all uses of 'static inline' with it.
35532         [HAVE_INLINE]: Implement functions as *_INLINE functions,
35533         instead of as macros FOO that are defined to static inline
35534         functions FOO_inline.
35535         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
35536         * lib/gl_xsublist.c:
35537         Reimplement from scratch, by defining the corresponding *_INLINE
35538         macro and including the corresponding .h file.  This is simpler.
35539         * modules/list, modules/oset, modules/xlist, modules/xoset:
35540         (Files): Remove m4/gl_list.m4.
35541         (configure.ac): Remove gl_LIST.
35542         * m4/gl_list.m4: Remove.
35543         * modules/list, modules/oset, modules/xlist, modules/xoset:
35544         * modules/xsublist:
35545         (Depends-on): Depend on extern-inline, not inline.
35547         xalloc: better 'inline'
35548         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
35549         New macro.  Replace all uses of 'static inline' with it.
35550         (static_inline): Remove.
35551         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35552         Let 'extern inline' do the work automatically, instead of doing
35553         it by hand.
35554         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
35555         Remove.  All uses removed.
35556         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
35558         gethrxtime: better 'inline'
35559         * lib/xtime.c: New file.
35560         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
35561         * lib/xtime.h (XTIME_INCLUDE):
35562         New macros.  Replace all uses of 'static inline' with them.
35563         * lib/gethrxtime.c (gethrxtime): Define only if
35564         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
35565         this source file is now always compiled, because of the extern inline.
35566         * lib/gethrxtime.h, lib/xtime.h:
35567         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35568         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
35569         if gethrtime works, as they're not needed in that case.
35570         (gl_XTIME): Do not require AC_C_INLINE.
35571         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
35572         compiled now.  Move the check into gl_GETHRXTIME.
35573         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
35574         (Depends-on): Add extern-inline.
35575         (configure.ac): gethrxtime is always compiled now.
35576         (lib_SOURCES): Add gethrxtime.c.
35578         wctype-h: better 'inline'
35579         * lib/wctype-h.c: New file.
35580         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
35581         New macro.  Replace all uses of 'static inline' with it.
35582         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35583         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
35584         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
35585         (Depends-on): Add extern-inline.
35587         unistd: better 'inline'
35588         * lib/unistd.c: New file.
35589         * lib/unistd.in.h (_GL_UNISTD_INLINE):
35590         New macro.  Replace all uses of 'static inline' with it.
35591         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35592         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
35593         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
35594         (Depends-on): Add extern-inline.
35596         sys_socket: better 'inline'
35597         * lib/sys_socket.c: New file.
35598         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
35599         New macro.  Replace all uses of 'static inline' with it.
35600         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35601         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
35602         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
35603         (Depends-on): Add extern-inline.
35605         stdio: better 'inline'
35606         * lib/stdio.c: New file.
35607         * lib/stdio.in.h (_GL_STDIO_INLINE):
35608         New macro.  Replace all uses of 'static inline' with it.
35609         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35610         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
35611         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
35612         (Depends-on): Add extern-inline.
35614         sigaction: better 'inline'
35615         * lib/sig-handler.c: New file.
35616         * lib/sig-handler.h (SIG_HANDLER_INLINE):
35617         New macro.  Replace all uses of 'static inline' with it.
35618         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35619         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
35620         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
35621         (Depends-on): Add extern-inline.
35623         selinux-h: better 'inline'
35624         * lib/se-context.c, lib/se-selinux.c: New files.
35625         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
35626         * lib/se-context.in.h (SE_CONTEXT_INLINE):
35627         New macro.  Replace all uses of 'static inline' with it.
35628         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35629         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
35630         New macro.  Replace all uses of 'static inline' with it.
35631         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35632         * modules/selinux-h (Files, lib_SOURCES):
35633         Add lib/se-context.c, lib/se-selinux.c.
35634         (Depends-on): Add extern-inline.
35635         (configure.ac): Do not require AC_C_INLINE.
35637         pthread: better 'inline'
35638         * lib/pthread.c: New file.
35639         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
35640         New macro.  Replace all uses of 'static inline' with it.
35641         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35642         * m4/pthread.m4 (gl_PTHREAD_CHECK):
35643         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
35644         * modules/pthread (Files): Add lib/pthread.c.
35645         (Depends-on): Add extern-inline.
35647         math: better 'inline'
35648         * lib/math.c: New file.
35649         * lib/math.in.h (_GL_MATH_INLINE):
35650         New macro.  Replace all uses of 'static inline' with it.
35651         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35652         * m4/math_h.m4 (gl_MATH_H):
35653         Do not require AC_C_INLINE.
35654         * modules/math (Files, lib_SOURCES):
35655         Add lib/math.c.
35656         (Depends-on): Add extern-inline.
35658         count-one-bits: better 'inline'
35659         * lib/count-one-bits.c: New file.
35660         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
35661         New macro.  Replace all uses of 'static inline' with it.
35662         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35663         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
35664         Do not require AC_C_INLINE.
35665         * modules/count-one-bits (Files, lib_SOURCES):
35666         Add lib/count-one-bits.c.
35667         (Depends-on): Add extern-inline.
35669         count-leading-zeros: better 'inline'
35670         * lib/count-leading-zeros.c: New file.
35671         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
35672         New macro.  Replace all uses of 'static inline' with it.
35673         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35674         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
35675         Do not require AC_C_INLINE.
35676         * modules/count-leading-zeros (Files, lib_SOURCES):
35677         Add lib/count-leading-zeros.c.
35678         (Depends-on): Add extern-inline.
35680         bitrotate: better 'inline'
35681         * lib/bitrotate.c: New file.
35682         * lib/bitrotate.h (BITROTATE_INLINE):
35683         New macros.
35684         Replace all uses of 'static inline' with them.
35685         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35686         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
35687         (Depends-on): Add extern-inline.
35688         (configure.ac): Do not require AC_C_INLINE.
35690 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
35692         maint.mk: avoid gratuitous failure
35693         Reported by Stefano Lattarini in
35694         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
35695         * top/maint.mk (public-submodule-commit): Quote more safely.
35697 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
35699         canonicalize, canonicalize-lgpl: support MS-Windows file names
35700         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
35701         for test cases, which it'd be nice to add at some point.
35702         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
35703         * lib/canonicalize.c (canonicalize_filename_mode):
35704         * lib/canonicalize-lgpl.c (__realpath):
35705         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
35706         slash is at the beginning of the file name.  Use ISSLASH, instead
35707         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
35708         the first character with '/'.  Test for
35709         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
35710         with a drive letter.
35711         * lib/canonicalize.c (SLASHES): New macro.
35712         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
35714 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
35716         fts: introduce FTS_VERBATIM
35717         * lib/fts_.h (FTS_VERBATIM): New bit flag.
35718         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
35719         * lib/fts.c (fts_open): Honor it.
35721 2012-11-09  Pádraig Brady  <P@draigBrady.com>
35723         getlogin-tests: allow errno == ENXIO
35724         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35725         with errno == ENXIO (No controlling tty).
35726         getlogin_r-tests: Likewise. Also allow errno == ENOENT
35727         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
35728         with errno == ENOENT.  This was reported to happen in various
35729         situations on GNU/Linux.
35731 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35733         getlogin-tests: allow errno == ENOENT
35734         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35735         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
35736         when running a test in an Emacs shell buffer.
35738 2012-11-08  Jim Meyering  <jim@meyering.net>
35740         tests/nap.h: avoid warning about unused variable
35741         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
35743         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
35744         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
35745         white space before each of the special-cased file names, to avoid
35746         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
35747         in http://bugs.gnu.org/12830.
35749 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35751         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
35752         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
35753         fails with errno == EBADF when fd is opened with O_PATH.
35754         Reported by Jim Meyering in
35755         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
35756         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35757         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
35759 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
35761         test-utimens: speed up by taking shorter naps
35762         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
35763         New functions.
35764         (nap): Use them, to do a better job of guessing the delay.
35765         On Fedora 17 with ext4 atop md atop hard disks, this made
35766         test-utimens run 10x faster, because the test napped for
35767         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
35768         <http://bugs.gnu.org/12820#11>.
35770 2012-11-07  Jim Meyering  <jim@meyering.net>
35772         mountlist.c: fix a compilation failure
35773         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
35774         I introduced while transforming commit v0.0-7683-g613bcb6
35776 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35778         errno: port to LynxOS 178 2.2.2
35779         Problem reported by Joel Brobecker in
35780         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
35781         * doc/posix-headers/errno.texi (errno.h): Document this.
35782         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
35783         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
35784         Supply a string for EILSEQ.
35785         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
35787 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35789         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
35790         Linux kernel 2.6.39 introduced O_PATH (see
35791         <http://lwn.net/Articles/433854/>) and this is a better fallback
35792         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
35793         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35794         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
35795         * lib/fcntl.in.h (O_ACCMODE):
35796         * tests/test-fcntl-h.c (main):
35797         Do not reject O_ACCMODE merely because it has more than the
35798         minimal number of bits, as POSIX allows extensions here.
35800 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
35802         mountlist: do not classify a bind-mounted dir entry as "dummy"
35803         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
35804         the "none"-testing clause.
35805         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
35806         exception for bind-mounted directories.
35808 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
35810         quote: provide a means to escape strings with nul characters
35811         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
35812         (quote, quote_n): Rename formal arguments for consistency with
35813         quotearg.
35815 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35817         test-raise: don't assume 199 is an invalid signal
35818         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
35820         sh-quote-tests: port to Solaris 9
35821         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
35822         Problem reported by Dagobert Michelsen in
35823         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
35825 2012-10-28  Jim Meyering  <jim@meyering.net>
35827         maint.mk: rename a new configurable variable
35828         * top/maint.mk (_gl_translatable_string_re): Rename from
35829         translation-markers: _gl_ prefix to insulate from user Makefile code,
35830         and the _re suffix to inform that it's a regular expression.
35832 2012-10-26  Eric Blake  <eblake@redhat.com>
35834         maint.mk: let packages tweak sc_po_check pattern
35835         * top/maint.mk (sc_po_check): Add translation-markers, to allow
35836         finding files with other translation markers.
35838 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35840         euidaccess: speed up 'configure' on GNU hosts
35841         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
35842         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
35843         it's needed only in this case.  Use AC_CHECK_DECLS, not
35844         AC_CHECK_DECLS_ONCE.
35845         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
35846         or AC_REQUIRE for AC_FUNC_GETGROUPS.
35848         * lib/regexec.c (re_search_internal): Fix grammar in comment.
35850 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35852         fchmodat, fchownat, fstatat: port to non-inlining compilers
35853         Problem reported for FreeBSD 9 by Jim Meyering in
35854         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
35855         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
35856         New files, which define FCHMODAT_INLINE etc.
35857         * lib/fchmodat.c (FCHMODAT_INLINE):
35858         * lib/fchownat.c (FCHOWNAT_INLINE):
35859         * lib/fstatat.c (FSTATAT_INLINE):
35860         Remove, as chmodat.c etc. now do this.
35861         * modules/fchmodat (Files): Add lib/chmodat.c.
35862         * modules/fchownat (Files): Add lib/chownat.c.
35863         * modules/fstatat (Files): Add lib/statat.c.
35865 2012-10-15  Jim Meyering  <jim@meyering.net>
35867         fchmodat.c, fchownat.c: compile-impeding typos
35868         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
35869         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
35870         Introduced in commit v0.0-7636-gd202279.
35872 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35874         fcntl-h: support GNU flags like O_IGNORE_CTTY
35875         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
35876         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
35877         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
35878         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
35879         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
35880         Define to 0 if not already defined.
35881         * tests/test-fcntl-h.c: Test these new flags.
35883 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35885         faccessat, etc.: support AT_FDCWD-only use
35886         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
35887         this function only if its first argument is AT_FDCWD.
35888         Emacs wants faccessat for AT_EACCESS but not for any first-arg
35889         values other than AT_FDCWD, so it doesn't want all the openat
35890         machinery with fchdir etc.
35891         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
35892         * modules/fstatat, modules/mkdirat, modules/openat (Files):
35893         * modules/unlinkat (Files):
35894         Remove lib/openat-priv.h, as at-internal supplies this file.
35895         Removing this file here allows us to support programs like Emacs
35896         that avoid at-internal.
35898         faccessat: speed up 'configure' on mainstream hosts
35899         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
35900         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
35901         since it's only on unusual platforms that we need to check for
35902         'access', and it's better not to slow 'configure' down on all
35903         platforms.
35905         faccessat: port to Solaris 10
35906         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
35907         Needed on Solaris 10, which doesn't have AT_EACCESS,
35908         so we need the Gnulib fcntl.h, which defines it.
35910 2012-10-14  Pádraig Brady  <P@draigBrady.com>
35911         canonicalize: fix C89 compilation
35912         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
35913         declarations so C89 is supported.  Also remove the comment
35914         referencing memorty allocation as the suggested feature could
35915         not be implemented as suggested.
35916         Reported by Michael Goffioul.
35918 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35920         group-member: omit unnecessary dependencies
35921         This is for Emacs, which has its own allocator and where we
35922         don't want to use xalloc.
35923         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
35924         since we no longer use xmalloc.  Do not include stdbool.h, since
35925         the changes below happen to remove the only use of bool.
35926         (GROUPBUF_SIZE): New constant.
35927         (struct group_info): Remove n_groups member.  Add groupbuf member.
35928         This lets us get the groups without using malloc, usually.
35929         (free_group_info, get_group_info): Adjust to this.
35930         (get_group_info): Return the number of groups found, or -1 on error.
35931         Use plain malloc not xmalloc, and treat its failure as if there
35932         are no groups, as the user already loses in case of error.
35933         (group_member): Simplify, based on changes to get_group_info.
35934         * modules/group-member (Depends-on): Remove dependencies on
35935         xalloc and stdbool.  Add dependency on xalloc-oversized.
35937 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
35939         gethrxtime: port to C++
35940         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
35942 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35944         ptsname: fix macro-name typo
35945         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
35947 2012-10-03  Simon Josefsson  <simon@josefsson.org>
35949         inttostr: Relax license.
35950         * modules/inttostr (License): Change from LGPL to LGPLv2+.
35952 2012-10-03  Eric Blake  <eblake@redhat.com>
35954         ptsname_r: support ptys returned by FreeBSD posix_openpt
35955         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
35956         lives in /dev/pts/.
35958 2012-10-02  Eric Blake  <eblake@redhat.com>
35960         pselect: reject invalid file descriptors
35961         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
35962         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
35963         * modules/pselect (Depends-on): Add dup2.
35964         * doc/posix-functions/pselect.texi (pselect): Document this.
35966         select: reject invalid file descriptors
35967         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
35968         * lib/select.c (rpl_select) [!win32]: Work around it.
35969         * modules/select (Depends-on): Add dup2.
35970         * doc/posix-functions/select.texi (select): Document this.
35972         select: enhance test
35973         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
35974         New functions.
35975         (test_function): Enhance test.
35976         (do_select_bad_fd): Avoid any stale errno values.
35978         ptsname: reject invalid file descriptors
35979         http://www.austingroupbugs.net/view.php?id=503
35980         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
35981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
35982         * modules/stdlib (Makefile.am): Replace witness.
35983         * lib/stdlib.in.h (ptsname): Allow for replacement.
35984         * modules/ptsname (configure.ac): Trigger replacement.
35985         * doc/posix-functions/ptsname.texi (ptsname): Document this.
35987 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
35989         hash-pjw-bare: new module
35990         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
35991         * lib/hash-pjw-bare.h: Likewise.
35992         * modules/hash-pjw-bare: New file.
35993         * MODULES.html.sh (Misc): Add it.
35995 2012-10-02  Eric Blake  <eblake@redhat.com>
35997         manywarnings: cater to more gcc infelicities
35998         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
35999         -Wuninitialized without -O.
36001 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36003         select, poll tests: Make setsockopt invocation effective.
36004         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36005         the bind() call.
36006         * tests/test-select.h (open_server_socket): Likewise.
36008 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36010         sockets, sys_stat: restore AC_C_INLINE
36011         This undoes the 2012-09-22 patch.
36012         * m4/sockets.m4 (gl_SOCKETS):
36013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36014         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36015         and does not support plain 'inline'.  Reported by Bruno Haible in
36016         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36018 2012-09-30  Bruno Haible  <bruno@clisp.org>
36020         localeconv tests: Avoid test failure on OpenIndiana.
36021         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36022         skip the 'grouping' and 'mon_grouping' tests.
36023         Reported by Jim Meyering.
36025 2012-09-30  Bruno Haible  <bruno@clisp.org>
36027         havelib: Follow libtool developments.
36028         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36029         Suggested by Simon Josefsson.
36031 2012-09-29  Jim Meyering  <meyering@redhat.com>
36033         fstatat.c: fix a compile-impeding typo
36034         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36035         Introduced in commit v0.0-7636-gd202279.
36036         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36038 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36040         extern-inline: provide a -Wundef safe config.h
36041         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36042         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36043         to produce a -Wundef warning free config.h.
36045 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36047         hash-pjw: relax license to LGPLv2+
36048         * modules/hash-pjw (License): Relax, with consent of author.
36050 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36052         maint.mk: fix strict vs. lazy variable issues with RELEASE
36053         * top/maint.mk (_equal): New function.
36054         (member_check): Strip the result to avoid spurious spaces.
36055         (url_dir_list): Do not use ifeq, which is strict, as it will
36056         require RELEASE_TYPE to be defined.
36057         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36058         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36059         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36060         (announcement_Cc_beta,announcement_mail_headers_beta)
36061         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36062         (release): Do not depend on $(release-type), as it forces its
36063         evaluation.  Bounce to it.
36065 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36067         maint.mk: formatting changes
36068         * top/maint.mk: Indent bodies of if's.
36070 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36072         maint.mk: factor the validation of RELEASE_TYPE
36073         With help from Jim Meyering.
36074         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36075         * top/maint.mk (_empty, _sp): Move their definition earlier.
36076         (member-check, release-type): New.
36077         Use the latter instead of $(RELEASE_TYPE).
36078         Remove now useless local checks.
36080 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36082         maint.mk: provide "make upload" to ease uploading
36083         See
36084         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36085         Do not depend simply on the current $(VERSION), as there may have been
36086         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36087         as "make release-commit" already does.
36089         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36090         "make TYPE".
36092         * top/maint.mk (upload_command, upload, release): New.
36093         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36094         (VERSION): first word of $(RELEASE) is always right.
36095         (emit_upload_commands): Adjust.
36096         * top/README-release: Update.
36098 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36100         maint.mk: silent rules
36101         With help from Stefano Lattarini.
36102         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36103         (announcement): Use $(AM_V_at).
36105 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36107         localename: port gl_locale_name_thread_unsafe to FreeBSD
36108         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36109         and use the simpler FreeBSD implementation on Mac OS X as well.
36110         Original idea suggested by Ed Maste in
36111         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36113 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36115         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36116         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36117         * lib/mbuiter.c, lib/xsize.c: New files.
36118         * lib/binary-io.h (BINARY_IO_INLINE):
36119         * lib/eealloc.h (EEALLOC_INLINE):
36120         * lib/mbfile.h (MBFILE_INLINE):
36121         * lib/mbiter.h (MBITER_INLINE):
36122         * lib/mbuiter.h (MBUITER_INLINE):
36123         * lib/xsize.h (XSIZE_INLINE):
36124         New macros.
36125         Replace all uses of 'static inline' with them.
36126         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36127         * m4/eealloc.m4 (gl_EEALLOC):
36128         * m4/mbfile.m4 (gl_MBFILE):
36129         * m4/mbiter.m4 (gl_MBITER):
36130         * m4/xsize.m4 (gl_XSIZE):
36131         Do not require AC_C_INLINE.
36132         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36133         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36134         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36135         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36136         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36137         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36138         * modules/binary-io, modules/eealloc, modules/mbfile:
36139         * modules/mbiter, modules/mbuiter:
36140         (Depends-on): Add extern-inline.
36142         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36143         * lib/pipe-filter-aux.c: New file.
36144         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36145         Replace all uses of 'static inline' with it.
36146         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36147         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36148         (filter_retcode): No real need for inline here.
36149         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36150         (Files): Add lib/pipe-filter-aux.c.
36151         (Depends-on): Add extern-inline.
36152         (configure.ac): Do not require AC_C_INLINE.
36153         (lib_SOURCES): Add pipe-filter-aux.c.
36155         fdutimensat: omit unnecessary AC_C_INLINE
36156         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36158         fchmodat, fchownat, fstatat: use extern-inline
36159         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36160         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36161         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36162         New macros.
36163         * lib/openat.h:
36164         Replace all uses of 'static inline' with them.
36165         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36166         * modules/fchmodat, modules/fchownat, modules/fstatat:
36167         * modules/openat-h:
36168         (Depends-on):
36169         Add extern-inline.
36170         (configure.ac): Remove AC_C_INLINE.
36172         acl, mbchar, priv-set: use extern-inline
36173         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36174         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36175         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36176         New macros.
36177         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36178         Replace all uses of 'static inline' with it.
36179         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36180         * m4/acl.m4 (gl_FUNC_ACL):
36181         * m4/mbchar.m4 (gl_MBCHAR):
36182         * m4/priv-set.m4 (gl_PRIV_SET):
36183         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36184         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36185         Add extern-inline.
36187         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36188         * m4/sockets.m4 (gl_SOCKETS):
36189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36190         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36191         environments where it's already guaranteed to work, so we needn't
36192         check for it at 'configure'-time.
36194         tls-tests: omit unnecessary 'inline'
36195         * tests/test-tls.c (perhaps_yield): No longer inline.
36196         Simplicity and portability trump efficiency in test cases.
36198         utimens-tests: avoid unnecessary 'inline'
36199         * modules/fdutimensat-tests (configure.ac):
36200         * modules/futimens-tests (configure.ac):
36201         * modules/utimens-tests (configure.ac):
36202         * modules/utimensat-tests (configure.ac):
36203         Remove AC_C_INLINE.
36204         * tests/test-utimens-common.h (ctime_compare):
36205         No longer inline.  Simplicity and portability trump efficiency here.
36207         misc: don't limit commentary to inline functions
36208         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
36209         * lib/xalloc-oversized.h, lib/xsize.h:
36210         Contrast macros to functions in general, not just to inline functions,
36211         when the commentary does not apply only to inline functions.
36213 2012-09-20  Jim Meyering  <meyering@redhat.com>
36215         non-recursive-gnulib-prefix-hack: new module
36216         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
36217         the file that originated in Bison.
36218         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
36219         largely copied from a snippet that resided in bison's configure.ac.
36220         * modules/non-recursive-gnulib-prefix-hack: New file.
36221         * MODULES.html.sh (Support for maintaining and releasing projects):
36222         Add it.
36224 2012-09-18  Jim Meyering  <meyering@redhat.com>
36226         maint.mk: generalize _gl_tight_scope for non-recursive make
36227         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
36228         that *.h would describe additional .h files in the directory
36229         specified by $(_gl_TS_dir).  I.e., add this...
36230         (_gl_TS_other_headers): New variable.
36232         maint.mk: exempt trailing blanks found in "binary" files
36233         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
36234         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
36235         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36237 2012-09-17  Jim Meyering  <meyering@redhat.com>
36239         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
36240         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
36241         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
36242         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36244 2012-09-17  Jim Meyering  <meyering@redhat.com>
36246         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
36247         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
36248         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36249         It is not in the same category as "exit (0)" or "exit (1)", and
36250         besides, I know of no symbolic name for that 77.  Reported by
36251         Richard W.M. Jones in
36252         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36254 2012-09-17  Jim Meyering  <meyering@redhat.com>
36256         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36257         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36258         all uses of #define, not just those that start in column 1.
36259         Richard W.M. Jones reported a false positive in
36260         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36262 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36264         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36265         * lib/localcharset.c (locale_charset) [DARWIN7]:
36266         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36267         as these two values are incompatible.  Problem reported by Max Horn.
36268         For more discussion, please see
36269         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36271         doc: document sticky-EOF issue
36272         * doc/posix-functions/fgetc.texi (fgetc):
36273         * doc/posix-functions/fgets.texi (fgets):
36274         * doc/posix-functions/fread.texi (fread):
36275         * doc/posix-functions/fscanf.texi (fscanf):
36276         * doc/posix-functions/getc.texi (getc):
36277         * doc/posix-functions/getchar.texi (getchar):
36278         * doc/posix-functions/scanf.texi (scanf):
36279         Mention that glibc and default Solaris do not conform to
36280         C99 and POSIX-2001 or later, with respect to how getchar
36281         etc. behave when feof reports nonzero.
36283 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36285         poll: fix poll(0, NULL, msec)
36286         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36287         but nfd is 0.  In that case poll should behave like select.
36289 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36290             Paolo Bonzini  <bonzini@gnu.org>
36292         poll: fix for systems that can't recv() on a non-socket
36293         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36294         is readable.  In this case POLLHUP will not be supported.
36295         * doc/posix-functions/poll.texi: Document this.
36297 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36299         poll/select: document portability problems not fixed by Gnulib.
36300         * doc/posix-functions/poll.texi: poll does not work well on
36301         pipes under Windows.  It has the same limitations as select on
36302         BeOS.
36303         * doc/posix-functions/select.texi: select does not work well
36304         on pipes under Windows.
36306 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36308         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36309         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36310         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36311         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36313 2012-09-06  Eric Blake  <eblake@redhat.com>
36315         net_if: give more details about the bug being fixed
36316         * doc/posix-headers/net_if.texi: Add clarification.
36318 2012-09-05  Eric Blake  <eblake@redhat.com>
36320         net_if: new module
36321         * modules/net_if: New module, borrowing ideas from netinet_in.
36322         * m4/net_if_h.m4: New file.
36323         * lib/net_if.in.h: Likewise.
36324         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36325         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36326         * tests/test-net_if.c: Make function checks conditional.
36327         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36329 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36331         readutmp: fix non-portable UT_PID use
36332         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36333         Use `UT_PID (u) > 0' as absolute condition.
36335 2012-09-04  Jim Meyering  <meyering@redhat.com>
36337         fts: reduce two or more trailing spaces to just one, usually
36338         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36339         or more slashes, trim all but the final one.  But if a name consists
36340         solely of two slashes, don't modify it.  If it consists solely of
36341         three or more slashes, strip all but one.
36343         This is part of the solution to a minor problem with rm:
36344         it would print a bogus ELOOP diagnostic when failing to remove
36345         the slash-decorated name of a symlink-to-directory:
36347             $ mkdir d && ln -s d s && env rm -r s/
36348             rm: cannot remove 's': Too many levels of symbolic links
36350         With the change below and a trivial don't-trim-trailing-slashes
36351         adjustment to remove.c, it does this:
36353             $ env rm -r s/
36354             rm: cannot remove 's/': Not a directory
36356         Improved by: Eric Blake
36358         fts: when there is no risk of overlap, use memcpy, not memmove
36359         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36361 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36363         stdbool: be more compatible with mixed C/C++ compiles
36364         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36365         Define to bool, true, false, respectively, as GCC's builtin
36366         stdbool.h does.  Problem reported by Michael Goffioul in
36367         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36369 2012-08-28  Jim Meyering  <meyering@redhat.com>
36371         revert last change: it was not needed
36372         * tests/test-vc-list-files-git.sh: There's already a test for
36373         a working git, just below.
36375 2012-08-28  Jim Meyering  <meyering@redhat.com>
36377         tests: test-vc-list-files-git.sh: skip if git is not available
36378         * tests/test-vc-list-files-git.sh: Skip this test when git is
36379         not available.
36381 2012-08-26  Bruno Haible  <bruno@clisp.org>
36383         gnulib-tool: Remove no-op option --no-changelog.
36384         * gnulib-tool (func_usage): Don't mention --no-changelog.
36385         (do_changelog): Remove variable.
36386         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36388 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36390         doc: remove fdl-1.2.texi
36391         It is no longer used or maintained, and its use of @acronym
36392         is problematic.  See the thread containing
36393         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
36394         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
36395         * doc/old-licenses/fdl-1.2.texi: Remove.
36397         execinfo: port to FreeBSD
36398         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
36399         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
36400         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
36401         * modules/execinfo (Link): Add $(LIB_EXECINFO).
36403 2012-08-23  Jim Meyering  <meyering@redhat.com>
36405         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
36406         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
36407         to placate gcc's -Wold-style-declaration.
36409 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36411         doc: do not use @acronym
36412         * doc/inet_ntoa.texi (inet_ntoa):
36413         * doc/parse-datetime.texi (Seconds since the Epoch)
36414         (Specifying time zone rules):
36415         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
36416         Don't use @acronym.  Problem reported by John Darlington in
36417         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
36419 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36421         stdnoreturn: port to newer GCCs
36422         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
36423         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
36424         Problem reported by Jim Meyering in
36425         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
36426         Also, rename the 'test' function to a void a clash with the
36427         already-supplied 'main' function; this fixes a bug that incorrectly
36428         rejected GCC 4.7.1's <stdnoreturn.h>.
36429         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
36430         Document GCC problem.
36432 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
36434         pipe-filter: fix comment typo
36435         * lib/pipe-filter.h: Mention correct function.
36437 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36439         execinfo: new module
36440         This is for Emacs.  Currently, it provides a no-effect stub
36441         on all platforms where it does not already work.
36442         It already works on glibc-based systems, and on Solaris 11.
36443         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36444         New files.
36445         * doc/glibc-headers/execinfo.texi (execinfo.h):
36446         * MODULES.html.sh (Misc): Document it.
36448 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36450         extern-inline: support old GCC 'inline'
36451         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
36452         if available.  This applies to GCC versions 2.7 through 4.2, or
36453         when newer GCC is using -fgnu89-inline.  The goal is to address
36454         some of the performance issues mentioned by Bruno Haible in
36455         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
36457 2012-08-20  Eric Blake  <eblake@redhat.com>
36459         maint.mk: avoid redundant file name in message
36460         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
36461         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
36462         (sc_makefile_path_separator_check): Remove bogus $(ME).
36464 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
36466         timer-time: fix link order when static linking on glibc
36467         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36468         _after_ -lrt so that it's significant.
36470 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36472         timespec: omit unnecessary AC_C_INLINE
36473         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
36475         stat-time: omit unnecessary AC_C_INLINE
36476         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36477         Do not require AC_C_INLINE.
36479         ignore-value: omit unnecessary AC_C_INLINE
36480         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
36482         sys_select: avoid 'static inline'
36483         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
36485         mktime: avoid 'static inline'
36486         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
36487         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
36489 2012-08-19  Bruno Haible  <bruno@clisp.org>
36491         gnulib-tool: Improve coding style.
36492         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
36493         func_emit_lib_Makefile_am.
36494         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36496 2012-08-19  Bruno Haible  <bruno@clisp.org>
36498         gnulib-tool: Fix indentation.
36499         * gnulib-tool (func_import): Fix indentation.
36501 2012-08-19  Bruno Haible  <bruno@clisp.org>
36503         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
36504         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
36505         on the list of removed files.
36507 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36509         test-parse-datetime: avoid glibc leap-second glitch
36510         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
36511         with the 2012 rules.  Problem reported by Bruce Dubbs in
36512         <http://bugs.gnu.org/12206>.
36514 2012-08-14  Bruno Haible  <bruno@clisp.org>
36516         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
36517         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36518         from argument.
36519         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36521 2012-08-14  Eric Blake  <eblake@redhat.com>
36523         ldexp: relax license
36524         * modules/ldexp (License): Trivial relax, since the module only
36525         provides a permissively licensed m4 file.
36527 2012-08-13  Bruno Haible  <bruno@clisp.org>
36529         gnulib-tool: Fix persistence of --witness-c-macro option.
36530         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
36531         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36533 2012-08-11  Eric Blake  <eblake@redhat.com>
36535         count-leading-zeros: use a lookup table on non-gcc compilers
36536         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
36537         alternate implementation, suggested by Jim Meyering.
36539 2012-08-10  Eric Blake  <eblake@redhat.com>
36541         count-leading-zeros: new module
36542         * modules/count-leading-zeros: New module.
36543         * m4/count-leading-zeros.m4: New file.
36544         * lib/count-leading-zeros.h: Likewise.
36545         * modules/count-leading-zeros-tests: New test.
36546         * tests/test-count-leading-zeros.c: New file.
36547         * MODULES.html.sh (Integer arithmetic functions): Document it.
36549 2012-08-07  Simon Josefsson  <simon@josefsson.org>
36550             Jim Meyering  <meyering@redhat.com>
36552         maintainer-makefile: Fix syntax error with dash.
36553         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
36554         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
36556 2012-08-05  Jim Meyering  <meyering@redhat.com>
36558         extern-inline: also ignore -Wmissing-declarations
36559         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
36560         required with gcc-4.8.0-to-be.
36562         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
36563         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
36564         for /error ?([^,]*)/.  This avoids false-positives for strings like
36565         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
36567 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
36569         gnumakefile: better interaction with Automake-NG
36570         * modules/gnumakefile [Makefile.am]: The makefiles generated by
36571         Automake-NG always contain a definition of VPATH, even in non-VPATH
36572         builds (its value being simply '.' in that case).  So, in the
36573         'clean-GNUmakefile' rule, to determine whether running under a
36574         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
36575         '$(VPATH)' expands to the empty string.
36577 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
36579         base64: Use extern C scope in header file, for C++.
36580         * lib/base64.h: Add C++ namespace protection.
36582 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
36584         stat-time, timespec, u64: support naive out-of-dir builds
36585         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
36586         Use '#include "foo.h"', not '#include <foo.h>', when including
36587         one's own interface.  This works better when configuring with
36588         out-of-directory builds, since packages need not add an
36589         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
36591 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
36593         utimens: use extern-inline
36594         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
36595         * lib/utimens.h: Add copyright notice, since this is now large enough
36596         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36597         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
36598         * modules/utimens (Depends-on): Add extern-inline.
36600         u64: use extern-inline
36601         * lib/u64.c: New file.
36602         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36603         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
36604         * modules/u64 (Files): Add lib/u64.c.
36605         (Depends-on): Add extern-inline.
36606         (configure.ac): No need to require AC_C_INLINE, since extern-inline
36607         does that now.
36608         (lib_SOURCES): Add u64.c.
36610         timespec: use extern-inline
36611         * lib/timespec.c: New file.
36612         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36613         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
36614         * modules/timespec (Files): Add lib/timespec.c.
36615         (Depends-on): Add extern-inline.
36616         (lib_SOURCES): Add timespec.c.
36618         stat-time: use extern-inline
36619         * lib/stat-time.c: New file.
36620         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36621         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
36622         * modules/stat-time (Files): Add lib/stat-time.c.
36623         (Depends-on): Add extern-inline.
36624         (lib_SOURCES): Add stat-time.c.
36626         extern-inline: new module
36627         * modules/extern-inline, m4/extern-inline.m4: New files.
36628         This is for better support of 'extern inline' a la ISO C99,
36629         with a portable alternative on compilers that do not support
36630         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
36631         of the Emacs executable, when compiled with debugging disabled,
36632         which is a typical way that Emacs is built while developing.
36634 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
36636         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
36637         * build-aux/do-release-commit-and-tag: Move variable definitions
36638         together.
36639         ($branch): Instead of defaulting to "master", default to the current
36640         branch (as gnu-web-doc-update does).
36641         (help): Display the current values of the option arguments.
36642         * top/maint.mk (release-commit): New.
36643         * top/README-release: Simplify the corresponding step.
36645 2012-07-30  Eric Blake  <eblake@redhat.com>
36647         passfd: fix comment on recvfd
36648         * lib/passfd.c (recvfd): Fix comment.
36649         Reported by Jann Horn <jannhorn@googlemail.com>.
36651 2012-07-30  Jim Meyering  <meyering@redhat.com>
36653         maint.mk: avoid a sub-shell
36654         * top/maint.mk (release-prep): Remove unneeded sub-shell.
36656 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36658         maint.mk: use silent-rules support from Automake
36659         * top/maint.mk (news-check, vc-diff-check, announcement)
36660         (no-submodule-changes, alpha beta stable, release-prep)
36661         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
36663 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36665         maint.mk: provide a web-manual-update target
36666         * top/maint.mk: here.
36667         * top/README-release: Use it to simplify the web manual update step.
36669 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36671         README-release: shorten the circuit to post a news
36672         * top/README-release: Point directly to the news submission form.
36674 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36676         gnu-web-doc-update: fix --help
36677         * build-aux/gnu-web-doc-update: The information "top level" was written
36678         twice.
36680 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36682         maint.mk: absolute VPATH issue
36683         * top/maint.mk (release-prep): Help Git find .git/.
36684         From Jim Meyering.
36686 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36688         gitlog-to-changelog: fix previous change
36689         * build-aux/gitlog-to-changelog: Fix condition.
36690         Add missing ";".
36692 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36694         gitlog-to-changelog: don't expect .git to be in $srcdir
36695         Reported by Bruno Haible.
36696         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
36697         * build-aux/gitlog-to-changelog (&git_dir_option): New.
36698         Use it.
36700 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36702         maint.mk: absolute VPATH build fix
36703         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
36704         $(srcdir) is not a parent of $(builddir).
36706 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
36708         clean-temp: Fix memory leak.
36709         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
36710         'files' members of tmpdir.
36712 2012-07-27  Jim Meyering  <meyering@redhat.com>
36714         maint.mk: new rule: refresh-gnulib-patches
36715         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
36716         Use this rule to refresh them.
36717         * top/maint.mk (refresh-gnulib-patches): New rule.
36719 2012-07-24  Bruno Haible  <bruno@clisp.org>
36721         gnulib-tool: Fix handling of inctests variable.
36722         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
36723         Reported by Nick Bowler <nbowler@elliptictech.com>.
36725 2012-07-22  Bruno Haible  <bruno@clisp.org>
36727         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
36728         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
36729         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36730         Remove exemption for getpass.h.
36731         Suggested by Eric Blake.
36733 2012-07-20  Eric Blake  <eblake@redhat.com>
36735         verify: document conflict with -Wnested-externs
36736         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
36738         maint.mk: forbid exit(-1)
36739         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
36741 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36743         fsusage: port back to Solaris
36744         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
36745         error (fsd not declared) on Solaris 10.  Reported privately by
36746         Andrew Borodin.
36748 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
36750         gnu-web-doc-update: fix error messages
36751         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
36753         gnu-web-doc-update: check the requirements.
36754         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
36755         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
36756         * build-aux/bootstrap (find_tool): Comment change.
36758 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
36760         maint.mk: minor simplication.
36761         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
36762         for default values.
36764 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
36766         gitlog-to-changelog: VPATH build issues
36767         If builddir is not a subdirectory of srcdir, running git from it will
36768         fail.
36769         * build-aux/gitlog-to-changelog (--srcdir): New option.
36771 2012-07-15  Bruno Haible  <bruno@clisp.org>
36773         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
36774         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
36775         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
36776         Remove exemption for fpending.h.
36777         Suggested by Eric Blake.
36779 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36781         pthread_sigmask: fix bug on FreeBSD 9
36782         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
36783         Include string.h.
36784         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
36785         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
36786         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
36787         but pthread_sigmask (1729, NULL, NULL) returns zero.
36788         See <http://bugs.gnu.org/11884>.
36789         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
36790         by inspecting whether the main call changed the old mask.
36792 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
36794         README-release: make it more legible
36795         * top/README-release: Improve typography slightly.
36797 2012-07-15  Jim Meyering  <meyering@redhat.com>
36799         maint: require that each sc_... command start with "@"
36800         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
36801         "make sc_maint" helps us avoid this nit.
36803 2012-07-15  Jim Meyering  <meyering@redhat.com>
36805         maint.mk: add leading "@" to quiet new "make syntax-check" rule
36806         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
36808 2012-07-13  Eric Blake  <eblake@redhat.com>
36810         maint.mk: new syntax check for HAVE_DECL checks
36811         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
36812         * cfg.mk
36813         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36814         Exempt some false positives.
36815         Based on a report by Karel Zak.
36817         argp: make HAVE_DECL usage consistent
36818         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
36819         macros, not whether they are defined.
36820         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
36821         convention with other declaration checks.
36822         Reported by Karel Zak, with suggestions from Paul Eggert.
36824         stat-time: relax license to LGPLv2+
36825         * modules/stat-time (License): Relax, with consent of all authors.
36827         strndup: fix m4 usage error
36828         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
36829         defined, to either 0 or 1.
36830         Reported by Karel Zak.
36832 2012-07-11  Jim Meyering  <meyering@redhat.com>
36834         maint: enable the sc_avoid_if_before_free syntax-check rule
36835         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
36836         (if_before_free_offenders_): Define.
36837         (if_before_free_basename_re_): Define.
36838         Exempt current files with useless if-before-free.
36840 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36842         gettext: do not assume '#define ... defined ...' behavior
36843         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
36844         Do not use '#define FOO ... defined BAR ...', as the C standard says
36845         it's not portable to expect that this works after macro expansion.
36846         Problem reported for gzip by Steven M. Schweda in
36847         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
36849 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36851         getloadavg: clean out old Emacs and Autoconf cruft
36852         See Glenn Morris in <http://bugs.gnu.org/11905>.
36853         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
36854         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
36855         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
36856         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
36858 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
36860         bootstrap: let warn be like tests/init.sh's warn_
36861         Reported by Jim Meyering.
36862         * build-aux/bootstrap (warn): Remove, replaced by...
36863         (warnf_, warn_): these.
36864         Adjust callers.
36865         Shorten messages that no longer fit in 80 columns.
36867 2012-07-09  Bruno Haible  <bruno@clisp.org>
36869         getopt: Simplify after Emacs changed.
36870         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
36871         (gl_GETOPT_IFELSE): Remove macro.
36873 2012-07-09  Jim Meyering  <meyering@redhat.com>
36875         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
36876         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
36878         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
36879         Bugs in both of those conspired to make the
36880         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
36881         _sc_search_regexp's handling of non-empty $in_files would filter
36882         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
36883         choice of in_files value meant there would be no match in most
36884         projects, due to the presence of two or more Makefile.in files.
36885         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
36886         Fix a bug in how a non-empty $$in_files was processed:
36887         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
36888         in spite of the name, it's a regexp, not a list of file names.
36890 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
36892         getloadavg, getopt: fix commentary re configure.in
36893         Autoconf is deprecating the name 'configure.in', so change it to
36894         to the new name 'configure.ac' in a couple of places.
36895         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
36896         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
36897         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
36898         Emacs has renamed it to configure.ac, and it no longer refers
36899         to these macros anyway.
36901         timespec: mark functions with const attributes
36902         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
36903         Mark with _GL_ATTRIBUTE_CONST.
36905 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
36907         canonicalize[-lgpl]: handle "guessing" values when cross-building
36908         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36909         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
36910         matches "*yes" instead of just "yes".  Regression introduced in commit
36911         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
36913 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
36914             Bruno Haible  <bruno@clisp.org>
36916         canonicalize: make the right guess when cross-compiling to GNU
36917         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
36918         determine whether cross-compiling to glibc systems, so as to
36919         include GNU/Hurd.
36921 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36923         timespec-sub: avoid duplicate include
36924         * lib/timespec-sub.c: Do not include <config.h> twice.
36925         Reported by Juanma Barranquero.
36927 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
36929         bootstrap: use a more consistent error reporting scheme
36930         * build-aux/bootstrap (warn, die): New.
36931         Use them.
36933 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
36935         sys_time: allow too-wide tv_sec
36936         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
36937         timeval even if tv_sec is wider than time_t.  This allows
36938         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
36939         as without this patch gnulib replaces struct timeval
36940         and OpenBSD futimes therefore has a type mismatch.
36941         * doc/posix-headers/sys_time.texi: Mention this.
36943         pthread: check for both pthread_create and pthread_join
36944         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
36945         alter the check so that it tests for both pthread_create and
36946         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
36947         Suggested by Bruno Haible and Richard Yao in
36948         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
36950         parse-datetime: doc tuneup
36951         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
36952         spacing issues.
36954 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
36956         do-release-commit-and-tag: fix the previous commit
36957         * build-aux/do-release-commit-and-tag: Actually the test was right,
36958         but the comment and the error message were misleading.
36959         Fix comment, and improve error message.
36960         Perform check first, so that NEWS is not modified uselessly.
36962         do-release-commit-and-tag: fix typo
36963         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
36964         _not_ start with a stub.
36966 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
36968         pthread: check for pthread_create, not pthread_join
36969         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
36970         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
36971         pthread_join in libc.  I hope this removes the need for all the
36972         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
36973         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
36975 2012-07-04  Jim Meyering  <meyering@redhat.com>
36977         parse-datetime: fix failure to diagnose invalid input
36978         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
36979         rather than diagnosing the invalid input.  Now it reports this:
36980         date: invalid date '\260'
36981         * lib/parse-datetime.y (to_uchar): Define.
36982         (yylex): Don't sign-extend "other" bytes.
36983         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
36984         Thanks to Bruno Haible for the patch to this file.
36985         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
36986         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
36988 2012-07-03  Jim Meyering  <meyering@redhat.com>
36990         bootstrap: do not require now-removed build-aux/missing
36991         Now that build-aux/missing is, er, missing, bootstrap would
36992         silently fail.
36993         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
36994         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
36995         no longer part of gnulib.
36996         Diagnose the failure.
36998 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37000         alloca: add support for HP NonStop TNS/E native
37001         * lib/alloca.in.h (alloca): Support the new host.
37002         From a suggestion by Joachim Schmitz in
37003         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37005 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37007         fsusage: remove code not needed on non GNU/Linux systems.
37009         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37010         Don't include headers no longer needed in this case.
37011         * lib/fsusage.c [STAT_STATVFS &&
37012         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37013         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37015 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37017         fsusage: include files needed for glibc 2.6 fallback
37018         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37019         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37020         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37021         Problem reported by Ludovic Courtès in
37022         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37024         fsusage: avoid needless check on GNU/Linux
37025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37026         on GNU/Linux systems, since it can't possibly work.
37028 2012-07-01  Bruno Haible  <bruno@clisp.org>
37030         log: Fix an autoconf >= 2.64 warning.
37031         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37032         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37034 2012-06-28  Bruno Haible  <bruno@clisp.org>
37036         log10f: Fix possible configuration problem.
37037         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37038         $LOGF_LIBM.
37039         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37041 2012-06-28  Bruno Haible  <bruno@clisp.org>
37043         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37044         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37045         not gl_cv_func_unlink_works.
37046         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37048 2012-06-27  Eric Blake  <eblake@redhat.com>
37050         config: drop scripts that automake says are not independent
37051         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37052         * build-aux/elisp-comp: Delete.
37053         * build-aux/missing: Likewise.
37054         * build-aux/ylwrap: Likewise.
37055         * modules/elisp-comp: Likewise.
37056         * MODULES.html.sh: Drop mention of elisp-comp.
37057         * NEWS: Mention this.
37059 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37061         root-uid: new module
37062         This is for portability to Tandem's NonStop Kernel.
37063         * lib/root-uid.h, modules/root-uid: New files.
37064         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37065         * lib/write-any-file.c, tests/test-sethostname2.c:
37066         Include "root-uid.h".
37067         * lib/euidaccess.c (euidaccess):
37068         * lib/pt_chown.c (main):
37069         * lib/unlinkdir.c (cannot_unlink_dir):
37070         * lib/write-any-file.c (can_write_any_file):
37071         * m4/mknod.m4 (gl_FUNC_MKNOD):
37072         * tests/test-sethostname2.c (geteuid, main):
37073         Don't assume ROOT_UID == 0.
37074         * modules/euidaccess (Depends-on):
37075         * modules/pt_chown (Depends-on):
37076         * modules/sethostname-tests (Depends-on):
37077         * modules/unlinkdir (Depends-on):
37078         * modules/write-any-file (Depends-on):
37079         Add root-uid.
37081         regex: use locale-independent comparison for codeset name
37082         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37083         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37084         for codeset name.
37085         * lib/regex_internal.h: Do not include <strings.h>, since we
37086         no longer use strcasecmp.
37087         * modules/regex (Depends-on): Remove strcase.
37089 2012-06-23  Bruno Haible  <bruno@clisp.org>
37091         getopt-posix: No longer guarantee that option processing is resettable.
37092         * doc/posix-functions/getopt.texi: Drop description of problem with
37093         internal state. Fix info about mingw and msvc9.
37094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37095         option processing by getopt(). Run three test programs instead of one.
37096         Simplify cross-compilation guess.
37097         * NEWS: Mention the change.
37098         Reported by Rich Felker <dalias@aerifal.cx>.
37100 2012-06-26  Bruno Haible  <bruno@clisp.org>
37102         argp, regex: Ensure strcasecmp gets declared.
37103         * lib/argp-help.c: Include <strings.h>.
37104         * lib/regex_internal.h: Likewise.
37105         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37107 2012-06-24  Bruno Haible  <bruno@clisp.org>
37109         ptsname_r: Make it consistent with ptsname on AIX.
37110         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37111         implementation as for OSF/1.
37112         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37113         a pty master.
37115         ptsname_r: Make it consistent with ptsname on OSF/1.
37116         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37117         OSF/1.
37119 2012-06-24  Bruno Haible  <bruno@clisp.org>
37121         ttyname_r: Fix result on OSF/1, Solaris.
37122         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37124 2012-06-24  Bruno Haible  <bruno@clisp.org>
37126         ptsname_r: Add support for Solaris.
37127         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37128         Solaris.
37130         ptsname_r: Fix test failure on native Windows.
37131         * modules/ptsname_r (Depends-on): Add isatty.
37133         ptsname_r: Fix test failures on IRIX, Solaris.
37134         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37135         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37136         accordingly.
37137         * lib/ptsname_r.c: Include <fcntl.h>.
37138         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37139         set errno if fd is invalid.
37140         * tests/test-isatty.c (main): Update comments.
37142 2012-06-24  Bruno Haible  <bruno@clisp.org>
37144         ptsname test: Extend test.
37145         * tests/test-ptsname.c: Include <errno.h>.
37146         (main): Test behaviour with invalid file descriptor.
37148 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37150         time: fix obsolete comment
37151         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37152         reference to HAVE_STRUCT_TIMESPEC in comment.
37154 2012-06-23  Bruno Haible  <bruno@clisp.org>
37156         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37158         does not handle abbreviated long options with equivalent
37159         disambiguations, set gl_replace_getopt to yes.
37160         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37162 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37164         time_r: fix typo that always overrode localtime_r decl
37165         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37166         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37167         not in a standard include.
37169 2012-06-22  Bruno Haible  <bruno@clisp.org>
37171         Write "Mac OS X" instead of "MacOS X".
37172         * README: Write "Mac OS X" instead of "MacOS X".
37173         * build-aux/bootstrap: Likewise.
37174         * build-aux/install-reloc: Likewise.
37175         * lib/acl-internal.h: Likewise.
37176         * lib/acl_entries.c: Likewise.
37177         * lib/argp-ba.c: Likewise.
37178         * lib/argp-pv.c: Likewise.
37179         * lib/config.charset: Likewise.
37180         * lib/copy-acl.c: Likewise.
37181         * lib/csharpexec.c: Likewise.
37182         * lib/euidaccess.c: Likewise.
37183         * lib/fbufmode.c: Likewise.
37184         * lib/fflush.c: Likewise.
37185         * lib/file-has-acl.c: Likewise.
37186         * lib/filemode.h: Likewise.
37187         * lib/fpurge.c: Likewise.
37188         * lib/freadable.c: Likewise.
37189         * lib/freadahead.c: Likewise.
37190         * lib/freading.c: Likewise.
37191         * lib/freadptr.c: Likewise.
37192         * lib/freadseek.c: Likewise.
37193         * lib/fseeko.c: Likewise.
37194         * lib/fseterr.c: Likewise.
37195         * lib/fsusage.c: Likewise.
37196         * lib/fwritable.c: Likewise.
37197         * lib/fwriting.c: Likewise.
37198         * lib/get-rusage-as.c: Likewise.
37199         * lib/get-rusage-data.c: Likewise.
37200         * lib/getdomainname.c: Likewise.
37201         * lib/idpriv-drop.c: Likewise.
37202         * lib/idpriv-droptemp.c: Likewise.
37203         * lib/localcharset.c: Likewise.
37204         * lib/locale.in.h: Likewise.
37205         * lib/localename.c: Likewise.
37206         * lib/mbsrtowcs-state.c: Likewise.
37207         * lib/nproc.c: Likewise.
37208         * lib/passfd.c: Likewise.
37209         * lib/posix_openpt.c: Likewise.
37210         * lib/printf-parse.c: Likewise.
37211         * lib/progreloc.c: Likewise.
37212         * lib/safe-read.h: Likewise.
37213         * lib/safe-write.h: Likewise.
37214         * lib/sched.in.h: Likewise.
37215         * lib/set-mode-acl.c: Likewise.
37216         * lib/signal.in.h: Likewise.
37217         * lib/stdint.in.h: Likewise.
37218         * lib/stdio-impl.h: Likewise.
37219         * lib/stdlib.in.h: Likewise.
37220         * lib/strtod.c: Likewise.
37221         * lib/sys_select.in.h: Likewise.
37222         * lib/tcgetsid.c: Likewise.
37223         * lib/unistd.in.h: Likewise.
37224         * lib/unlockpt.c: Likewise.
37225         * lib/vasnprintf.c: Likewise.
37226         * lib/vma-iter.c: Likewise.
37227         * lib/wcsrtombs-state.c: Likewise.
37228         * m4/acl.m4: Likewise.
37229         * m4/acosl.m4: Likewise.
37230         * m4/asinl.m4: Likewise.
37231         * m4/atanl.m4: Likewise.
37232         * m4/c-stack.m4: Likewise.
37233         * m4/cosl.m4: Likewise.
37234         * m4/expl.m4: Likewise.
37235         * m4/extensions.m4: Likewise.
37236         * m4/fdatasync.m4: Likewise.
37237         * m4/fmal.m4: Likewise.
37238         * m4/frexp.m4: Likewise.
37239         * m4/frexpf.m4: Likewise.
37240         * m4/frexpl.m4: Likewise.
37241         * m4/fsusage.m4: Likewise.
37242         * m4/getdomainname.m4: Likewise.
37243         * m4/getloadavg.m4: Likewise.
37244         * m4/getopt.m4: Likewise.
37245         * m4/gettext.m4: Likewise.
37246         * m4/gnulib-common.m4: Likewise.
37247         * m4/intdiv0.m4: Likewise.
37248         * m4/intlmacosx.m4: Likewise.
37249         * m4/largefile.m4: Likewise.
37250         * m4/ldexpl.m4: Likewise.
37251         * m4/link-follow.m4: Likewise.
37252         * m4/locale-ar.m4: Likewise.
37253         * m4/locale-fr.m4: Likewise.
37254         * m4/locale-ja.m4: Likewise.
37255         * m4/locale-tr.m4: Likewise.
37256         * m4/locale-zh.m4: Likewise.
37257         * m4/locale_h.m4: Likewise.
37258         * m4/lock.m4: Likewise.
37259         * m4/logl.m4: Likewise.
37260         * m4/mathfunc.m4: Likewise.
37261         * m4/minus-zero.m4: Likewise.
37262         * m4/mktime.m4: Likewise.
37263         * m4/mmap-anon.m4: Likewise.
37264         * m4/multiarch.m4: Likewise.
37265         * m4/nanosleep.m4: Likewise.
37266         * m4/nocrash.m4: Likewise.
37267         * m4/poll.m4: Likewise.
37268         * m4/printf-frexpl.m4: Likewise.
37269         * m4/printf.m4: Likewise.
37270         * m4/signbit.m4: Likewise.
37271         * m4/sinl.m4: Likewise.
37272         * m4/sqrtl.m4: Likewise.
37273         * m4/strerror_r.m4: Likewise.
37274         * m4/tanl.m4: Likewise.
37275         * m4/threadlib.m4: Likewise.
37276         * m4/ttyname_r.m4: Likewise.
37277         * m4/unlink.m4: Likewise.
37278         * m4/visibility.m4: Likewise.
37279         * m4/wcwidth.m4: Likewise.
37280         * tests/minus-zero.h: Likewise.
37281         * tests/test-alloca-opt.c: Likewise.
37282         * tests/test-copy-acl.sh: Likewise.
37283         * tests/test-copy-file.sh: Likewise.
37284         * tests/test-fdatasync.c: Likewise.
37285         * tests/test-file-has-acl.sh: Likewise.
37286         * tests/test-flock.c: Likewise.
37287         * tests/test-fsync.c: Likewise.
37288         * tests/test-localename.c: Likewise.
37289         * tests/test-malloca.c: Likewise.
37290         * tests/test-nonblocking-pipe.h: Likewise.
37291         * tests/test-nonblocking-socket.h: Likewise.
37292         * tests/test-openpty.c: Likewise.
37293         * tests/test-posix_openpt.c: Likewise.
37294         * tests/test-ptsname.c: Likewise.
37295         * tests/test-ptsname_r.c: Likewise.
37296         * tests/test-sameacls.c: Likewise.
37297         * tests/test-select.h: Likewise.
37298         * tests/test-set-mode-acl.sh: Likewise.
37299         * tests/test-snprintf-posix.h: Likewise.
37300         * tests/test-sprintf-posix.h: Likewise.
37301         * tests/test-strtod.c: Likewise.
37302         * tests/test-time.c: Likewise.
37303         * tests/test-vasnprintf-posix.c: Likewise.
37304         * tests/test-vasprintf-posix.c: Likewise.
37305         * doc/acl-resources.txt: Likewise.
37306         * doc/**/*.texi: Likewise.
37307         Reported by Max Horn <max@quendi.de>.
37309 2012-06-22  Bruno Haible  <bruno@clisp.org>
37311         grantpt: Relax requirement regarding invalid file descriptors.
37312         * lib/grantpt.c: Don't include <fcntl.h>.
37313         (grantpt): Don't verify the validity of the file descriptor.
37314         * modules/grantpt (Depends-on): Remove fcntl-h.
37315         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37316         file descriptors.
37317         * doc/posix-functions/grantpt.texi: Document more platforms on which
37318         grantpt succeeds for invalid file descriptors.
37319         Reported by Rich Felker <dalias@aerifal.cx>.
37321 2012-06-22  Bruno Haible  <bruno@clisp.org>
37323         fbufmode test: Don't test unportable behaviour.
37324         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37325         (main): Invoke it three times.
37326         Reported by Szabolcs Nagy <nsz@port70.net>
37327         and Rich Felker <dalias@aerifal.cx>.
37329 2012-06-21  Bruno Haible  <bruno@clisp.org>
37331         gnulib-tool: Refactor inctests variable.
37332         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37333         (func_modules_transitive_closure,
37334         func_modules_transitive_closure_separately,
37335         func_import, func_create_testdir): Update.
37337         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37338         * gnulib-tool: Accept option --without-tests.
37339         (func_usage): Document --without-tests option. Rearrange.
37340         (inctests): Normalize according to the mode.
37341         * NEWS: Mention the change.
37342         Suggested by Simon Josefsson.
37344 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37346         parse-duration test: Avoid spurious output.
37347         * tests/test-parse-duration.sh: Reindent with leading tabs.
37349 2012-06-21  Jim Meyering  <meyering@redhat.com>
37351         maint: disable the strncpy prohibition
37352         * cfg.mk: Do not prohibit strncpy here.
37354 2012-06-21  Bruno Haible  <bruno@clisp.org>
37356         nonblocking: Avoid compilation error on mingw64.
37357         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37358         fscanf.
37359         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37360         * modules/vfscanf (configure.ac): Likewise.
37361         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37362         definition only if stdio.h has prepared it.
37363         Reported by Daniel P. Berrange <berrange@redhat.com>.
37365 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37367         gnulib-tool: Use readlink if it is available.
37368         * gnulib-tool (func_readlink): Choose function more appropriately.
37370 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37372         posixtm-tests: port to buggy compiler
37373         Problem reported by Simon Josefsson in
37374         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37375         * modules/posixtm-tests (Depends-on): Add stdint.
37376         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37377         Now of type int_least64_t, not int64_t, both because that's
37378         what INT64_C returns and because int_least64_t works even
37379         on 72-bit hosts.
37380         (T): Use INT64_C on constants outside the traditional int range,
37381         to work around compiler bug noted by Simon.
37383         mktime: fix integer overflow in 'configure'-time test
37384         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
37385         after integer overflow.  Problem reported by Rich Felker in
37386         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
37387         Also, don't look for further instances of a bug if we've already
37388         found one instance; this helps 'configure' run faster.
37390 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
37392         tmpfile, clean-temp: Fix invocation of GetVersionEx.
37393         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
37394         GetVersionEx correctly.
37395         * lib/clean-temp.c (supports_delete_on_close): Likewise.
37397 2012-06-20  Bruno Haible  <bruno@clisp.org>
37399         fdopen: Allow implementations that don't reject invalid fd arguments.
37400         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
37401         succeeds.
37402         Reported by Rich Felker <dalias@aerifal.cx>.
37404 2012-06-20  Simon Josefsson  <simon@josefsson.org>
37406         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
37407         bring in LIBINTL.
37409 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37411         init.sh: do not rely on autoupated PWD
37412         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
37413         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
37414         Although Nelson's bug was not necessarily fixed by this patch,
37415         it seems wise to make the change for safety.
37416         * tests/init.sh (path_prepend_): Do not rely on PWD updating
37417         automagically after 'cd'; this is not reliable on older shells.
37418         (setup_): Fail if we cannot cd to temporary directory.
37420 2012-06-19  Bruno Haible  <bruno@clisp.org>
37422         stat, fstat: Avoid warnings on mingw64.
37423         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
37424         redefining.
37425         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
37426         Reported by Daniel P. Berrange <berrange@redhat.com>.
37428 2012-06-19  Bruno Haible  <bruno@clisp.org>
37430         stdioext: Add support for musl libc.
37432         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
37433         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
37435         * m4/fseterr.m4: New file.
37436         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
37437         function exists.
37438         * modules/fseterr (Files): Add m4/fseterr.m4.
37439         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
37440         __fseterr does not exist.
37441         (Makefile.am): Remove fseterr.c from lib_SOURCES.
37443         * lib/freadable.h: Update comment.
37445         * lib/fwritable.h: Update comment.
37447         * lib/freading.h: Update comment.
37449         * lib/fwriting.h: Update comment.
37451         * m4/freadahead.m4: New file.
37452         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
37453         that function exists.
37454         * modules/freadahead (Files): Add m4/freadahead.m4.
37455         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37456         __freadahead does not exist.
37457         (Makefile.am): Remove freadahead.c from lib_SOURCES.
37459         * m4/freadptr.m4: New file.
37460         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
37461         function exists.
37462         * modules/freadptr (Files): Add m4/freadptr.m4.
37463         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37464         __freadptr does not exist.
37465         (Makefile.am): Remove freadptr.c from lib_SOURCES.
37467         * m4/freadseek.m4: New file.
37468         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
37469         exists.
37470         * modules/freadseek (Files): Add m4/freadseek.m4.
37471         (configure.ac): Invoke gl_FUNC_FREADSEEK.
37473         * lib/fpurge.c (fpurge): Update comment.
37475         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
37477 2012-06-19  Bruno Haible  <bruno@clisp.org>
37479         *printf-posix: Put more info into config.log.
37480         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
37481         exit code into config.log.
37483 2012-06-19  Bruno Haible  <bruno@clisp.org>
37485         getopt-gnu: Fix exit code overflow in autoconf test.
37486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
37487         to keep them below < 128.
37489 2012-06-17  Jim Meyering  <meyering@redhat.com>
37491         maint.mk: fix typo in code to derive GPG key at release time
37492         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
37494 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
37496         regex: avoid warning when pointers are not long
37497         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
37498         and uintptr_t, not long, for portability to hosts where pointers and
37499         long have different sizes.  Issue noted by Daniel P. Berrange in
37500         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
37501         and fix suggested by Bruno Haible in
37502         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
37504 2012-06-17  Bruno Haible  <bruno@clisp.org>
37506         dummy: Relicense into the public domain.
37507         * modules/dummy (License): Set to "public domain".
37508         Suggested by Reuben Thomas.
37510 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37512         announce-gen: VPATH issues
37513         * build-aux/announce-gen (--srcdir): New option, used to trim the
37514         $srcdir part of the path from $builddir to NEWS.
37515         * top/maint.mk (announcement): Adjust.
37517 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37519         gnu-web-doc-update: VPATH builds
37520         * build-aux/gnu-web-doc-update (--builddir): New option.
37521         Revamp the handling of options.
37522         Prefer $(...) to `...`.
37523         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
37524         the template, and it is GNU mktemp specific.
37525         Prefer set -e to long series of &&.
37526         Restore the initial git branch, not "master".
37527         Properly initialize submodules (don't rely only on bootstrap).
37528         Do not reconfigure blindly, use config.status.
37529         * top/README-release: Update instructions for gnu-web-doc-update.
37531 2012-06-11  Jim Meyering  <meyering@redhat.com>
37533         maint.mk: revert most of the previous change re "all these"
37534         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
37535         For rationale, see the discussion at
37536         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
37538 2012-06-10  Karl Berry  <karl@gnu.org>
37540         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
37542         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
37544 2012-06-10  Bruce Korb  <bkorb@gnu.org>
37546         parse-duration: Relicense under LGPLv2+.
37547         * modules/parse-duration (License): Change to LGPLv2+.
37549 2012-06-10  Jim Meyering  <meyering@redhat.com>
37551         maint.mk: prohibit common grammar error: "all these"
37552         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
37553         the list of prohibited word sequences.  It should be "all of these".
37554         * lib/tempname.c (__gen_tempname): Fix one of them.
37556 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37558         do-release-commit-and-tag: support VPATH builds
37559         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
37560         (noteworthy): Defined earlier to factor its value.
37561         (noteworthy_stub): New.
37562         Use it to factor.
37563         (help_version): Split into...
37564         (help, version): these.
37565         Adjust the option processing part.
37566         Support "--option=value" in addition to "--option value".
37567         (builddir): New.
37568         (--builddir): New option.
37569         * top/README-release: Document this.
37570         Reword slightly so that the reader cannot understand that he
37571         has to do these steps before calling do-release-commit-and-tag.
37573 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37575         readme-release: also require announce-gen and maintainer-makefile
37576         * modules/readme-release (Depends-on): here.
37577         * modules/announce-gen, modules/do-release-commit-and-tag,
37578         modules/gnu-web-doc-update, modules/maintainer-makefile
37579         (Description): Point to readme-release.
37581 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37583         maint.mk: fix VPATH issues.
37584         * top/maint.mk (news-check): GNU Make understand $< very well.
37585         (release-prep): NEWS is in $(srcdir).
37587 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
37589         readme-release: require the promoted modules.
37590         * modules/readme-release (Depends-on): Add
37591         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
37592         in this text.
37594 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37595             Bruno Haible  <bruno@clisp.org>
37597         error, strerror-override: Support mingw64 from Fedora 17.
37598         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
37599         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
37600         EINPROGRESS.
37601         * lib/strerror-override.h (strerror_override): Test it.
37602         * lib/strerror-override.c (strerror_override): Likewise.
37603         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
37605 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37606             Bruno Haible  <bruno@clisp.org>
37608         error, strerror-override: Support mingw64 from Fedora 17.
37609         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
37610         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
37611         * lib/strerror-override.h (strerror_override): Test it.
37612         * lib/strerror-override.c (strerror_override): Likewise.
37614 2012-06-03  Bruno Haible  <bruno@clisp.org>
37616         error, strerror-override: Support new errno values from POSIX:2008.
37617         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
37618         ENOTRECOVERABLE.
37619         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
37620         platforms.
37621         * lib/strerror-override.c (strerror_override): Conditionalize the
37622         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
37623         * lib/strerror-override.h (strerror_override): Declare also if
37624         GNULIB_defined_EOWNERDEAD is defined.
37625         * tests/test-errno.c (e130, e131): New variables.
37626         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
37627         ENOTRECOVERABLE.
37628         Reported by Paolo Bonzini.
37630 2012-05-31  Jim Meyering  <meyering@redhat.com>
37632         savewd: add missing dependency on sys_wait module
37633         * modules/savewd (Depends-on): Add sys_wait, needed at least
37634         for MSVC.  Report and suggested change by Michael Goffioul.
37636 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
37638         system-quote-tests: port to CentOS 5
37639         Problem reported by Tom G. Christensen in
37640         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
37641         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
37643 2012-05-29  Jim Meyering  <meyering@redhat.com>
37645         maint: fix typos in comments and ChangeLog
37646         Culprits identified and fixed mostly automatically using these commands:
37647         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
37648         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
37649         using http://github.com/lyda/misspell-check
37650         * ChangeLog: Fix typos.
37651         * doc/solaris-versions: Likewise.
37652         * lib/regexec.c (re_search_stub): Likewise.
37653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37655 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37657         manywarnings: remove duplicate -Wmultichar entry
37658         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
37659         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
37660         so keep the entry marked as documented.
37662 2012-05-27  Karl Berry  <karl@gnu.org>
37664         * config/srclist.txt (mktime.c): remove last libc sync,
37665         perhaps just temporarily.
37667 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37669         regex: don't assume uint64_t or uint32_t
37670         * lib/regcomp.c (init_word_char): Don't assume that the types
37671         uint64_t and uint32_t exist.  The C standard doesn't guarantee
37672         them, and on some 32-bit compilers there is no uint64_t.
37673         Problem reported by Gianluigi Tiesi in
37674         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
37676 2012-05-25  Jim Meyering  <meyering@redhat.com>
37678         maint.mk: add strncpy-prohibiting syntax-check rule
37679         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
37681 2012-05-24  Jim Meyering  <meyering@redhat.com>
37683         maint.mk: compute $(gpg_key_ID) more portably
37684         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
37685         That use of sed is not portable to some fringe systems.
37686         Reported by Paul Eggert in
37687         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
37689 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37691         mktime: sync from glibc
37692         * config/srclist.txt: Uncomment mktime.c.
37693         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
37694         First, indent with tabs, since glibc uses tabs and doesn't want to
37695         change and we'd rather be identical to glibc.  Also, two small
37696         coding changes:
37697         (isdst_differ): Use &&, not &, as && is the usual style.
37698         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
37699         for clarity.
37701 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37703         announce-gen: du -h is more portable than du --human
37704         * build-aux/announce-gen (sizes): Invoke du with -h instead
37705         of --human.  Accept leading white space in its output.
37707 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37709         announce-gen: Improve diagnostics.
37710         * build-aux/announce-gen: When parsing command line options,
37711         prefer "announce-gen: option --release-type requires an argument"
37712         to "Option release-type requires an argument".
37714 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37716         maint.mk: gpg_key_ID: use sed more portably
37717         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
37718         the closing brace.
37719         (refresh-po): Fuse two sed invocations into one.
37721 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
37723         gitlog-to-changelog: support the log message format used in Bison.
37724         * build-aux/gitlog-to-changelog: Support --strip-tab and
37725         --strip-cherry-picked.
37727 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37729         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
37730         the rest of the current time slice to another thread in the current
37731         process. So if the thread that feeds the file decscriptor we're
37732         polling is not in the current process, we get busy-waiting.
37733         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
37734         Patch from Theodore Leblond.
37735         * lib/select.c: Split polling out of the loop that sets the output
37736         fd_sets.  Check for zero result and loop if the wait timeout is
37737         infinite.
37739 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37741         select: Fix build error on IRIX 6.5.
37742         * lib/select.c: Include stddef.h for NULL.
37744 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37746         gc: fix libgcrypt detection on older machines.
37747         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
37748         copyright years because the file has been distributed every year
37749         since it was created.
37751 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37753         crypto: fix bug in large buffer handling
37754         Problem reported by Serge Belyshev for glibc in
37755         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
37756         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
37757         * lib/md4.c (md4_process_block):
37758         * lib/md5.c (md5_process_block):
37759         * lib/sha1.c (sha1_process_block):
37760         * lib/sha256.c (sha256_process_block):
37761         Don't assume the buffer length is less than 2**32.
37762         * lib/sha512.c (sha512_process_block): Likewise.
37763         Here, the bug is present only in the rare case where the host does
37764         not support uint64_t or where size_t is wider than 64 bits.
37765         Use u64size to work around the problems.
37766         * lib/u64.h (u64size): New macro.
37768 2012-05-15  Pádraig Brady  <P@draigBrady.com>
37770         fsusage: fix block size returned on older Linux 2.6
37772         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
37773         which is available since Linux 2.6.
37774         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
37775         when the member is available so it can be used as a fallback.
37776         * doc/posix-functions/statvfs.texi: Mention the hang issue
37777         on Linux < 2.6.36.
37779 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37781         bootstrap: suppress stderr chatter
37782         * build-aux/bootstrap (insert_sorted_if_absent, main program):
37783         Omit unnecessary chatter to stderr.  The main program chatter
37784         was there only inadvertantly.
37786         bootstrap: .gitignore files created by autopoint, libtool
37787         I ran into this problem when bootstrapping the latest diffutils.
37788         After './bootstrap', 'git status' reported lots of untracked files
37789         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
37790         autopoint and do not need to be version-controlled.
37791         * build-aux/bootstrap: Put into .gitignore the files that
37792         autopoint and libtool create, by keeping track of files that exist
37793         after but not before these programs are run.
37794         (version_controlled_file): Move up.  2nd arg is now full file
37795         name, not base name; this is more convenient.  Put CVS at the end,
37796         as it's now somewhat deprecated.
37798 2012-05-14  Jim Meyering  <meyering@redhat.com>
37800         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
37801         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
37802         definition.  Reported by Bruno Haible.
37804 2012-05-13  Bruno Haible  <bruno@clisp.org>
37805             Paul Eggert  <eggert@cs.ucla.edu>
37807         binary-io: Define set_binary_mode function.
37808         * lib/binary-io.h (set_binary_mode): New function.
37809         (SET_BINARY): Define in terms of set_binary_mode.
37810         * modules/binary-io (configure.ac): Require AC_C_INLINE.
37811         * tests/test-binary-io.c (main): Accept an argument, and test either
37812         set_binary_mode or SET_BINARY depending on the argument.
37813         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
37814         argument. Clean up also t-bin-out0.tmp.
37816 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
37818         bootstrap: take advantage of POSIX shell features
37820         The 'bootstrap' script offered by Gnulib script already uses POSIX
37821         shell features (like $((...)) arithmetic expansions) that are not
37822         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
37823         means that bootstrap must already be run using a proper POSIX shell,
37824         which will thus provide more features, like ${var#pattern} parameter
37825         expansion or inversion of a command exit status with '!'.  We can
37826         thus use these features to improve the clarity and the performances
37827         of the bootstrap script.
37829         Suggested by Eric Blake.
37831         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
37832         of sed/expr plus command substitutions, to save some forks.  While
37833         we are at it, prefer the POSIX $(...) form of command substitution,
37834         rather than the legacy form `...` (since the former is visually
37835         clearer and interacts better with quoting), and prefer the idiom:
37836           "if ! CMD; then ACTION ..."
37837         over the idiom:
37838           "if CMD; then :; else ACTION ..."
37839         which was required by legacy Bourne shells not supporting '!'.
37841 2012-05-12  Bruno Haible  <bruno@clisp.org>
37843         system-quote: Add more comments.
37844         * lib/system-quote.h: Add more comments about wilcards and limitations.
37845         Suggested by Eli Zaretskii <eliz@gnu.org>.
37847         sh-quote, system-quote: Add comments about wildcards.
37848         * lib/sh-quote.h: Clarify what happens with wildcard characters.
37849         * lib/system-quote.h: Likewise.
37850         Reported by Eli Zaretskii <eliz@gnu.org>.
37852 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37854         fsusage: check for GNU/Linux statvfs problem dynamically
37855         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
37856         Define STAT_STATFS2_BSIZE too, since in this case the code now
37857         checks dynamically whether statvfs is reliable, falling back on
37858         Linux-style statfs otherwise.
37859         (statvfs_works): New function, for dynamically testing statvfs.
37860         (get_fs_usage) [STAT_STATVFS]: Use it.
37861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
37862         statvfs on GNU/Linux hosts, since it's now done dynamically.
37864 2012-05-10  Bruno Haible  <bruno@clisp.org>
37866         system-quote, execute, spawn-pipe: Escape '?' on Windows.
37867         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
37868         '?' character.
37869         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
37870         * tests/test-system-quote-main.c (check_all): Check also strings like
37871         "??????????".
37872         Reported by Eli Zaretskii <eliz@gnu.org>.
37874 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
37876         _Noreturn: port config.h to gcc -Wundef
37877         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
37878         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
37879         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
37881 2012-05-10  Bruno Haible  <bruno@clisp.org>
37883         system-quote: Refactor.
37884         * lib/system-quote.h (system_quote_copy): Fix comment.
37885         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
37886         New functions, extracted from system_quote_copy.
37887         (system_quote_length, system_quote_copy): Use these functions.
37888         Reported by Paul Eggert.
37890 2012-05-08  Bruno Haible  <bruno@clisp.org>
37892         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
37893         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
37895 2012-05-08  Bruno Haible  <bruno@clisp.org>
37897         Tests for module 'system-quote'.
37898         * modules/system-quote-tests: New file.
37899         * tests/test-system-quote.sh: New file.
37900         * tests/test-system-quote-main.c: New file.
37901         * tests/test-system-quote-child.c: New file.
37903         New module 'system-quote'.
37904         * lib/system-quote.h: New file.
37905         * lib/system-quote.c: New file.
37906         * modules/system-quote: New file.
37908 2012-05-08  Bruno Haible  <bruno@clisp.org>
37910         sh-quote: Make C++ safe and allow multiple inclusion.
37911         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
37912         declarations in extern "C".
37914 2012-05-08  Bruno Haible  <bruno@clisp.org>
37916         sh-quote tests: Make tests stricter.
37917         * tests/test-sh-quote.c (check_one): Check the return value of
37918         shell_quote_copy.
37919         (main): Check a string with a CR character. Check a string that
37920         contains UCHAR_MAX.
37922 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
37924         warnings.m4: provide a means to specify the program to compile.
37925         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
37926         (gl_WARN_ADD): here.
37927         Use gl_AS_VAR_APPEND.
37928         Support an argument to specify the program to compile.
37929         (gl_WARN_ADD): Accept an argument to specify the program to compile.
37930         AC_SUBST the WARN_CFLAGS when they are used.
37931         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
37932         leave this to gl_WARN_ADD.
37934 2012-05-08  Eric Blake  <eblake@redhat.com>
37936         doc: recommendations on gettext version
37937         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
37938         choice between versions.
37939         * DEPENDENCIES (gettext): Cover both approaches.
37941 2012-05-08  Jim Meyering  <meyering@redhat.com>
37943         init.sh: explain why EXEEXT support uses aliases rather than functions
37944         * tests/init.sh: Add a comment.
37946         init.sh: don't let bash aliases interfere with tests
37947         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
37948         is bash.  This avoids problems for those who alias standard commands to
37949         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
37950         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
37952 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37954         stdint: be more consistent with glibc, SunOS libc
37955         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
37956         (gl_int_fast16_t, gl_uint_fast16_t)
37957         (gl_int_fast32_t, gl_uint_fast32_t)
37958         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
37959         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
37960         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
37961         Be consistent with glibc by default, and with SunOS 5.10 and later
37962         if __sun is defined.  This lessens the likelihood of clashes if
37963         code compiled for older hosts is combined with code compiled for
37964         newer ones.  Problem reported by Niels Möller in
37965         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
37967 2012-05-07  Eric Blake  <eblake@redhat.com>
37969         isatty: relax license to LGPLv2+
37970         * modules/isatty (License): Relax license.
37972 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37974         stat-size: comment fix
37975         * lib/stat-size.h: Remove obsolete comment about indenting.
37977 2012-05-06  Bruno Haible  <bruno@clisp.org>
37979         Tests for module 'sh-quote'.
37980         * modules/sh-quote-tests: New file.
37981         * tests/test-sh-quote.c: New file.
37983 2012-05-06  Bruno Haible  <bruno@clisp.org>
37985         sh-quote: Improve shell_quote_argv's signature.
37986         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
37987         * lib/sh-quote.c (shell_quote_argv): Likewise.
37989 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37991         stdint: document issues with int_fast8_t etc.
37992         * doc/posix-headers/stdint.texi (stdint.h): Say that other
37993         stdint.h substitutes may define these types differently.  See
37994         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
37996 2012-05-05  Bruno Haible  <bruno@clisp.org>
37998         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
37999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38000         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38001         or 'guessing no (mishandles large arguments)'.
38003 2012-05-05  Bruno Haible  <bruno@clisp.org>
38005         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38006         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38007         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38008         set gl_cv_func_link_follows_symlink to "guessing no".
38010 2012-05-05  Bruno Haible  <bruno@clisp.org>
38012         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38013         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38014         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38015         "guessing no".
38016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38018 2012-05-05  Bruno Haible  <bruno@clisp.org>
38020         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38021         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38022         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38023         set gl_cv_struct_dirent_d_ino to "guessing yes".
38025 2012-05-05  Bruno Haible  <bruno@clisp.org>
38027         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38028         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38029         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38030         "guessing yes".
38032 2012-05-05  Bruno Haible  <bruno@clisp.org>
38034         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38035         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38036         compiling to a glibc system, set gl_cv_func_signbit and
38037         gl_cv_func_signbit_gcc to "guessing yes".
38039 2012-05-05  Bruno Haible  <bruno@clisp.org>
38041         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38042         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38043         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38044         to "guessing yes".
38045         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38046         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38048 2012-05-05  Bruno Haible  <bruno@clisp.org>
38050         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38051         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38052         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38053         gl_cv_func_realpath_works to "guessing yes".
38055 2012-05-05  Bruno Haible  <bruno@clisp.org>
38057         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38058         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38059         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38061 2012-05-04  Bruno Haible  <bruno@clisp.org>
38063         Tweak last commit.
38064         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38065         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38067 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38069         unistd_h: make it easier to avoid sys_types_h
38070         This is useful for Emacs, which has its own method of porting to
38071         Windows, and which therefore does not need the sys_types_h module.
38072         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38073         code moved here from gl_SYS_TYPES_H.
38074         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38075         using the code directly.
38076         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38077         gl_SYS_TYPES_H.
38078         * modules/sys_types (Files):
38079         * modules/unistd (Files): Add m4/off_t.m4.
38081 2012-05-03  Bruno Haible  <bruno@clisp.org>
38083         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38084         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38085         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38086         "guessing yes" or "guessing no".
38087         (gl_FUNC_LSTAT): Update.
38088         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38089         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38090         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38092 2012-05-03  Bruno Haible  <bruno@clisp.org>
38094         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38095         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38096         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38097         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38098         cross-compiling, choose the first alternative on glibc systems.
38099         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38101 2012-05-03  Bruno Haible  <bruno@clisp.org>
38103         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38104         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38105         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38107 2012-05-03  Bruno Haible  <bruno@clisp.org>
38109         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38110         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38112 2012-05-03  Bruno Haible  <bruno@clisp.org>
38114         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38115         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38116         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38117         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38118         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38119         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38120         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38121         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38122         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38123         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38124         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38125         gl_cv_func_chown_ctime_works to "guessing yes".
38126         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38127         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38128         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38129         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38130         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38132         compiling to glibc systems, set gl_cv_func_open_directory_works to
38133         "guessing yes".
38134         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38135         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38136         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38137         "guessing yes".
38138         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38139         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38140         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38141         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38142         "guessing yes".
38143         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38144         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38145         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38146         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38147         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38148         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38149         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38150         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38151         "guessing yes".
38152         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38153         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38154         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38155         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38156         "guessing yes".
38157         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38158         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38159         "guessing yes".
38160         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38161         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38162         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38163         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38164         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38165         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38166         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38167         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38168         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38169         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38170         "guessing yes".
38171         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38172         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38173         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38174         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38175         "guessing yes".
38176         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38177         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38178         "guessing yes".
38179         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38180         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38181         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38182         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38183         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38184         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38185         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38186         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38187         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38188         "guessing yes".
38189         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38190         compiling to glibc systems, set gl_cv_func_mknod_works to
38191         "guessing yes".
38192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38193         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38194         "guessing yes".
38195         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38196         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38197         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38198         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38199         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38200         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38201         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38202         compiling to glibc systems, set gl_cv_func_svid_putenv to
38203         "guessing yes".
38204         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38205         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38206         "guessing yes".
38207         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38208         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
38209         "guessing yes".
38210         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
38211         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
38212         to "guessing yes".
38213         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
38214         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
38215         to "guessing yes".
38216         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
38217         compiling to glibc systems, set gl_cv_func_rmdir_works to
38218         "guessing yes".
38219         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
38220         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
38221         gl_cv_func_unlink_parent_fails to "guessing yes".
38222         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
38223         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
38224         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
38225         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
38226         gl_cv_func_rename_dest_works to "guessing yes".
38227         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
38228         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
38229         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
38230         compiling to glibc systems, set gl_cv_func_roundf_ieee to
38231         "guessing yes".
38232         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
38233         compiling to glibc systems, set gl_cv_func_roundl_ieee to
38234         "guessing yes".
38235         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
38236         compiling to glibc systems, set gl_cv_func_setenv_works to
38237         "guessing yes".
38238         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
38239         compiling to glibc systems, set gl_cv_func_unsetenv_works to
38240         "guessing yes".
38241         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
38242         compiling to glibc systems, set gl_cv_func_sleep_works to
38243         "guessing yes".
38244         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
38245         compiling to glibc systems, set gl_cv_func_stat_file_slash to
38246         "guessing yes".
38247         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
38248         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38249         "guessing yes".
38250         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38251         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38252         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38253         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38254         "guessing yes".
38255         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38256         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38257         "guessing yes".
38258         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38259         compiling to glibc systems, set gl_cv_func_usleep_works to
38260         "guessing yes".
38261         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38262         compiling to glibc systems, set gl_cv_func_futimesat_works to
38263         "guessing yes".
38265 2012-05-03  Bruno Haible  <bruno@clisp.org>
38267         Say "guessing yes" or "guessing no" when cross-compiling.
38268         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38269         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38270         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38271         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38272         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38273         am_cv_func_working_getline to "guessing yes" or "guessing no".
38274         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38275         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38276         (gl_FUNC_MEMMEM): When cross-compiling, set
38277         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38279         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38281         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38282         "guessing no".
38283         (gl_FUNC_STRCASESTR): When cross-compiling, set
38284         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38285         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38286         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38287         (gl_FUNC_STRSTR): When cross-compiling, set
38288         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38289         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38290         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38291         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38292         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38294 2012-05-01  Bruno Haible  <bruno@clisp.org>
38296         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38297         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38298         * build-aux/reloc-ldflags: Likewise.
38299         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38301 2012-05-01  Bruno Haible  <bruno@clisp.org>
38303         gnulib-tool: Remove transitional code.
38304         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38305         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38307 2012-05-01  Bruno Haible  <bruno@clisp.org>
38309         getcwd: Fix misindentation.
38310         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38312 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38314         exclude: process exclude and include directives in order
38315         This restores the pre-2009 behavior, and is part of a fix of a
38316         grep bug reported by Quentin Arce in
38317         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38318         * lib/exclude.c (struct exclude): Remove 'tail' member.
38319         (new_exclude_segment): Prepend the new segment instead of appending.
38320         Return void, since that's now more convenient.
38321         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38322         (file_name_matches): Renamed from excluded_file_name_p.
38323         (file_pattern_matches, file_name_matches):
38324         Return true if the pattern matches, not if it excludes.
38325         All callers changed.
38326         (excluded_file_name): Process the list in reverse order;
38327         since the list is now reversed this restores the pre-2009 behavior.
38328         (add_exclude): Adjust to new reversed-order list.  Use local var
38329         rather than macro, for clarity.
38330         * tests/test-exclude7.sh: Adjust to corrected behavior.
38332         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38333         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38334         it's not possible here.  Handle the case of \ at end of pattern
38335         without dumping core.
38336         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38338         _Noreturn: future-proof non-GNU and non-MSVC compilers
38339         * build-aux/snippet/_Noreturn.h (_Noreturn):
38340         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38341         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38342         C11 or later.  This is more likely to work with random future C
38343         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38344         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38346         exclude: handle wildcards with FNM_EXTMATCH
38347         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38348         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38349         comment that "has wildcards" really means "has or may have
38350         wildcards".  Simplify by avoiding the need to call strcspn.
38352 2012-04-29  Bruno Haible  <bruno@clisp.org>
38354         gnulib-tool: Fix list of authors.
38355         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38357 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38359         bootstrap: support Automake-NG in $buildreq
38360         * bootstrap (check_versions): Handle automake and aclocal from
38361         Automake-NG specially.  They can be specified as respectively
38362         the "automake-ng" and "aclocal-ng" requirements.
38364 2012-04-25  Eric Blake  <eblake@redhat.com>
38366         bootstrap: only force latest Makefile.in.in for gettext module
38367         * build-aux/bootstrap (with_gettext): Only install latest
38368         Makefile.in.in for projects requesting bleeding edge gettext.
38370 2012-04-22  Bruno Haible  <bruno@clisp.org>
38372         doc: Mention reason for replacement on glibc/Linux systems.
38373         * doc/posix-functions/dprintf.texi: Mention the problem with special
38374         'long double' values.
38375         * doc/posix-functions/fprintf.texi: Likewise.
38376         * doc/posix-functions/printf.texi: Likewise.
38377         * doc/posix-functions/snprintf.texi: Likewise.
38378         * doc/posix-functions/sprintf.texi: Likewise.
38379         * doc/posix-functions/vdprintf.texi: Likewise.
38380         * doc/posix-functions/vfprintf.texi: Likewise.
38381         * doc/posix-functions/vprintf.texi: Likewise.
38382         * doc/posix-functions/vsnprintf.texi: Likewise.
38383         * doc/posix-functions/vsprintf.texi: Likewise.
38384         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
38385         platforms with F_DUPFD_CLOEXEC problems.
38386         * doc/posix-functions/glob.texi: Mention which platforms are affected
38387         by the problem with symbolic links.
38388         * doc/posix-functions/linkat.texi: Mention the problem with
38389         AT_SYMLINK_FOLLOW on Linux.
38391 2012-04-22  Bruno Haible  <bruno@clisp.org>
38393         pwrite: Don't replace on all platforms.
38394         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
38396 2012-04-22  Bruno Haible  <bruno@clisp.org>
38398         rint* tests: Avoid gcc warnings.
38399         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
38400         * tests/test-rintf.c (INFINITY, NAN): Likewise.
38401         * tests/test-rintl.c (INFINITY, NAN): Likewise.
38403 2012-04-21  Bruno Haible  <bruno@clisp.org>
38405         users.txt: Update.
38406         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38407         switched from CVS to git, bzr, or svn.
38409 2012-04-21  Bruno Haible  <bruno@clisp.org>
38411         Large File Support for native Windows platforms.
38413         * m4/largefile.m4 (gl_LARGEFILE): New macro.
38414         * modules/largefile (configure.ac): Require gl_LARGEFILE.
38416         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
38417         type.
38418         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
38419         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
38420         * doc/posix-headers/sys_types.texi: Mention the effect of the
38421         'largefile' module.
38423         * lib/fcntl.in.h: Add comments about off_t.
38424         * modules/fcntl-h (Depends-on): Add sys_types.
38426         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
38427         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
38428         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
38429         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
38430         * modules/unistd (Depends-on): Add sys_types.
38431         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
38433         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
38434         instead of lseek.
38435         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
38436         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
38437         * modules/lseek (Depends-on): Add sys_types.
38439         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
38440         msvc-nothrow.h.
38441         (SetFileSize): New function.
38442         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
38443         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
38444         if Large File Support is requested.
38445         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38446         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
38448         * lib/stdio.in.h: Add comments about off_t.
38449         * modules/stdio (Depends-on): Add sys_types.
38451         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
38452         instead of ftello.
38453         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
38454         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
38455         (gl_PREREQ_FTELLO): New macro.
38456         * modules/ftello (Depends-on): Add sys_types.
38457         (configure.ac): Incoke gl_PREREQ_FTELLO.
38459         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
38460         instead of fseeko.
38461         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
38462         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
38463         (gl_PREREQ_FSEEKO): New macro.
38464         * modules/fseeko (Depends-on): Add sys_types.
38465         (configure.ac): Invoke gl_PREREQ_FSEEKO.
38467         * lib/sys_stat.in.h: Add comments about off_t.
38468         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
38469         64-bit integer for st_size in 'struct stat'.
38470         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
38471         Define _GL_WINDOWS_64_BIT_ST_SIZE.
38472         * modules/sys_stat (Depends-on): Add sys_types.
38473         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
38475         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
38476         instead of stat or _stat.
38478         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
38479         'struct _stati64' instead of fstat and 'struct stat'.
38480         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
38481         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
38483         Reported by Ray Satiro <raysatiro@yahoo.com>.
38485 2012-04-19  Eric Blake  <eblake@redhat.com>
38487         bootstrap: accommodate older libtool
38488         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
38489         Reported by Daniel P. Berrange.
38491 2012-04-19  Jim Meyering  <meyering@redhat.com>
38493         announce-gen: avoid failure due to lack of Digest::SHA1
38494         Even with the preferred Digest::SHA available, this script
38495         would fail when the backup module, Digest::SHA1, was not installed.
38496         * build-aux/announce-gen: Quote the conditional use of "use".
38497         Reported by Reuben Thomas in:
38498         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
38500         bootstrap: don't let a user's CDPATH setting affect this script
38501         When CDPATH is set, cd will sometimes generate output.
38502         When "cd" is run in a subshell whose output matters, that
38503         surprising-to-some output can cause malfunction.
38504         Unsetting CDPATH turns off this shell "feature."
38505         * build-aux/bootstrap (CDPATH): Unset.
38506         Reported by Reuben Thomas in:
38507         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
38508         and inspired by his patch here:
38509         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
38511 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
38512         and Jim Meyering  <meyering@redhat.com>
38514         maint.mk: catch "see @xref{}" and similar
38515         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
38516         prohibit "See also @xref{", "Also see @pxref{", and similar.
38518 2012-04-16  Jim Meyering  <meyering@redhat.com>
38520         bootstrap: really use gnulib's po/Makefile.in.in
38521         * build-aux/bootstrap: Correct the source file name in previous change.
38522         Reported by Akim Demaille.
38524         configmake: correct minor inconsistency in Makefile rule
38525         * modules/configmake (Makefile.am): All other rules like this one
38526         run the final "mv -f ..." in the same backslash-continued command
38527         as the one that does everything else.  This one put the mv -f ...
38528         command on a separate, non-backslash-continued line.
38529         Make it like the others.
38531         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
38532         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
38533         the one from gettext.  Reported by Akim Demaille.
38535 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
38537         Fix recursion of install-* into po directories.
38538         Bison's install-pdf bug reported by Hans Aberg at
38539         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
38540         * build-aux/po/Makefile.in.in (install-dvi, install-html)
38541         (install-info, install-pdf, install-ps): New targets.
38543 2012-04-16  Jim Meyering  <meyering@redhat.com>
38545         maint: avoid spurious "make sc_maint" failure
38546         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
38547         exempt all *.class file names, for lib/javaversion.class.
38549 2012-04-15  Bruno Haible  <bruno@clisp.org>
38551         lseek: Make configure test independent of environment.
38552         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
38553         Windows, we know that lseek() on pipes is broken; skip the runtime
38554         test.
38556 2012-04-14  Bruno Haible  <bruno@clisp.org>
38558         stat: Bypass buggy override in mingw64.
38559         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
38560         * lib/stat.c (stat) [mingw64]: Define to _stat.
38561         * doc/posix-functions/stat.texi: Mention mingw64 bug.
38563 2012-04-14  Bruno Haible  <bruno@clisp.org>
38565         pathmax: Fix compilation error on MSVC 9.
38566         * modules/pathmax (Depends-on): Add unistd.
38568 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38570         README: document pointer comparison assumption
38571         * README (Portability guidelines): Document assumption about
38572         pointer comparisons, in response to a recent bug-gnulib comment by
38573         Jeffrey Kegler.
38575 2012-04-12  Bruno Haible  <bruno@clisp.org>
38577         Tests for module 'getrusage'.
38578         * modules/getrusage-tests: New file.
38579         * tests/test-getrusage.c: New file.
38581         New module 'getrusage'.
38582         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
38583         warn-on-use.h.
38584         (getrusage): New declaration.
38585         * lib/getrusage.c: New file.
38586         * m4/getrusage.m4: New file.
38587         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
38588         is declared.
38589         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
38590         HAVE_GETRUSAGE.
38591         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
38592         snippet/c++defs, snippet/warn-on-use.
38593         (Makefile.am): Update generation of sys/resource.h. Substitute
38594         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
38595         * modules/getrusage: New file.
38596         * doc/posix-functions/getrusage.texi: Mention the new module.
38598 2012-04-12  Bruno Haible  <bruno@clisp.org>
38600         Tests for module 'sys_resource'.
38601         * modules/sys_resource-tests: New file.
38602         * tests/test-sys_resource.c: New file.
38604         New module 'sys_resource'.
38605         * lib/sys_resource.in.h: New file.
38606         * m4/sys_resource_h.m4: New file.
38607         * modules/sys_resource: New file.
38608         * doc/posix-headers/sys_resource.texi: Mention the new module.
38610 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
38612         ioctl: Fix compilation error on mingw.
38613         * lib/ioctl.c: Include <windows.h>.
38614         Also reported by Ray Satiro <raysatiro@yahoo.com>.
38616 2012-04-04  Jim Meyering  <meyering@redhat.com>
38618         regex: correct #pragma guard expression
38619         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
38620         not 4.3.  Correct its cpp guard expression.
38622 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38624         regex: remove unnecessary type punning
38625         Problem reported by Vladimir Serbinenko in
38626         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
38627         * lib/regex.h (struct re_pattern_buffer): Change the type of
38628         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
38629         Fix comment to match code.
38630         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
38631         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
38632         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38633         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
38634         (set_regs):
38635         Omit no-longer-necessary casts.
38637 2012-04-03  Bruno Haible  <bruno@clisp.org>
38639         Tests for module 'ilogbl'.
38640         * modules/ilogbl-tests: New file.
38641         * tests/test-ilogbl.c: New file.
38643         New module 'ilogbl'.
38644         * lib/math.in.h (ilogbl): New declaration.
38645         * lib/ilogbl.c: New file.
38646         * m4/ilogbl.m4: New file.
38647         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
38648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
38649         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
38650         Split sed invocation, to avoid the limit of 100 substitutions of
38651         HP-UX 'sed'.
38652         * modules/ilogbl: New file.
38653         * tests/test-math-c++.cc: Check the declaration of ilogbl.
38654         * doc/posix-functions/ilogbl.texi: Mention the new module.
38656 2012-04-03  Bruno Haible  <bruno@clisp.org>
38658         Tests for module 'ilogbf'.
38659         * modules/ilogbf-tests: New file.
38660         * tests/test-ilogbf.c: New file.
38662         New module 'ilogbf'.
38663         * lib/math.in.h (ilogbf): New declaration.
38664         * lib/ilogbf.c: New file.
38665         * m4/ilogbf.m4: New file.
38666         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
38667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
38668         REPLACE_ILOGBF.
38669         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
38670         REPLACE_ILOGBF.
38671         * modules/ilogbf: New file.
38672         * tests/test-math-c++.cc: Check the declaration of ilogbf.
38673         * doc/posix-functions/ilogbf.texi: Mention the new module.
38675 2012-04-03  Bruno Haible  <bruno@clisp.org>
38677         Tests for module 'ilogb'.
38678         * modules/ilogb-tests: New file.
38679         * tests/test-ilogb.c: New file.
38680         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
38681         tests/test-logb-ieee.h.
38683         New module 'ilogb'.
38684         * lib/math.in.h (ilogb): New declaration.
38685         * lib/ilogb.c: New file.
38686         * m4/ilogb.m4: New file.
38687         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
38688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
38689         REPLACE_ILOGB.
38690         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
38691         REPLACE_ILOGB.
38692         * modules/ilogb: New file.
38693         * tests/test-math-c++.cc: Check the declaration of ilogb.
38694         * doc/posix-functions/ilogb.texi: Mention the new module.
38696 2012-04-03  Bruno Haible  <bruno@clisp.org>
38698         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
38699         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
38700         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
38701         (main): Check their values.
38702         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
38703         problem.
38705 2012-04-03  Bruno Haible  <bruno@clisp.org>
38707         Tests for module 'logbl-ieee'.
38708         * modules/logbl-ieee-tests: New file.
38709         * tests/test-logbl-ieee.c: New file.
38711         New module 'logbl-ieee'.
38712         * modules/logbl-ieee: New file.
38714         Tests for module 'logb-ieee'.
38715         * modules/logb-ieee-tests: New file.
38716         * tests/test-logb-ieee.c: New file.
38718         New module 'logb-ieee'.
38719         * modules/logb-ieee: New file.
38721         Tests for module 'logbf-ieee'.
38722         * modules/logbf-ieee-tests: New file.
38723         * tests/test-logbf-ieee.c: New file.
38724         * tests/test-logb-ieee.h: New file.
38726         New module 'logbf-ieee'.
38727         * modules/logbf-ieee: New file.
38729 2012-04-03  Bruno Haible  <bruno@clisp.org>
38731         Tests for module 'logbl'.
38732         * modules/logbl-tests: New file.
38733         * tests/test-logbl.c: New file.
38735         New module 'logbl'.
38736         * lib/math.in.h (logbl): New declaration.
38737         * lib/logbl.c: New file.
38738         * m4/logbl.m4: New file.
38739         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
38740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
38741         REPLACE_LOGBL.
38742         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
38743         REPLACE_LOGBL.
38744         * modules/logbl: New file.
38745         * tests/test-math-c++.cc: Check the declaration of logbl.
38746         * doc/posix-functions/logbl.texi: Mention the new module.
38748 2012-04-02  Bruno Haible  <bruno@clisp.org>
38750         Tests for module 'logbf'.
38751         * modules/logbf-tests: New file.
38752         * tests/test-logbf.c: New file.
38754         New module 'logbf'.
38755         * lib/math.in.h (logbf): New declaration.
38756         * lib/logbf.c: New file.
38757         * m4/logbf.m4: New file.
38758         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
38759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
38760         REPLACE_LOGBF.
38761         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
38762         REPLACE_LOGBF.
38763         * modules/logbf: New file.
38764         * tests/test-math-c++.cc: Check the declaration of logbf.
38765         * doc/posix-functions/logbf.texi: Mention the new module.
38767 2012-04-02  Bruno Haible  <bruno@clisp.org>
38769         logb tests: More tests.
38770         * tests/test-logb.h: New file, based on tests/test-logb.c and
38771         tests/test-frexp.h.
38772         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
38773         (main): Just invoke test_function.
38774         * modules/logb-tests (Files): Add tests/test-logb.h,
38775         tests/minus-zero.h, tests/randomd.c.
38776         (Makefile.am): Add randomd.c to test_logb_SOURCES.
38778         logb: Provide replacement and workarounds.
38779         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
38780         is 1.
38781         * lib/logb.c: New file.
38782         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
38783         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
38784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
38785         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
38786         * modules/logb (Files): Add lib/logb.c.
38787         (Depends-on): Add isfinite, frexp, isnand.
38788         (configure.ac): Compile the replacement code logb.c if needed.
38789         * tests/test-math-c++.cc: Check the declaration of logb.
38790         * doc/posix-functions/logb.texi: Mention the replacement and the bug
38791         with subnormal numbers.
38793 2012-04-02  Bruno Haible  <bruno@clisp.org>
38795         log10* tests: Speed up.
38796         * tests/test-log10.h (test_function): Reduce amount of random numbers
38797         to test.
38799 2012-04-01  Bruno Haible  <bruno@clisp.org>
38801         logf-ieee: Fix test whether logf works.
38802         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
38804 2012-04-01  Bruno Haible  <bruno@clisp.org>
38806         log10l: Work around log10l-ieee test failure on IRIX 6.5.
38807         * lib/log10l.c: Include <float.h>
38808         (log10l): On IRIX, normalize the +Infinity value.
38809         * modules/log10l (Depends-on): Add 'float'.
38810         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
38811         +Infinity.
38813         log10f-ieee: Work around test failure on NetBSD 5.1.
38814         * m4/log10f-ieee.m4: New file.
38815         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
38816         test whether log10f works with a negative argument. Replace it if not.
38817         * lib/log10f.c (log10f): For negative arguments, return NaN.
38818         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
38819         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
38820         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
38822         log10f-ieee: Work around test failure on Solaris 9.
38823         * modules/log10f-ieee (Depends-on): Add log10-ieee.
38824         (configure.ac): Require gl_FUNC_LOG10F.
38826         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
38827         * m4/log10-ieee.m4: New file.
38828         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
38829         whether log10 works with a negative argument. Replace it if not.
38830         * lib/log10.c (log10): For negative arguments, return NaN.
38831         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
38832         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
38833         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
38835         Tests for module 'log10l-ieee'.
38836         * modules/log10l-ieee-tests: New file.
38837         * tests/test-log10l-ieee.c: New file.
38839         New module 'log10l-ieee'.
38840         * modules/log10l-ieee: New file.
38842         Tests for module 'log10-ieee'.
38843         * modules/log10-ieee-tests: New file.
38844         * tests/test-log10-ieee.c: New file.
38846         New module 'log10-ieee'.
38847         * modules/log10-ieee: New file.
38849         Tests for module 'log10f-ieee'.
38850         * modules/log10f-ieee-tests: New file.
38851         * tests/test-log10f-ieee.c: New file.
38852         * tests/test-log10-ieee.h: New file.
38854         New module 'log10f-ieee'.
38855         * modules/log10f-ieee: New file.
38857 2012-04-01  Bruno Haible  <bruno@clisp.org>
38859         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
38860         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
38861         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
38862         workaround.
38863         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
38864         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
38865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
38866         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
38867         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
38868         (Depends-on): Update conditions.
38869         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
38870         IRIX 6.5, OSF/1 5.1 problems.
38872 2012-04-01  Bruno Haible  <bruno@clisp.org>
38874         log10f: Work around OSF/1 5.1 bug.
38875         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
38876         * lib/log10f.c (log10f): If logf exists, use it and provide just the
38877         workaround.
38878         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
38879         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
38880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
38881         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
38882         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
38883         (Depends-on): Update conditions.
38884         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
38886 2012-04-01  Bruno Haible  <bruno@clisp.org>
38888         log10: Work around OSF/1 5.1 bug.
38889         * lib/math.in.h (log10): New declaration.
38890         * lib/log10.c: New file.
38891         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
38892         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
38893         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
38894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
38895         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
38896         * modules/log10 (Files): Add lib/log10.c.
38897         (Depends-on): Add math.
38898         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
38899         * tests/test-math-c++.cc: Check the declaration of log10.
38900         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
38902 2012-03-31  Bruno Haible  <bruno@clisp.org>
38904         log10l tests: More tests.
38905         * modules/log10l-tests (Files): Add tests/test-log10l.h,
38906         tests/minus-zero.h, tests/randoml.c.
38907         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
38908         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
38909         (main): Invoke test_function.
38911         log10f tests: More tests.
38912         * modules/log10f-tests (Files): Add tests/test-log10.h,
38913         tests/minus-zero.h, tests/randomf.c.
38914         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
38915         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
38916         (main): Invoke test_function.
38918         log10 tests: More tests.
38919         * tests/test-log10.h: New file.
38920         * modules/log10-tests (Files): Add tests/test-log10.h,
38921         tests/minus-zero.h, tests/randomd.c.
38922         (Makefile.am): Add randomd.c to test_log10_SOURCES.
38923         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
38924         (main): Invoke test_function.
38926 2012-03-31  Simon Josefsson  <simon@josefsson.org>
38928         fflush: Fix syntax error.
38929         * lib/fflush.c: Include unused-parameter.h, needed for
38930         _GL_UNUSED_PARAMETER.
38931         * modules/fflush (Depends-on): Add snippet/unused-parameter.
38933 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38935         regex: pacify GCC when compiling GRUB
38936         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
38937         a diagnostic.  Reported by Vladimir Serbinenko in
38938         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
38940 2012-03-29  Eric Blake  <eblake@redhat.com>
38942         stdio: don't assume gets any more
38943         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
38944         support.
38945         * modules/stdio (Makefile.am): Likewise.
38946         * lib/stdio-read.c (gets): Likewise.
38947         * tests/test-stdio-c++.cc: Likewise.
38948         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
38949         * lib/stdio.in.h (gets): Make warning occur in more places.
38950         * doc/posix-functions/gets.texi (gets): Update documentation.
38951         Reported by Christer Solskogen.
38953         maint.mk: fix syntax checks without exclusions
38954         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
38955         Reported by Daniel P. Berrange.
38957         strerror_r: avoid compiler warning
38958         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
38959         level.
38961         fflush: avoid compiler warning
38962         * lib/fflush.c (update_fpos_cache): Mark variables that are
38963         potentially unused.
38965 2012-03-25  Bruno Haible  <bruno@clisp.org>
38967         Tests for module 'localeconv'.
38968         * modules/localeconv-tests: New file.
38969         * tests/test-localeconv.c: New file.
38971         New module 'localeconv'.
38972         * lib/locale.in.h (localeconv): New declaration.
38973         * lib/localeconv.c: New file.
38974         * m4/localeconv.m4: New file.
38975         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
38976         REPLACE_LOCALECONV.
38977         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
38978         REPLACE_LOCALECONV.
38979         * modules/localeconv: New file.
38980         * modules/nl_langinfo (Depends-on): Add localeconv.
38981         * modules/human (Depends-on): Likewise.
38982         * doc/posix-functions/localeconv.texi: Mention the new module.
38984 2012-03-25  Bruno Haible  <bruno@clisp.org>
38986         locale: Provide a complete 'struct lconv'.
38987         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
38988         'struct lconv' does not contain int_p_cs_precedes.
38989         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
38990         * doc/posix-headers/locale.texi: Update.
38992         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
38993         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
38994         * doc/posix-headers/locale.texi: Update.
38996         locale: Provide a working 'struct lconv'.
38997         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
38998         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
38999         'struct lconv' does not even contain decimal_point.
39000         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39001         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39002         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39003         * doc/posix-headers/locale.texi: Mention the problems with
39004         'struct lconv'.
39005         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39007 2012-03-24  Bruno Haible  <bruno@clisp.org>
39009         Enable common subexpression optimization in GCC.
39010         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39011         macros.
39012         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39013         GCC attribute 'const'.
39014         (uc_locale_language): Declare with GCC attribute 'pure'.
39015         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39016         with GCC attribute 'const'.
39017         * lib/unictype.in.h (uc_is_general_category_withtable,
39018         uc_combining_class, uc_combining_class_name,
39019         uc_combining_class_long_name, uc_bidi_class_name,
39020         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39021         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39022         uc_decimal_value, uc_digit_value, uc_numeric_value,
39023         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39024         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39025         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39026         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39027         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39028         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39029         Declare with GCC attribute 'const'.
39030         (uc_general_category_name, uc_general_category_long_name,
39031         uc_general_category_byname, uc_general_category,
39032         uc_is_general_category, uc_combining_class_byname,
39033         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39034         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39035         Declare with GCC attribute 'pure'.
39036         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39037         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39038         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39039         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39040         with GCC attribute 'pure'.
39041         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39042         'const'.
39043         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39044         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39045         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39046         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39047         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39048         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39049         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39050         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39051         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39052         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39053         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39054         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39055         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39056         GCC attribute 'pure'.
39057         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39058         'const'.
39059         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39060         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39061         u32_strwidth): Declare with GCC attribute 'pure'.
39063         Enable common subexpression optimization in GCC.
39064         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39065         (alphasort): Declare with GCC attribute 'pure'.
39066         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39067         (atoll): Declare with GCC attribute 'pure'.
39068         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39069         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39070         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39071         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39072         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39073         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39074         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39076 2012-03-24  Bruno Haible  <bruno@clisp.org>
39078         gnulib-tool: Avoid unintended error output from 'cmp'.
39079         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39080         "cmp -s", not "cmp > /dev/null".
39082 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39084         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39086         It's not just Automake versions < 1.9b that creates an empty
39087         pkgdatadir at installation time if pkgdata_DATA is specified
39088         to empty; modern automake versions do this as well, at least
39089         until automake 1.11.4 (not yet released at the moment of writing,
39090         but soon to appear).  That behaviour was generally considered a
39091         feature rather than a bug, at least until this discussion:
39092         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39094         See also automake bugs #10997 and #11030.
39096         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39097         reference to relevant automake bug numbers.
39098         (func_emit_tests_Makefile_am): Likewise.
39100 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39102         announce-gen: use Digest::SHA when possible
39103         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39104         back to Digest::SHA1 if necessary.
39106 2012-03-20  Jim Meyering  <meyering@redhat.com>
39108         tests: avoid gcc warnings about argv vs. const initializers
39109         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39110         warnings about discarding 'const' qualifier from pointer target type.
39111         * tests/test-posix_spawn2.c (main): Likewise.
39113 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39115         README-release: simplify slightly
39116         * top/README-release: Run "git checkout master" only once.
39118 2012-03-15  Mark Wielaard  <mark@klomp.org>
39120         git-merge-changelog: add specific example on how to use with hg.
39121         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39123 2012-03-18  Mark Wielaard  <mark@klomp.org>
39125         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39127 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39129         git-version-gen: don't let "prefix" envvar cause trouble
39130         * build-aux/git-version-gen (prefix): Initialize properly,
39131         so as not to use a value specified via the environment.
39132         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39134 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39136         regex: diagnose too-large repeat counts in EREs
39137         Previously, the code did not diagnose the too-large repeat count
39138         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39139         as if it were 'b\{1000000000}', which is unexpected.
39140         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39141         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39142         is a reasonable one for this problem.  Another option would be to
39143         create a new REG_OVERFLOW error for repeat counts that are too large.
39144         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39145         count is too large, so that the caller can distinguish the two cases.
39146         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39147         "Too large" return code, and that repeat counts are one example of this.
39149 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39151         doc: some glibc x32 integer width issues
39152         * doc/posix-headers/sys_types.texi (sys/types.h):
39153         * doc/posix-headers/time.texi (time.h):
39154         Mention that glibc x32 does not conform to POSIX in a couple of
39155         areas related to integer widths.
39157 2012-03-15  Bruno Haible  <bruno@clisp.org>
39159         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39160         * lib/fma.c (VOLATILE): New macro.
39161         (FUNC): Use it to work around a GCC compiler bug.
39163 2012-03-13  Bruno Haible  <bruno@clisp.org>
39165         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39166         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39167         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39168         REPLACE_HYPOTL to 1.
39169         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39171 2012-03-13  Bruno Haible  <bruno@clisp.org>
39173         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39174         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39175         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39176         REPLACE_REMAINDERL to 1.
39177         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39178         bug.
39180 2012-03-13  Bruno Haible  <bruno@clisp.org>
39182         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39183         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39184         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39185         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39186         too big rounding errors.
39187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39188         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39189         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39190         (Depends-on): Update conditions.
39191         * tests/test-sqrtl.c (my_ldexpl): New function.
39192         (main): Add test of a particular value.
39193         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39195 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39197         doc: Update timer_* platform portability notes.
39198         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39199         that always return ENOSYS.
39200         * doc/posix-functions/timer_delete.texi: Likewise.
39201         * doc/posix-functions/timer_gettime.texi: Likewise.
39202         * doc/posix-functions/timer_settime.texi: Likewise.
39204 2012-03-13  Bruno Haible  <bruno@clisp.org>
39206         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39207         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39208         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
39209         REPLACE_CBRTL to 1.
39210         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39212 2012-03-13  Bruno Haible  <bruno@clisp.org>
39214         remainderl: Avoid compilation error on AIX >= 5.2.
39215         * lib/math.in.h (remainderl): Undefine macro from the system header.
39217 2012-03-13  Bruno Haible  <bruno@clisp.org>
39219         Avoid compilation errors with MSVC option -fp:strict.
39220         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
39221         * lib/cbrtf.c: Likewise.
39222         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39224 2012-03-12  Bruno Haible  <bruno@clisp.org>
39226         uninorm: Don't crash in out-of-memory conditions.
39227         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
39228         gracefully.
39229         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
39230         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
39232 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
39234         quote: fix syntax-check
39235         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
39236         also exports quote_quoting_options.
39238 2012-03-12  Simon Josefsson  <simon@josefsson.org>
39240         Collapse list of copyright years to ranges.  See
39241         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
39242         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
39243         build-aux/csharpexec.sh.in, build-aux/gnupload,
39244         build-aux/install-reloc, build-aux/javacomp.sh.in,
39245         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
39246         build-aux/move-if-change, build-aux/reloc-ldflags,
39247         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39249 2012-03-11  Bruno Haible  <bruno@clisp.org>
39251         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39252         * m4/log2f-ieee.m4: New file.
39253         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39254         whether log2f works with a minus zero argument. Replace it if not.
39255         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39256         (Depends-on): Add log2-ieee.
39257         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39258         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39260         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39261         * m4/log2-ieee.m4: New file.
39262         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39263         whether log2 works with a minus zero argument. Replace it if not.
39264         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39265         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39266         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39268         Tests for module 'log2l-ieee'.
39269         * modules/log2l-ieee-tests: New file.
39270         * tests/test-log2l-ieee.c: New file.
39272         New module 'log2l-ieee'.
39273         * modules/log2l-ieee: New file.
39275         Tests for module 'log2-ieee'.
39276         * modules/log2-ieee-tests: New file.
39277         * tests/test-log2-ieee.c: New file.
39279         New module 'log2-ieee'.
39280         * modules/log2-ieee: New file.
39282         Tests for module 'log2f-ieee'.
39283         * modules/log2f-ieee-tests: New file.
39284         * tests/test-log2f-ieee.c: New file.
39285         * tests/test-log2-ieee.h: New file.
39287         New module 'log2f-ieee'.
39288         * modules/log2f-ieee: New file.
39290 2012-03-11  Bruno Haible  <bruno@clisp.org>
39292         Tests for module 'log2l'.
39293         * modules/log2l-tests: New file.
39294         * tests/test-log2l.c: New file.
39296         New module 'log2l'.
39297         * lib/math.in.h (log2l): New declaration.
39298         * lib/log2l.c: New file.
39299         * m4/log2l.m4: New file.
39300         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39302         REPLACE_LOG2L.
39303         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39304         REPLACE_LOG2L.
39305         * modules/log2l: New file.
39306         * tests/test-math-c++.cc: Check the declaration of log2l.
39307         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39308         and OSF/1 problems.
39310 2012-03-11  Bruno Haible  <bruno@clisp.org>
39312         Tests for module 'log2f'.
39313         * modules/log2f-tests: New file.
39314         * tests/test-log2f.c: New file.
39316         New module 'log2f'.
39317         * lib/math.in.h (log2f): New declaration.
39318         * lib/log2f.c: New file.
39319         * m4/log2f.m4: New file.
39320         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39322         REPLACE_LOG2F.
39323         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39324         REPLACE_LOG2F.
39325         * modules/log2f: New file.
39326         * tests/test-math-c++.cc: Check the declaration of log2f.
39327         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39328         and OSF/1 and Cygwin problems.
39330 2012-03-11  Bruno Haible  <bruno@clisp.org>
39332         Tests for module 'log2'.
39333         * modules/log2-tests: New file.
39334         * tests/test-log2.c: New file.
39335         * tests/test-log2.h: New file.
39337         New module 'log2'.
39338         * lib/math.in.h (log2): New declaration.
39339         * lib/log2.c: New file.
39340         * m4/log2.m4: New file.
39341         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39343         REPLACE_LOG2.
39344         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39345         REPLACE_LOG2.
39346         * modules/log2: New file.
39347         * tests/test-math-c++.cc: Check the declaration of log2.
39348         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39349         and OSF/1 and Cygwin problems.
39351 2012-03-11  Bruno Haible  <bruno@clisp.org>
39353         exp2* tests: More tests.
39354         * tests/test-exp2.h (test_function): Test all integral arguments that
39355         don't need to overflow or denormalized numbers.
39356         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39357         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39358         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39360 2012-03-10  Bruno Haible  <bruno@clisp.org>
39362         log1pl-ieee: Work around test failure on AIX 7.1.
39363         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39365         log1pl-ieee: Work around test failure on IRIX 6.5.
39366         * m4/log1pl-ieee.m4: New file.
39367         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39368         test whether log1pl works with a minus zero argument. Replace it if
39369         not.
39370         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39372         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39373         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39374         (Depends-on): Update conditions.
39375         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39376         m4/signbit.m4.
39377         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39378         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39380         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
39381         * m4/log1pf-ieee.m4: New file.
39382         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
39383         test whether log1pf works with a minus zero argument. Replace it if
39384         not.
39385         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
39386         m4/signbit.m4.
39387         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
39388         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
39390         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
39391         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
39392         (configure.ac): Require gl_FUNC_LOG1PF.
39394         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
39395         * m4/log1p-ieee.m4: New file.
39396         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
39397         whether log1p works with a minus zero argument. Replace it if not.
39398         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
39399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
39400         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
39401         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
39402         (Depends-on): Update conditions.
39403         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39404         m4/signbit.m4.
39405         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
39406         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
39408         Tests for module 'log1pl-ieee'.
39409         * modules/log1pl-ieee-tests: New file.
39410         * tests/test-log1pl-ieee.c: New file.
39412         New module 'log1pl-ieee'.
39413         * modules/log1pl-ieee: New file.
39415         Tests for module 'log1p-ieee'.
39416         * modules/log1p-ieee-tests: New file.
39417         * tests/test-log1p-ieee.c: New file.
39419         New module 'log1p-ieee'.
39420         * modules/log1p-ieee: New file.
39422         Tests for module 'log1pf-ieee'.
39423         * modules/log1pf-ieee-tests: New file.
39424         * tests/test-log1pf-ieee.c: New file.
39425         * tests/test-log1p-ieee.h: New file.
39427         New module 'log1pf-ieee'.
39428         * modules/log1pf-ieee: New file.
39430 2012-03-10  Bruno Haible  <bruno@clisp.org>
39432         Tests for module 'log1pl'.
39433         * modules/log1pl-tests: New file.
39434         * tests/test-log1pl.c: New file.
39436         New module 'log1pl'.
39437         * lib/math.in.h (log1pl): New declaration.
39438         * lib/log1pl.c: New file.
39439         * m4/log1pl.m4: New file.
39440         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
39441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
39442         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
39443         * modules/log1pl: New file.
39444         * tests/test-math-c++.cc: Check the declaration of log1pl.
39445         * doc/posix-functions/log1pl.texi: Mention the new module.
39447 2012-03-10  Bruno Haible  <bruno@clisp.org>
39449         Tests for module 'log1pf'.
39450         * modules/log1pf-tests: New file.
39451         * tests/test-log1pf.c: New file.
39453         New module 'log1pf'.
39454         * lib/math.in.h (log1pf): New declaration.
39455         * lib/log1pf.c: New file.
39456         * m4/log1pf.m4: New file.
39457         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
39458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
39459         REPLACE_LOG1PF.
39460         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
39461         REPLACE_LOG1PF.
39462         * modules/log1pf: New file.
39463         * tests/test-math-c++.cc: Check the declaration of log1pf.
39464         * doc/posix-functions/log1pf.texi: Mention the new module.
39466 2012-03-10  Bruno Haible  <bruno@clisp.org>
39468         log1p tests: More tests.
39469         * tests/test-log1p.h: New file.
39470         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
39471         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
39472         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
39473         (main): Invoke test_function.
39475         log1p: Provide replacement for Minix and MSVC.
39476         * lib/math.in.h (log1p): New declaration.
39477         * lib/log1p.c: New file.
39478         * m4/log1p.m4: New file.
39479         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
39480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
39481         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
39482         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
39483         (Depends-on): Add math, isnand, log, round.
39484         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
39485         HAVE_LOG1P is 0.
39486         * tests/test-math-c++.cc: Check the declaration of log1p.
39487         * doc/posix-functions/log1p.texi: Mention the replacement.
39489 2012-03-10  Bruno Haible  <bruno@clisp.org>
39491         math tests: Small simplification.
39492         * tests/test-exp.h (test_function): Use the same err_bound for
39493         'double' on platforms with sizeof (long double) == sizeof (double)
39494         than on platforms with sizeof (long double) > sizeof (double).
39495         * tests/test-exp2.h (test_function): Likewise.
39496         * tests/test-expm1.h (test_function): Likewise.
39497         * tests/test-log.h (test_function): Likewise.
39499 2012-03-10  Bruno Haible  <bruno@clisp.org>
39501         Fix some comments.
39502         * lib/expl.c: Fix an ambiguous comment.
39503         * lib/expm1.c: Likewise.
39504         * lib/expm1l.c: Likewise.
39505         * lib/exp2.c: Likewise.
39506         * lib/exp2l.c: Likewise.
39508 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
39510         regex: allow inclusion of <regex.h> before <limits.h>
39511         Without this patch, portable programs had to include <limits.h> before
39512         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
39513         I ran into this problem with a test version of GNU grep on Solaris 8.
39514         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
39515         This is done conditionally so that this change can be merged
39516         back to glibc.
39517         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
39518         using the included regex.
39520         fts: depend on fdopendir
39521         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
39522         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
39523         problem was introduced when fdopendir was split out.
39525 2012-03-10  Bruno Haible  <bruno@clisp.org>
39527         Remove unused variables.
39528         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
39529         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39531 2012-03-10  Bruno Haible  <bruno@clisp.org>
39533         isnanf-nolibm: Fix last commit.
39534         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
39536         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
39537         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
39539 2012-03-10  Bruno Haible  <bruno@clisp.org>
39541         logf-ieee: Work around test failure on NetBSD 5.1.
39542         * m4/logf-ieee.m4: New file.
39543         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
39544         whether logf works with a negative argument. Replace it if not.
39545         * lib/logf.c (logf): For negative arguments, return NaN.
39546         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
39547         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
39548         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
39550         logf-ieee: Work around test failure on Solaris 9.
39551         * modules/logf-ieee (Depends-on): Add log-ieee.
39552         (configure.ac): Require gl_FUNC_LOGF.
39554         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39555         * m4/log-ieee.m4: New file.
39556         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
39557         log works with a negative argument. Replace it if not.
39558         * lib/log.c (log): For negative arguments, return NaN.
39559         * modules/log-ieee (Files): Add m4/log-ieee.m4.
39560         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
39561         * doc/posix-functions/log.texi: Mention the log-ieee module.
39563         Tests for module 'logl-ieee'.
39564         * modules/logl-ieee-tests: New file.
39565         * tests/test-logl-ieee.c: New file.
39567         New module 'logl-ieee'.
39568         * modules/logl-ieee: New file.
39570         Tests for module 'log-ieee'.
39571         * modules/log-ieee-tests: New file.
39572         * tests/test-log-ieee.c: New file.
39574         New module 'log-ieee'.
39575         * modules/log-ieee: New file.
39577         Tests for module 'logf-ieee'.
39578         * modules/logf-ieee-tests: New file.
39579         * tests/test-logf-ieee.c: New file.
39580         * tests/test-log-ieee.h: New file.
39582         New module 'logf-ieee'.
39583         * modules/logf-ieee: New file.
39585 2012-03-10  Bruno Haible  <bruno@clisp.org>
39587         log: Fix bug introduced on 2012-03-09.
39588         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
39590 2012-03-10  Pádraig Brady  <P@draigBrady.com>
39592         timer-time: link explicitly with pthreads on glibc
39593         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
39594         to support static linking, when newer glibc is
39595         detected, as that contains pthread emulation of
39596         POSIX timer functions where required.
39597         * modules/timer-time: Depend on threadlib to
39598         pull in the appropriate library to link.
39600 2012-03-10  Bruno Haible  <bruno@clisp.org>
39602         log* tests: More tests.
39603         * tests/test-log.h: New file.
39604         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
39605         (main): Invoke test_function.
39606         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
39607         (main): Invoke test_function.
39608         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
39609         (main): Invoke test_function.
39610         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39611         tests/randomd.c.
39612         (Makefile.am): Add randomd.c to test_log_SOURCES.
39613         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39614         tests/randomf.c.
39615         (Makefile.am): Add randomf.c to test_logf_SOURCES.
39616         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39617         tests/randoml.c.
39618         (Depends-on): Add 'float'.
39619         (Makefile.am): Add randoml.c to test_logl_SOURCES.
39621 2012-03-09  Bruno Haible  <bruno@clisp.org>
39623         logl: Work around OSF/1 5.1 bug.
39624         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
39625         * lib/logl.c (logl): If logl exists, use it and provide just the
39626         workaround.
39627         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
39628         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
39629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
39630         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
39631         * modules/logl (configure.ac): Consider REPLACE_LOGL.
39632         (Depends-on): Update conditions.
39633         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
39635 2012-03-09  Bruno Haible  <bruno@clisp.org>
39637         logf: Work around OSF/1 5.1 bug.
39638         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
39639         * lib/logf.c (logf): If logf exists, use it and provide just the
39640         workaround.
39641         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
39642         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
39643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
39644         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
39645         * modules/logf (configure.ac): Consider REPLACE_LOGF.
39646         (Depends-on): Update conditions.
39647         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
39649 2012-03-09  Bruno Haible  <bruno@clisp.org>
39651         log: Work around OSF/1 5.1 bug.
39652         * lib/math.in.h (log): New declaration.
39653         * lib/log.c: New file.
39654         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
39655         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
39656         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
39657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
39658         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
39659         * modules/log (Files): Add lib/log.c.
39660         (Depends-on): Add math.
39661         (configure.ac): If REPLACE_LOG is 1, compile an override.
39662         * tests/test-math-c++.cc: Check the declaration of log.
39663         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
39665 2012-03-09  Jim Meyering  <meyering@redhat.com>
39667         readtokens.c: adjust wording in a comment
39668         * lib/readtokens.c: Insert omitted "that" in a comment.
39670 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39672         modechange: add notations +40, 00440, etc.
39673         * lib/modechange.c (mode_compile): Support new notations
39674         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
39676 2012-03-08  Bruno Haible  <bruno@clisp.org>
39678         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
39679         * m4/exp2l-ieee.m4: New file.
39680         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
39681         test whether exp2l works with a NaN argument and with a negative
39682         infinity argument. Replace it if not.
39683         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
39684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
39685         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
39686         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
39687         (Depends-on): Update conditions.
39688         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
39689         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
39690         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
39692         Tests for module 'exp2l-ieee'.
39693         * modules/exp2l-ieee-tests: New file.
39694         * tests/test-exp2l-ieee.c: New file.
39696         New module 'exp2l-ieee'.
39697         * modules/exp2l-ieee: New file.
39699         Tests for module 'exp2-ieee'.
39700         * modules/exp2-ieee-tests: New file.
39701         * tests/test-exp2-ieee.c: New file.
39703         New module 'exp2-ieee'.
39704         * modules/exp2-ieee: New file.
39706         Tests for module 'exp2f-ieee'.
39707         * modules/exp2f-ieee-tests: New file.
39708         * tests/test-exp2f-ieee.c: New file.
39709         * tests/test-exp2-ieee.h: New file.
39711         New module 'exp2f-ieee'.
39712         * modules/exp2f-ieee: New file.
39714 2012-03-08  Bruno Haible  <bruno@clisp.org>
39716         Tests for module 'exp2l'.
39717         * modules/exp2l-tests: New file.
39718         * tests/test-exp2l.c: New file.
39720         New module 'exp2l'.
39721         * lib/math.in.h (exp2l): New declaration.
39722         * lib/exp2l.c: New file.
39723         * lib/expl-table.c: New file, extracted from lib/expl.c.
39724         * lib/expl.c (gl_expl_table): New declaration.
39725         (expl): Remove expl_table. Update reference.
39726         * m4/exp2l.m4: New file.
39727         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
39728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
39729         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
39730         * modules/exp2l: New file.
39731         * modules/expl (Files): Add lib/expl-table.c.
39732         (configure.ac): Compile also expl-table.c.
39733         * tests/test-math-c++.cc: Check the declaration of exp2l.
39734         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
39735         problem.
39737 2012-03-08  Bruno Haible  <bruno@clisp.org>
39739         Tests for module 'exp2f'.
39740         * modules/exp2f-tests: New file.
39741         * tests/test-exp2f.c: New file.
39743         New module 'exp2f'.
39744         * lib/math.in.h (exp2f): New declaration.
39745         * lib/exp2f.c: New file.
39746         * m4/exp2f.m4: New file.
39747         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
39748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
39749         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
39750         * modules/exp2f: New file.
39751         * tests/test-math-c++.cc: Check the declaration of exp2f.
39752         * doc/posix-functions/exp2f.texi: Mention the new module and the
39753         IRIX problem.
39755 2012-03-08  Bruno Haible  <bruno@clisp.org>
39757         Tests for module 'exp2'.
39758         * modules/exp2-tests: New file.
39759         * tests/test-exp2.c: New file.
39760         * tests/test-exp2.h: New file.
39762         New module 'exp2'.
39763         * lib/math.in.h (exp2): New declaration.
39764         * lib/exp2.c: New file.
39765         * m4/exp2.m4: New file.
39766         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
39767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
39768         REPLACE_EXP2.
39769         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
39770         REPLACE_EXP2.
39771         * modules/exp2: New file.
39772         * tests/test-math-c++.cc: Check the declaration of exp2.
39773         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
39774         and OpenBSD problems.
39776 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39778         savedir: fix comment typo
39779         * lib/savedir.c (savedirstream): Fix typo in comment.
39781 2012-03-08  Bruno Haible  <bruno@clisp.org>
39783         test-readtokens.c: use const; remove unwarranted cast
39784         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
39786 2012-03-08  Bruno Haible  <bruno@clisp.org>
39788         fmal: Avoid compilation error on AIX.
39789         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
39790         AIX 5.2..7.1.
39792 2012-03-08  Bruno Haible  <bruno@clisp.org>
39794         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
39795         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
39796         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
39797         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
39798         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
39799         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
39800         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
39802 2012-03-08  Bruno Haible  <bruno@clisp.org>
39804         remainderf: Override buggy system function on IRIX 6.5.
39805         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
39806         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
39807         when it exists.
39808         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
39810 2012-03-08  Jim Meyering  <meyering@redhat.com>
39812         test-readtokens.c: avoid const-related compilation warnings
39813         * tests/test-readtokens.c: Avoid const-related compilation warnings.
39815 2012-03-07  Jim Meyering  <meyering@redhat.com>
39816             Bruno Haible  <bruno@clisp.org>
39818         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
39819         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
39820         tests/randomd.c.
39821         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
39822         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
39823         tests/randoml.c.
39824         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
39826 2012-03-07  Bruno Haible  <bruno@clisp.org>
39828         expm1l: Avoid compilation error on AIX.
39829         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
39830         AIX 5.2..7.1.
39832 2012-03-07  Bruno Haible  <bruno@clisp.org>
39834         expm1l: Don't override undeclared system function on IRIX 6.5.
39835         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
39836         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
39837         it exists. Set HAVE_DECL_EXPM1L.
39838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
39839         HAVE_EXPM1L.
39840         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
39841         HAVE_EXPM1L.
39842         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
39844 2012-03-07  Bruno Haible  <bruno@clisp.org>
39846         remainderl: Don't override undeclared system function on IRIX 6.5.
39847         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
39848         HAVE_REMAINDERL.
39849         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
39850         declared when it exists. Set HAVE_DECL_REMAINDERL.
39851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
39852         not HAVE_REMAINDERL.
39853         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
39854         HAVE_REMAINDERL.
39855         * doc/posix-functions/remainderl.texi: Mention missing declaration
39856         problem.
39858 2012-03-07  Bruno Haible  <bruno@clisp.org>
39860         rintf: Don't override undeclared system function on IRIX 6.5.
39861         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
39862         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
39863         exists. Set HAVE_DECL_RINTF.
39864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
39865         HAVE_RINTF.
39866         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
39867         HAVE_RINTF.
39868         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
39870 2012-03-07  Bruno Haible  <bruno@clisp.org>
39872         roundl: Avoid compilation error on AIX.
39873         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
39874         AIX 5.2..7.1.
39876 2012-03-07  Bruno Haible  <bruno@clisp.org>
39878         roundl: Don't override undeclared system function on IRIX 6.5.
39879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
39880         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
39881         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
39882         * modules/roundl (configure.ac): For replacement code, test
39883         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
39884         (Depends-on): Update conditions.
39885         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
39887 2012-03-07  Bruno Haible  <bruno@clisp.org>
39889         roundf: Don't override undeclared system function on IRIX 6.5.
39890         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
39891         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
39892         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
39893         * modules/roundf (configure.ac): For replacement code, test
39894         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
39895         (Depends-on): Update conditions.
39896         * modules/roundf-ieee (Depends-on): Update conditions.
39897         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
39899 2012-03-07  Bruno Haible  <bruno@clisp.org>
39901         round: Don't override undeclared system function on IRIX 6.5.
39902         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
39903         argument.
39904         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
39905         also when it is not declared. Set HAVE_ROUND. For replacement code,
39906         test HAVE_ROUND, not HAVE_DECL_ROUND.
39907         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
39908         not HAVE_DECL_ROUND.
39909         (Depends-on): Update conditions.
39910         * modules/round-ieee (Depends-on): Update conditions.
39911         * doc/posix-functions/round.texi: Mention the IRIX problem.
39913 2012-03-07  Bruno Haible  <bruno@clisp.org>
39915         copysignf: Don't override undeclared system function on IRIX 6.5.
39916         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
39917         HAVE_COPYSIGNF.
39918         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
39919         declared when it exists. Set HAVE_DECL_COPYSIGNF.
39920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
39921         not HAVE_COPYSIGNF.
39922         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
39923         HAVE_COPYSIGNF.
39924         * doc/posix-functions/copysignf.texi: Mention missing declaration
39925         problem.
39927 2012-03-07  Jim Meyering  <meyering@redhat.com>
39929         readtokens: add tests
39930         * modules/readtokens-tests: New file.
39931         * tests/test-readtokens.c: New file.
39933 2012-03-07  Jim Meyering  <meyering@redhat.com>
39935         quotearg: the module must now include quote.h
39936         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
39937         So must the module.
39938         * modules/quotearg (Files): Add quote.h.
39940 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
39942         readtokens: avoid core dumps with unusual calling patterns
39943         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
39944         * lib/readtokens.c: Include limits.h.
39945         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
39946         (readtoken): Don't cache the delimiters; the cache code was buggy
39947         if !delim && saved_delim, or if the new n_delim differs from the old.
39948         Also, it wasn't thread-safe.
39950 2012-03-07  Bruno Haible  <bruno@clisp.org>
39952         quote: Adhere to common module description layout.
39953         * modules/quote (Makefile.am): Add back empty section.
39955 2012-03-06  Akim Demaille  <demaille@gostai.com>
39957         quote: fuse into quotearg
39958         This patch is made for the benefit of Bison.
39959         quote does not leave the choice of the quoting style to the user.
39960         quoting_style provides poor customizability, yet quoting_options,
39961         which is very rich, is hidden inside quotearg.c.  So in order to
39962         allow quote customization, move its implementation to quotearg.c.
39963         * lib/quote.c: Remove.
39964         * modules/quote: Adjust.
39965         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
39966         warning: provide all the members of literal structs.
39967         (quote_quoting_options): New.
39968         (quote, quote_n): Import implementation from quote.c.
39969         * lib/quote.h: Import the comments from quote.c.
39970         (quote_quoting_options): New.
39972 2012-03-06  Bruno Haible  <bruno@clisp.org>
39974         Tests for module 'expm1l-ieee'.
39975         * modules/expm1l-ieee-tests: New file.
39976         * tests/test-expm1l-ieee.c: New file.
39978         New module 'expm1l-ieee'.
39979         * modules/expm1l-ieee: New file.
39981         Tests for module 'expm1f-ieee'.
39982         * modules/expm1f-ieee-tests: New file.
39983         * tests/test-expm1f-ieee.c: New file.
39985         New module 'expm1f-ieee'.
39986         * modules/expm1f-ieee: New file.
39988         Tests for module 'expm1-ieee'.
39989         * modules/expm1-ieee-tests: New file.
39990         * tests/test-expm1-ieee.c: New file.
39991         * tests/test-expm1-ieee.h: New file.
39993         New module 'expm1-ieee'.
39994         * modules/expm1-ieee: New file.
39995         * m4/expm1-ieee.m4: New file.
39996         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
39997         whether expm1 works with a minus zero argument. Replace it if not.
39998         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
39999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40000         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40001         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40002         (Depends-on): Update conditions.
40003         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40004         AIX problem.
40006 2012-03-06  Bruno Haible  <bruno@clisp.org>
40008         Work around expm1f bug on IRIX 6.5.
40009         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40010         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40011         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40012         not work.
40013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40014         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40015         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40016         (Depends-on): Update conditions.
40017         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40019 2012-03-06  Bruno Haible  <bruno@clisp.org>
40021         Tests for module 'expm1l'.
40022         * modules/expm1l-tests: New file.
40023         * tests/test-expm1l.c: New file.
40025         New module 'expm1l'.
40026         * lib/math.in.h (expm1l): New declaration.
40027         * lib/expm1l.c: New file.
40028         * m4/expm1l.m4: New file.
40029         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40031         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40032         * modules/expm1l: New file.
40033         * tests/test-math-c++.cc: Check the declaration of expm1l.
40034         * doc/posix-functions/expm1l.texi: Mention the new module.
40036 2012-03-06  Bruno Haible  <bruno@clisp.org>
40038         Tests for module 'expm1f'.
40039         * modules/expm1f-tests: New file.
40040         * tests/test-expm1f.c: New file.
40042         New module 'expm1f'.
40043         * lib/math.in.h (expm1f): New declaration.
40044         * lib/expm1f.c: New file.
40045         * m4/expm1f.m4: New file.
40046         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40048         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40049         * modules/expm1f: New file.
40050         * tests/test-math-c++.cc: Check the declaration of expm1f.
40051         * doc/posix-functions/expm1f.texi: Mention the new module.
40053 2012-03-06  Bruno Haible  <bruno@clisp.org>
40055         Tests for module 'expm1'.
40056         * modules/expm1-tests: New file.
40057         * tests/test-expm1.c: New file.
40058         * tests/test-expm1.h: New file.
40060         New module 'expm1'.
40061         * lib/math.in.h (expm1): New declaration.
40062         * lib/expm1.c: New file.
40063         * m4/expm1.m4: New file.
40064         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40066         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40067         * modules/expm1: New file.
40068         * tests/test-math-c++.cc: Check the declaration of expm1.
40069         * doc/posix-functions/expm1.texi: Mention the new module.
40071 2012-03-06  Bruno Haible  <bruno@clisp.org>
40073         math: Ensure declarations of math functions.
40074         * modules/acosf (Depends-on): Add 'extensions'.
40075         * modules/asinf (Depends-on): Likewise.
40076         * modules/atan2f (Depends-on): Likewise.
40077         * modules/atanf (Depends-on): Likewise.
40078         * modules/cbrt (Depends-on): Likewise.
40079         * modules/cbrtf (Depends-on): Likewise.
40080         * modules/cbrtl (Depends-on): Likewise.
40081         * modules/copysignf (Depends-on): Likewise.
40082         * modules/copysignl (Depends-on): Likewise.
40083         * modules/cosf (Depends-on): Likewise.
40084         * modules/coshf (Depends-on): Likewise.
40085         * modules/expf (Depends-on): Likewise.
40086         * modules/fabsf (Depends-on): Likewise.
40087         * modules/fabsl (Depends-on): Likewise.
40088         * modules/fmaf (Depends-on): Likewise.
40089         * modules/fmal (Depends-on): Likewise.
40090         * modules/fmodf (Depends-on): Likewise.
40091         * modules/fmodl (Depends-on): Likewise.
40092         * modules/frexpf (Depends-on): Likewise.
40093         * modules/frexpl (Depends-on): Likewise.
40094         * modules/hypot (Depends-on): Likewise.
40095         * modules/hypotf (Depends-on): Likewise.
40096         * modules/hypotl (Depends-on): Likewise.
40097         * modules/ldexpf (Depends-on): Likewise.
40098         * modules/ldexpl (Depends-on): Likewise.
40099         * modules/log10f (Depends-on): Likewise.
40100         * modules/log10l (Depends-on): Likewise.
40101         * modules/log1p (Depends-on): Likewise.
40102         * modules/logb (Depends-on): Likewise.
40103         * modules/logf (Depends-on): Likewise.
40104         * modules/modff (Depends-on): Likewise.
40105         * modules/modfl (Depends-on): Likewise.
40106         * modules/powf (Depends-on): Likewise.
40107         * modules/remainderf (Depends-on): Likewise.
40108         * modules/remainderl (Depends-on): Likewise.
40109         * modules/rintf (Depends-on): Likewise.
40110         * modules/rintl (Depends-on): Likewise.
40111         * modules/sinf (Depends-on): Likewise.
40112         * modules/sinhf (Depends-on): Likewise.
40113         * modules/sqrtf (Depends-on): Likewise.
40114         * modules/tanf (Depends-on): Likewise.
40115         * modules/tanhf (Depends-on): Likewise.
40116         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40117         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40118         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40119         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40120         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40121         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40122         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40123         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40124         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40125         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40126         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40127         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40128         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40129         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40130         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40131         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40132         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40133         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40134         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40135         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40136         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40137         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40138         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40139         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40141         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40142         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40143         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40144         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40145         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40146         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40147         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40148         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40149         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40150         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40151         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40152         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40153         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40154         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40155         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40156         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40158 2012-03-06  Bruno Haible  <bruno@clisp.org>
40160         math: Update module names in warnings.
40161         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40162         tanl): Use specific module name in warn-on-use warning.
40164 2012-03-06  Bruno Haible  <bruno@clisp.org>
40166         expl: Simplify computation.
40167         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40169 2012-03-05  Bruno Haible  <bruno@clisp.org>
40171         exp* tests: More tests.
40172         * tests/test-exp.h: New file.
40173         * tests/test-exp.c: Include <float.h> and test-exp.h.
40174         (main): Invoke test_function.
40175         * tests/test-expf.c: Include <float.h> and test-exp.h.
40176         (main): Invoke test_function.
40177         * tests/test-expl.c: Include <float.h> and test-exp.h.
40178         (main): Invoke test_function.
40179         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40180         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40181         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40182         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40183         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40184         (Depends-on): Add 'float'.
40185         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40187         expl: Fix precision of computed result.
40188         * lib/expl.c: Completely rewritten.
40189         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40190         (Maintainer): Add me.
40191         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40193 2012-03-05  Bruno Haible  <bruno@clisp.org>
40195         cbrt* tests: More tests.
40196         * tests/test-cbrt.h: New file.
40197         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40198         (main): Invoke test_function.
40199         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40200         (main): Invoke test_function.
40201         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40202         (main): Invoke test_function.
40203         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40204         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40205         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40206         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40207         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40208         (Depends-on): Add 'float'.
40209         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
40211 2012-03-05  Bruno Haible  <bruno@clisp.org>
40213         hypot* tests: More tests.
40214         * tests/test-hypot.h: New file, partially extracted from
40215         tests/test-hypotl.c.
40216         * tests/test-hypot.c: Include test-hypot.h.
40217         (main): Invoke test_function.
40218         * tests/test-hypotf.c: Include test-hypot.h.
40219         (main): Invoke test_function.
40220         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
40221         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
40222         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
40223         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
40224         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
40225         tests/randomf.c.
40226         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
40227         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
40228         tests/randoml.c.
40229         (Depends-on): Add 'fpucw', 'float'.
40230         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
40232 2012-03-05  Bruno Haible  <bruno@clisp.org>
40234         fpucw: Doc about FreeBSD.
40235         * lib/fpucw.h: Mention FreeBSD in comments.
40237 2012-03-04  Bruno Haible  <bruno@clisp.org>
40239         sqrt* tests: More tests.
40240         * tests/test-sqrt.h: New file.
40241         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
40242         (main): Invoke test_function.
40243         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
40244         (main): Invoke test_function.
40245         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
40246         (main): Invoke test_function.
40247         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
40248         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40249         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40250         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40251         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40252         (Depends-on): Add 'float'.
40253         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40255 2012-03-04  Bruno Haible  <bruno@clisp.org>
40257         remainder* tests: More tests.
40258         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40259         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40260         (main): Invoke test_function.
40261         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40262         (main): Invoke test_function.
40263         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40264         (main): Invoke test_function.
40265         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40266         tests/randomd.c.
40267         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40268         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40269         tests/randomf.c.
40270         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40271         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40272         tests/randoml.c.
40273         (Depends-on): Add 'float'.
40274         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40276 2012-03-04  Bruno Haible  <bruno@clisp.org>
40278         remainder, remainderf, remainderl: Fix computation for large quotients.
40279         * lib/remainder.c: Completely rewritten.
40280         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40281         USE_FLOAT.
40282         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40283         USE_LONG_DOUBLE.
40284         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40285         isnand, isinf. Remove round, fma.
40286         * modules/remainderf (Files): Add lib/remainder.c.
40287         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40288         Remove roundf, fmaf.
40289         * modules/remainderl (Files): Add lib/remainder.c.
40290         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40291         isinf. Remove roundl, fmal.
40292         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40293         REMAINDER_LIBM.
40294         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40295         REMAINDERF_LIBM.
40296         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40297         REMAINDERL_LIBM.
40299 2012-03-04  Bruno Haible  <bruno@clisp.org>
40301         fmod* tests: More tests.
40302         * tests/test-fmod.h (my_ldexp): New function.
40303         (test_function): Reduce amount of random numbers to test. Add tests
40304         of very large quotients x / y.
40305         * tests/test-fmod.c (MAX_EXP): New macro.
40306         * tests/test-fmodf.c (MAX_EXP): Likewise.
40307         * tests/test-fmodl.c (MAX_EXP): Likewise.
40309 2012-03-04  Bruno Haible  <bruno@clisp.org>
40311         fmod, fmodl: Fix computation for large quotients x / y.
40312         * lib/fmod.c: Completely rewritten.
40313         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40314         USE_LONG_DOUBLE.
40315         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40316         isnand. Remove fma.
40317         * modules/fmodl (Files): Add lib/fmod.c.
40318         (Depends-on): Add float, isfinite, signbit, fabsl,
40319         frexpl, ldexpl, isnanl. Remove fma.
40320         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40321         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40323 2012-03-03  Bruno Haible  <bruno@clisp.org>
40325         fmod* tests: More tests.
40326         * tests/test-fmod.h: New file.
40327         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40328         (main): Invoke test_function.
40329         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40330         (main): Invoke test_function.
40331         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40332         (main): Invoke test_function.
40333         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40334         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40335         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40336         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40337         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40338         (Depends-on): Add 'float'.
40339         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40341 2012-03-03  Bruno Haible  <bruno@clisp.org>
40343         rint* tests: More tests.
40344         * tests/test-rint.h: New file, partially extracted from
40345         tests/test-rintl.c.
40346         * tests/test-rint.c: Include test-rint.h.
40347         (main): Invoke test_function.
40348         * tests/test-rintf.c: Include test-rint.h.
40349         (main): Invoke test_function.
40350         * tests/test-rintl.c: Include test-rint.h.
40351         (main): Invoke test_function.
40352         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40353         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40354         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40355         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40356         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40357         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40359 2012-03-03  Bruno Haible  <bruno@clisp.org>
40361         modf* tests: More tests.
40362         * tests/test-modf.h: New file.
40363         * tests/test-modf.c: Include <float.h> and test-modf.h.
40364         (main): Invoke test_function.
40365         * tests/test-modff.c: Include <float.h> and test-modf.h.
40366         (main): Invoke test_function.
40367         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40368         (main): Invoke test_function.
40369         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40370         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40371         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40372         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40373         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40374         (Depends-on): Add 'float'.
40375         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40377 2012-03-03  Bruno Haible  <bruno@clisp.org>
40379         fabs* tests: More tests.
40380         * tests/test-fabs.h: New file, partially extracted from
40381         tests/test-fabsl.c.
40382         * tests/test-fabs.c (RANDOM): New macro.
40383         * tests/test-fabsf.c (RANDOM): New macro.
40384         * tests/test-fabsl.c (RANDOM): New macro.
40385         * modules/fabs-tests (Files): Add tests/randomd.c.
40386         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
40387         * modules/fabsf-tests (Files): Add tests/randomf.c.
40388         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
40389         * modules/fabsl-tests (Files): Add tests/randoml.c.
40390         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
40392 2012-03-03  Bruno Haible  <bruno@clisp.org>
40394         ldexp* tests: More tests.
40395         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
40396         * tests/test-ldexp.c (RANDOM): New macro.
40397         * tests/test-ldexpf.c (RANDOM): New macro.
40398         * tests/test-ldexpl.c (RANDOM): New macro.
40399         * modules/ldexp-tests (Files): Add tests/randomd.c.
40400         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
40401         * modules/ldexpf-tests (Files): Add tests/randomf.c.
40402         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
40403         * modules/ldexpl-tests (Files): Add tests/randoml.c.
40404         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
40406 2012-03-03  Bruno Haible  <bruno@clisp.org>
40408         frexp* tests: More tests.
40409         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
40410         * tests/test-frexp.c (RANDOM): New macro.
40411         * tests/test-frexpf.c (RANDOM): New macro.
40412         * tests/test-frexpl.c (RANDOM): New macro.
40413         * modules/frexp-tests (Files): Add tests/randomd.c.
40414         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
40415         * modules/frexpf-tests (Files): Add tests/randomf.c.
40416         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
40417         * modules/frexpl-tests (Files): Add tests/randoml.c.
40418         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
40420 2012-03-03  Bruno Haible  <bruno@clisp.org>
40422         Support for pseudo-random numbers in tests.
40423         * tests/randomf.c: New file.
40424         * tests/randomd.c: New file.
40425         * tests/randoml.c: New file.
40426         * tests/macros.h (randomf, randomd, randoml): New declarations.
40428 2012-03-03  Bruno Haible  <bruno@clisp.org>
40430         frexp* tests: Refactor.
40431         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
40432         * tests/test-frexp.c: Include and use it.
40433         * tests/test-frexpf.c: Likewise.
40434         * tests/test-frexpl.c: Likewise.
40435         * modules/frexp-tests (Files): Add tests/test-frexp.h.
40436         * modules/frexpf-tests (Files): Likewise.
40437         * modules/frexpl-tests (Files): Likewise.
40439 2012-03-02  Jim Meyering  <meyering@redhat.com>
40441         maint: don't specify XZ_OPT=-9ev in dist-related rule
40442         Using xz's -9 option is warranted only if you have a very large
40443         tarball (see xz's documentation for the sizes vs. presets), and
40444         requires 64MiB of memory at decompression time.
40445         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
40446         Automake's default of just "-e" is fine.  Override on a
40447         per-package basis by setting XZ_OPT e.g., in cfg.mk.
40449 2012-03-01  Eric Blake  <eblake@redhat.com>
40451         maint.mk: allow announcement for non-gnulib project
40452         * maint.mk (announcement): Skip gnulib version if not used.
40454 2012-03-01  Jim Meyering  <meyering@redhat.com>
40456         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
40457         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
40458         envvar settings cannot interfere.  Otherwise, setting envvars like
40459         prohibit=foo require=bar, etc. would cause spurious test failures.
40461 2012-03-01  Eric Blake  <eblake@redhat.com>
40463         maint.mk: add per-line exclusions to prohibitions
40464         * maint.mk (_sc_search_regexp): Add $exclude parameter.
40465         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
40466         (sc_const_long_option): Use it.
40468 2012-03-01  Bruno Haible  <bruno@clisp.org>
40470         Tests for module 'expl-ieee'.
40471         * modules/expl-ieee-tests: New file.
40472         * tests/test-expl-ieee.c: New file.
40474         New module 'expl-ieee'.
40475         * modules/expl-ieee: New file.
40477         Tests for module 'exp-ieee'.
40478         * modules/exp-ieee-tests: New file.
40479         * tests/test-exp-ieee.c: New file.
40481         New module 'exp-ieee'.
40482         * modules/exp-ieee: New file.
40484         Tests for module 'expf-ieee'.
40485         * modules/expf-ieee-tests: New file.
40486         * tests/test-expf-ieee.c: New file.
40487         * tests/test-exp-ieee.h: New file.
40489         New module 'expf-ieee'.
40490         * modules/expf-ieee: New file.
40492 2012-02-29  Bruno Haible  <bruno@clisp.org>
40494         cbrtl-ieee: Work around test failure on IRIX 6.5.
40495         * m4/cbrtl-ieee.m4: New file.
40496         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
40497         test whether cbrtl works with a minus zero argument. Replace it if not.
40498         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
40499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
40500         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
40501         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
40502         (Depends-on): Update conditions.
40503         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
40504         m4/signbit.m4.
40505         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
40506         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
40507         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
40509         Tests for module 'cbrtl-ieee'.
40510         * modules/cbrtl-ieee-tests: New file.
40511         * tests/test-cbrtl-ieee.c: New file.
40513         New module 'cbrtl-ieee'.
40514         * modules/cbrtl-ieee: New file.
40516         Tests for module 'cbrt-ieee'.
40517         * modules/cbrt-ieee-tests: New file.
40518         * tests/test-cbrt-ieee.c: New file.
40520         New module 'cbrt-ieee'.
40521         * modules/cbrt-ieee: New file.
40523         Tests for module 'cbrtf-ieee'.
40524         * modules/cbrtf-ieee-tests: New file.
40525         * tests/test-cbrtf-ieee.c: New file.
40526         * tests/test-cbrt-ieee.h: New file.
40528         New module 'cbrtf-ieee'.
40529         * modules/cbrtf-ieee: New file.
40531 2012-02-29  Bruno Haible  <bruno@clisp.org>
40533         cbrtf: Work around bug in IRIX 6.5 system function.
40534         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
40535         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
40536         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
40537         work.
40538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
40539         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
40540         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
40541         (Depends-on): Update conditions.
40542         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
40544 2012-02-29  Bruno Haible  <bruno@clisp.org>
40546         Tests for module 'cbrtl'.
40547         * modules/cbrtl-tests: New file.
40548         * tests/test-cbrtl.c: New file.
40550         New module 'cbrtl'.
40551         * lib/math.in.h (cbrtl): New declaration.
40552         * lib/cbrtl.c: New file.
40553         * m4/cbrtl.m4: New file.
40554         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
40555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
40556         HAVE_DECL_CBRTL.
40557         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
40558         HAVE_DECL_CBRTL.
40559         * modules/cbrtl: New file.
40560         * tests/test-math-c++.cc: Check the declaration of cbrtl.
40561         * doc/posix-functions/cbrtl.texi: Mention the new module.
40563 2012-02-29  Bruno Haible  <bruno@clisp.org>
40565         Tests for module 'cbrtf'.
40566         * modules/cbrtf-tests: New file.
40567         * tests/test-cbrtf.c: New file.
40569         New module 'cbrtf'.
40570         * lib/math.in.h (cbrtf): New declaration.
40571         * lib/cbrtf.c: New file.
40572         * m4/cbrtf.m4: New file.
40573         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
40574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
40575         HAVE_DECL_CBRTF.
40576         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
40577         HAVE_DECL_CBRTF.
40578         * modules/cbrtf: New file.
40579         * tests/test-math-c++.cc: Check the declaration of cbrtf.
40580         * doc/posix-functions/cbrtf.texi: Mention the new module.
40582 2012-02-29  Bruno Haible  <bruno@clisp.org>
40584         cbrt: Provide replacement on MSVC and Minix.
40585         * lib/math.in.h (cbrt): New declaration.
40586         * lib/cbrt.c: New file.
40587         * m4/cbrt.m4: New file.
40588         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
40589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
40590         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
40591         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
40592         (Depends-on): Add dependencies.
40593         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
40594         * tests/test-math-c++.cc: Check the declaration of cbrt.
40595         * doc/posix-functions/cbrt.texi: Mention that the module provides a
40596         replacement.
40598 2012-02-29  Bruno Haible  <bruno@clisp.org>
40600         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
40601         * m4/hypotl-ieee.m4: New file.
40602         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
40603         test whether hypotl works with mixed NaN and Infinity arguments.
40604         Replace it if not.
40605         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
40606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
40607         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
40608         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
40609         (Depends-on): Update conditions.
40610         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
40611         (Depends-on): Add hypot-ieee.
40612         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
40613         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
40615         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
40616         * m4/hypotf-ieee.m4: New file.
40617         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
40618         test whether hypotf works with mixed NaN and Infinity arguments.
40619         Replace it if not.
40620         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
40621         (Depends-on): Add hypot-ieee.
40622         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
40623         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
40625         hypot-ieee: Work around test failure on OSF/1 and native Windows.
40626         * lib/math.in.h (hypot): New declaration.
40627         * lib/hypot.c: New file.
40628         * m4/hypot-ieee.m4: New file.
40629         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
40630         whether hypot works with mixed NaN and Infinity arguments. Replace it
40631         if not.
40632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
40633         REPLACE_HYPOT.
40634         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
40635         * modules/hypot (Files): Add lib/hypot.c.
40636         (Depends-on): Add dependencies.
40637         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
40638         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
40639         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
40640         * tests/test-math-c++.cc: Check the declaration of hypot.
40641         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
40643         Tests for module 'hypotl-ieee'.
40644         * modules/hypotl-ieee-tests: New file.
40645         * tests/test-hypotl-ieee.c: New file.
40647         New module 'hypotl-ieee'.
40648         * modules/hypotl-ieee: New file.
40650         Tests for module 'hypot-ieee'.
40651         * modules/hypot-ieee-tests: New file.
40652         * tests/test-hypot-ieee.c: New file.
40654         New module 'hypot-ieee'.
40655         * modules/hypot-ieee: New file.
40657         Tests for module 'hypotf-ieee'.
40658         * modules/hypotf-ieee-tests: New file.
40659         * tests/test-hypotf-ieee.c: New file.
40660         * tests/test-hypot-ieee.h: New file.
40662         New module 'hypotf-ieee'.
40663         * modules/hypotf-ieee: New file.
40665 2012-02-29  Bruno Haible  <bruno@clisp.org>
40667         Remove unused variables.
40668         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
40669         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40670         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
40671         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40673 2012-02-29  Eric Blake  <eblake@redhat.com>
40675         termios: fix pid_t always, not just for tcgetsid
40676         * doc/posix-headers/termios.texi (termios.h): Mention problem.
40677         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
40678         just when building tcgetsid.
40680 2012-02-29  Bruno Haible  <bruno@clisp.org>
40682         Tests for module 'hypotl'.
40683         * modules/hypotl-tests: New file.
40684         * tests/test-hypotl.c: New file.
40686         New module 'hypotl'.
40687         * lib/math.in.h (hypotl): New declaration.
40688         * lib/hypotl.c: New file.
40689         * m4/hypotl.m4: New file.
40690         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
40692         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
40693         * modules/hypotl: New file.
40694         * tests/test-math-c++.cc: Check the hypotl declaration.
40695         * doc/posix-functions/hypotl.texi: Mention the new module.
40697 2012-02-29  Eric Blake  <eblake@redhat.com>
40699         tcgetsid: fix cygwin header bug
40700         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
40702         docs: update cygwin progress
40703         * doc/posix-functions/llround.texi (llround): Added in cygwin
40704         1.7.8.
40705         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
40706         * doc/glibc-functions/program_invocation_name.texi
40707         (program_invocation_name): Likewise.
40708         * doc/glibc-functions/program_invocation_short_name.texi
40709         (program_invocation_short_name): Likewise.
40710         * doc/glibc-functions/madvise.texi (madvise): Likewise.
40711         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
40712         Likewise.
40713         * doc/posix-functions/pthread_spin_destroy.texi
40714         (pthread_spin_destroy): Added in cygwin 1.7.10.
40715         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
40716         Likewise.
40717         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
40718         Likewise.
40719         * doc/posix-functions/pthread_spin_trylock.texi
40720         (pthread_spin_trylock): Likewise.
40721         * doc/posix-functions/pthread_spin_unlock.texi
40722         (pthread_spin_unlock): Likewise.
40723         * doc/posix-functions/pthread_setschedprio.texi
40724         (pthread_setschedprio): Likewise.
40725         * doc/posix-functions/pthread_attr_getstack.texi
40726         (pthread_attr_getstack): Likewise.
40727         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
40728         (pthread_attr_getstackaddr): Likewise.
40729         * doc/glibc-functions/pthread_getattr_np.texi
40730         (pthread_getattr_np): Likewise.
40731         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
40732         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
40733         * doc/posix-functions/clock_settime.texi (clock_settime):
40734         Likewise.
40735         * doc/posix-functions/pthread_attr_getguardsize.texi
40736         (pthread_attr_getguardsize): Likewise.
40737         * doc/posix-functions/pthread_attr_setguardsize.texi
40738         (pthread_attr_setguardsize): Likewise.
40739         * doc/posix-functions/pthread_attr_setstack.texi
40740         (pthread_attr_setstack): Likewise.
40741         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
40742         (pthread_attr_setstackaddr): Likewise.
40743         * doc/posix-functions/clock_getcpuclockid.texi
40744         (clock_getcpuclockid): Likewise.
40745         * doc/posix-functions/pthread_getcpuclockid.texi
40746         (pthread_getcpuclockid): Likewise.
40747         * doc/glibc-functions/error.texi (error): Likewise.
40748         * doc/glibc-functions/error_at_line.texi (error_at_line):
40749         Likewise.
40750         * doc/glibc-functions/error_message_count.texi
40751         (error_message_count): Likewise.
40752         * doc/glibc-functions/error_one_per_line.texi
40753         (error_one_per_line): Likewise.
40754         * doc/glibc-functions/error_print_progname.texi
40755         (error_print_progname): Likewise.
40756         * doc/posix-functions/pthread_condattr_getclock.texi
40757         (pthread_condattr_getclock): Likewise.
40758         * doc/posix-functions/pthread_condattr_setclock.texi
40759         (pthread_condattr_setclock): Likewise.
40760         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
40761         Likewise.
40762         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
40763         * doc/glibc-functions/getpt.texi (getpt): Likewise.
40764         * doc/glibc-functions/get_current_dir_name.texi
40765         (get_current_dir_name): Likewise.
40766         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
40767         Likewise.
40768         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
40769         wrong return type.
40770         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
40771         1.7.11.
40773 2012-02-29  Bruno Haible  <bruno@clisp.org>
40775         Tests for module 'hypotf'.
40776         * modules/hypotf-tests: New file.
40777         * tests/test-hypotf.c: New file.
40779         New module 'hypotf'.
40780         * lib/math.in.h (hypotf): New declaration.
40781         * lib/hypotf.c: New file.
40782         * m4/hypotf.m4: New file.
40783         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
40785         REPLACE_HYPOTF.
40786         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
40787         REPLACE_HYPOTF.
40788         * modules/hypotf: New file.
40789         * tests/test-math-c++.cc: Check the hypotf declaration.
40790         * doc/posix-functions/hypotf.texi: Mention the new module.
40792         hypot: Prepare for hypotf module.
40793         * m4/hypot.m4: New file.
40794         * modules/hypot (Files): Add m4/hypot.m4.
40795         (configure.ac): Invoke gl_FUNC_HYPOT.
40797 2012-02-29  Bruno Haible  <bruno@clisp.org>
40799         hypot tests: More tests.
40800         * tests/test-hypot.c: Include <float.h>.
40801         (main): Add tests about overflow and underflow.
40803 2012-02-29  Bruno Haible  <bruno@clisp.org>
40805         math code: Add comments.
40806         * lib/acosl.c: Add comment about related glibc source files.
40807         * lib/asinl.c: Likewise.
40808         * lib/atanl.c: Likewise.
40809         * lib/expl.c: Likewise.
40810         * lib/logl.c: Likewise.
40811         * lib/sincosl.c: Likewise.
40812         * lib/sinl.c: Likewise.
40813         * lib/tanl.c: Likewise.
40814         * lib/trigl.c: Likewise.
40815         * lib/cosl.c: Likewise. Fix comments.
40817 2012-02-28  Bruno Haible  <bruno@clisp.org>
40819         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
40820         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
40821         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
40822         HUGE_VALL are defined.
40823         (numeric_equald): Renamed from numeric_equal.
40824         (numeric_equalf, numeric_equall): New functions.
40825         (main): Check also HUGE_VALF, HUGE_VALL.
40826         * modules/math-tests (Files): Add tests/macros.h.
40827         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
40828         HUGE_VALL.
40830 2012-02-28  Bruno Haible  <bruno@clisp.org>
40832         doc: Move ISO C11 feature notes into POSIX chapters.
40833         * doc/posix-functions/aligned_alloc.texi: Renamed from
40834         doc/glibc-functions/aligned_alloc.texi.
40835         * doc/posix-functions/quick_exit.texi: Renamed from
40836         doc/glibc-functions/quick_exit.texi.
40837         * doc/posix-headers/uchar.texi: Renamed from
40838         doc/glibc-headers/uchar.texi.
40839         * doc/posix-functions/c16rtomb.texi: Renamed from
40840         doc/glibc-functions/c16rtomb.texi.
40841         * doc/posix-functions/c32rtomb.texi: Renamed from
40842         doc/glibc-functions/c32rtomb.texi.
40843         * doc/posix-functions/mbrtoc16.texi: Renamed from
40844         doc/glibc-functions/mbrtoc16.texi.
40845         * doc/posix-functions/mbrtoc32.texi: Renamed from
40846         doc/glibc-functions/mbrtoc32.texi.
40847         * doc/gnulib.texi: Update.
40848         (Glibc uchar.h): Remove section.
40849         Suggested by Eric Blake.
40851 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
40853         stdnoreturn: port to MSVC better
40854         MSVC standard headers use __declspec(noreturn), so #define noreturn
40855         to empty on that platform.  Reported by Bruno Haible in
40856         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
40857         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
40858         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
40860 2012-02-28  Bruno Haible  <bruno@clisp.org>
40862         doc: Mention new glibc headers and functions.
40863         * doc/glibc-headers/uchar.texi: New file.
40864         * doc/glibc-functions/aligned_alloc.texi: New file.
40865         * doc/glibc-functions/c16rtomb.texi: New file.
40866         * doc/glibc-functions/c32rtomb.texi: New file.
40867         * doc/glibc-functions/clock_adjtime.texi: New file.
40868         * doc/glibc-functions/fanotify_init.texi: New file.
40869         * doc/glibc-functions/fanotify_mark.texi: New file.
40870         * doc/glibc-functions/inet6_opt_append.texi: New file.
40871         * doc/glibc-functions/inet6_opt_find.texi: New file.
40872         * doc/glibc-functions/inet6_opt_finish.texi: New file.
40873         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
40874         * doc/glibc-functions/inet6_opt_init.texi: New file.
40875         * doc/glibc-functions/inet6_opt_next.texi: New file.
40876         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
40877         * doc/glibc-functions/inet6_rth_add.texi: New file.
40878         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
40879         * doc/glibc-functions/inet6_rth_init.texi: New file.
40880         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
40881         * doc/glibc-functions/inet6_rth_segments.texi: New file.
40882         * doc/glibc-functions/inet6_rth_space.texi: New file.
40883         * doc/glibc-functions/login.texi: New file.
40884         * doc/glibc-functions/mbrtoc16.texi: New file.
40885         * doc/glibc-functions/mbrtoc32.texi: New file.
40886         * doc/glibc-functions/name_to_handle_at.texi: New file.
40887         * doc/glibc-functions/ntp_gettimex.texi: New file.
40888         * doc/glibc-functions/open_by_handle_at.texi: New file.
40889         * doc/glibc-functions/prlimit.texi: New file.
40890         * doc/glibc-functions/process_vm_readv.texi: New file.
40891         * doc/glibc-functions/process_vm_writev.texi: New file.
40892         * doc/glibc-functions/recvmmsg.texi: New file.
40893         * doc/glibc-functions/scandirat.texi: New file.
40894         * doc/glibc-functions/sendmmsg.texi: New file.
40895         * doc/glibc-functions/setns.texi: New file.
40896         * doc/glibc-functions/timespec_get.texi: New file.
40897         * doc/gnulib.texi: Include them.
40898         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
40899         sections.
40900         Reported by Eric Blake.
40902 2012-02-28  Bruno Haible  <bruno@clisp.org>
40904         Avoid compilation errors with MSVC option -fp:strict.
40905         * lib/floor.c: Use MSVC specific pragma fenv_access.
40906         * lib/ceil.c: Likewise.
40907         * lib/trunc.c: Likewise.
40908         * lib/round.c: Likewise.
40909         * lib/rint.c: Likewise.
40910         * lib/fma.c: Likewise.
40911         * lib/integer_length.c: Likewise.
40912         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40913         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40914         * tests/test-floor2.c: Likewise.
40915         * tests/test-floorf2.c: Likewise.
40916         * tests/test-ceil2.c: Likewise.
40917         * tests/test-ceilf2.c: Likewise.
40918         * tests/test-trunc2.c: Likewise.
40919         * tests/test-truncf2.c: Likewise.
40920         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40922 2012-02-27  Bruno Haible  <bruno@clisp.org>
40924         Tests for module 'sqrtl-ieee'.
40925         * modules/sqrtl-ieee-tests: New file.
40926         * tests/test-sqrtl-ieee.c: New file.
40928         New module 'sqrtl-ieee'.
40929         * modules/sqrtl-ieee: New file.
40931         Tests for module 'sqrt-ieee'.
40932         * modules/sqrt-ieee-tests: New file.
40933         * tests/test-sqrt-ieee.c: New file.
40935         New module 'sqrt-ieee'.
40936         * modules/sqrt-ieee: New file.
40938         Tests for module 'sqrtf-ieee'.
40939         * modules/sqrtf-ieee-tests: New file.
40940         * tests/test-sqrtf-ieee.c: New file.
40941         * tests/test-sqrt-ieee.h: New file.
40943         New module 'sqrtf-ieee'.
40944         * modules/sqrtf-ieee: New file.
40946 2012-02-27  Bruno Haible  <bruno@clisp.org>
40948         remainderl-ieee: Work around test failure on OSF/1.
40949         * m4/remainderl-ieee.m4: New file.
40950         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
40951         present, test whether remainderl works with a zero second argument.
40952         Replace it if not.
40953         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
40954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
40955         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
40956         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
40957         (Depends-on): Update conditions.
40958         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
40959         (Depends-on): Add remainder-ieee.
40960         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
40961         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
40962         module.
40964         remainderf-ieee: Work around test failure on OSF/1.
40965         * m4/remainderf-ieee.m4: New file.
40966         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
40967         present, test whether remainderf works with a zero second argument.
40968         Replace it if not.
40969         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
40970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
40971         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
40972         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
40973         (Depends-on): Update conditions.
40974         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
40975         (Depends-on): Add remainder-ieee.
40976         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
40977         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
40978         module.
40980         remainder-ieee: Work around test failure on OSF/1.
40981         * m4/remainder-ieee.m4: New file.
40982         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
40983         present, test whether remainder works with a zero second argument.
40984         Replace it if not.
40985         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
40986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
40987         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
40988         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
40989         (Depends-on): Update dependencies.
40990         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
40991         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
40992         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
40994         Tests for module 'remainderl-ieee'.
40995         * modules/remainderl-ieee-tests: New file.
40996         * tests/test-remainderl-ieee.c: New file.
40998         New module 'remainderl-ieee'.
40999         * modules/remainderl-ieee: New file.
41001         Tests for module 'remainder-ieee'.
41002         * modules/remainder-ieee-tests: New file.
41003         * tests/test-remainder-ieee.c: New file.
41005         New module 'remainder-ieee'.
41006         * modules/remainder-ieee: New file.
41008         Tests for module 'remainderf-ieee'.
41009         * modules/remainderf-ieee-tests: New file.
41010         * tests/test-remainderf-ieee.c: New file.
41011         * tests/test-remainder-ieee.h: New file.
41013         New module 'remainderf-ieee'.
41014         * modules/remainderf-ieee: New file.
41016 2012-02-27  Bruno Haible  <bruno@clisp.org>
41018         modff, modfl: Fix configure syntax error.
41019         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41020         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41022 2012-02-27  Bruno Haible  <bruno@clisp.org>
41024         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41025         * m4/fmodl-ieee.m4: New file.
41026         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41027         whether fmodl works with zero arguments. Replace it if not.
41028         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41029         (Depends-on): Add fmod-ieee.
41030         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41031         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41033         fmodf-ieee: Work around test failure on OSF/1.
41034         * m4/fmodf-ieee.m4: New file.
41035         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41036         whether fmodf works with zero arguments. Replace it if not.
41037         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41039         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41040         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41041         (Depends-on): Update dependencies.
41042         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41043         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41044         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41046         fmodf-ieee: Work around test failure on MSVC 9.
41047         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41048         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41050         fmod-ieee: Work around test failures on OSF/1, mingw.
41051         * m4/fmod-ieee.m4: New file.
41052         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41053         whether fmod works with zero arguments. Replace it if not.
41054         * lib/math.in.h (fmod): New declaration.
41055         * lib/fmod.c: New file.
41056         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41058         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41059         * modules/fmod (Files): Add lib/fmod.c.
41060         (Depends-on): Add math, isinf, trunc, fma.
41061         (configure.ac): Arrange to compile lib/fmod.c if needed.
41062         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41063         m4/signbit.m4.
41064         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41065         * tests/test-math-c++.cc: Check the declaration of fmod.
41066         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41068         fmodl-ieee: Fix test failures.
41069         * lib/fmodl.c (fmodl): Treat Inf specially.
41070         * modules/fmodl (Depends-on): Add isinf.
41072         Tests for module 'fmodl-ieee'.
41073         * modules/fmodl-ieee-tests: New file.
41074         * tests/test-fmodl-ieee.c: New file.
41076         New module 'fmodl-ieee'.
41077         * modules/fmodl-ieee: New file.
41079         Tests for module 'fmod-ieee'.
41080         * modules/fmod-ieee-tests: New file.
41081         * tests/test-fmod-ieee.c: New file.
41083         New module 'fmod-ieee'.
41084         * modules/fmod-ieee: New file.
41086         Tests for module 'fmodf-ieee'.
41087         * modules/fmodf-ieee-tests: New file.
41088         * tests/test-fmodf-ieee.c: New file.
41089         * tests/test-fmod-ieee.h: New file.
41091         New module 'fmodf-ieee'.
41092         * modules/fmodf-ieee: New file.
41094 2012-02-27  Bruno Haible  <bruno@clisp.org>
41096         Tests for module 'rintl-ieee'.
41097         * modules/rintl-ieee-tests: New file.
41098         * tests/test-rintl-ieee.c: New file.
41100         New module 'rintl-ieee'.
41101         * modules/rintl-ieee: New file.
41103         Tests for module 'rint-ieee'.
41104         * modules/rint-ieee-tests: New file.
41105         * tests/test-rint-ieee.c: New file.
41107         New module 'rint-ieee'.
41108         * modules/rint-ieee: New file.
41110         Tests for module 'rintf-ieee'.
41111         * modules/rintf-ieee-tests: New file.
41112         * tests/test-rintf-ieee.c: New file.
41113         * tests/test-rint-ieee.h: New file.
41115         New module 'rintf-ieee'.
41116         * modules/rintf-ieee: New file.
41118 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41120         regex: re_search etc. should return -2 when memory exhausted
41121         This bug was uncovered when testing 'grep'.  Without the fix,
41122         re_search and friends return -1 when memory is exhausted, but -1
41123         means no match, and this causes grep to falsely report no-match
41124         instead of memory-exhaustion.  See
41125         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41126         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41127         trouble; this can occur if re_search_internal ran out of memory.
41129 2012-02-26  Bruno Haible  <bruno@clisp.org>
41131         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41132         * m4/modfl-ieee.m4: New file.
41133         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41134         whether modfl works with Inf. Replace it if not.
41135         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41137         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41138         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41139         (Depends-on): Update dependencies.
41140         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41141         m4/signbit.m4.
41142         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41143         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41145         modfl-ieee: Fix dependencies.
41146         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41148         modfl-ieee: Fix test failures.
41149         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41150         * modules/modfl (Depends-on): Add isfinite, isinf.
41152         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41153         * m4/modff-ieee.m4: New file.
41154         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41155         whether modff works with NaN and Inf. Replace it if not.
41156         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41158         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41159         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41160         (Depends-on): Update dependencies.
41161         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41162         m4/signbit.m4.
41163         (Depends-on): Add modf-ieee.
41164         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41165         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41167         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41168         * m4/modf-ieee.m4: New file.
41169         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41170         whether modf works with NaN and Inf. Replace it if not.
41171         * lib/math.in.h (modf): New declaration.
41172         * lib/modf.c: New file.
41173         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41175         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41176         * modules/modf (Files): Add lib/modf.c.
41177         (Depends-on): Add math, isfinite, trunc, isinf.
41178         (configure.ac): Addrange to compile lib/modf.c if needed.
41179         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41180         m4/signbit.m4.
41181         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41182         * tests/test-math-c++.cc: Check the declaration of modf.
41183         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41185         Tests for module 'modfl-ieee'.
41186         * modules/modfl-ieee-tests: New file.
41187         * tests/test-modfl-ieee.c: New file.
41189         New module 'modfl-ieee'.
41190         * modules/modfl-ieee: New file.
41192         Tests for module 'modf-ieee'.
41193         * modules/modf-ieee-tests: New file.
41194         * tests/test-modf-ieee.c: New file.
41196         New module 'modf-ieee'.
41197         * modules/modf-ieee: New file.
41199         Tests for module 'modff-ieee'.
41200         * modules/modff-ieee-tests: New file.
41201         * tests/test-modff-ieee.c: New file.
41202         * tests/test-modf-ieee.h: New file.
41204         New module 'modff-ieee'.
41205         * modules/modff-ieee: New file.
41207 2012-02-26  Bruno Haible  <bruno@clisp.org>
41209         Tests for module 'fabsl-ieee'.
41210         * modules/fabsl-ieee-tests: New file.
41211         * tests/test-fabsl-ieee.c: New file.
41213         New module 'fabsl-ieee'.
41214         * modules/fabsl-ieee: New file.
41216         Tests for module 'fabs-ieee'.
41217         * modules/fabs-ieee-tests: New file.
41218         * tests/test-fabs-ieee.c: New file.
41220         New module 'fabs-ieee'.
41221         * modules/fabs-ieee: New file.
41223         Tests for module 'fabsf-ieee'.
41224         * modules/fabsf-ieee-tests: New file.
41225         * tests/test-fabsf-ieee.c: New file.
41226         * tests/test-fabs-ieee.h: New file.
41228         New module 'fabsf-ieee'.
41229         * modules/fabsf-ieee: New file.
41231 2012-02-26  Bruno Haible  <bruno@clisp.org>
41233         Tests for module 'fmal-ieee'.
41234         * modules/fmal-ieee-tests: New file.
41235         * tests/test-fmal-ieee.c: New file.
41237         New module 'fmal-ieee'.
41238         * modules/fmal-ieee: New file.
41240         Tests for module 'fma-ieee'.
41241         * modules/fma-ieee-tests: New file.
41242         * tests/test-fma-ieee.c: New file.
41244         New module 'fma-ieee'.
41245         * modules/fma-ieee: New file.
41247         Tests for module 'fmaf-ieee'.
41248         * modules/fmaf-ieee-tests: New file.
41249         * tests/test-fmaf-ieee.c: New file.
41250         * tests/test-fma-ieee.h: New file.
41252         New module 'fmaf-ieee'.
41253         * modules/fmaf-ieee: New file.
41255 2012-02-26  Bruno Haible  <bruno@clisp.org>
41257         Tests for module 'ldexpl-ieee'.
41258         * modules/ldexpl-ieee-tests: New file.
41259         * tests/test-ldexpl-ieee.c: New file.
41261         New module 'ldexpl-ieee'.
41262         * modules/ldexpl-ieee: New file.
41264         Tests for module 'ldexp-ieee'.
41265         * modules/ldexp-ieee-tests: New file.
41266         * tests/test-ldexp-ieee.c: New file.
41268         New module 'ldexp-ieee'.
41269         * modules/ldexp-ieee: New file.
41271         Tests for module 'ldexpf-ieee'.
41272         * modules/ldexpf-ieee-tests: New file.
41273         * tests/test-ldexpf-ieee.c: New file.
41274         * tests/test-ldexp-ieee.h: New file.
41276         New module 'ldexpf-ieee'.
41277         * modules/ldexpf-ieee: New file.
41279 2012-02-26  Bruno Haible  <bruno@clisp.org>
41281         Refactor frexp*-ieee tests.
41282         * tests/test-frexp-ieee.h: New file.
41283         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41284         (main): Just call test_function.
41285         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41286         (main): Just call test_function.
41287         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41288         (main): Just call test_function.
41289         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41290         * modules/frexp-ieee-tests (Files): Likewise.
41291         * modules/frexpl-ieee-tests (Files): Likewise.
41293         Tests for module 'frexpl-ieee'.
41294         * modules/frexpl-ieee-tests: New file.
41295         * tests/test-frexpl-ieee.c: New file.
41297         New module 'frexpl-ieee'.
41298         * modules/frexpl-ieee: New file.
41300         Tests for module 'frexp-ieee'.
41301         * modules/frexp-ieee-tests: New file.
41302         * tests/test-frexp-ieee.c: New file.
41304         New module 'frexp-ieee'.
41305         * modules/frexp-ieee: New file.
41307         Tests for module 'frexpf-ieee'.
41308         * modules/frexpf-ieee-tests: New file.
41309         * tests/test-frexpf-ieee.c: New file.
41311         New module 'frexpf-ieee'.
41312         * modules/frexpf-ieee: New file.
41314 2012-02-26  Bruno Haible  <bruno@clisp.org>
41316         roundl-ieee tests: More tests.
41317         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41318         (main): Add tests for [MX] shaded specification in POSIX.
41319         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41320         (Depends-on): Add isnanl-nolibm.
41322         round-ieee tests: More tests.
41323         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41324         (main): Add tests for [MX] shaded specification in POSIX.
41325         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41326         (Depends-on): Add isnand-nolibm.
41328         roundf-ieee tests: More tests.
41329         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41330         (main): Add tests for [MX] shaded specification in POSIX.
41331         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41332         (Depends-on): Add isnanf-nolibm.
41334         truncl-ieee tests: More tests.
41335         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41336         (main): Add tests for [MX] shaded specification in POSIX.
41337         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41338         (Depends-on): Add isnanl-nolibm.
41340         trunc-ieee tests: More tests.
41341         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41342         (main): Add tests for [MX] shaded specification in POSIX.
41343         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41344         (Depends-on): Add isnand-nolibm.
41346         truncf-ieee tests: More tests.
41347         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41348         (main): Add tests for [MX] shaded specification in POSIX.
41349         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41350         (Depends-on): Add isnanf-nolibm.
41352         ceill-ieee tests: More tests.
41353         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41354         (main): Add tests for [MX] shaded specification in POSIX.
41355         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41356         (Depends-on): Add isnanl-nolibm.
41358         ceil-ieee tests: More tests.
41359         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41360         (main): Add tests for [MX] shaded specification in POSIX.
41361         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41362         (Depends-on): Add isnand-nolibm.
41364         ceilf-ieee tests: More tests.
41365         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41366         (main): Add tests for [MX] shaded specification in POSIX.
41367         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41368         (Depends-on): Add isnanf-nolibm.
41370         floorl-ieee tests: More tests.
41371         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41372         (main): Add tests for [MX] shaded specification in POSIX.
41373         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41374         (Depends-on): Add isnanl-nolibm.
41376         floor-ieee tests: More tests.
41377         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41378         (main): Add tests for [MX] shaded specification in POSIX.
41379         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41380         (Depends-on): Add isnand-nolibm.
41382         floorf-ieee tests: More tests.
41383         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41384         (main): Add tests for [MX] shaded specification in POSIX.
41385         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41386         (Depends-on): Add isnanf-nolibm.
41388 2012-02-26  Bruno Haible  <bruno@clisp.org>
41390         fpieee: More comments.
41391         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
41393 2012-02-25  Bruno Haible  <bruno@clisp.org>
41395         Tests for module 'log10l'.
41396         * modules/log10l-tests: New file.
41397         * tests/test-log10l.c: New file.
41398         * tests/test-math-c++.cc: Check the declaration of log10l.
41400         New module 'log10l'.
41401         * lib/math.in.h (log10l): New declaration.
41402         * lib/log10l.c: New file.
41403         * m4/log10l.m4: New file.
41404         * modules/log10l: New file.
41405         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
41406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
41407         HAVE_DECL_LOG10L.
41408         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
41409         HAVE_DECL_LOG10L.
41410         * doc/posix-functions/log10l.texi: Mention the new module.
41412 2012-02-25  Bruno Haible  <bruno@clisp.org>
41414         fmodl, remainder*: Avoid wrong results due to rounding errors.
41415         * lib/fmodl.c (fmodl): Correct the result if it is not within the
41416         expected bounds.
41417         * lib/remainderf.c (remainderf): Likewise.
41418         * lib/remainder.c (remainder): Likewise.
41419         * lib/remainderl.c (remainderl): Likewise.
41421 2012-02-25  Bruno Haible  <bruno@clisp.org>
41423         Tests for module 'remainderl'.
41424         * modules/remainderl-tests: New file.
41425         * tests/test-remainderl.c: New file.
41426         * tests/test-math-c++.cc: Check the declaration of remainderl.
41428         New module 'remainderl'.
41429         * lib/math.in.h (remainderl): New declaration.
41430         * lib/remainderl.c: New file.
41431         * m4/remainderl.m4: New file.
41432         * modules/remainderl: New file.
41433         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
41434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
41435         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
41436         HAVE_REMAINDERL.
41437         * doc/posix-functions/remainderl.texi: Mention the new module.
41439 2012-02-25  Bruno Haible  <bruno@clisp.org>
41441         Tests for module 'remainderf'.
41442         * modules/remainderf-tests: New file.
41443         * tests/test-remainderf.c: New file.
41444         * tests/test-math-c++.cc: Check the declaration of remainderf.
41446         New module 'remainderf'.
41447         * lib/math.in.h (remainderf): New declaration.
41448         * lib/remainderf.c: New file.
41449         * m4/remainderf.m4: New file.
41450         * modules/remainderf: New file.
41451         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
41452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
41453         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
41454         HAVE_REMAINDERF.
41455         * doc/posix-functions/remainderf.texi: Mention the new module.
41457 2012-02-25  Bruno Haible  <bruno@clisp.org>
41459         remainder: Support for MSVC.
41460         * lib/math.in.h (remainder): New declaration.
41461         * lib/remainder.c: New file.
41462         * m4/remainder.m4: New file.
41463         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
41464         (Depends-on): Add math, round, fma.
41465         (configure.ac): Use results of gl_FUNC_REMAINDER.
41466         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
41467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
41468         HAVE_DECL_REMAINDER.
41469         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
41470         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
41471         * tests/test-math-c++.cc: Check the declaration of remainder.
41472         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
41473         problems are fixed.
41475 2012-02-25  Bruno Haible  <bruno@clisp.org>
41477         Tests for module 'fmodl'.
41478         * modules/fmodl-tests: New file.
41479         * tests/test-fmodl.c: New file.
41480         * tests/test-math-c++.cc: Check the declaration of fmodl.
41482         New module 'fmodl'.
41483         * lib/math.in.h (fmodl): New declaration.
41484         * lib/fmodl.c: New file.
41485         * m4/fmodl.m4: New file.
41486         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
41487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
41488         REPLACE_FMODL.
41489         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
41490         REPLACE_FMODL.
41491         * modules/fmodl: New file.
41492         * doc/posix-functions/fmodl.texi: Mention the new module.
41494 2012-02-25  Bruno Haible  <bruno@clisp.org>
41496         Tests for module 'modfl'.
41497         * modules/modfl-tests: New file.
41498         * tests/test-modfl.c: New file.
41499         * tests/test-math-c++.cc: Check the declaration of modfl.
41501         New module 'modfl'.
41502         * lib/math.in.h (modfl): New declaration.
41503         * lib/modfl.c: New file.
41504         * m4/modfl.m4: New file.
41505         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
41506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
41507         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
41508         * modules/modfl: New file.
41509         * doc/posix-functions/modfl.texi: Mention the new module.
41511 2012-02-25  Bruno Haible  <bruno@clisp.org>
41513         Tests for module 'fabsl'.
41514         * modules/fabsl-tests: New file.
41515         * tests/test-fabsl.c: New file.
41516         * tests/test-math-c++.cc: Check the declaration of fabsl.
41518         New module 'fabsl'.
41519         * lib/math.in.h (fabsl): New declaration.
41520         * lib/fabsl.c: New file.
41521         * m4/fabsl.m4: New file.
41522         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
41523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
41524         REPLACE_FABSL.
41525         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
41526         REPLACE_FABSL.
41527         * modules/fabsl: New file.
41528         * doc/posix-functions/fabsl.texi: Mention the new module.
41530 2012-02-25  Bruno Haible  <bruno@clisp.org>
41532         fabs tests: More tests.
41533         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
41534         (zero): New variable.
41535         (main): Add tests for signed zero.
41536         * modules/fabs-tests (Files): Add tests/minus-zero.h.
41538         fabsf tests: More tests.
41539         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
41540         (zero): New variable.
41541         (main): Add tests for signed zero.
41542         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
41544 2012-02-24  Bruno Haible  <bruno@clisp.org>
41546         atanl: Provide function definition on MSVC.
41547         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
41548         function pointer.
41549         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
41551 2012-02-24  Bruno Haible  <bruno@clisp.org>
41553         acosl: Provide function definition on MSVC.
41554         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
41555         function pointer.
41556         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
41558 2012-02-24  Bruno Haible  <bruno@clisp.org>
41560         asinl: Provide function definition on MSVC.
41561         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
41562         function pointer.
41563         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
41565 2012-02-24  Bruno Haible  <bruno@clisp.org>
41567         tanl: Provide function definition on MSVC.
41568         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
41569         function pointer.
41570         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
41572 2012-02-24  Bruno Haible  <bruno@clisp.org>
41574         cosl: Provide function definition on MSVC.
41575         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
41576         function pointer.
41577         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
41579 2012-02-24  Bruno Haible  <bruno@clisp.org>
41581         sinl: Provide function definition on MSVC.
41582         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
41583         function pointer.
41584         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
41586 2012-02-24  Bruno Haible  <bruno@clisp.org>
41588         logl: Provide function definition on MSVC.
41589         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
41590         function pointer.
41591         * lib/math.in.h (logl): Undefine if it does not exist as a function.
41593 2012-02-24  Bruno Haible  <bruno@clisp.org>
41595         expl: Provide function definition on MSVC.
41596         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
41597         function pointer.
41598         * lib/math.in.h (expl): Undefine if it does not exist as a function.
41600 2012-02-24  Bruno Haible  <bruno@clisp.org>
41602         sqrtl: Provide function definition on MSVC.
41603         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
41604         a function pointer.
41605         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
41607 2012-02-24  Bruno Haible  <bruno@clisp.org>
41609         ceill: Provide function definition on MSVC.
41610         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
41611         used as a function pointer.
41612         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
41614 2012-02-24  Bruno Haible  <bruno@clisp.org>
41616         floorl: Provide function definition on MSVC.
41617         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
41618         used as a function pointer.
41619         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
41621 2012-02-24  Bruno Haible  <bruno@clisp.org>
41623         ceilf: Provide function definition on MSVC.
41624         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
41625         used as a function pointer.
41626         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
41628 2012-02-24  Bruno Haible  <bruno@clisp.org>
41630         floorf: Provide function definition on MSVC.
41631         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
41632         used as a function pointer.
41633         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
41635 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41637         stdnoreturn: new module
41638         This implements a replacement for C11's <stdnoreturn.h>.
41639         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
41640         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
41641         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
41642         * tests/test-stdnoreturn.c: New files.
41644 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
41646         regex: fix false multibyte matches in some regular expressions
41647         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
41648         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
41649         * lib/regex_internal.c (re_string_skip_chars):
41650         Fix miscomputation of remain_len that may cause incomplete
41651         multi-byte character and false match.
41653 2012-02-24  Jim Meyering  <meyering@redhat.com>
41655         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
41656         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
41657         uses with "==" *before* the call, e.g., 0 == strcmp (...)
41658         Remove now-unnecessary str''cmp obfuscation.
41659         Suggested by Akim Demaille.
41661 2012-02-24  Bruno Haible  <bruno@clisp.org>
41663         streq: Rename macro.
41664         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
41665         * NEWS: Mention the change.
41666         * lib/mbrtowc.c (mbrtowc): Update.
41667         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
41668         * lib/wcwidth.c (wcwidth): Update.
41669         Suggested by Akim Demaille and Jim Meyering.
41671 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41673         regex: fix typo in definition of MIN
41674         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
41675         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
41677 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41678             Bruno Haible  <bruno@clisp.org>
41680         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
41681         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
41682         entries into a stack-allocated buffer directly.
41683         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
41685 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41686             Bruno Haible  <bruno@clisp.org>
41688         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
41690          - There were several instances of this pattern:
41692              for (;;) {
41693                n = acl (f, GETACLCNT, 0, NULL);
41694                [ allocate an array A of size N ]
41695                if (acl (f, GETACL, n, a) == n)
41696                  break;
41697              }
41699            This loop might never terminate if some other process is constantly
41700            manipulating the file's ACL.  The loop should be rewritten to
41701            terminate.
41703          - The acl (... GETACLNT ...) call is merely an optimization; its value
41704            is merely a hint as to how big to make the array.  A better
41705            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
41706            and just guess a reasonably-big size, growing the size and trying
41707            again if it's not large enough.  This guarantees termination, and
41708            saves a system call.
41710         * lib/acl-internal.h: Include <limits.h>.
41711         (MIN, SIZE_MAX): New macros.
41712         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
41713         a stack-allocated buffer, and use malloc if it does not fit. Don't
41714         use GETACLCNT.
41715         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41717 2012-02-19  Bruno Haible  <bruno@clisp.org>
41719         acl: Fix endless loop on Solaris with vxfs.
41720         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
41721         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
41722         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41723         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
41724         * tests/test-sameacls.c (main)[Solaris]: Likewise.
41725         Reported by Bill Jones in
41726         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
41728 2012-02-19  Bruno Haible  <bruno@clisp.org>
41730         acl: Fix copy-acl test failure on Solaris 11.0.
41731         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
41732         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
41733         that this function returns 0 in some more cases.
41735 2012-02-19  Bruno Haible  <bruno@clisp.org>
41737         acl: Update doc references.
41738         * doc/acl-resources.txt: Update links to Solaris documentation.
41740 2012-02-19  Bruno Haible  <bruno@clisp.org>
41742         Fix test failure in many locales on Solaris 11.
41743         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
41744         'tr' arguments.
41745         * tests/test-pipe-filter-ii1.c (main): Likewise.
41746         * build-aux/bootstrap (check_versions): Run 'tr' command with range
41747         expressions in the C locale.
41748         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41749         * m4/host-os.m4 (gl_HOST_OS): Likewise.
41751 2012-02-19  Bruno Haible  <bruno@clisp.org>
41753         gnulib-tool: Improve usage message.
41754         * gnulib-tool (func_usage): Move doc of --help and --version to the
41755         section "Operation modes".
41757 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
41759         README-release: make it easier to execute commands
41760         * top/README-release: break commands out on to separate lines.
41762 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
41764         GNUmakefile: simplify detection of unconfigured trees
41765         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
41766         whether the tree make is being run from is already configured or
41767         not.  Related simplifications.
41769 2012-02-13  Simon Josefsson  <simon@josefsson.org>
41771         * gnulib-tool (func_usage): Document --help and --version.
41773 2012-02-11  Jim Meyering  <meyering@redhat.com>
41775         bootstrap: don't exit 0 upon gnulib-tool failure
41776         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
41777         its exit status, not 0.
41779 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
41781         README-release: various improvements
41782         * top/README-release: Give a command to push changes for the
41783         release.  Add "distcheck" to list of other pre-release checks.
41784         Fix instance of "make stable" which should be "make TYPE".
41786 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41788         maint: replace FSF snail-mail addresses with URLs
41789         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
41790         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
41791         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
41792         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
41793         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
41794         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
41795         * lib/check-version.c, lib/check-version.h, lib/config.charset:
41796         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
41797         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
41798         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
41799         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
41800         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
41801         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
41802         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
41803         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
41804         * lib/glthread/thread.c, lib/glthread/thread.h:
41805         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
41806         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
41807         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
41808         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
41809         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
41810         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
41811         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
41812         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
41813         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
41814         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
41815         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
41816         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
41817         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
41818         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
41819         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
41820         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
41821         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
41822         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
41823         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
41824         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
41825         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
41826         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
41827         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
41828         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
41829         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
41830         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
41831         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
41832         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
41833         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
41834         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
41835         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
41836         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
41837         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
41838         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
41839         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
41840         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
41841         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
41842         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
41843         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
41844         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
41845         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
41846         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
41847         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
41848         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
41849         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
41850         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
41851         * tests/test-poll.c, tests/test-quotearg-simple.c:
41852         * tests/test-quotearg.c, tests/test-quotearg.h:
41853         * tests/test-round-ieee.c, tests/test-round1.c:
41854         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
41855         * tests/test-roundl-ieee.c, tests/test-roundl.c:
41856         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
41857         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
41858         * tests/test-strerror.c, tests/test-strerror_r.c:
41859         * tests/test-strsignal.c, tests/test-strverscmp.c:
41860         * tests/test-xmemdup0.c:
41861         Replace FSF snail mail addresses with URLs, as per GNU coding
41862         standards.  See glibc bug
41863         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
41865 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41867         README-release: capitalize a word and split a line
41868         * top/README-release: Fix punctuation and spacing.
41870 2012-02-08  Akim Demaille  <demaille@gostai.com>
41872         fatal-signal: use C prototypes (with explicit void).
41873         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41874         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
41876 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41878         regex: spelling fix
41879         * lib/regexec.c: spelling fix
41881         regex: rely on stdint.h for SIZE_MAX
41882         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
41884 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41886         regex: merge glibc changes
41888         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
41889         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
41890         (init_word_char): Work even if bitset words are not exactly 32 or
41891         64 bits wide.  Don't assume there are no padding bits.
41892         * lib/regex.c [_LIBC]: Do not include <config.h>.
41893         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
41894         and -Wtype-limits.
41895         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
41896         needless disagreement with glibc.  All uses changed.  Define it to
41897         1 only if _GNU_SOURCE, to match glibc.
41898         (_REG_RM_NAME): Remove; no longer needed, since the names in
41899         question are now all protected by __USE_GNU.
41900         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
41901         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
41902         * lib/regex_internal.h (MIN): New macro.
41904         2012-01-03 Ulrich Drepper <drepper@gmail.com>
41905         * lib/regcomp.c (init_word_char): Optimize regex a bit.
41907         2011-12-30 Jakub Jelinek <jakub@redhat.com>
41908         * lib/regex_internal.c (re_string_fetch_byte_case):
41909         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
41910         is miscompiled, and it turns out it is because of an incorrect
41911         attribute on re_string_fetch_byte_case.  Unlike
41912         re_string_peek_byte_case, this one is really not pure, it modifies
41913         memory (increments pstr->cur_idx), and with the pure attribute GCC
41914         assumed it doesn't and it cached the presumed value of
41915         regexp->cur_idx in a variable across the
41916          for (;; ++i)
41917            {
41918              if (i >= BRACKET_NAME_BUF_SIZE)
41919                return REG_EBRACK;
41920              if (token->type == OP_OPEN_CHAR_CLASS)
41921                ch = re_string_fetch_byte_case (regexp);
41922              else
41923                ch = re_string_fetch_byte (regexp);
41924              if (re_string_eoi(regexp))
41925                return REG_EBRACK;
41926              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
41927                break;
41928              elem->opr.name[i] = ch;
41929            }
41931         2011-11-29 Andreas Schwab <schwab@redhat.com>
41932         * lib/regcomp.c (build_equiv_class):
41933         Fix access after end of search string in regex matcher.
41935         2011-11-12 Ulrich Drepper <drepper@redhat.com>
41936         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
41938         2011-10-12 Ulrich Drepper <drepper@redhat.com>
41939         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
41941         2011-10-11 Ulrich Drepper <drepper@redhat.com>
41942         * lib/regcomp.c (parse_branch, parse_sub_exp):
41943         More regex memory leak fixes and tests.
41944         (parse_sub_exp, parse_bracket_exp):
41945         Fix memory leak for some invalid regular expressions.
41947         2011-05-28 Ulrich Drepper <drepper@gmail.com>
41948         * lib/regex_internal.c, lib/regexec.c:
41949         Fix unnecessary overallocation due to incomplete character.  When
41950         incomplete characters are found at the end of a string the code
41951         ran amok and allocated lots of memory.  Stricter limits are now in
41952         place.
41954         2011-05-20 Reuben Thomas <rrt@sc3d.org>
41955         * lib/regex.h: Update documentation.
41957         2011-05-16 Aharon Robbins <arnold@skeeve.com>
41958         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
41960         2010-05-05 Andreas Schwab <schwab@redhat.com>
41961         * lib/regexec.c (find_collation_sequence_value):
41962         Fix lookup of collation sequence value during regexp matching.
41964         2010-01-22 Ulrich Drepper <drepper@redhat.com>
41965         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
41967         2008-01-16 Ulrich Drepper <drepper@redhat.com>
41968         * lib/regex.h: Cleanup namespace.
41970         2007-11-26 Ulrich Drepper <drepper@redhat.com>
41971         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
41973         2007-08-26 Ulrich Drepper <drepper@redhat.com>
41974         * lib/regex_internal.h: Prevent some declarations and definitions
41975         to be seen when used in tests.
41977         2005-05-06 Ulrich Drepper <drepper@redhat.com>
41978         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
41979         __libc_lock_* macros if not _LIBC.
41980         (struct re_dfa_t): Add lock.
41982 2012-02-07  Eric Blake  <eblake@redhat.com>
41984         maint.mk: also prohibit lower-case @var@
41985         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
41986         lower case, like @top_srcdir@.
41988 2012-02-04  Eric Blake  <eblake@redhat.com>
41990         canonicalize: avoid uninitialized memory use
41991         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
41992         random '/' left in dest.
41993         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
41995 2012-02-04  Bruno Haible  <bruno@clisp.org>
41997         isatty: Fix test failure of ptsname_r on native Windows.
41998         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
41999         and don't set errno.
42000         (isatty): Test first whether fd is valid. Set errno when returning 0.
42002 2012-02-04  Bruno Haible  <bruno@clisp.org>
42004         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42005         * tests/test-spawn-pipe-main.c: Include progname.h.
42006         (main): Invoke set_program_name.
42007         * modules/spawn-pipe-tests (Depends-on): Add progname.
42009         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42010         * tests/test-nonblocking-socket-main.c: Include progname.h.
42011         (main): Invoke set_program_name.
42012         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42014         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42015         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42016         (main): Invoke set_program_name.
42017         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42019 2012-02-04  Eric Blake  <eblake@redhat.com>
42021         canonicalize-lgpl: fix // handling
42022         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42024         canonicalize: fix // handling
42025         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42026         /// to //, since only // is special.
42028 2012-02-04  Bruno Haible  <bruno@clisp.org>
42030         ioctl: Fix test failure on native Windows.
42031         * lib/ioctl.c: Include msvc-nothrow.h.
42032         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42034 2012-02-04  Bruno Haible  <bruno@clisp.org>
42036         fsync: Avoid test failure on native Windows.
42037         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42038         read-only.
42040 2012-02-04  Bruno Haible  <bruno@clisp.org>
42042         sys_select: Avoid syntax error on OpenBSD 5.0.
42043         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42044         currently being included, just include the system's <sys/select.h>.
42046 2012-02-04  Bruno Haible  <bruno@clisp.org>
42048         sys_select: Avoid syntax error on OpenBSD 5.0.
42049         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42050         <sys/select.h>, not before.
42051         Reported by Jiri B <jirib@devio.us>.
42053 2012-02-04  Bruno Haible  <bruno@clisp.org>
42055         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42056         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42057         global variables.
42058         * tests/test-get-rusage-data.c (main): Likewise.
42059         Reported by Jim Meyering.
42061 2012-02-04  Bruno Haible  <bruno@clisp.org>
42063         stdioext: Fix last commit.
42064         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42066 2012-02-03  Bruno Haible  <bruno@clisp.org>
42068         stdioext: Add tentative support for Plan9.
42069         * lib/stdio-impl.h: Include <errno.h>.
42070         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42071         * lib/freadable.c (freadable): Likewise.
42072         * lib/fwritable.c (fwritable): Likewise.
42073         * lib/fbufmode.c (fbufmode): Likewise.
42074         * lib/freading.c (freading): Likewise.
42075         * lib/fwriting.c (fwriting): Likewise.
42076         * lib/freadptr.c (freadptr): Likewise.
42077         * lib/freadseek.c (freadptrinc): Likewise.
42078         * lib/freadahead.c (freadahead): Likewise.
42079         * lib/fpurge.c (fpurge): Likewise.
42080         * lib/fseeko.c (rpl_fseeko): Likewise.
42081         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42082         Reported by Jens Staal <staal1978@gmail.com>.
42084 2012-02-02  Jim Meyering  <meyering@redhat.com>
42086         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42087         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42088         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42089         not even to try to add the attribute.  Instead, add a pragma to suppress
42090         the suggestion/warning.
42092 2012-01-31  Karl Berry  <karl@gnu.org>
42094         setstate doc: typo.
42095         * doc/posix-functions/setstate.texi (setstate): { not (.
42097 2012-01-31  Bruno Haible  <bruno@clisp.org>
42099         popen: Make more robust on Windows.
42100         * lib/popen.c: On native Windows, use the _popen based code even if
42101         HAVE_POPEN is set.
42102         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42103         environment variable on native Windows.
42105 2012-01-30  Bruno Haible  <bruno@clisp.org>
42107         pclose: Fix typo.
42108         * lib/stdio.in.h (pclose): Fix typo in warning message.
42110 2012-01-30  Bruno Haible  <bruno@clisp.org>
42112         doc about getlogin_r, setstate.
42113         * doc/posix-functions/getlogin_r.texi: List the incompatible
42114         declaration problem under "not fixed by gnulib".
42115         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42116         problem on Solaris 11 and other platforms.
42118 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42119             Bruno Haible  <bruno@clisp.org>
42121         poll tests: Make test more robust.
42122         * tests/test-poll.c: Include macros.h.
42123         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42124         return value of various I/O operations.
42125         * modules/poll-tests (Files): Add tests/macros.h.
42127 2012-01-30  Bruno Haible  <bruno@clisp.org>
42129         sys_stat: Fix support for mingw64 and MSVC.
42130         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42131         header files already do it.
42132         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42133         stat itself.
42134         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42136 2012-01-30  Bruno Haible  <bruno@clisp.org>
42138         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42140         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42142 2012-01-29  Bruno Haible  <bruno@clisp.org>
42144         quotearg: Fix test failure on MacOS X 10.5.
42145         * tests/test-quotearg-simple.c: Include localcharset.h.
42146         (main): If the locale encoding is not ASCII, bypass the tests of
42147         locale_quoting_style and clocale_quoting_style.
42148         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42150 2012-01-29  Jim Meyering  <meyering@redhat.com>
42152         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42153         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42154         detect uses of canonicalize_file_name.
42156 2012-01-28  Bruno Haible  <bruno@clisp.org>
42158         test-framework-sh: Fix test failure with AIX 7.1 diff.
42159         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42160         in column 1, like 'diff -c' does.
42161         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42162         whether 'diff -u' is used. Instead, test whether the output contains
42163         some '@' character.
42165 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42167         strtoimax: eliminate need for stdint.h, inttypes.h checks
42168         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42169         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42170         the prerequisites for a recently-introduced strtoimax test.
42171         I guess this might cause strtoimax to be replaced when not
42172         strictly necessary on older hosts, but this shouldn't introduce
42173         any bugs and it should make Emacs 'configure' faster on typical
42174         modern hosts.  Problem discovered when importing the latest gnulib
42175         to an Emacs test version.
42176         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42178 2012-01-28  Bruno Haible  <bruno@clisp.org>
42180         sys_time: Override 'struct timeval' on some native Windows platforms.
42181         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42182         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42183         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42184         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42185         needs to be overridden.
42186         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42187         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42188         * tests/test-sys_select.c: Check that the tv_sec member has the same
42189         size as a 'time_t'.
42190         * tests/test-sys_time.c: Likewise.
42191         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42192         is set, set also REPLACE_GETTIMEOFDAY.
42193         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42194         convert the resulting 'struct timeval' before returning.
42195         * lib/select.c: Include <sys/time.h>.
42196         (select, timeval): Undefine at the right place.
42197         * modules/select (Depends-on): Add sys_time.
42198         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42199         some Windows platforms.
42200         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42202 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42204         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42205         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42206         an integer.
42207         * lib/fcntl.c (dupfd): Likewise.
42208         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
42210 2012-01-28  Bruno Haible  <bruno@clisp.org>
42212         fcntl: Avoid compilation error on native Windows.
42213         * modules/fcntl (Depends-on): Add 'close'.
42215 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42217         select, poll, isatty: Avoid warnings on x86_64 mingw64.
42218         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42219         pointer to an integer.
42220         * lib/poll.c (IsConsoleHandle): Likewise.
42221         * lib/isatty.c (IsConsoleHandle): Likewise.
42223 2012-01-28  Jim Meyering  <meyering@redhat.com>
42225         doc: clarify README-release
42226         * top/README-release: Clarify: you should make a point to have
42227         the latest stable versions of build tools in your PATH, and the
42228         reference to buildreq is solely for its list of tool names, not
42229         for its minimal-functional version numbers.
42230         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
42232         maint.mk: use more readable (yet functionally equivalent) quoting
42233         It is common to quote a single quote in a single quoted string like
42234         this:  '...'\''...'.  Unless you know the idiom, that looks like
42235         gibberish, so prefer to double-quote the string when possible.
42236         Then you can use a more readable, lone single quote: "...'..."
42237         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
42238         "don't" is more readable than the equivalent 'don'\''t'.
42239         (sc_cast_of_x_alloc_return_value): Likewise.
42240         (sc_cast_of_alloca_return_value): Likewise.
42241         (sc_makefile_path_separator_check): Similar: use ":" in '...',
42242         rather than '\'':'\''.
42244 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42246         stdalign: relax _Alignof and tighten _Alignas test
42247         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
42248         as it was too strict: alignof must divide offsetof, but it need
42249         not equal offsetof.  Inspired by Joseph S. Myers's comment
42250         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42251         Conversely, tighten the _Alignas test a bit, as the resulting
42252         alignment must be exactly 8.
42254 2012-01-27  Bruno Haible  <bruno@clisp.org>
42256         stdalign: Document the last change.
42257         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42259 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42261         stdalign: check that alignof and offsetof are consistent
42262         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42263         Problem reported for gnulib by Richard W.M. Jones in
42264         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42266 2012-01-27  Jim Meyering  <meyering@redhat.com>
42268         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42269         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42270         convert a sequence with gaps to the minimal containing range.
42271         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42272         * tests/test-update-copyright.sh: Test for this.
42273         The FSF confirmed it is ok to do this, assuming there is at
42274         least one significant change per year in the affected range:
42275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42277 2012-01-26  Bruno Haible  <bruno@clisp.org>
42279         pipe2: refine doc about thread-safety
42280         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42281         multithread-safety problem.
42282         * doc/glibc-functions/accept4.texi: Likewise.
42284 2012-01-26  Bruno Haible  <bruno@clisp.org>
42286         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42287         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42288         In the test program, include <fcntl.h>, for O_RDONLY.
42290 2012-01-26  Eric Blake  <eblake@redhat.com>
42292         pipe2: document lack of thread-safety in replacement
42293         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42294         issue in replacement.
42295         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42296         Based on a report by Eric Wong.
42298 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42299             Bruno Haible  <bruno@clisp.org>
42301         malloca: Avoid warnings on x86_64 mingw64.
42302         * lib/malloca.c: Include <stdint.h>.
42303         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42304         * modules/malloca (Depends-on): Add stdint.
42305         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42307 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42309         obstack: remove __STDC__ conditionals
42310         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42311         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42312         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42313         m4/include_next.m4 as the only gnulib-maintained places that still
42314         refer to __STDC__.
42316 2012-01-24  Bruno Haible  <bruno@clisp.org>
42318         havelib: Modern quoting.
42319         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42320         the recent change to the GNU coding standards.
42322 2012-01-24  Bruno Haible  <bruno@clisp.org>
42324         stdint: Improve support for Android.
42325         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42326         Reported by Simon Josefsson <simon@josefsson.org>.
42328 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42330         doc: omit trailing empty lines from INSTALL etc.
42331         * doc/Makefile (INSTALL): Omit trailing empty lines.
42332         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42333         omit trailing empty lines.  This simplifies the build procedure.
42335 2012-01-23  Jim Meyering  <meyering@redhat.com>
42337         tests: avoid spurious warnings about gl_sockets_startup
42338         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42339         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42340         reporting a "statement with no effect".
42341         * tests/test-accept.c (main): Mark as "(void)".
42342         * tests/test-accept4.c (main): Likewise.
42343         * tests/test-bind.c (main): Likewise.
42344         * tests/test-connect.c (main): Likewise.
42345         * tests/test-getpeername.c (main): Likewise.
42346         * tests/test-getsockname.c (main): Likewise.
42347         * tests/test-getsockopt.c (main): Likewise.
42348         * tests/test-listen.c (main): Likewise.
42349         * tests/test-recv.c (main): Likewise.
42350         * tests/test-recvfrom.c (main): Likewise.
42351         * tests/test-send.c (main): Likewise.
42352         * tests/test-sendto.c (main): Likewise.
42353         * tests/test-setsockopt.c (main): Likewise.
42354         * tests/test-shutdown.c (main): Likewise.
42356 2012-01-21  Bruno Haible  <bruno@clisp.org>
42358         locale-fr.m4: Fix for Android.
42359         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42360         failure of the test program on Bionic libc.
42362 2012-01-21  Jim Meyering  <meyering@redhat.com>
42364         bootstrap: fail when bootstrap_post_import_hook fails
42365         Otherwise, it's far too easy to miss diagnostics emitted
42366         between gnulib-tool's output and that of running configure.
42367         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42369 2012-01-17  Jim Meyering  <meyering@redhat.com>
42371         maint: enable sc_trailing_blank
42372         * build-aux/pmccabe.css: Remove trailing blanks.
42373         * doc/acl-cygwin.txt: Likewise.
42374         * doc/gnu-oids.texi: Likewise
42375         * cfg.mk: Enable sc_trailing_blank.
42376         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42378 2012-01-17  Jim Meyering  <meyering@redhat.com>
42380         maint: enable sc_prohibit_openat_without_use
42381         * cfg.mk: Enable sc_prohibit_openat_without_use.
42382         Exempt lib/selinux-at.c.
42384 2012-01-17  Jim Meyering  <meyering@redhat.com>
42386         maint: enable sc_prohibit_cloexec_without_use
42387         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
42388         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
42390 2012-01-17  Jim Meyering  <meyering@redhat.com>
42392         maint: enable sc_prohibit_intprops_without_use
42393         * cfg.mk: Enable sc_prohibit_intprops_without_use
42394         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
42396 2012-01-17  Jim Meyering  <meyering@redhat.com>
42398         maint: enable sc_prohibit_hash_pjw_without_use
42399         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
42400         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
42401         to match any use of \<hash_pjw\>, i.e., not necessarily with a
42402         following " (".
42404 2012-01-17  Jim Meyering  <meyering@redhat.com>
42406         maint: enable double-word-prohibiting rule
42407         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
42408         Exempt three files.
42410 2012-01-17  Jim Meyering  <meyering@redhat.com>
42412         maint: remove empty lines at EOF, but excluding modules/*
42413         Apply syntax rules at home as well as abroad.  Most changes
42414         were induced by running this:
42415           make srcdir=. _build-aux=build-aux -f top/maint.mk \
42416             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
42417             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
42418         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
42419         Exempt modules/* and two binary files.
42420         Also exempt doc/INSTALL*, per request from Bruno Haible.
42421         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
42422         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
42423         * doc/Copyright/request-assign.future: Likewise.
42424         * doc/Copyright/request-disclaim.changes: Likewise.
42425         * doc/INSTALL: Likewise.
42426         * doc/INSTALL.ISO: Likewise.
42427         * doc/INSTALL.UTF-8: Likewise.
42428         * doc/acl-cygwin.txt: Likewise.
42429         * doc/acl-resources.txt: Likewise.
42430         * doc/fdl-1.2.texi: Likewise.
42431         * doc/fdl-1.3.texi: Likewise.
42432         * doc/fdl.texi: Likewise.
42433         * lib/argp-pin.c: Likewise.
42434         * lib/round.c: Likewise.
42435         * lib/unicase/u16-totitle.c: Likewise.
42436         * lib/unictype/block_test.c: Likewise.
42437         * lib/uninorm/canonical-decomposition.c: Likewise.
42438         * m4/README: Likewise.
42439         * m4/relocatable-lib.m4: Likewise.
42440         * tests/test-isnand-nolibm.c: Likewise.
42441         * tests/test-isnand.c: Likewise.
42442         * tests/uninorm/NormalizationTest.txt: Likewise.
42444 2012-01-17  Jim Meyering  <meyering@redhat.com>
42446         maint: add framework to run syntax-check rules against gnulib sources
42447         * cfg.mk: New file, to disable all currently-failing tests.
42448         We'll enable them one by one, as they are made to pass.
42449         * Makefile (sc_maint): New rule.
42451 2012-01-21  Bruno Haible  <bruno@clisp.org>
42453         stdint: Add support for Android.
42454         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
42455         include the system's <stdint.h>.
42456         Reported by Simon Josefsson <simon@josefsson.org>.
42458 2012-01-19  Jim Meyering  <meyering@redhat.com>
42460         bootstrap: add bootstrap_post_import_hook
42461         Bison does still need something like the gnulib_mk_hook whose
42462         invocation I had to remove along with slurp in commit 767ccd40.
42463         Technically, we could get along without it, but doing so would
42464         have required living with a warning and a mandatory post-bootstrap
42465         automake rerun.
42466         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
42467         (bootstrap_post_import_hook): New function.
42468         Invoke it after gnulib-tool --import and before autoreconf.
42470 2012-01-18  Jim Meyering  <meyering@redhat.com>
42472         gitlog-to-changelog: don't use "no_"-prefixed variable name
42473         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
42474         to enable both --cluster and --no-cluster.  Change variable name,
42475         s/\$no_cluster/$cluster/, and reverse usage to match.
42477         gitlog-to-changelog: use "||", not "or" in expressions
42478         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
42479         expressions.
42481 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
42483         gitlog-to-changelog: new option --no-cluster
42484         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
42485         clustering of adjacent commit messages.
42487 2012-01-17  Jim Meyering  <meyering@redhat.com>
42489         maint: spell file systems with two words, not one
42490         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
42491         two words, not one.
42493 2012-01-16  Jim Meyering  <meyering@redhat.com>
42495         bootstrap: add a FIXME comment to ensure we eventually remove the hack
42496         * build-aux/bootstrap (gnulib_tool_options): Add comment.
42498 2012-01-16  Eric Blake  <eblake@redhat.com>
42500         bootstrap: cater to autoconf 2.59
42501         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
42502         is not available.
42504         bootstrap: properly check for libtool
42505         * build-aux/bootstrap (libtoolize): Also run libtool when older
42506         usage is detected.
42508 2012-01-15  Bruno Haible  <bruno@clisp.org>
42510         Improve support for MSVC 9.
42511         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
42512         clashes on MSVC.
42513         * lib/fcntl.in.h: Likewise.
42514         * lib/stdlib.in.h: Likewise.
42515         * lib/sys_stat.in.h: Likewise.
42517 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
42519         gnupload: we hold the master copy of this script now
42520         For motivation and more information, see:
42521         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
42522         * build-aux/gnupload: Make it clear in the heading comments that the
42523         master copy of this file is maintained by gnulib.  Since we are at
42524         it, bump its copyright year and ...
42525         ($scriptversion): ... the date in its version.
42526         ($usage): Patches and bug reports should be sent to the gnulib list,
42527         not the automake one.
42528         * config/srclist.txt: Don't try to sync 'gnupload' from automake
42529         anymore.
42531 2012-01-15  Bruno Haible  <bruno@clisp.org>
42533         Fix module 'random'.
42534         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
42535         initstate, setstate are declared.
42537 2012-01-14  Bruno Haible  <bruno@clisp.org>
42539         Tests for module 'random'.
42540         * modules/random-tests: New file.
42541         * tests/test-random.c: New file, based on tests/test-random_r.c.
42543         New module 'random'.
42544         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
42545         declarations.
42546         * lib/random.c: New file, based on glibc/stdlib/random.c.
42547         * m4/random.m4: New file.
42548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
42549         HAVE_RANDOM.
42550         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
42551         * modules/random: New file.
42552         * config/srclist.txt: Add an entry for random.c.
42553         * doc/posix-functions/random.texi: Mention the 'random' module.
42554         * doc/posix-functions/initstate.texi: Likewise.
42555         * doc/posix-functions/setstate.texi: Likewise.
42556         * doc/posix-functions/srandom.texi: Likewise.
42558 2012-01-12  Bruno Haible  <bruno@clisp.org>
42560         random_r: Use common idioms.
42561         * lib/random_r.c: Include <stdlib.h> first.
42563         random_r: Override incompatible API on AIX, OSF/1.
42564         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
42565         Override the system function if REPLACE_RANDOM_R is 1.
42566         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
42567         and OSF/1, set REPLACE_RANDOM_R.
42568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
42569         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
42570         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
42571         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
42572         * doc/glibc-functions/random_r.texi: Likewise.
42573         * doc/glibc-functions/setstate_r.texi: Likewise.
42575         random_r: Support for MSVC 9.
42576         * lib/random_r.c: Include stdint.h, not inttypes.h.
42578 2012-01-12  Eric Blake  <eblake@redhat.com>
42580         inet_ntop: guard extra work by IF_LINT
42581         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
42582         better code generation when not checking for warnings.
42583         Suggested by Paul Eggert and Jim Meyering.
42585         strptime: fix regression on mingw
42586         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
42587         Fix regression.  Reported by Bruno Haible.
42589 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
42590             Bruno Haible  <bruno@clisp.org>
42592         copy-file: add error-code-returning variant.
42593         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
42594         (qcopy_file_preserving): New declaration.
42595         * lib/copy-file.c (qcopy_file_preserving): Renamed from
42596         copy_file_preserving. Change return type to 'int'. Don't emit an error
42597         message here.
42598         (copy_file_preserving): New function.
42599         * tests/test-copy-file.c: Include <stdlib.h>.
42600         (main): Test qcopy_file_preserving if the environment variable
42601         NO_STDERR_OUTPUT is set.
42602         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
42603         with NO_STDERR_OUTPUT
42604         * tests/test-copy-file-2.sh: Likewise.
42606 2012-01-10  Bruno Haible  <bruno@clisp.org>
42608         copy-file: Use 'quote' module consistently.
42609         * lib/copy-file.c (copy_file_preserving): Use quote().
42611         copy-file: Refactor.
42612         * lib/copy-file.c: Include quote.h.
42613         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
42614         message here.
42615         * modules/copy-file (Depends-on): Add quote.
42617         acl: Export qcopy_acl.
42618         * lib/acl.h (qcopy_acl): New declaration.
42619         * lib/copy-acl.c (qcopy_acl): Make non-static.
42621         acl: Rename a local variable.
42622         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
42624         acl: Align return values of copy_acl and qcopy_acl.
42625         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
42626         maybe < -1.
42628 2012-01-11  Eric Blake  <eblake@redhat.com>
42630         strptime: silence gcc warnings
42631         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
42632         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
42633         Reported by Daniel P. Berrange.
42635         inet_ntop: silence gcc warning
42636         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
42637         Reported by Daniel P. Berrange.
42639 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
42641         getloadavg test: skip the test on GNU/Linux without /proc mounted
42642         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
42643         file.  When /proc is not mounted, it always fails with ENOENT.
42644         * tests/test-getloadavg.c (main): Treat ENOENT return code from
42645         getloadavg(3) the same way as ENOSYS and ENOTSUP.
42647 2012-01-10  Bruno Haible  <bruno@clisp.org>
42649         regex: Avoid link error on MSVC 9.
42650         * modules/regex (Depends-on): Add wctype.
42652 2012-01-10  Bruno Haible  <bruno@clisp.org>
42654         doc: Mention --with-tests option.
42655         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
42656         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
42657         --with-tests.
42658         Reported by Reuben Thomas.
42660 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
42662         users.txt: order package names lexicographically.
42663         * users.txt: Order package names lexicographically.
42665 2012-01-10  Jim Meyering  <meyering@redhat.com>
42667         maint.mk: fix description in comment
42668         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
42670         ignore-value: remove deprecated ignore_ptr function
42671         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
42672         * NEWS: Note this.
42674 2012-01-09  Jim Meyering  <meyering@redhat.com>
42676         test-init.sh: avoid a subshell
42677         * tests/test-init.sh: Remove protective subshell.
42678         Suggested by Bernhard Voelker.  While a subshell is normally
42679         required to protect against older shells (Solaris, FreeBSD) that
42680         warn about a missing program before performing redirection, the
42681         shell-selection tests performed by init.sh probably exclude any
42682         offending shell.
42684 2012-01-08  Bruno Haible  <bruno@clisp.org>
42686         setlocale tests: Avoid test failure on Solaris 11.0.
42687         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
42688         variable.
42690 2012-01-08  Bruno Haible  <bruno@clisp.org>
42692         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
42693         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42694         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42695         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
42696         macro.
42697         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
42698         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42699         * lib/spawn_faction_addopen.c: Add workaround implementation if
42700         HAVE_WORKING_POSIX_SPAWN.
42701         * modules/spawn (Makefile): Substitute
42702         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42703         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
42704         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
42705         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42706         (Depends-on): Update conditions.
42707         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42708         the Solaris 11 bug.
42710 2012-01-08  Bruno Haible  <bruno@clisp.org>
42712         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
42713         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42714         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42715         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
42716         macro.
42717         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
42718         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42719         * lib/spawn_faction_adddup2.c: Add workaround implementation if
42720         HAVE_WORKING_POSIX_SPAWN.
42721         * modules/spawn (Makefile): Substitute
42722         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42723         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
42724         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
42725         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42726         (Depends-on): Update conditions.
42727         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42728         the Solaris 11 bug.
42730 2012-01-08  Bruno Haible  <bruno@clisp.org>
42732         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
42733         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42734         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42735         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
42736         HAVE_WORKING_POSIX_SPAWN.
42737         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
42738         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
42739         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42740         * lib/spawn_faction_addclose.c: Add workaround implementation if
42741         HAVE_WORKING_POSIX_SPAWN.
42742         * modules/spawn (Makefile): Substitute
42743         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42744         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
42745         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
42746         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42747         (Depends-on): Update conditions.
42748         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42749         the Solaris 11 bug.
42751 2012-01-08  Bruno Haible  <bruno@clisp.org>
42753         doc: Update for Solaris 11.0.
42754         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
42755         * m4/printf.m4: Update comments.
42757 2012-01-08  Bruno Haible  <bruno@clisp.org>
42759         mktime: Avoid compilation error on Solaris 11.
42760         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
42762 2012-01-08  Bruno Haible  <bruno@clisp.org>
42764         doc: Small fix.
42765         * doc/posix-headers/nl_types.texi: Correct platforms list.
42767 2012-01-08  Simon Josefsson  <simon@josefsson.org>
42769         Add lgpl-3.0 module.
42770         * MODULES.html.sh (Support for building documentation): Add
42771         lgpl-3.0.
42772         * modules/lgpl-3.0: New file.
42774 2012-01-08  Jim Meyering  <meyering@redhat.com>
42776         select.c: indent with spaces, not TABs
42777         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
42779 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42781         quotearg: do not use grave accent for left quote
42782         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
42783         locale_quoting_style.
42784         (quotearg_buffer_restyled): Fix example.
42785         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
42787 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42789         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
42790         Most programs do not have translation catalogs for English and much
42791         less separate catalogs for British and American English.  Drop the
42792         suggestion to translators about these two, and provide it
42793         automatically for Unicode locales.  Like most programs, even those
42794         using American English, we use single quotation marks.  This conflicts
42795         with the American typographic convention, but works better when you
42796         cite the entire error message within double quotes.  It also tries not
42797         to clash with established practice and with what non-gnulib programs
42798         will usually do.
42799         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
42800         using an UTF-8 or GB-18030 locale.  The list of other locales with
42801         quotes was provided by Bruno Haible.
42802         (quotearg_buffer_restyled): Adjust instructions to translators.
42803         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
42804         text, since this would be wrong when using Unicode.
42805         * modules/quotearg: Depend on c-strcaseeq.
42807 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42809         quotearg: fix Wikipedia link
42810         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
42812 2012-01-07  Simon Josefsson  <simon@josefsson.org>
42814         Fix for mingw with MSVC9.
42815         * m4/ld-version-script.m4: Check that compiler rejects version
42816         scripts with syntax errors.  Reported by Bruno Haible
42817         <bruno@clisp.org>.
42819 2012-01-06  Bruno Haible  <bruno@clisp.org>
42821         Talk about "native Windows API", not "Woe32".
42822         * lib/accept4.c: Update comments to mention native Windows.
42823         * lib/execute.c: Likewise.
42824         * lib/fatal-signal.c: Likewise.
42825         * lib/localcharset.c: Likewise.
42826         * lib/nanosleep.c: Likewise.
42827         * lib/nl_langinfo.c: Likewise.
42828         * lib/pclose.c: Likewise.
42829         * lib/pipe-filter-gi.c: Likewise.
42830         * lib/pipe-filter-ii.c: Likewise.
42831         * lib/pipe.c: Likewise.
42832         * lib/pipe2.c: Likewise.
42833         * lib/popen.c: Likewise.
42834         * lib/progreloc.c: Likewise.
42835         * lib/relocatable.c: Likewise.
42836         * lib/sigaction.c: Likewise.
42837         * lib/sigprocmask.c: Likewise.
42838         * lib/spawn-pipe.h: Likewise.
42839         * lib/spawn-pipe.c: Likewise.
42840         * lib/spawni.c: Likewise.
42841         * lib/stat-time.h: Likewise.
42842         * lib/w32spawn.h: Likewise.
42843         * tests/test-isatty.c: Likewise.
42844         * lib/config.charset: More comments.
42845         * doc/gnulib-intro.texi: Mention native Windows.
42846         * doc/posix-functions/_Exit_C99.texi: Likewise.
42847         * doc/posix-headers/fcntl.texi: Likewise.
42849 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
42851         argp: Avoid crash if translator uses % characters in a translation.
42852         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
42853         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
42855 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
42857         doc: C11 and C++11 are now official
42858         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
42859         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
42860         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
42861         * modules/stdalign:
42862         Replace references to draft C1X to C11, and to draft C++0X to C++11.
42864 2012-01-06  Bruno Haible  <bruno@clisp.org>
42866         uc-is-grapheme-break tests: Tweak.
42867         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
42868         message.
42870 2012-01-06  Bruno Haible  <bruno@clisp.org>
42872         test-init.sh: correct the test for diff -u
42873         * tests/test-init.sh: Also redirect stdout to /dev/null.
42875 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
42877         Use ', not `, for quoting output.
42878         * build-aux/announce-gen (usage, sizes, print_news_deltas)
42879         (print_changelog_deltas, get_tool_versions, main program):
42880         * build-aux/git-version-gen:
42881         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
42882         * build-aux/move-if-change (help):
42883         * build-aux/useless-if-before-free (usage, main program):
42884         * check-module (parse_module_file, usage)
42885         (find_included_lib_files, check_module):
42886         * lib/argmatch.c (main) [TEST]:
42887         * lib/argp-help.c (_help):
42888         * lib/getopt1.c (main) [TEST]:
42889         * lib/git-merge-changelog.c (usage):
42890         * lib/xstrtol-error.c (xstrtol_error):
42891         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
42892         * m4/argz.m4 (gl_FUNC_ARGZ):
42893         * m4/bison.m4 (gl_BISON):
42894         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
42895         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
42896         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
42897         * m4/fpending.m4 (gl_PREREQ_FPENDING):
42898         * m4/gc-random.m4 (gl_GC_RANDOM):
42899         * m4/intl.m4 (gt_CHECK_DECL):
42900         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
42901         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
42902         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
42903         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
42904         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
42905         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
42906         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
42907         * tests/test-dirname.c (main):
42908         * tests/test-getpass.c (main):
42909         * tests/test-iconvme.c (main):
42910         * tests/test-parse-datetime.c (LOG):
42911         * tests/test-xstrtoimax.sh:
42912         * tests/test-xstrtol.sh:
42913         * tests/test-xstrtoll.sh:
42914         * tests/test-xstrtoumax.sh:
42915         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
42916         * top/GNUmakefile (abort-due-to-no-makefile):
42917         Quote 'like this', not `like this', as per the recent change to
42918         the GNU coding standards.
42920 2012-01-05  Bruno Haible  <bruno@clisp.org>
42922         strtoimax: Don't force a replacement on systems where intmax_t is int.
42923         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
42924         'intmax_t' is not larger than 'int'.
42925         Reported by Pádraig Brady <P@draigBrady.com>.
42927 2012-01-05  Bruno Haible  <bruno@clisp.org>
42929         doc: Mention NetBSD bugs.
42930         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
42931         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
42933 2012-01-05  Bruno Haible  <bruno@clisp.org>
42935         strtoumax tests: Enhance tests.
42936         * tests/test-strtoumax.c (main): Add tests for large values.
42938 2012-01-05  Bruno Haible  <bruno@clisp.org>
42940         strtoimax: Work around AIX 5.1 bug.
42941         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
42942         definition.
42943         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
42944         Set HAVE_STRTOIMAX.
42945         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
42946         REPLACE_STRTOIMAX.
42947         * modules/inttypes-incomplete (Makefile.am): Substitute
42948         REPLACE_STRTOIMAX.
42949         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
42950         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
42951         (Depends-on): Update conditions.
42952         * tests/test-strtoimax.c (main): Add tests for large values.
42953         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
42955 2012-01-05  Bruno Haible  <bruno@clisp.org>
42957         inttypes: Modernize.
42958         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
42959         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
42960         (Makefile.am): Update inttypes.h rule.
42962 2012-01-05  Jim Meyering  <meyering@redhat.com>
42964         init.sh: don't waste a subshell just to redirect stderr
42965         * tests/init.sh: In testing for diff -u and diff -c, use a
42966         stderr-redirecting exec inside `...` rather than a subshell.
42968         test-init.sh: avoid failure on HP-UX 11.00
42969         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
42970         resolves to diff -c or cmp.  Reported by Bruno Haible.
42972 2012-01-05  Bruno Haible  <bruno@clisp.org>
42974         Tests for module 'strtoull'.
42975         * modules/strtoull-tests: New file.
42976         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
42978 2012-01-05  Bruno Haible  <bruno@clisp.org>
42980         Tests for module 'strtoll'.
42981         * modules/strtoll-tests: New file.
42982         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
42984 2012-01-05  Bruno Haible  <bruno@clisp.org>
42986         Tests for module 'strtoul'.
42987         * modules/strtoul-tests: New file.
42988         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
42990 2012-01-05  Bruno Haible  <bruno@clisp.org>
42992         Tests for module 'strtol'.
42993         * modules/strtol-tests: New file.
42994         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
42996 2012-01-04  Jim Meyering  <meyering@redhat.com>
42998         test-init.sh: accommodate Solaris 5.10's different diff -u output
42999         * tests/test-init.sh: Also exempt @@ lines from the comparison
43000         of diff output, since Solaris 5.10 and GNU diff formats differ.
43001         Reported by Stefano Lattarini.
43003 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43005         test-posixtm: don't assume signed integer wraparound
43006         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43007         after signed integer overflow.  Inspired by (though it may not
43008         fix) Bruno Haible's bug report in
43009         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43011         Spell out "Windows 9x" and "Windows XP".
43012         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43013         "Windows 9x" and "WinXP" with "Windows XP".
43015 2012-01-04  Jim Meyering  <meyering@redhat.com>
43017         test-vc-list-files-cvs.sh: remove obsolete comment
43018         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43019         double exit.  Now that's all encapsulated via skip_ and Exit.
43021 2012-01-04  Bruno Haible  <bruno@clisp.org>
43023         Talk about "native Windows API", not "Win32".
43024         * lib/classpath.c: Update comments to mention native Windows.
43025         * lib/csharpexec.c: Likewise.
43026         * lib/dup2.c: Likewise.
43027         * lib/error.c: Likewise.
43028         * lib/fcntl.c: Likewise.
43029         * lib/filename.h: Likewise.
43030         * lib/findprog.c: Likewise.
43031         * lib/get-rusage-as.c: Likewise.
43032         * lib/get-rusage-data.c: Likewise.
43033         * lib/getpagesize.c: Likewise.
43034         * lib/javaexec.c: Likewise.
43035         * lib/msvc-inval.c: Likewise.
43036         * lib/msvc-nothrow.c: Likewise.
43037         * lib/nanosleep.c: Likewise.
43038         * lib/nonblocking.c: Likewise.
43039         * lib/printf-parse.c: Likewise.
43040         * lib/setlocale.c: Likewise.
43041         * lib/sigaction.c: Likewise.
43042         * lib/strerror_r.c: Likewise.
43043         * lib/tmpdir.c: Likewise.
43044         * lib/vasnprintf.c: Likewise.
43045         * lib/w32spawn.h: Likewise.
43046         * lib/waitpid.c: Likewise.
43047         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43048         * m4/locale-ar.m4: Likewise.
43049         * m4/locale-fr.m4: Likewise.
43050         * m4/locale-ja.m4: Likewise.
43051         * m4/locale-tr.m4: Likewise.
43052         * m4/locale-zh.m4: Likewise.
43053         * m4/printf.m4: Likewise.
43054         * tests/test-cloexec.c: Likewise.
43055         * tests/test-copy-acl.sh: Likewise.
43056         * tests/test-copy-file.sh: Likewise.
43057         * tests/test-file-has-acl.sh: Likewise.
43058         * tests/test-set-mode-acl.sh: Likewise.
43059         * tests/test-dup-safer.c: Likewise.
43060         * tests/test-dup2.c: Likewise.
43061         * tests/test-dup3.c: Likewise.
43062         * tests/test-fcntl.c: Likewise.
43063         * tests/test-nonblocking-pipe.h: Likewise.
43064         * tests/test-nonblocking-socket.h: Likewise.
43065         * tests/test-pipe.c: Likewise.
43066         * tests/test-pipe2.c: Likewise.
43067         * tests/test-spawn-pipe-child.c: Likewise.
43068         * doc/acl-resources.txt: Likewise.
43069         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43070         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43071         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43072         * lib/localcharset.c: Update comments to mention native Windows.
43073         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43074         * lib/localename.c: Likewise.
43075         * lib/progreloc.c: Likewise.
43076         * lib/relocatable.c: Likewise.
43077         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43078         (windows_compute_revents): Renamed from win32_compute_revents.
43079         (windows_compute_revents_socket): Renamed from
43080         win32_compute_revents_socket.
43081         * lib/select.c: Update comments to mention native Windows.
43082         (windows_poll_handle): Renamed from win32_poll_handle.
43083         * m4/threadlib.m4: Update comments to mention native Windows.
43084         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43085         --enable-threads=windows instead of --enable-threads=win32. Set
43086         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43087         * lib/glthread/lock.h: Update comments to mention native Windows.
43088         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43089         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43090         USE_WIN32_THREADS.
43091         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43092         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43093         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43094         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43095         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43096         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43097         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43098         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43099         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43100         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43101         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43102         * tests/test-tls.c: Likewise.
43103         Rationale:
43104         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43105         on both 32-bit and 64-bit Windows systems.
43106         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43107         line of distinction is between "native Windows" on one side and Unix/
43108         POSIX systems on the other side. More details in
43109         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43110         Suggested by Paul Eggert.
43112 2012-01-03  Bruno Haible  <bruno@clisp.org>
43114         isatty: Support for MSVC 9.
43115         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43116         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43117         (_isatty_nothrow): New function.
43118         (isatty): Use it instead of _isatty.
43119         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43120         * lib/poll.c (IsConsoleHandle): Likewise.
43121         * lib/select.c (IsConsoleHandle): Likewise.
43122         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43123         (gl_PREREQ_ISATTY): New macro.
43124         * modules/isatty (Depends-on): Add msvc-inval.
43125         (configure.ac): Invoke gl_PREREQ_ISATTY.
43127 2012-01-03  Jim Meyering  <meyering@redhat.com>
43129         maint.mk: remove temporary transition aid from over 1.5 years ago
43130         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43131         purpose was to aid in the transition (avoiding silent malfunction)
43132         from that old name to the new _sc_search_regexp.  This shim was
43133         added by commit 219c504b.
43135         init.sh: do not try to accommodate compare arguments starting with "-"
43136         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43137         compare arguments that start with "-".  Besides, we do not worry
43138         about this when invoking diff or cmp; why start now with sed?
43139         Using "--" to separate options from argument would trigger sed
43140         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43141         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43143 2012-01-02  Bruno Haible  <bruno@clisp.org>
43145         Enhance tests for module 'isatty'.
43146         * modules/isatty-tests (Depends-on): Add pipe-posix.
43147         * tests/test-isatty.c: Include <fcntl.h>.
43148         (DEV_NULL): New macro.
43149         (main): Test the resut of isatty() also on regular files, pipes, and
43150         /dev/null.
43152         New module 'isatty'.
43153         * lib/unistd.in.h (isatty): New declaration.
43154         * lib/isatty.c: New file, based on an idea of
43155         Bastien Roucariès <roucaries.bastien@gmail.com>.
43156         * m4/isatty.m4: New file.
43157         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43158         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43159         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43160         REPLACE_ISATTY.
43161         * modules/isatty: New file.
43162         * doc/posix-functions/isatty.texi: Mention the new module.
43163         Suggested by Paolo Bonzini.
43165 2012-01-02  Bruno Haible  <bruno@clisp.org>
43167         canonicalize: Tweak 2011-12-29 commit.
43168         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43169         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43171 2012-01-02  Jim Meyering  <meyering@redhat.com>
43173         gitlog-to-changelog: describe input syntax in --help output
43174         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43176         gitlog-to-changelog: fix typo in --help: show backslash before email @
43177         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43178         in sources, but not in actual output.
43180 2011-12-30  Jim Meyering  <meyering@redhat.com>
43182         gitlog-to-changelog: don't malfunction when name contains %-directive
43183         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43184         in a name string cause trouble.  E.g., with a user name of "%s",
43185         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43187 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43189         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43190         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43191         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43192         the "  (tiny change)" notation that is appended to the standard
43193         ChangeLog "date  name  email" header line.
43195 2012-01-01  Jim Meyering  <meyering@redhat.com>
43197         test-framework-sh: init.sh: fix "make dist" failure
43198         When using gnulib-tool's --with-tests option and any module that
43199         depends on test-framework-sh, "make dist" would fail due to the
43200         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43201         in the gltests directory, and not in the gllib/ directory.
43202         One way to work around that is to move the EXTRA_DIST += init.sh
43203         from the primary module to the -tests one:
43204         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43205         * modules/test-framework-sh (Makefile.am): ...not here.
43206         Reported by Tom G. Christensen in
43207         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
43209         version-etc: update copyright year reported by --version
43210         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
43212 2011-12-31  Pádraig Brady  <P@draigBrady.com>
43214         canonicalize: only stat() if required
43215         * lib/canonicalize.c (canonicalize_filename_mode):
43216         Avoid calling l?stat() when both CAN_MISSING,
43217         and CAN_NOLINKS are set, as we neither need
43218         to resolve symlinks or test component existence.
43220 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
43222         doc: cover st_ino issues once; add OpenVMS etc.
43223         * doc/posix-functions/stat.texi (stat):
43224         * doc/posix-functions/lstat.texi (lstat):
43225         * doc/posix-functions/fstatat.texi (fstatat):
43226         * doc/posix-functions/fstat.texi (fstat):
43227         Move general 'struct stat' stuff to sys_stat.texi,
43228         leaving behind a pointer.
43229         * doc/posix-headers/sys_stat.texi (sys/stat.h):
43230         Merge duplicate info about 'struct stat' problems into here.
43231         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
43232         and suggest partial workarounds.
43234         same-inode: port to OpenVMS
43235         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
43236         three st_ino values.
43238 2011-12-30  Pádraig Brady  <P@draigBrady.com>
43240         canonicalize: fix references to stat() and lstat()
43241         * lib/canonicalize.c (canonicalize_filename_mode):
43242         Ensure references always resolve to a replacement
43243         function if required (even via a macro).
43245 2011-12-30  Jim Meyering  <meyering@redhat.com>
43247         gitlog-to-changelog: remove a little duplication
43248         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43249         rather than twice.
43251 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43253         canonicalize: add support for not resolving symlinks
43254         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43255         indicate we don't want to follow symlinks.  Also
43256         provide CAN_MODE_MASK to aid setting these existing
43257         mutually exclusive values.
43258         * lib/canonicalize.c (canonicalize_filename_mode):
43259         Extract the flags from can_mode parameter, which
43260         are currently just used to select between stat()
43261         and lstat().  Also ensure that mutually exclusive
43262         values are flagged immediately as invalid.
43263         * tests/test-canonicalize.c: Verify symlinks are
43264         not followed, and that invalid flag combinations
43265         are diagnosed.
43267 2011-12-25  Jim Meyering  <meyering@redhat.com>
43269         gitlog-to-changelog: do not clump multi-paragraph entries
43270         Identical header lines (date,name,email+coauthors) are suppressed,
43271         thus putting all entries with those same characteristics under
43272         a single header.  However, when a log entry consists of two or
43273         more paragraphs, it may not be clear where it starts and ends.
43274         This change makes it so that such an entry is always separated
43275         from others by a header line, even when that header would
43276         otherwise be suppressed.
43277         * build-aux/gitlog-to-changelog: Implement the above.
43278         Inspired by a related request from Stefano Lattarini in
43279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43281 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43283         announce-gen: fix `cmd' typo in diagnostic
43284         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43285         diagnostic: a missing '$' meant that the command was not output.
43287 2011-12-23  Jim Meyering  <meyering@redhat.com>
43289         test-framework-sh: distribute init.sh
43290         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43291         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43292         fail due to the lack of init.sh.
43294         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43295         * modules/atexit-tests: Rather than listing tests/init.sh,
43296         now that there's a module for it, simply depend on that new module.
43297         * modules/closein-tests: Likewise.
43298         * modules/exclude-tests: Likewise.
43299         * modules/getcwd-tests: Likewise.
43300         * modules/perror-tests: Likewise.
43301         * modules/pread-tests: Likewise.
43302         * modules/pwrite-tests: Likewise.
43303         * modules/vc-list-files-tests: Likewise.
43304         * modules/verify-tests: Likewise.
43305         * modules/xalloc-die-tests: Likewise.
43306         * modules/xstrtoimax-tests: Likewise.
43307         * modules/xstrtol-tests: Likewise.
43308         * modules/xstrtoll-tests: Likewise.
43309         * modules/xstrtoumax-tests: Likewise.
43310         * modules/yesno-tests: Likewise.
43312 2011-12-22  Jim Meyering  <meyering@redhat.com>
43314         test-framework-sh: add minimal tests of init.sh's compare function
43315         * modules/test-framework-sh-tests: New file.
43316         * tests/test-init.sh: New file.
43318         test-framework-sh: new module
43319         * modules/test-framework-sh: New file.
43320         * MODULES.html.sh (Support for maintaining and releasing projects):
43321         List it.
43323         init.sh: do not emit simulated diff output to stderr
43324         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43326 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43328         .gitignore: ignore gnulib.dvi and regex.info
43329         * doc/.gitignore:add gnulib.dvi and regex.info
43331 2011-12-22  Jim Meyering  <meyering@redhat.com>
43333         init.sh: correct previous change
43334         * tests/init.sh (compare): My previous change was wrong.
43335         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43337         init.sh: avoid unwarranted test failure when using "set -e"
43338         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43339         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43340         a use like "compare exp out" would get evoke an unconditional failure.
43342 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43344         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43345         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43346         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43347         autoreconf that did not.
43348         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43349         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43351 2011-12-17  Jim Meyering  <meyering@redhat.com>
43353         bootstrap: remove some now-unneeded code
43354         This script arose back when gnulib-tool was young.
43355         Since then, it has seen improvements that render much of this
43356         script unnecessary.  In particular, it can now make symlinks
43357         to the files it uses.  Also, I no longer see as much value in
43358         marking files as read-only via comments.
43359         If you relied on the symlink-creation feature of the preceding
43360         version of this script, you can get most of that functionality
43361         by adding the --symlink option to the definition of
43362         gnulib_tool_option_extras in your bootstrap.conf file.
43363         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43364         Run autopoint and libtoolize *before* gnulib-tool.
43365         After it, run an abbreviated autoreconf, rather than a loop around
43366         all tools.
43367         (slirp, bt_mark_as_generated): Remove functions.
43369 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43371         ftoastr: fix typo
43372         * lib/ftoastr.h: Fix misspelling in comment.
43374 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43376         * top/README-release: fix punctuation.
43378 2011-12-17  Jim Meyering  <meyering@redhat.com>
43380         bootstrap: correct the recent buildreq change
43381         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
43382         had no effect.
43383         * build-aux/bootstrap (buildreq): Bracket each search term with
43384         "*...*", so that the shell "case" statement works as intended.
43385         Add comments.
43387 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
43389         build: let bootstrap resort to wget when downloading .po files
43390         * build-aux/bootstrap (download_po_files): Fallback to wget when
43391         downloading the .po files via rsync fails.  This is necessary to
43392         bootstrap from behind a strict firewall.
43394 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43396         stdint: don't assume C++11 when compiling with g++
43397         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
43398         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
43399         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
43400         work also in C++ before C++11, as that improperly inhibits
43401         generating a substitute stdint.h for that case.
43403 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43405         alloca: protect comment from gnulib-tool
43406         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
43407         that gnulib-tool doesn't think it's a license, and munge it to
43408         say "GCC version 3".
43410 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
43412         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
43413         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
43414         $(abs_top_builddir) instead of $(top_builddir).
43416 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
43418         strftime-tests: also test nanoseconds
43419         * tests/test-strftime.c (T): Add a test of %N.
43421 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
43423         inttypes, stdint: add C++11 support
43424         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
43425         when including inttypes.h and stdint.h.  Support this change to
43426         the standard.
43427         * doc/posix-headers/inttypes.texi (inttypes.h):
43428         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43429         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
43430         Define if not defined already, for the benefit of pre-C++11 hosts.
43431         Define the standard format macros (e.g., PRId8) always.
43432         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
43433         Likewise, if __cpluspus.  Define the standard constant and limit
43434         macros (e.g., INT8_C, INT8_MAX) always.
43435         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
43436         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
43437         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
43438         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
43439         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
43440         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
43441         Likewise.
43443 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43445         nonblocking tests: Fix test failure on Linux/PPC.
43446         Suggested by Prerna Saxena in
43447         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
43448         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
43449         Set to 1100000.
43451 2011-12-12  Jim Meyering  <meyering@redhat.com>
43453         argmatch: don't hard-code `' when listing valid option arguments
43454         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
43455         use the quote function to add quotes.  Use fputs rather than
43456         fprintf for the format string with no format directive.
43458 2011-12-07  Eric Blake  <eblake@redhat.com>
43460         bootstrap: detect tools required by gnulib-tool
43461         * build-aux/bootstrap (buildreq): Provide minimum implicit
43462         dependencies.
43463         * DEPENDENCIES: Mention patch as a prereq.
43465 2011-12-04  Bruno Haible  <bruno@clisp.org>
43467         sethostname: Port to Windows platforms.
43468         * lib/sethostname.c: Provide an alternate implementation for Windows
43469         platforms.
43470         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
43471         (main): Skip the test if sethostname() fails with EPERM. On Windows
43472         platforms, don't check the result of gethostname().
43474 2011-12-04  Bruno Haible  <bruno@clisp.org>
43475             Jim Meyering  <meyering@redhat.com>
43477         tests: Avoid spurious error message on platforms without mktemp program.
43478         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
43480 2011-12-04  Bruno Haible  <bruno@clisp.org>
43482         sethostname: Fix documentation.
43483         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
43484         "not fixed" section.
43486 2011-12-03  Bruno Haible  <bruno@clisp.org>
43488         gnulib-tool: Verify that the License field is present and non-empty.
43489         * gnulib-tool (func_get_license_raw): New function, extracted from
43490         func_get_license.
43491         (func_get_license): Use it. Warn if the module is not a test module and
43492         has no license.
43493         Suggested by Jim Meyering.
43495 2011-12-03  Bruno Haible  <bruno@clisp.org>
43497         sethostname tests: Fix link error on mingw.
43498         * tests/test-sethostname1.c: New file, extracted from
43499         tests/test-sethostname.c.
43500         * tests/test-sethostname2.c: New file, extracted from
43501         tests/test-sethostname.c.
43502         * tests/test-sethostname.c: Remove file.
43503         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
43504         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
43505         (Depends-on): Add gethostname.
43506         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
43507         Link the latter with $(GETHOSTNAME_LIB).
43509         sethostname tests: Fix compilation error on mingw.
43510         * tests/test-sethostname.c: Don't include <sys/types.h>.
43511         (geteuid): Use a dummy value without uid_t.
43512         * modules/sethostname-tests (Depends-on): Remove sys_types.
43514         sethostname tests: Avoid a gcc warning.
43515         * tests/test-sethostname.c (main): Remove an unused variable.
43517         Tweak last commit.
43518         * modules/sethostname-tests (Files): Sort by decreasing importance.
43519         (configure.ac): Check for geteuid.
43520         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
43521         the test when there's nothing to test. Drop an unnecessary cast.
43522         Improve an error message. Verify that the final sethostname() call
43523         succeeds.
43525 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43527         Add a test suite for the sethostname module.
43528         * modules/sethostname-tests: New file.  A test program
43529         for the sethostname module.
43530         * tests/test-sethostname.c: Likewise.
43532 2011-12-03  Bruno Haible  <bruno@clisp.org>
43534         Tweak last commit.
43535         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
43536         Fix preprocessor directives indentation. Fix typos.
43537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
43538         * modules/unistd (Makefile): Likewise.
43540 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43542         Integrate the sethostname module into unistd.
43543         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
43544         into the unistd.h header.
43545         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
43546         preprocessor directives.
43547         * modules/unistd: Setup the Makefile substitutions of the
43548         SETHOSTNAME preprocessor directives.
43550 2011-12-03  Bruno Haible  <bruno@clisp.org>
43552         Tweak last commit.
43553         * lib/sethostname.c: Don't include <string.h>.
43554         (sethostname): No need to copy the argument string to the stack. Don't
43555         call clearerr. Preserve errno when fprintf failed.
43556         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
43557         Don't invoke AC_REPLACE_FUNCS.
43558         * modules/sethostname (Link): Remove empty section.
43559         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
43560         failure problem.
43562 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43564         New module 'sethostname'.
43565         * lib/sethostname.c (sethostname): New file.  Provide sethostname
43566         for systems that lack it.
43567         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
43568         sethostname declaration and function.
43569         * modules/sethostname: New file.  Define the sethostname module.
43571 2011-12-03  Bruno Haible  <bruno@clisp.org>
43573         Tweak last commit.
43574         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
43576 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43578         Split the HOST_NAME_MAX detection into a separate m4 macro.
43579         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
43580         macro so it can be used by the pending sethostname module.
43582 2011-12-03  Bruno Haible  <bruno@clisp.org>
43584         Fix module descriptions syntax.
43585         * modules/argv-iter (License): Fix syntax.
43586         * modules/di-set (License): Likewise.
43587         * modules/ino-map (License): Likewise.
43588         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
43590 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
43592         stdalign: port to Clang 3.0
43593         Problem reported by Simon Josefsson in
43594         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
43595         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
43596         which has <stdalign.h> but which does not define alignof.
43597         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
43599 2011-12-01  Eric Blake  <eblake@redhat.com>
43601         mktempd: silence dd usage
43602         * build-aux/mktempd (rand_bytes): Silence dd.
43604 2011-11-30  Simon Josefsson  <simon@josefsson.org>
43606         manywarnings: Don't mention gcc version in docstring.
43607         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
43608         Jim Meyering <meyering@redhat.com>.
43610 2011-11-30  Jim Meyering  <meyering@redhat.com>
43612         hash: mark a few floating point constants with "f" suffix
43613         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
43614         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
43615         floating point constants with "f", since they're destined to be
43616         saved/used as "float"s.
43618 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
43620         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
43621         * tests/test-float.c (test_long_double): Correct and re-enable the
43622         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
43624 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
43626         Avoid subtracting two pointers that don't point into the same block.
43627         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
43628         only pointers into the same memory block are subtracted. We cannot
43629         assume that sizeof (ptrdiff_t) == sizeof (void *).
43631 2011-11-29  Eric Blake  <eblake@redhat.com>
43633         maint.mk: add syntax check for use of compare from init.sh
43634         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
43635         moved here from coreutils.
43637         manywarnings: drop -Wunsuffixed-float-constants
43638         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
43639         '1.0D', which is the only way to silence this warning for 'double'.
43641 2011-11-29  Jim Meyering  <meyering@redhat.com>
43643         hash: mark compute_bucket_size with the pure attribute
43644         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
43646         quotearg, propername: correct pragma guard expression
43647         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
43648         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
43650 2011-11-28  Jim Meyering  <meyering@redhat.com>
43652         propername: do not mark proper_name with the const attribute
43653         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
43654         since it examines data pointed to by its parameter.
43655         * lib/propername.c (proper_name): Instead, add a pragma to suppress
43656         the suggestion from -Wsuggest-attribute=const.
43658         propername: mark one more function as const
43659         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
43661 2011-11-27  Jim Meyering  <meyering@redhat.com>
43663         mark functions with const and pure attributes
43665         Mark functions per suggestions from gcc-4.6 when using these options:
43666         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
43667         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
43668         Follow these guidelines: when possible, apply the attribute to
43669         an extern declaration, not to its definition.  Apply it to the
43670         definition only when the definition is static.
43671         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
43672         * lib/argv-iter.h (argv_iter_n_args): Likewise.
43673         * lib/base64.h (isbase64): Likewise.
43674         * lib/basename-lgpl.c (last_component, base_len): Likewise.
43675         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
43676         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
43677         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
43678         (c_tolower, c_toupper): Likewise.
43679         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
43680         * lib/chdir-long.c (find_non_slash): Likewise.
43681         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
43682         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
43683         * lib/file-type.h (file_type): Likewise.
43684         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
43685         * lib/filevercmp.c (verrevcmp): Likewise.
43686         * lib/freadahead.h (freadahead): Likewise.
43687         * lib/fts.c (fts_maxarglen): Likewise.
43688         * lib/hash-pjw.h (hash_pjw): Likewise.
43689         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
43690         * lib/hash.c (is_prime, next_prime): Likewise.
43691         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
43692         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
43693         (hash_table_ok, hash_get_first, hash_string): Likewise.
43694         (compute_bucket_size): Likewise.
43695         * lib/i-ring.h (i_ring_empty): Likewise.
43696         * lib/isnan.c (isnanl): Likewise.
43697         * lib/math.h (isnanl, rpl_isnanl): Likewise.
43698         * lib/memcasecmp.h (memcasecmp): Likewise.
43699         * lib/memchr2.h (memchr2): Likewise.
43700         * lib/memcmp2.h (memcmp2): Likewise.
43701         * lib/parse-datetime.y (lookup_zone): Likewise.
43702         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
43703         [!WINDOWS_SOCKETS]: Likewise.
43704         * lib/strnlen1.h (strnlen1): Likewise.
43705         * lib/uniwidth.in.h (uc_width): Likewise.
43706         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
43707         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
43708         (quoting_options_from_style): Add a comment.
43709         * lib/propername.h (proper_name): Add a comment.
43711 2011-11-27  Bruno Haible  <bruno@clisp.org>
43713         Remove unused macros from !_LIBC code in glibc-borrowed files.
43714         * lib/fnmatch.c (STRCOLL): Remove macro.
43715         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
43716         * lib/glob.c (__stat, __readdir64): Remove macros.
43717         * lib/tempname.c (__open64, __xstat64): Remove macros.
43718         Suggested by Paul Eggert.
43720 2011-11-27  Bruno Haible  <bruno@clisp.org>
43722         getcwd: Fix link error on MSVC 9.
43723         * modules/getcwd (Depends-on): Add readdir, rewinddir.
43725 2011-11-27  Bruno Haible  <bruno@clisp.org>
43727         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
43728         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
43729         HAVE_OPENDIR is 0.
43730         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
43731         HAVE_CLOSEDIR is 0.
43732         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
43733         is 0.
43734         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
43736 2011-11-27  Bruno Haible  <bruno@clisp.org>
43738         getcwd: Fix bug from 2011-08-17.
43739         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
43740         platforms that need it.
43741         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
43742         code of 4 to be a failure, not a success. This ensures that
43743         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
43745 2011-11-27  Bruno Haible  <bruno@clisp.org>
43747         binary-io tests: Avoid test failure on mingw when libtool is used.
43748         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
43749         Don't verify the size of t-bin-out1.tmp here.
43750         * tests/test-binary-io.sh: Verify it here.
43751         Reported by Simon Josefsson.
43753 2011-11-26  Bruno Haible  <bruno@clisp.org>
43755         Fix conflict between two instantiations of module 'unistd'.
43756         * gnulib-tool (func_emit_autoconf_snippet): Substitute
43757         ${include_guard_prefix} also in the autoconf snippet.
43758         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
43759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
43760         GNULIB_UNISTD_H_GETOPT.
43761         * modules/getopt-posix (configure.ac): Set the
43762         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
43763         * modules/getopt-gnu (configure.ac): Likewise.
43764         * modules/unistd (Makefile.am): Change the substitution value of
43765         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
43766         Reported by Simon Josefsson.
43768 2011-11-25  Bruno Haible  <bruno@clisp.org>
43770         pagealign_alloc: Doc and comments.
43771         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
43772         module.
43773         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
43775 2011-11-25  Jim Meyering  <meyering@redhat.com>
43777         test-update-copyright.sh: avoid false-positive failure
43778         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
43779         around false positive failure on Cygwin/Windows.  The latter was
43780         matching erroneously-created files with names like
43781         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
43783 2011-11-25  Simon Josefsson  <simon@josefsson.org>
43785         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
43786         * m4/valgrind-tests.m4: Check that the parameters that will be
43787         used works, not just a subset of them.  Reported by Bruno Haible
43788         <bruno@clisp.org>.
43790 2011-11-24  Jim Meyering  <meyering@redhat.com>
43792         test-stdalign.c: comment out long double tests
43793         * tests/test-stdalign.c: Don't try to reduce alignment of long double
43794         variables.  That provokes errors like this from gcc-4.7.0 20111124:
43795         error: '_Alignas' specifiers cannot reduce alignment of \
43796         'static_longdouble_alignas'.
43798 2011-11-22  Jim Meyering  <meyering@redhat.com>
43800         init.sh: make "compare /dev/null FILE" output more readable
43801         * tests/init.sh (compare_): Document the preferred order of arguments.
43802         (emit_diff_u_header_): New function.
43803         (compare_dev_null_): Emit a simulated diff, rather than just the
43804         contents of the unexpected file.  Suggestion from Bruno Haible.
43806 2011-11-21  Jim Meyering  <meyering@redhat.com>
43807             Eric Blake  <eblake@redhat.com>
43809         init.sh: work around OSF/1 5.1's mishandling of /dev/null
43810         * tests/init.sh: Make our compare function slightly more portable.
43811         Reported by Bruno Haible in
43812         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
43814 2011-11-21  Simon Josefsson  <simon@josefsson.org>
43816         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
43817         before using it, in code that ends up in config.h.
43819 2011-11-20  Bruno Haible  <bruno@clisp.org>
43821         getcwd: Work around getcwd bug on AIX 5..7.
43822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
43823         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
43824         Use a different value for gl_cv_func_getcwd_path_max. Move the
43825         definition of HAVE_PARTLY_WORKING_GETCWD from here...
43826         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
43827         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
43828         Define HAVE_MINIMALLY_WORKING_GETCWD.
43829         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
43830         where it is not even minimally working, that is, on AIX.
43831         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
43832         m4/getcwd-path-max.m4.
43833         (main): Update exit code computation.
43834         * doc/posix-functions/getcwd.texi: Mention list of platforms where
43835         getcwd does not handle long file names.
43837 2011-11-20  Bruno Haible  <bruno@clisp.org>
43839         getcwd: Fix bug from 2009-09-10.
43840         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
43841         like "no".
43843 2011-11-20  Simon Josefsson  <simon@josefsson.org>
43845         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
43847 2011-11-20  Bruno Haible  <bruno@clisp.org>
43849         fma tests: Avoid shadowing local variables.
43850         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
43851         expected.
43853 2011-11-20  Bruno Haible  <bruno@clisp.org>
43855         copysignf tests: Fix.
43856         * tests/test-copysignf.c: Fix signature check.
43858 2011-11-20  Bruno Haible  <bruno@clisp.org>
43860         fma: Remove unused code.
43861         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
43862         unused macros.
43864 2011-11-20  Bruno Haible  <bruno@clisp.org>
43866         sethostname: Fix doc about AIX.
43867         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
43868         sethostname; it has it.
43870         sethostname: Mention more portability problems.
43871         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
43872         problem.
43873         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
43875 2011-11-19  Bruno Haible  <bruno@clisp.org>
43877         Depend on module fcntl-h when AT_FDCWD is used.
43878         * modules/utimens (Depends-on): Add fcntl-h.
43879         * modules/areadlinkat (Depends-on): Likewise.
43880         * modules/areadlinkat-with-size (Depends-on): Likewise.
43881         * modules/faccessat (Depends-on): Likewise.
43882         * modules/fchmodat (Depends-on): Likewise.
43883         * modules/fchownat (Depends-on): Likewise.
43884         * modules/getcwd (Depends-on): Likewise.
43885         * modules/mkdirat (Depends-on): Likewise.
43886         * modules/mkfifoat (Depends-on): Likewise.
43887         * modules/readlinkat (Depends-on): Likewise.
43888         * modules/symlinkat (Depends-on): Likewise.
43889         * modules/dup2-tests (Depends-on): Likewise.
43890         * modules/fdutimensat-tests (Depends-on): Likewise.
43891         * modules/futimens-tests (Depends-on): Likewise.
43893 2011-11-19  Bruno Haible  <bruno@clisp.org>
43895         euidaccess: Update a comment.
43896         * lib/euidaccess.c: Update comment about platforms with faccessat.
43898 2011-11-19  Bruno Haible  <bruno@clisp.org>
43900         openat: Fix file list.
43901         * modules/openat (Files): Remove lib/at-func.c.
43903 2011-11-19  Bruno Haible  <bruno@clisp.org>
43905         fstatat: Simplify.
43906         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
43907         gnulib should define rpl_fstatat, there is a
43908         "#define fstatat rpl_fstatat" in <sys/stat.h>.
43910 2011-11-19  Bruno Haible  <bruno@clisp.org>
43912         Ensure 'inline' can be used in tests/test-utimens-common.h.
43913         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
43914         * modules/futimens-tests (configure.ac): Likewise.
43915         * modules/utimens-tests (configure.ac): Likewise.
43916         * modules/utimensat-tests (configure.ac): Likewise.
43918 2011-11-19  Simon Josefsson  <simon@josefsson.org>
43920         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
43921         not hash_insert0.
43922         (hash_insert_if_absent): Doc fix.
43924 2011-11-19  Simon Josefsson  <simon@josefsson.org>
43926         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
43928 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
43930         test-getcwd: disambiguate exit status
43931         * tests/test-getcwd.c (test_long_name): Return 0..7.
43932         (main): Exit with an unambiguous exit status.  The old
43933         code yielded a mysterious mixture of two failure codes.
43935         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
43936         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
43937         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
43938         rpl_fstatat or fstatat.  This should fix the other problem
43939         reported by Kai Habel in
43940         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
43941         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
43942         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
43943         and I reproduced it on a Solaris 8 host we still have in production.
43945 2011-11-18  Jim Meyering  <meyering@redhat.com>
43947         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
43948         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
43949         Add a sentence to the comment.
43950         (hash_insert0): New function that simply calls hash_insert_if_absent.
43951         * lib/hash.h (hash_insert_if_absent): Declare it.
43952         (hash_insert0): Add deprecation attribute.
43953         (_GL_ATTRIBUTE_DEPRECATED): Define.
43954         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
43955         not hash_insert0.
43956         * NEWS: Mention it, even though it's not really an incompatible change.
43958 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
43960         openat: avoid compilation failure due to lack of <errno.h> inclusion
43961         * lib/openat.c: Include <errno.h>.
43963 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43965         * modules/getcwd (Depends-on): Add fdopendir.
43966         This fixes one of the two problems reported by Kai Habel in
43967         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
43969         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
43970         stdalign problem reported by Ian Beckwith in
43971         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
43972         * modules/crypto/gc-arcfour (Depends-on):
43973         Depend conditionally on crypto/arcfour.
43974         * modules/crypto/gc-arctwo (Depends-on):
43975         Depend conditionally on crypto/arctwo.
43976         * modules/crypto/gc-des (Depends-on):
43977         Depend conditionally on crypto/des.
43978         * modules/crypto/gc-hmac-md5 (Depends-on):
43979         Depend conditionally on crypto/hmac-md5.
43980         * modules/crypto/gc-hmac-sha1 (Depends-on):
43981         Depend conditionally on crypto/hmac-sha1.
43982         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
43983         * modules/crypto/gc-md4 (Depends-on):
43984         Depend conditionally on crypto/md4.
43985         * modules/crypto/gc-md5 (Depends-on):
43986         Depend conditionally on crypto/md5.
43987         * modules/crypto/gc-rijndael (Depends-on):
43988         Depend conditionally on crypto/rijndael.
43989         * modules/crypto/gc-sha1 (Depends-on):
43990         Depend conditionally on crypto/sha1.
43991         * modules/crypto/gc-arcfour:
43992         * modules/crypto/gc-arctwo:
43993         * modules/crypto/gc-des:
43994         * modules/crypto/gc-hmac-md5:
43995         * modules/crypto/gc-hmac-sha1:
43996         * modules/crypto/gc-md2:
43997         * modules/crypto/gc-md4:
43998         * modules/crypto/gc-md5:
43999         * modules/crypto/gc-rijndael:
44000         * modules/crypto/gc-sha1:
44001         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44002         now that the conditional dependencies do the work for us.
44004 2011-11-17  Jim Meyering  <meyering@redhat.com>
44006         tests: factor st_ctime-comparison out of two headers
44007         * tests/test-utimens-common.h (ctime_compare): Define.
44008         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44009         * tests/test-lutimens.h (test_lutimens): Likewise.
44010         * tests/test-utimens.h (test_utimens): Likewise.
44012         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44013         Invoke the test program via an init.sh-using wrapper.
44014         * tests/test-getcwd.sh: New file.
44015         * modules/getcwd-tests (Files): Add it.
44016         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44018 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44020         gitlog-to-changelog: support multi-author commits.
44021         The FSF cares about keeping track of all authors of patches to its
44022         projects, but Git doesn't provide obvious support for multi-author
44023         changesets. Consensus seems to be forming around the use of extra
44024         Signed-off-by inspired lines in the log message formatted as
44025         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44026         multi-author commits between version control systems.
44027         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44028         log message and output in standard ChangeLog multi-author format.
44029         Reported by Peter Rosin <peda@lysator.liu.se>
44031 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44032             Bruno Haible  <bruno@clisp.org>
44034         Fix some modules' file list.
44035         * modules/fstatat (Files): Add m4/lstat.m4.
44036         * modules/openat (Files): Likewise.
44037         * modules/unlinkat (Files): Likewise.
44039 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44041         maint.mk: fix tight-scope.mk generation in VPATH builds.
44042         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44043         reference with $(srcdir) so that the file is found correctly even
44044         when running `make syntax-check' in a VPATH build.
44046 2011-11-13  Bruno Haible  <bruno@clisp.org>
44047             Jim Meyering  <meyering@redhat.com>
44049         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44050         * tests/init.sh (compare): Remove "No differences encountered" or
44051         synonymous output from the 'diff' program.
44053 2011-11-13  Bruno Haible  <bruno@clisp.org>
44055         Makefile: Tweak indentation.
44056         * Makefile: Use tab as first character in every line that contains rule
44057         commands.
44059 2011-11-13  Bruno Haible  <bruno@clisp.org>
44061         Syntax check for copyright statements.
44062         * check-copyright: New file.
44063         * Makefile (sc_check_copyright): New rule.
44065 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44067         * build-aux/git-version-gen: Add --prefix to configure the tag
44068         match string.
44070 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44072         * build-aux/git-version-gen: Add --help and --version.
44074 2011-11-12  Jim Meyering  <meyering@redhat.com>
44076         revamp the other test-exclude?.sh scripts to use init.sh, too
44077         * tests/test-exclude1.sh: Use init.sh.
44078         * tests/test-exclude2.sh: Likewise.
44079         * tests/test-exclude3.sh: Likewise.
44080         * tests/test-exclude4.sh: Likewise.
44081         * tests/test-exclude5.sh: Likewise.
44082         * tests/test-exclude6.sh: Likewise.
44083         * tests/test-exclude7.sh: Likewise.
44084         * tests/test-exclude8.sh: Likewise.
44085         * modules/exclude-tests (Files): List init.sh.
44087         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44088         These shell scripts ignored failure of the binary test-exclude,
44089         so making the latter return 77 didn't cause them to be skipped.
44090         * tests/test-exclude5.sh: Exit with test-exclude's error status
44091         when that program fails.  Revamp to use init.sh.
44092         * tests/test-exclude2.sh: Likewise.
44094         test-exclude: fix a typo
44095         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44097 2011-11-11  Bruno Haible  <bruno@clisp.org>
44099         obstack: Fix compilation error on MSVC 9.
44100         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44102 2011-11-11  Jim Meyering  <meyering@redhat.com>
44104         test-exclude: skip tests rather than failing on deficient systems
44105         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44106         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44107         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44108         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44110 2011-11-10  Bruno Haible  <bruno@clisp.org>
44112         ptsname_r test: Avoid gcc warning on glibc systems.
44113         * tests/test-ptsname_r.c (null_ptr): New function.
44114         (test_errors): Use it.
44116 2011-11-10  Bruno Haible  <bruno@clisp.org>
44118         ptsname_r: Avoid compilation error on OSF/1 5.1.
44119         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44121         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44122         function is not declared or incompatibly declared.
44123         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44124         * modules/ptsname_r (Depends-on, configure.ac): Update.
44125         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44127 2011-11-10  Bruno Haible  <bruno@clisp.org>
44129         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44130         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44131         When cross-compiling, guess yes on all platforms except AIX.
44132         Reported by Ludovic Courtès <ludo@gnu.org>.
44134 2011-11-09  Bruno Haible  <bruno@clisp.org>
44136         ptsname_r tests: Fix bugs.
44137         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44138         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44140 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44142         fstatat: work with cross-compilation
44143         Problem reported by Ludovic Courtès in
44144         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44145         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44146         "cross-compiling" and assume the bug is present.  Replace
44147         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44148         an inverted sense, to be more conservative about our assumptions.
44149         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44151 2011-11-09  Bruno Haible  <bruno@clisp.org>
44153         Improve MODULES.html output.
44154         * modules/mkfifoat (Description): Use the word "function".
44155         * modules/readlinkat (Description): Likewise.
44156         * modules/symlinkat (Description): Likewise.
44158 2011-11-09  Eric Blake  <eblake@redhat.com>
44160         ptsname_r-tests: new test module
44161         * modules/ptsname_r-tests: New module.
44162         * tests/test-ptsname_r.c: New file.
44164         ptsname_r: new module
44165         * modules/ptsname_r: New module.
44166         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44167         * lib/ptsname.c (__ptsname_r): Split...
44168         * lib/ptsname_r.c: ...into new file.
44169         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44170         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44171         * modules/stdlib (Makefile.am): Substitute witnesses.
44172         * lib/stdlib.in.h (ptsname_r): Declare it.
44173         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44174         * MODULES.html.sh (Misc): Likewise.
44175         * modules/ptsname (Depends-on): Alter dependency.
44176         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44178 2011-11-09  Jim Meyering  <meyering@redhat.com>
44180         announce-gen: be more concise when there's only one URL+tarball
44181         * build-aux/announce-gen (get_tool_versions): When you distribute
44182         only one type of tarball, combine the first two "Here are..."
44183         sections and make the key-checking grammar independent of
44184         how many tarballs there are.
44186 2011-11-09  Eric Blake  <eblake@redhat.com>
44188         openpty: provide a stub on mingw
44189         * lib/pty.in.h (includes): Provide forward declarations.
44190         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44192         raise: fix mingw handling of SIGPIPE
44193         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44195 2011-11-08  Bruno Haible  <bruno@clisp.org>
44197         More conditional dependencies.
44198         * modules/faccessat (Depends-on): Add conditions.
44199         * modules/fchmodat (Depends-on): Likewise.
44200         * modules/fchownat (Depends-on): Likewise.
44201         * modules/fstatat (Depends-on): Likewise.
44202         * modules/mkfifoat (Depends-on): Likewise.
44203         * modules/readlinkat (Depends-on): Likewise.
44204         * modules/symlinkat (Depends-on): Likewise.
44205         * modules/unlinkat (Depends-on): Likewise.
44206         * modules/utimensat (Depends-on): Likewise.
44207         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44208         * modules/linkat (Depends-on): Refine the conditions.
44209         * modules/renameat (Depends-on): Likewise.
44211 2011-11-08  Bruno Haible  <bruno@clisp.org>
44213         faccessat: Move AC_LIBOBJ invocation to module description.
44214         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
44215         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
44216         invocation from here...
44217         * modules/faccessat (configure.ac): ... to here. Invoke
44218         gl_PREREQ_FACCESSAT.
44220 2011-11-08  Bruno Haible  <bruno@clisp.org>
44222         faccessat: Simplify autoconf macro.
44223         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
44224         gl_FUNC_EUIDACCESS.
44226 2011-11-08  Bruno Haible  <bruno@clisp.org>
44228         renameat: Fix dependencies.
44229         * modules/renameat (Depends-on): Add stdbool.
44231 2011-11-08  Bruno Haible  <bruno@clisp.org>
44233         mkfifoat: Fix module description.
44234         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
44235         not gl_UNISTD_MODULE_INDICATOR.
44237 2011-11-08  Bruno Haible  <bruno@clisp.org>
44239         fstatat: Remove unused dependency.
44240         * modules/fstatat (Depends-on): Remove fstat.
44242 2011-11-08  Simon Josefsson  <simon@josefsson.org>
44244         GNUmakefile: behave when Makefile is missing.
44245         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
44247 2011-11-08  Bruno Haible  <bruno@clisp.org>
44249         openat: Conditionalize dependencies.
44250         * lib/openat.c: Reduce the scope of some #includes.
44251         * modules/openat (Depends-on): Add conditions.
44253 2011-11-07  Jim Meyering  <meyering@redhat.com>
44255         maint.mk: extract GPG key ID without using a temporary file
44256         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44257         without using a temporary file.  Based on a suggestion from Werner Koch
44258         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44260 2011-11-07  Eric Blake  <eblake@redhat.com>
44262         grantpt: fix typo
44263         * lib/stdlib.in.h (grantpt): Check correct function.
44265         maint.mk: silence new syntax check
44266         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44268 2011-11-06  Bruno Haible  <bruno@clisp.org>
44270         Doc about floating-point and math API.
44271         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44272         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44274 2011-11-06  Bruno Haible  <bruno@clisp.org>
44276         stdalign tests: Skip the test when compiled by Sun C.
44277         * tests/test-stdalign.c (main): Skip the test on Sun C.
44279 2011-11-06  Bruno Haible  <bruno@clisp.org>
44281         ansi-c++-opt: Complete the 2011-06-05 change.
44282         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44283         does not support namespaces, set the variable to "no", not to ":".
44285 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44287         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44289 2011-11-06  Bruno Haible  <bruno@clisp.org>
44291         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44292         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44293         (minus_zerol) [HP-UX]: New macro.
44294         (unary_minus) [HP-UX]: New function.
44295         (copysignl) [HP-UX]: Use unary_minus function.
44297 2011-11-06  Bruno Haible  <bruno@clisp.org>
44299         ldexp, ldexpf, ldexpl: Enhance tests.
44300         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44301         and tests/test-ldexpl.c.
44302         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44303         LDEXP, MIN_EXP, MAX_EXP): New macros.
44304         Include test-ldexp.h.
44305         (main): Just call test_function.
44306         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
44307         infinity.h, nan.h.
44308         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44309         MAX_EXP): New macros.
44310         Include test-ldexp.h.
44311         (x, y): Remove variables.
44312         (main): Just call test_function.
44313         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44314         infinity.h, nan.h.
44315         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44316         MAX_EXP): New macros.
44317         Include test-ldexp.h.
44318         (x, y): Remove variables.
44319         (main): Just call test_function.
44320         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44321         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44322         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44323         (Depends-on): Add isnand-nolibm, signbit, float.
44324         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44325         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44326         (Depends-on): Add isnanf-nolibm, signbit, float.
44328 2011-11-06  Bruno Haible  <bruno@clisp.org>
44330         math tests: Cosmetics.
44331         * tests/test-math-c++.cc: Reorder declarations.
44333 2011-11-05  Bruno Haible  <bruno@clisp.org>
44335         fma*: Simplify test.
44336         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44337         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44339         Tests for module 'fmal'.
44340         * modules/fmal-tests: New file.
44341         * tests/test-fmal1.c: New file.
44342         * tests/test-fmal2.c: New file.
44344         New module 'fmal'.
44345         * lib/math.in.h (fmal): New declaration.
44346         * lib/fmal.c: New file.
44347         * m4/fmal.m4: New file.
44348         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44350         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44351         REPLACE_FMAL.
44352         * modules/fmal: New file.
44353         * doc/posix-functions/fmal.texi: Mention the new module and the various
44354         bugs.
44356         Tests for module 'fmaf'.
44357         * modules/fmaf-tests: New file.
44358         * tests/test-fmaf1.c: New file.
44359         * tests/test-fmaf2.c: New file.
44361         New module 'fmaf'.
44362         * lib/math.in.h (fmaf): New declaration.
44363         * lib/fmaf.c: New file.
44364         * m4/fmaf.m4: New file.
44365         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44367         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44368         REPLACE_FMAF.
44369         * modules/fmaf: New file.
44370         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44371         bugs.
44373         Tests for module 'fma'.
44374         * modules/fma-tests: New file.
44375         * tests/test-fma1.c: New file.
44376         * tests/test-fma1.h: New file.
44377         * tests/test-fma2.c: New file.
44378         * tests/test-fma2.h: New file.
44380         New module 'fma'.
44381         * lib/math.in.h (fma): New declaration.
44382         * lib/fma.c: New file.
44383         * m4/fma.m4: New file.
44384         * m4/fegetround.m4: New file.
44385         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
44386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
44387         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
44388         REPLACE_FMA.
44389         * modules/fma: New file.
44390         * doc/posix-functions/fma.texi: Mention the new module and the various
44391         bugs.
44393         Extend gl_MATHFUNC.
44394         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
44395         Support 'void' as argument type.
44396         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
44398 2011-11-05  Jim Meyering  <meyering@redhat.com>
44400         maint.mk: also prohibit inclusion of dirent.h without use
44401         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44403 2011-11-05  Bruno Haible  <bruno@clisp.org>
44405         ldexpl tests: Avoid test failure on MSVC 9.
44406         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
44407         value. Needed in order to enforce the conversion from a value greater
44408         than LDBL_MAX to Infinity.
44410 2011-11-05  Bruno Haible  <bruno@clisp.org>
44412         New modules 'at-internal', 'openat-h', split off from module 'openat'.
44413         * modules/at-internal: New file, extracted from modules/openat.
44414         * modules/openat-h: New file.
44415         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
44416         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
44417         * modules/openat (Description): Add reference to POSIX function.
44418         (Files): Remove lib/openat.h, lib/openat-proc.c.
44419         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
44420         intprops, unistd.
44421         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
44422         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
44423         gl_FCNTL_MODULE_INDICATOR.
44424         (Include): Remove unistd.h, openat.h.
44425         * modules/areadlinkat (Files): Add lib/at-func.c.
44426         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44427         openat-die, openat-h, save-cwd.
44428         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
44429         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44430         openat-die, openat-h, save-cwd, unistd.
44431         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
44432         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44433         openat-h, save-cwd. Remove fcntl-h, openat.
44434         * modules/fchmodat (Files): Remove lib/openat.h.
44435         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44436         openat, stdbool, unistd.
44437         * modules/fchownat (Files): Remove lib/openat.h.
44438         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44439         openat, stdbool, sys_stat.
44440         * modules/fdopendir (Files): Remove lib/openat-priv.h,
44441         lib/openat-proc.c.
44442         (Depends-on): Add at-internal.
44443         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
44444         * modules/fstatat (Files): Remove lib/openat.h.
44445         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44446         stdbool, unistd.
44447         * modules/fts (Depends-on): Add openat-h.
44448         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
44449         openat.
44450         * modules/mkdirat (Files): Remove lib/openat.h.
44451         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44452         openat, stdbool, sys_stat.
44453         * modules/mkfifoat (Files): Add lib/at-func.c.
44454         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44455         openat-h, save-cwd. Remove fcntl-h, openat.
44456         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
44457         * modules/readlinkat (Files): Add lib/at-func.c.
44458         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44459         openat-h, save-cwd. Remove fcntl-h, openat.
44460         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
44461         openat.
44462         * modules/selinux-at (Files): Add lib/at-func.c.
44463         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44464         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
44465         * modules/symlinkat (Files): Add lib/at-func.c.
44466         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44467         openat-h, save-cwd. Remove fcntl-h, openat.
44468         * modules/unlinkat (Files): Remove lib/openat.h.
44469         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44470         stdbool.
44471         * modules/utimensat (Files): Add lib/at-func.c.
44472         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
44473         openat-die, openat-h, save-cwd.
44474         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
44475         * modules/fdutimensat-tests (Depends-on): Add openat.
44476         * modules/fstatat-tests (Depends-on): Add openat-h.
44477         * modules/readlinkat-tests (Depends-on): Add openat.
44478         * modules/symlinkat-tests (Depends-on): Add openat.
44480 2011-11-05  Bruno Haible  <bruno@clisp.org>
44482         openat: Include <stdbool.h>.
44483         * lib/openat.c: Include <stdbool.h>.
44485 2011-11-04  Bruno Haible  <bruno@clisp.org>
44487         fchownat, renameat, unlinkat: Fix dependencies.
44488         * modules/fchownat (Depends-on): Add fstatat.
44489         * modules/renameat (Depends-on): Likewise.
44490         * modules/unlinkat (Depends-on): Likewise.
44492 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
44494         openat: remove direct dependency on dirent
44495         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
44496         and hasn't been needed ever since fdopendir was split into its own
44497         module on 2009-08-31.
44498         * modules/openat (Depends-on): Remove dirent.
44500 2011-11-04  Bruno Haible  <bruno@clisp.org>
44502         renameat: Optimize code size.
44503         * modules/renameat (configure.ac): Don't compile at-func2.c if
44504         REPLACE_RENAMEAT is 1.
44506 2011-11-04  Bruno Haible  <bruno@clisp.org>
44508         openat tests: Fix file list.
44509         * modules/openat-tests (Files): Add tests/test-open.h.
44511 2011-11-04  Bruno Haible  <bruno@clisp.org>
44513         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
44514         * modules/fchmodat (Depends-on): Add openat-die.
44515         * modules/fchownat (Depends-on): Likewise.
44516         * modules/linkat (Depends-on): Likewise.
44517         * modules/renameat (Depends-on): Likewise.
44518         * modules/openat (Depends-on): Add dirent.
44520 2011-11-04  Jim Meyering  <meyering@redhat.com>
44522         at-func*.c: fix comments
44523         * lib/at-func2.c: Correct/improve first-line comment.
44524         * lib/at-func.c: Correct grammar in first-line comment.
44526 2011-11-04  Bruno Haible  <bruno@clisp.org>
44528         New module 'mkdirat', split off from module 'openat'.
44529         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
44530         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
44531         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
44532         * modules/mkdirat: New file, extracted from modules/openat.
44533         * modules/openat (Files): Remove lib/mkdirat.c.
44534         (Depends-on): Remove mkdir.
44535         (configure.ac): Remove AC_LIBOBJ of mkdirat.
44536         (Include): Remove <sys/stat.h>.
44537         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
44538         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
44539         tests/test-mkdir.h.
44540         (Depends-on): Remove ignore-value.
44541         (Makefile.am): Remove rules for test-mkdirat.
44542         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44543         of module 'openat'.
44544         * NEWS: Mention the change.
44546 2011-11-04  Bruno Haible  <bruno@clisp.org>
44548         closedir: Avoid warning on mingw.
44549         * lib/closedir.c: Include <unistd.h>.
44551 2011-11-04  Bruno Haible  <bruno@clisp.org>
44553         New module 'fstatat', split off from module 'openat'.
44554         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
44555         defined.
44556         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
44557         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
44558         gl_FUNC_FSTATAT.
44559         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
44560         * modules/fstatat: New file, extracted from modules/openat.
44561         * modules/openat (Files): Remove lib/fstatat.c.
44562         (Depends-on): Remove lstat.
44563         (configure.ac): Remove AC_LIBOBJ of fstatat.
44564         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
44565         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
44566         tests/test-lstat.h, tests/test-stat.h.
44567         (Depends-on): Remove getcwd-lgpl.
44568         (Makefile.am): Remove rules for test-fstatat.
44569         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
44570         of module 'openat'.
44571         * NEWS: Mention the change.
44572         * modules/getcwd (Depends-on): Add fstatat.
44573         * modules/linkat (Depends-on): Likewise.
44574         * modules/mkfifoat-tests (Depends-on): Likewise.
44575         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
44577 2011-11-03  Bruno Haible  <bruno@clisp.org>
44579         New module 'unlinkat', split off from module 'openat'.
44580         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
44581         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
44582         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
44583         * modules/unlinkat: New file, extracted from modules/openat. Correct
44584         the dependency conditions.
44585         * modules/openat (Files): Remove lib/unlinkat.c.
44586         (Depends-on): Remove rmdir, unlink.
44587         (configure.ac): Remove AC_LIBOBJ of unlinkat.
44588         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
44589         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
44590         tests/test-rmdir.h, tests/test-unlink.h.
44591         (Depends-on): Remove unlinkdir.
44592         (Makefile.am): Remove rules for test-unlinkat.
44593         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
44594         of module 'openat'.
44595         * NEWS: Mention the change.
44596         * modules/linkat-tests (Depends-on): Add unlinkat.
44597         * modules/mkfifoat-tests (Depends-on): Likewise.
44598         * modules/readlinkat-tests (Depends-on): Likewise.
44600 2011-11-02  Bruno Haible  <bruno@clisp.org>
44602         New module 'fchmodat', split off from module 'openat'.
44603         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
44604         defined.
44605         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
44606         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
44607         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
44608         * modules/fchmodat: New file, extracted from modules/openat.
44609         * modules/openat (Files): Remove lib/fchmodat.c.
44610         (configure.ac): Remove AC_LIBOBJ of fchmodat.
44611         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
44612         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
44613         (Makefile.am): Remove rules for test-fchmodat.
44614         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
44615         of module 'openat'.
44616         * NEWS: Mention the change.
44618 2011-11-02  Jim Meyering  <meyering@redhat.com>
44620         putenv: indent #definition of "environ" to placate cppi
44621         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
44623         gitlog-to-changelog: provide a ChangeLog-repair mechanism
44624         Git logs are often treated as immutable, because editing them
44625         changes the SHA1 checksums of all descendants.  Thus, errors in
44626         git logs tend to stay there forever.  However, when we generate
44627         a ChangeLog file -- typically for distribution -- from that git log,
44628         we can actually make corrections in the generated file.  The key
44629         lies in recording in machine-readable/applicable form the desired
44630         corrections.  See --help for description and an example.
44631         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
44632         (usage): Describe it; alphabetize option descriptions.
44633         (main): Honor the new option, carefully.
44635 2011-11-01  Jim Meyering  <meyering@redhat.com>
44637         gitlog-to-changelog: avoid an infloop
44638         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
44639         that ends up being empty.
44641 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44643         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
44644         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
44645         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
44646         contains (possibly-quoted) backslashes.  This should avoid
44647         all-too-common shell bugs if COMPLICATED contains backslashes in
44648         the "wrong" places.  Reported by David Evans in
44649         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
44650         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
44651         because we want ASCII ranges.  Is there some reason we don't use
44652         the C locale everywhere in this script?
44653         (func_module, top level): Avoid unwanted pathname expansion when
44654         $repo_url_prefix or $repo_url_suffix_repl contain shell
44655         metacharacters like '?' and '*'.
44657 2011-11-01  Bruno Haible  <bruno@clisp.org>
44659         fchownat: Improve description.
44660         * modules/fchownat (Description): Add link to function.
44662 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44664         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
44665         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
44666         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
44667         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
44669 2011-11-01  Bruno Haible  <bruno@clisp.org>
44671         alignof: Avoid collision with stdalign module.
44672         * lib/alignof.h (alignof): Remove macro.
44673         * NEWS: Mention the change.
44674         Reported by Paul Eggert.
44676 2011-11-01  Bruno Haible  <bruno@clisp.org>
44678         New module 'fchownat', split off from module 'openat'.
44679         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
44680         defined.
44681         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
44682         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
44683         invoke gl_FUNC_FCHOWNAT.
44684         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
44685         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
44686         * modules/fchownat: New file, extracted from modules/openat.
44687         * modules/openat (Files): Remove lib/fchownat.c.
44688         (Depends-on): Remove lchown.
44689         (configure.ac): Remove AC_LIBOBJ of fchownat.
44690         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
44691         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
44692         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
44693         (Depends-on): Remove mgetgroups, usleep, stat-time.
44694         (configure.ac): Remove test for getegid.
44695         (Makefile.am): Remove rules for test-fchownat.
44696         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
44697         of module 'openat'.
44698         * NEWS: Mention the change.
44700 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44702         stdalign: port better to MSVC and to Sun C 5.11
44703         This fixes some of the problems reported by Bruno Haible in
44704         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
44705         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
44706         shortcomings of MSVC and of Sun C 5.11.
44707         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
44708         around __declspec arg.
44709         * modules/stdalign-tests (Files): Add tests/macros.h.
44710         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
44711         Include macros.h, for ASSERT.
44712         (DECLARE_ALIGNED): Remove.
44713         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
44714         to catch bug), and to 1 if not (simplifies the rest of the code).
44715         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
44716         (CHECK_AUTO): Remove.
44717         (CHECK_ALIGNED): Check only the alignment of the static vars,
44718         since auto var alignment isn't supported by Sun C 5.11.
44719         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
44720         ASSERT failures are easier to diagnose.
44722 2011-10-31  Bruno Haible  <bruno@clisp.org>
44724         doc about some IRIX 5.3 problems.
44725         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
44726         on IRIX 5.3.
44727         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
44728         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
44729         5.3.
44730         * doc/posix-functions/grantpt.texi: Likewise.
44731         * doc/posix-functions/unlockpt.texi: Likewise.
44732         * doc/posix-functions/lgamma.texi: Likewise.
44733         * doc/posix-functions/nextafter.texi: Likewise.
44734         * doc/posix-functions/remainder.texi: Likewise.
44735         * doc/posix-functions/select.texi: Mention misplaced declaration on
44736         IRIX 5.3.
44737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44739 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
44741         gitlog-to-changelog: fix git-log invocation.
44742         git-log mishandles date strings before 1970-01-01 UTC, and there is
44743         no use to specify --since=1970-01-01 by default anyway.
44744         * build-aux/gitlog-to-changelog: By default, when no --since option
44745         was given, do not specify explicit --since option to git-log.
44747 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
44749         gitlog-to-changelog: new option --append-dot.
44750         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
44751         first non-blank line of each commit message terminated with a dot.
44753 2011-10-30  Bruno Haible  <bruno@clisp.org>
44755         ffsl, ffsll: Avoid compilation error due to 'restrict'.
44756         * lib/ffsl.h: Include <config.h>.
44757         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
44759 2011-10-30  Jim Meyering  <meyering@redhat.com>
44761         GNUmakefile: reenable "make syntax-check" for most projects
44762         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
44763         build-aux variable", "syntax-check" would do nothing but succeed with
44764         the "No version control files detected..." diagnostic (unless you
44765         happened to override _build-aux via cfg.mk).
44766         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
44767         to precede inclusion of maint.mk.  Otherwise, these variables would
44768         be used undefined in any project that does not override the default.
44770 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
44772         gitlog-to-changelog: treat a message with only blank lines as empty.
44773         * build-aux/gitlog-to-changelog: Move the code that removes leading and
44774         trailing blank lines before the code that issues a warning about an
44775         empty commit message.
44777 2011-10-30  Jim Meyering  <meyering@redhat.com>
44779         test-parse-datetime.c: avoid new DST-related false positive test failure
44780         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
44781         based on the time/date we'll convert, not the current time.
44782         Otherwise, the moment we cross a DST boundary like today's in
44783         Europe, (CEST to CET), that offset ends up being one hour off.
44785 2011-10-27  Bruno Haible  <bruno@clisp.org>
44787         fstat: Tweak documentation.
44788         * modules/fstat (Description): More precise description.
44790 2011-10-27  Bruno Haible  <bruno@clisp.org>
44792         Update documentation regarding 'largefile' module.
44793         * doc/posix-functions/fstat.texi: Tweak wording.
44794         * doc/posix-functions/opendir.texi: Mention that the module fixes the
44795         problems with huge directories and/or small ino_t types.
44796         * doc/posix-functions/readdir.texi: Likewise.
44797         * doc/posix-functions/rewinddir.texi: Likewise.
44799 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
44801         maint.mk: don't maintain a second build-aux variable.
44802         * maint.mk (build_aux): Removed.  The maintainer-makefile module
44803         depends on GNUmakefile, which already maintains a cfg.mk
44804         overridable $(_build-aux) for projects with a non-standard
44805         build-aux directory location, although without the $(srcdir)
44806         prefix.  Use that variable consistently instead of introducing a
44807         second one.  Adjust all call sites.
44809 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44811         Add stdalign module and use it in other modules.
44812         This is based on a previous proposal by Bruno Haible
44813         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
44815         stdalign: new module
44816         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
44817         * modules/stdalign: New files.
44818         * MODULES.html.sh (c1x_core_properties): Add stdalign.
44819         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
44821         stdalign-tests: new module
44822         * modules/stdalign-tests, tests/test-stdalign.c: New files.
44824         argp: use stdalign
44825         * lib/argp-parse.c: Include <stdalign.h>.
44826         (alignof): Remove.
44827         * modules/argp (Depends-on): Add stdalign.
44829         crypto libraries: use stdalign
44830         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
44831         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
44832         Do not include <stdlib.h> twice, in md4.c.
44833         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
44834         because we are accessing a pointer's bit-pattern, not a size.
44835         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
44836         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
44837         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
44838         * modules/crypto/sha512: Likewise.
44840         sys_socket: use stdalign, not alignof
44841         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
44842         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
44844 2011-10-27  Bruno Haible  <bruno@clisp.org>
44846         raise test: Avoid a test failure on Linux/MIPS.
44847         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
44848         because 99 is a valid signal on Linux/MIPS.
44850 2011-10-27  Bruno Haible  <bruno@clisp.org>
44852         nonblocking tests: Fix test failure on Linux/MIPS.
44853         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
44854         Set to 270000.
44856 2011-10-27  Bruno Haible  <bruno@clisp.org>
44858         utimensat: Work around problem on Linux/hppa.
44859         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
44860         values.
44861         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
44863 2011-10-25  Jim Meyering  <meyering@redhat.com>
44865         maint.mk: fix a bug in sc_prohibit_stddef_without_use
44866         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
44867         after symbols like NULL, size_t, etc.
44868         Reported by Alfred M. Szmidt.
44870         maint.mk: exempt ENODATA from a syntax-check rule
44871         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
44872         from the sc_prohibit_always-defined_macros syntax-check rule.
44873         Add a comment.  See this for more details:
44874         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
44876 2011-10-23  Jim Meyering  <meyering@redhat.com>
44878         fts: close parent dir FD before returning from post-traversal fts_read
44879         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
44880         unlink A, even though an FD open on A remained.  This is suboptimal
44881         (holding a file descriptor open longer than needed), but otherwise not
44882         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
44883         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
44884         that represents a real problem: it causes the removal of A to fail
44885         with e.g., "rm: cannot remove `A': Device or resource busy"
44887         fts visits each directory twice and keeps a cache (fts_fd_ring) of
44888         directory file descriptors.  After completing the final, FTS_DP,
44889         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
44890         cache, but then proceeded to add a new FD to it via the subsequent
44891         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
44892         final file descriptor would be closed only via fts_close's call to
44893         fd_ring_clear.  Now, it is usually closed earlier, via the final
44894         FTS_DP-returning fts_read call.
44895         * lib/fts.c (restore_initial_cwd): New function, converted from
44896         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
44897         Update callers.
44898         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
44899         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
44901 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
44902             Bruno Haible  <bruno@clisp.org>
44903             Jim Meyering  <jim@meyering.net>
44905         readme-release: improve safety of release prep instructions.
44906         * README-release: Don't git pull all branches when only master
44907         is needed for the release process.
44908         Run make maintainer-clean before changing trees and merging.
44909         Don't try to run ./configure right after git pull in case files
44910         that influence the bootstrap process have changed, move the
44911         ./configure step to after running ./bootstrap.
44912         Don't bootstrap "one last time"... it's the first time!
44914 2011-10-22  Bruno Haible  <bruno@clisp.org>
44916         errno, strerror-override: Support for MSVC 10.
44917         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
44918         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
44919         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
44920         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
44921         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
44922         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
44923         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
44924         Assign values compatible with MSVC 10.
44925         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
44926         New macros.
44927         (GNULIB_defined_EWINSOCK): New macro.
44928         * lib/strerror-override.c (strerror_override): Update accordingly.
44929         * lib/strerror-override.h: Likewise.
44930         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
44931         longer equal to the corresponding errno value.
44932         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
44934 2011-10-22  Bruno Haible  <bruno@clisp.org>
44936         perror: Recognize when test program crashes.
44937         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
44938         strerror, set gl_cv_func_perror_works to no.
44939         Reported by Daniel Richard G. <skunk@iskunk.org>.
44941         perror: Fix indentation.
44942         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
44944 2011-10-22  Bruno Haible  <bruno@clisp.org>
44946         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
44947         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
44948         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
44949         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
44950         functions, not as a macro.
44951         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
44952         macros.
44953         (isfinite, isinf, isnan, signbit): Check overloaded functions and
44954         absence of macro.
44955         Suggested by Eric Blake.
44956         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
44958 2011-10-21  Bruno Haible  <bruno@clisp.org>
44960         relocatable-prog-wrapper: Don't leave object files behind.
44961         * build-aux/install-reloc: Re-synchronize list of .o files to be
44962         removed with list of compilation units.
44964 2011-10-20  Bruno Haible  <bruno@clisp.org>
44966         openpty, posix_openpt: Remove code duplication.
44967         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
44968         * lib/openpty.c: Include <stdlib.h>.
44969         (openpty): Use posix_openpt on all platforms except IRIX.
44970         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
44972 2011-10-20  Bruno Haible  <bruno@clisp.org>
44974         unlockpt: Detect invalid argument.
44975         * lib/unlockpt.c: Include <fcntl.h>.
44976         (unlockpt): Check whether fd is valid, using fcntl().
44977         * modules/unlockpt (Depends-on): Add fcntl-h.
44979 2011-10-20  Bruno Haible  <bruno@clisp.org>
44981         openpty: Avoid compilation error on AIX 6.1.
44982         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
44984 2011-10-20  Bruno Haible  <bruno@clisp.org>
44986         posix_openpt: Support for OpenBSD.
44987         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
44988         (posix_openpt) [OpenBSD]: New code.
44989         * lib/grantpt.c: Include <fcntl.h>.
44990         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
44991         * modules/grantpt (Depends-on): Add fcntl-h.
44993 2011-10-20  Bruno Haible  <bruno@clisp.org>
44995         posix_openpt test: Coding style.
44996         * tests/test-posix_openpt.c: Use GNU coding style.
44998 2011-10-20  Bruno Haible  <bruno@clisp.org>
45000         grantpt: Support --avoid=pt_chown.
45001         * modules/grantpt (Files): Add lib/pty-private.h.
45003 2011-10-20  Bruno Haible  <bruno@clisp.org>
45005         posix_openpt: Fix autoconf macro.
45006         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45007         unneeded check for _getpty.
45009 2011-10-20  Bruno Haible  <bruno@clisp.org>
45011         openpty: Update comments.
45012         * lib/openpty.c: Add comments about Minix.
45014 2011-10-19  Eric Blake  <eblake@redhat.com>
45016         openpty: relax license
45017         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45019         pt_chown: use configmake to simplify build
45020         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45022         ptsname and others: relax license
45023         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45024         * modules/unlockpt (License): Likewise.
45025         * modules/pt_chown (License): Likewise.
45026         * modules/ptsname (License): Likewise.
45027         * modules/ttyname_r (License): Likewise.
45029 2011-10-19  Jim Meyering  <meyering@redhat.com>
45031         posix_openpt: remove spurious #endif
45032         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45034 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45036         maint.mk: Respect $(build_aux) in web-manual rule.
45037         * top/maint.mk (web-manual): Find gen-announce script in user's
45038         $(build_aux) directory instead of hard-coding 'build-aux'.
45040 2011-10-19  Bruno Haible  <bruno@clisp.org>
45042         posix_openpt: Fix compilation error.
45043         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45044         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45045         Mention the openpty module as an alternative.
45047 2011-10-19  Bruno Haible  <bruno@clisp.org>
45049         Support for old NeXTstep 3.3 frexp().
45050         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45051         execution time of the test to 5 seconds.
45052         Reported by Daniel Richard G. <skunk@iskunk.org>.
45054 2011-10-19  Bruno Haible  <bruno@clisp.org>
45056         Support for old NeXTstep 3.3 sed.
45057         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45058         part, use /.../, not \|...|. Escape periods in the header file name.
45059         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45060         Reported by Daniel Richard G. <skunk@iskunk.org>.
45062 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45064         Support for old NeXTstep 3.3 gcc.
45065         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45066         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45067         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45068         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45069         * lib/regex.h (_Restrict_arr_): Likewise.
45070         * lib/regex_internal.h (re_token_t): Likewise.
45071         * lib/regexec.c (check_node_accept_bytes): Likewise.
45072         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45074 2011-10-18  Eric Blake  <eblake@redhat.com>
45076         posix_openpt: new module
45077         * modules/posix_openpt: New module.
45078         * m4/posix_openpt.m4: New file.
45079         * lib/posix_openpt.c: Likewise.
45080         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45081         (gl_STDLIB_H_DEFAULTS): Set defaults.
45082         * modules/stdlib (Makefile.am): Substitute macros.
45083         * lib/stdlib.in.h (posix_openpt): Declare.
45084         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45085         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45086         * modules/posix_openpt-tests: New test module.
45087         * tests/test-posix_openpt.c: New test.
45089 2011-10-15  Bruno Haible  <bruno@clisp.org>
45091         xstrtoll: Fix compilation failure.
45092         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45093         from lib/strtol.c.
45094         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45095         some platforms.
45096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45098 2011-10-15  Bruno Haible  <bruno@clisp.org>
45100         vasnprintf: Optimize bit search operation.
45101         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45103         gl_DOUBLE_EXPONENT_LOCATION.
45104         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45105         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45106         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45107         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45108         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45109         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45110         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45111         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45112         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45114 2011-10-15  Bruno Haible  <bruno@clisp.org>
45116         vasnprintf: Fix comments.
45117         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45119 2011-10-14  Bruno Haible  <bruno@clisp.org>
45121         Tests for module 'integer_length_ll'.
45122         * modules/integer_length_ll-tests: New file.
45123         * tests/test-integer_length_ll.c: New file.
45125         New module 'integer_length_ll'.
45126         * lib/integer_length_ll.c: New file.
45127         * modules/integer_length_ll: New file.
45129 2011-10-14  Bruno Haible  <bruno@clisp.org>
45131         Tests for module 'integer_length_l'.
45132         * modules/integer_length_l-tests: New file.
45133         * tests/test-integer_length_l.c: New file.
45135         New module 'integer_length_l'.
45136         * lib/integer_length_l.c: New file.
45137         * modules/integer_length_l: New file.
45139 2011-10-14  Bruno Haible  <bruno@clisp.org>
45141         Tests for module 'integer_length'.
45142         * modules/integer_length-tests: New file.
45143         * tests/test-integer_length.c: New file.
45145         New module 'integer_length'.
45146         * lib/integer_length.h: New file.
45147         * lib/integer_length.c: New file.
45148         * modules/integer_length: New file.
45150 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45152         popen: Fix dependency conditions.
45153         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45155 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45157         perror: Fix autoconf test.
45158         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45159         <stdlib.h> and <string.h>.
45161 2011-10-14  Bruno Haible  <bruno@clisp.org>
45163         ffsl: Optimize on 64-bit platforms.
45164         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45165         unrolling.
45167 2011-10-13  Bruno Haible  <bruno@clisp.org>
45169         ffsl: Optimize on 32-bit platforms.
45170         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45171         use ffs() without a loop.
45173         ffsl, ffsll: Optimize for GCC.
45174         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45175         * lib/ffsl.c (GCC_BUILTIN): New macro.
45176         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45178 2011-10-13  Bruno Haible  <bruno@clisp.org>
45180         ffs, bcopy, memset: Support symbol renaming via config.h.
45181         * lib/ffs.c: Include <config.h>.
45182         * lib/bcopy.c: Likewise.
45183         * lib/memset.c: Likewise.
45185 2011-10-10  Bruno Haible  <bruno@clisp.org>
45187         atanl: Simplify for platforms where 'long double' == 'double'.
45188         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45189         alternative implementation.
45190         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45191         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45192         * modules/atanl (Depends-on): Add atan. Update conditions.
45194 2011-10-10  Bruno Haible  <bruno@clisp.org>
45196         acosl: Simplify for platforms where 'long double' == 'double'.
45197         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45198         alternative implementation.
45199         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45200         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45201         * modules/acosl (Depends-on): Add acos. Update conditions.
45203 2011-10-10  Bruno Haible  <bruno@clisp.org>
45205         asinl: Simplify for platforms where 'long double' == 'double'.
45206         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45207         alternative implementation.
45208         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45209         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45210         * modules/asinl (Depends-on): Add asin. Update conditions.
45212 2011-10-10  Bruno Haible  <bruno@clisp.org>
45214         tanl: Simplify for platforms where 'long double' == 'double'.
45215         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45216         implementation.
45217         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45218         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45219         * modules/tanl (Depends-on): Add tan. Update conditions.
45220         (configure.ac): Don't compile trigl.c if
45221         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45223 2011-10-10  Bruno Haible  <bruno@clisp.org>
45225         cosl: Simplify for platforms where 'long double' == 'double'.
45226         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45227         implementation.
45228         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45229         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45230         * modules/cosl (Depends-on): Add cos. Update conditions.
45231         (configure.ac): Don't compile sincosl.c and trigl.c if
45232         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45234 2011-10-10  Bruno Haible  <bruno@clisp.org>
45236         sinl: Simplify for platforms where 'long double' == 'double'.
45237         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45238         implementation.
45239         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45240         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45241         * modules/sinl (Depends-on): Add sin. Update conditions.
45242         (configure.ac): Don't compile sincosl.c and trigl.c if
45243         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45245 2011-10-10  Bruno Haible  <bruno@clisp.org>
45247         logl: Simplify for platforms where 'long double' == 'double'.
45248         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45249         implementation.
45250         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45251         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45252         * modules/logl (Depends-on): Add log. Update conditions.
45254 2011-10-10  Bruno Haible  <bruno@clisp.org>
45256         expl: Simplify for platforms where 'long double' == 'double'.
45257         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45258         implementation.
45259         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45260         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45261         * modules/expl (Depends-on): Add exp. Update conditions.
45263 2011-10-10  Bruno Haible  <bruno@clisp.org>
45265         sqrtl: Simplify for platforms where 'long double' == 'double'.
45266         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45267         alternative implementation.
45268         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45269         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45270         * modules/sqrtl (Depends-on): Update conditions.
45272 2011-10-10  Bruno Haible  <bruno@clisp.org>
45274         ldexpl: Simplify for platforms where 'long double' == 'double'.
45275         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45276         alternative implementation.
45277         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45278         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45279         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45281 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45283         ffsll: set correct witness
45284         * modules/ffsll (configure.ac): Fix typo.
45286 2011-10-10  Bruno Haible  <bruno@clisp.org>
45288         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45289         * lib/printf-frexpl.c: Include <config.h>.
45290         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45291         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45292         second time.
45293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45294         gl_LONG_DOUBLE_VS_DOUBLE.
45295         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45296         conditions.
45298 2011-10-10  Bruno Haible  <bruno@clisp.org>
45300         frexpl: Simplify for platforms where 'long double' == 'double'.
45301         * lib/frexpl.c: Include <config.h>.
45302         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45303         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45304         time.
45305         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45306         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45307         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45308         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45309         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45310         conditions.
45312 2011-10-10  Jim Meyering  <meyering@redhat.com>
45314         test-renameat: don't leave behind a temporary file
45315         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45316           ERROR: files left in build directory after distclean:
45317           ./gltests/test-renameat.too
45318           make[1]: *** [distcleancheck] Error 1
45319         Reported by Tom G. Christensen.
45321 2011-10-09  Bruno Haible  <bruno@clisp.org>
45323         rint: Determine RINT_LIBM correctly on AIX 7.
45324         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45325         directly, not only through a function pointer. Also accept an optional
45326         4th argument with extra code.
45327         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45328         rintf() call by gcc when optimizing.
45330         mathfunc.m4: Refactor.
45331         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45332         m4 variable.
45334 2011-10-09  Bruno Haible  <bruno@clisp.org>
45336         rintl: Simplify for platforms where 'long double' == 'double'.
45337         * lib/rintl.c: Include <config.h>.
45338         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45339         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45340         time.
45341         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45342         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45343         * modules/rintl (Depends-on): Add rint. Update conditions.
45345 2011-10-09  Bruno Haible  <bruno@clisp.org>
45347         roundl: Simplify for platforms where 'long double' == 'double'.
45348         * lib/roundl.c: Include <config.h>.
45349         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45350         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45351         time.
45352         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45353         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45354         * modules/roundl (Depends-on): Add round. Update conditions.
45356 2011-10-09  Bruno Haible  <bruno@clisp.org>
45358         truncl: Simplify for platforms where 'long double' == 'double'.
45359         * lib/truncl.c: Include <config.h>.
45360         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45361         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45362         time.
45363         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45364         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45365         * modules/truncl (Depends-on): Add trunc. Update conditions.
45367 2011-10-09  Bruno Haible  <bruno@clisp.org>
45369         ceill: Simplify for platforms where 'long double' == 'double'.
45370         * lib/ceill.c: Include <config.h>.
45371         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45372         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45373         time.
45374         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45375         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45376         * modules/ceill (Depends-on): Add ceil. Update conditions.
45378 2011-10-09  Bruno Haible  <bruno@clisp.org>
45380         floorl: Simplify for platforms where 'long double' == 'double'.
45381         * lib/floorl.c: Include <config.h>.
45382         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45383         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45384         time.
45385         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45386         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45387         * modules/floorl (Depends-on): Add floor. Update conditions.
45389 2011-10-09  Bruno Haible  <bruno@clisp.org>
45391         rint: Fix ordering constraints.
45392         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
45393         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
45394         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
45396 2011-10-09  Bruno Haible  <bruno@clisp.org>
45398         copysignl: Simplify for platforms where 'long double' == 'double'.
45399         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45400         alternative.
45401         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45402         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45403         * modules/copysignl (Depends-on): Add copysign. Update conditions.
45405 2011-10-09  Bruno Haible  <bruno@clisp.org>
45407         Tests for module 'rintl'.
45408         * modules/rintl-tests: New file.
45409         * tests/test-rintl.c: New file.
45411         New module 'rintl'.
45412         * lib/math.in.h (rintl): New declaration.
45413         * lib/rintl.c: New file.
45414         * m4/rintl.m4: New file.
45415         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
45416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
45417         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
45418         * modules/rintl: New file.
45419         * tests/test-math-c++.cc: Check the declaration of rintl.
45420         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45421         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
45422         * doc/posix-functions/rintl.texi: Mention the new module.
45424 2011-10-09  Bruno Haible  <bruno@clisp.org>
45426         Tests for module 'rintf'.
45427         * modules/rintf-tests: New file.
45428         * tests/test-rintf.c: New file.
45430         New module 'rintf'.
45431         * lib/math.in.h (rintf): New declaration.
45432         * lib/rintf.c: New file.
45433         * m4/rintf.m4: New file.
45434         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
45435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
45436         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
45437         * modules/rintf: New file.
45438         * tests/test-math-c++.cc: Check the declaration of rintf.
45439         * doc/posix-functions/rintf.texi: Mention the new module.
45441 2011-10-09  Bruno Haible  <bruno@clisp.org>
45443         rint: Support for MSVC.
45444         * lib/math.in.h (rint): New declaration.
45445         * lib/rint.c: New file.
45446         * m4/rint.m4: New file.
45447         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
45448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
45449         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
45450         * modules/rint (Description): Fix.
45451         (Files): Add lib/rint.c, m4/rint.m4.
45452         (Depends-on): Add math.
45453         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
45454         gl_MATH_MODULE_INDICATOR.
45455         * tests/test-math-c++.cc: Check the declaration of rint.
45456         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45457         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
45458         * doc/posix-functions/rint.texi: Mention the replacement provided by
45459         the module.
45461         rint tests: More tests.
45462         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
45463         minus-zero.h, infinity.h, nan.h.
45464         (main): Skip the test if the current rounding mode is not standard. Add
45465         tests for negative numbers, minus zero, infinity, NaN.
45466         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
45467         tests/nan.h.
45468         (Depends-on): Add isnand-nolibm.
45470 2011-10-09  Bruno Haible  <bruno@clisp.org>
45472         Tests for module 'copysignl'.
45473         * modules/copysignl-tests: New file.
45474         * tests/test-copysignl.c: New file.
45476         New module 'copysignl'.
45477         * lib/math.in.h (copysignl): New declaration.
45478         * lib/copysignl.c: New file.
45479         * m4/copysignl.m4: New file.
45480         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
45481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
45482         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
45483         HAVE_COPYSIGNL.
45484         * modules/copysignl: New file.
45485         * tests/test-math-c++.cc: Check the declaration of copysignl.
45486         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45487         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
45488         * doc/posix-functions/copysignl.texi: Mention the new module.
45490 2011-10-09  Bruno Haible  <bruno@clisp.org>
45492         Tests for module 'copysignf'.
45493         * modules/copysignf-tests: New file.
45494         * tests/test-copysignf.c: New file.
45496         New module 'copysignf'.
45497         * lib/math.in.h (copysignf): New declaration.
45498         * lib/copysignf.c: New file.
45499         * m4/copysignf.m4: New file.
45500         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
45501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
45502         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
45503         HAVE_COPYSIGNF.
45504         * modules/copysignf: New file.
45505         * tests/test-math-c++.cc: Check the declaration of copysignf.
45506         * doc/posix-functions/copysignf.texi: Mention the new module.
45508 2011-10-09  Bruno Haible  <bruno@clisp.org>
45510         Ensure that HAVE_* variables are set to 1 before they are set to 0.
45511         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
45512         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
45513         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45514         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
45515         gl_SIGNAL_H_DEFAULTS.
45517 2011-10-09  Bruno Haible  <bruno@clisp.org>
45519         poll: Make macro safer.
45520         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
45521         ac_cv_header_poll_h is not set.
45523 2011-10-09  Bruno Haible  <bruno@clisp.org>
45525         copysign: Provide replacement.
45526         * lib/math.in.h (copysign): New declaration.
45527         * lib/copysign.c: New file.
45528         * m4/copysign.m4: New file.
45529         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
45530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
45531         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
45532         HAVE_COPYSIGN.
45533         * modules/copysign (Description): Clarify.
45534         (Files): Add lib/copysign.c, m4/copysign.m4.
45535         (Depends-on): Add math, signbit.
45536         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
45537         gl_MATH_MODULE_INDICATOR.
45538         * tests/test-math-c++.cc: Check the declaration of copysign.
45539         * doc/posix-functions/copysign.texi: Mention the effects of the module
45540         on Minix and MSVC.
45542 2011-10-09  Bruno Haible  <bruno@clisp.org>
45544         isinf: Ensure macro on AIX 5.1.
45545         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
45546         macro.
45547         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
45549 2011-10-09  Bruno Haible  <bruno@clisp.org>
45551         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
45552         * modules/snprintf-posix-tests (configure.ac): Require
45553         gl_LONG_DOUBLE_VS_DOUBLE.
45554         * modules/sprintf-posix-tests (configure.ac): Likewise.
45555         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
45556         * modules/vasprintf-posix-tests (configure.ac): Likewise.
45557         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
45558         * modules/vsprintf-posix-tests (configure.ac): Likewise.
45559         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
45560         tests on platforms where 'long double' is the same as 'double'.
45561         * tests/test-sprintf-posix.h (test_function): Likewise.
45562         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45563         * tests/test-vasprintf-posix.c (test_function): Likewise.
45565         *printf: Fix for platforms where 'long double' == 'double'.
45566         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45567         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
45568         * modules/dprintf-posix (Files): Add m4/math_h.m4.
45569         * modules/fprintf-posix (Files): Likewise.
45570         * modules/obstack-printf-posix (Files): Likewise.
45571         * modules/snprintf-posix (Files): Likewise.
45572         * modules/sprintf-posix (Files): Likewise.
45573         * modules/vasnprintf (Files): Likewise.
45574         * modules/vasnprintf-posix (Files): Likewise.
45575         * modules/vasprintf-posix (Files): Likewise.
45576         * modules/vdprintf-posix (Files): Likewise.
45577         * modules/vfprintf-posix (Files): Likewise.
45578         * modules/vsnprintf-posix (Files): Likewise.
45579         * modules/vsprintf-posix (Files): Likewise.
45580         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45581         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45582         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45583         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45584         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45585         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45586         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45588         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
45589         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
45590         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45591         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
45592         'long double'.
45593         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
45595         isinf: Fix for platforms where 'long double' == 'double'.
45596         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45597         Don't blindly assume 80-bit 'long double'.
45599         isfinite: Fix for platforms where 'long double' == 'double'.
45600         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45601         Don't blindly assume 80-bit 'long double'.
45603         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
45604         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
45605         * modules/isfinite-tests (configure.ac): Require
45606         gl_LONG_DOUBLE_VS_DOUBLE.
45607         * modules/isinf-tests (configure.ac): Likewise.
45608         * modules/isnan-tests (configure.ac): Likewise.
45609         * modules/isnanl-tests (configure.ac): Likewise.
45610         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
45611         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
45612         tests on platforms where 'long double' is the same as 'double'.
45613         * tests/test-isinf.c (test_isinfl): Likewise.
45614         * tests/test-isnan.c (test_long_double): Likewise.
45615         * tests/test-isnanl.h (main): Likewise.
45617 2011-10-08  Bruno Haible  <bruno@clisp.org>
45619         Tests for module 'tanhf'.
45620         * modules/tanhf-tests: New file.
45621         * tests/test-tanhf.c: New file.
45623         New module 'tanhf'.
45624         * lib/math.in.h (tanhf): New declaration.
45625         * lib/tanhf.c: New file.
45626         * m4/tanhf.m4: New file.
45627         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
45628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
45629         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
45630         * modules/tanhf: New file.
45631         * tests/test-math-c++.cc: Check the declaration of tanhf.
45632         * doc/posix-functions/tanhf.texi: Mention the new module.
45634         tanh: Use a .m4 file.
45635         * m4/tanh.m4: New file.
45636         * modules/tanh (Files): Add it.
45637         (configure.ac): Just invoke gl_FUNC_TANH.
45639 2011-10-08  Bruno Haible  <bruno@clisp.org>
45641         Tests for module 'coshf'.
45642         * modules/coshf-tests: New file.
45643         * tests/test-coshf.c: New file.
45645         New module 'coshf'.
45646         * lib/math.in.h (coshf): New declaration.
45647         * lib/coshf.c: New file.
45648         * m4/coshf.m4: New file.
45649         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
45650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
45651         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
45652         * modules/coshf: New file.
45653         * tests/test-math-c++.cc: Check the declaration of coshf.
45654         * doc/posix-functions/coshf.texi: Mention the new module.
45656         cosh: Use a .m4 file.
45657         * m4/cosh.m4: New file.
45658         * modules/cosh (Files): Add it.
45659         (configure.ac): Just invoke gl_FUNC_COSH.
45661 2011-10-08  Bruno Haible  <bruno@clisp.org>
45663         Tests for module 'sinhf'.
45664         * modules/sinhf-tests: New file.
45665         * tests/test-sinhf.c: New file.
45667         New module 'sinhf'.
45668         * lib/math.in.h (sinhf): New declaration.
45669         * lib/sinhf.c: New file.
45670         * m4/sinhf.m4: New file.
45671         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
45672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
45673         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
45674         * modules/sinhf: New file.
45675         * tests/test-math-c++.cc: Check the declaration of sinhf.
45676         * doc/posix-functions/sinhf.texi: Mention the new module.
45678         sinh: Use a .m4 file.
45679         * m4/sinh.m4: New file.
45680         * modules/sinh (Files): Add it.
45681         (configure.ac): Just invoke gl_FUNC_SINH.
45683 2011-10-08  Bruno Haible  <bruno@clisp.org>
45685         Tests for module 'atan2f'.
45686         * modules/atan2f-tests: New file.
45687         * tests/test-atan2f.c: New file.
45689         New module 'atan2f'.
45690         * lib/math.in.h (atan2f): New declaration.
45691         * lib/atan2f.c: New file.
45692         * m4/atan2f.m4: New file.
45693         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
45694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
45695         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
45696         * modules/atan2f: New file.
45697         * tests/test-math-c++.cc: Check the declaration of atan2f.
45698         * doc/posix-functions/atan2f.texi: Mention the new module.
45700         atan2: Use a .m4 file.
45701         * m4/atan2.m4: New file.
45702         * modules/atan2 (Files): Add it.
45703         (configure.ac): Just invoke gl_FUNC_ATAN2.
45705 2011-10-08  Bruno Haible  <bruno@clisp.org>
45707         Tests for module 'atanf'.
45708         * modules/atanf-tests: New file.
45709         * tests/test-atanf.c: New file.
45711         New module 'atanf'.
45712         * lib/math.in.h (atanf): New declaration.
45713         * lib/atanf.c: New file.
45714         * m4/atanf.m4: New file.
45715         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
45716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
45717         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
45718         * modules/atanf: New file.
45719         * tests/test-math-c++.cc: Check the declaration of atanf.
45720         * doc/posix-functions/atanf.texi: Mention the new module.
45722         atan: Use a .m4 file.
45723         * m4/atan.m4: New file.
45724         * modules/atan (Files): Add it.
45725         (configure.ac): Just invoke gl_FUNC_ATAN.
45727 2011-10-08  Bruno Haible  <bruno@clisp.org>
45729         Tests for module 'acosf'.
45730         * modules/acosf-tests: New file.
45731         * tests/test-acosf.c: New file.
45733         New module 'acosf'.
45734         * lib/math.in.h (acosf): New declaration.
45735         * lib/acosf.c: New file.
45736         * m4/acosf.m4: New file.
45737         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
45738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
45739         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
45740         * modules/acosf: New file.
45741         * tests/test-math-c++.cc: Check the declaration of acosf.
45742         * doc/posix-functions/acosf.texi: Mention the new module.
45744         acos: Use a .m4 file.
45745         * m4/acos.m4: New file.
45746         * modules/acos (Files): Add it.
45747         (configure.ac): Just invoke gl_FUNC_ACOS.
45749 2011-10-08  Bruno Haible  <bruno@clisp.org>
45751         Tests for module 'asinf'.
45752         * modules/asinf-tests: New file.
45753         * tests/test-asinf.c: New file.
45755         New module 'asinf'.
45756         * lib/math.in.h (asinf): New declaration.
45757         * lib/asinf.c: New file.
45758         * m4/asinf.m4: New file.
45759         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
45760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
45761         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
45762         * modules/asinf: New file.
45763         * tests/test-math-c++.cc: Check the declaration of asinf.
45764         * doc/posix-functions/asinf.texi: Mention the new module.
45766         asin: Use a .m4 file.
45767         * m4/asin.m4: New file.
45768         * modules/asin (Files): Add it.
45769         (configure.ac): Just invoke gl_FUNC_ASIN.
45771 2011-10-08  Bruno Haible  <bruno@clisp.org>
45773         Tests for module 'tanf'.
45774         * modules/tanf-tests: New file.
45775         * tests/test-tanf.c: New file.
45777         New module 'tanf'.
45778         * lib/math.in.h (tanf): New declaration.
45779         * lib/tanf.c: New file.
45780         * m4/tanf.m4: New file.
45781         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
45782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
45783         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
45784         * modules/tanf: New file.
45785         * tests/test-math-c++.cc: Check the declaration of tanf.
45786         * doc/posix-functions/tanf.texi: Mention the new module.
45788         tan: Use a .m4 file.
45789         * m4/tan.m4: New file.
45790         * modules/tan (Files): Add it.
45791         (configure.ac): Just invoke gl_FUNC_TAN.
45793 2011-10-08  Bruno Haible  <bruno@clisp.org>
45795         Tests for module 'cosf'.
45796         * modules/cosf-tests: New file.
45797         * tests/test-cosf.c: New file.
45799         New module 'cosf'.
45800         * lib/math.in.h (cosf): New declaration.
45801         * lib/cosf.c: New file.
45802         * m4/cosf.m4: New file.
45803         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
45804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
45805         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
45806         * modules/cosf: New file.
45807         * tests/test-math-c++.cc: Check the declaration of cosf.
45808         * doc/posix-functions/cosf.texi: Mention the new module.
45810         cos: Use a .m4 file.
45811         * m4/cos.m4: New file.
45812         * modules/cos (Files): Add it.
45813         (configure.ac): Just invoke gl_FUNC_COS.
45815 2011-10-08  Bruno Haible  <bruno@clisp.org>
45817         Tests for module 'sinf'.
45818         * modules/sinf-tests: New file.
45819         * tests/test-sinf.c: New file.
45821         New module 'sinf'.
45822         * lib/math.in.h (sinf): New declaration.
45823         * lib/sinf.c: New file.
45824         * m4/sinf.m4: New file.
45825         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
45826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
45827         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
45828         * modules/sinf: New file.
45829         * tests/test-math-c++.cc: Check the declaration of sinf.
45830         * doc/posix-functions/sinf.texi: Mention the new module.
45832         sin: Use a .m4 file.
45833         * m4/sin.m4: New file.
45834         * modules/sin (Files): Add it.
45835         (configure.ac): Just invoke gl_FUNC_SIN.
45837 2011-10-08  Bruno Haible  <bruno@clisp.org>
45839         Tests for module 'powf'.
45840         * modules/powf-tests: New file.
45841         * tests/test-powf.c: New file.
45843         New module 'powf'.
45844         * lib/math.in.h (powf): New declaration.
45845         * lib/powf.c: New file.
45846         * m4/powf.m4: New file.
45847         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
45848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
45849         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
45850         * modules/powf: New file.
45851         * tests/test-math-c++.cc: Check the declaration of powf.
45852         * doc/posix-functions/powf.texi: Mention the new module.
45854         pow: Use a .m4 file.
45855         * m4/pow.m4: New file.
45856         * modules/pow (Files): Add it.
45857         (configure.ac): Just invoke gl_FUNC_POW.
45859 2011-10-08  Bruno Haible  <bruno@clisp.org>
45861         Tests for module 'log10f'.
45862         * modules/log10f-tests: New file.
45863         * tests/test-log10f.c: New file.
45865         New module 'log10f'.
45866         * lib/math.in.h (log10f): New declaration.
45867         * lib/log10f.c: New file.
45868         * m4/log10f.m4: New file.
45869         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
45870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
45871         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
45872         * modules/log10f: New file.
45873         * tests/test-math-c++.cc: Check the declaration of log10f.
45874         * doc/posix-functions/log10f.texi: Mention the new module.
45876         log10: Use a .m4 file.
45877         * m4/log10.m4: New file.
45878         * modules/log10 (Files): Add it.
45879         (configure.ac): Just invoke gl_FUNC_LOG10.
45881 2011-10-08  Bruno Haible  <bruno@clisp.org>
45883         Tests for module 'logf'.
45884         * modules/logf-tests: New file.
45885         * tests/test-logf.c: New file.
45887         New module 'logf'.
45888         * lib/math.in.h (logf): New declaration.
45889         * lib/logf.c: New file.
45890         * m4/logf.m4: New file.
45891         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
45892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
45893         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
45894         * modules/logf: New file.
45895         * tests/test-math-c++.cc: Check the declaration of logf.
45896         * doc/posix-functions/logf.texi: Mention the new module.
45898         log: Use a .m4 file.
45899         * m4/log.m4: New file.
45900         * modules/log (Files): Add it.
45901         (configure.ac): Just invoke gl_FUNC_LOG.
45903 2011-10-08  Bruno Haible  <bruno@clisp.org>
45905         Tests for module 'expf'.
45906         * modules/expf-tests: New file.
45907         * tests/test-expf.c: New file.
45909         New module 'expf'.
45910         * lib/math.in.h (expf): New declaration.
45911         * lib/expf.c: New file.
45912         * m4/expf.m4: New file.
45913         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
45914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
45915         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
45916         * modules/expf: New file.
45917         * tests/test-math-c++.cc: Check the declaration of expf.
45918         * doc/posix-functions/expf.texi: Mention the new module.
45920         exp: Use a .m4 file.
45921         * m4/exp.m4: New file.
45922         * modules/exp (Files): Add it.
45923         (configure.ac): Just invoke gl_FUNC_EXP.
45925 2011-10-08  Bruno Haible  <bruno@clisp.org>
45927         Tests for module 'sqrtf'.
45928         * modules/sqrtf-tests: New file.
45929         * tests/test-sqrtf.c: New file.
45931         New module 'sqrtf'.
45932         * lib/math.in.h (sqrtf): New declaration.
45933         * lib/sqrtf.c: New file.
45934         * m4/sqrtf.m4: New file.
45935         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
45936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
45937         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
45938         * modules/sqrtf: New file.
45939         * tests/test-math-c++.cc: Check the declaration of sqrtf.
45940         * doc/posix-functions/sqrtf.texi: Mention the new module.
45942 2011-10-08  Bruno Haible  <bruno@clisp.org>
45944         Tests: Avoid link failures w.r.t. libintl.
45945         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
45946         $(LIBINTL).
45947         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
45948         $(LIBINTL).
45949         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
45950         against $(LIBINTL).
45951         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
45952         $(LIBINTL).
45953         * modules/openat-tests (Makefile.am): Link test-fchmodat against
45954         $(LIBINTL).
45955         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
45957 2011-10-08  Bruno Haible  <bruno@clisp.org>
45959         pow tests: Defeat compiler optimizations.
45960         * tests/test-pow.c (main): Assign arguments to x and y before use.
45962 2011-10-08  Bruno Haible  <bruno@clisp.org>
45964         gnulib-tool: Improve last commit.
45965         * gnulib-tool (func_modules_transitive_closure): Simplify code.
45966         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
45967         ignore dependencies that are not among the modules list.
45969 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
45971         gnulib-tool: don't follow dependencies to avoided modules
45972         This fixes a bug that is related to the previous one.
45973         * gnulib-tool (func_modules_transitive_closure)
45974         (func_emit_autoconf_snippets):
45975         Check whether a dependency is acceptable before using it.
45976         (--extract-dependencies): Report an error if --avoid is also used,
45977         since this combination of options is not yet supported.
45979         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
45980         Problem reported by Peter Dyballa in
45981         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
45982         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
45983         when echoing "$condition".
45985 2011-10-07  Bruno Haible  <bruno@clisp.org>
45987         Fix documentation about math functions on MacOS X.
45988         * doc/posix-functions/exp2.texi: Don't say the function is missing on
45989         MacOS X 10.5.
45990         * doc/posix-functions/fdim.texi: Likewise.
45991         * doc/posix-functions/feclearexcept.texi: Likewise.
45992         * doc/posix-functions/fegetenv.texi: Likewise.
45993         * doc/posix-functions/fegetround.texi: Likewise.
45994         * doc/posix-functions/feholdexcept.texi: Likewise.
45995         * doc/posix-functions/feraiseexcept.texi: Likewise.
45996         * doc/posix-functions/fesetenv.texi: Likewise.
45997         * doc/posix-functions/fesetround.texi: Likewise.
45998         * doc/posix-functions/fetestexcept.texi: Likewise.
45999         * doc/posix-functions/feupdateenv.texi: Likewise.
46000         * doc/posix-functions/fmax.texi: Likewise.
46001         * doc/posix-functions/fmin.texi: Likewise.
46002         * doc/posix-functions/log2.texi: Likewise.
46003         * doc/posix-functions/modff.texi: Likewise.
46004         * doc/posix-functions/nan.texi: Likewise.
46005         * doc/posix-functions/nanf.texi: Likewise.
46006         * doc/posix-functions/nextafterf.texi: Likewise.
46007         * doc/posix-functions/remquo.texi: Likewise.
46009 2011-10-07  Bruno Haible  <bruno@clisp.org>
46011         modff: Drop assumption about library that defines modff.
46012         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46013         AC_CHECK_FUNCS.
46014         * modules/modff (Files): Add m4/mathfunc.m4.
46016 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46018         raise tests: Avoid a GCC warning.
46019         * tests/test-raise.c (handler): Use _Noreturn.
46021 2011-10-07  Bruno Haible  <bruno@clisp.org>
46023         Tests for module 'ldexpf'.
46024         * modules/ldexpf-tests: New file.
46025         * tests/test-ldexpf.c: New file.
46027         New module 'ldexpf'.
46028         * lib/math.in.h (ldexpf): New declaration.
46029         * lib/ldexpf.c: New file.
46030         * m4/ldexpf.m4: New file.
46031         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46033         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46034         * modules/ldexpf: New file.
46035         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46036         * doc/posix-functions/ldexpf.texi: Mention the new module.
46038 2011-10-06  Bruno Haible  <bruno@clisp.org>
46040         frexpf: Work around problems on IRIX and mingw.
46041         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46043         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46044         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46045         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46046         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46047         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46049 2011-10-06  Bruno Haible  <bruno@clisp.org>
46051         fabsf: Drop assumption about library that defines fabsf.
46052         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46053         AC_CHECK_FUNCS.
46054         * modules/fabsf (Files): Add m4/mathfunc.m4.
46056 2011-10-06  Bruno Haible  <bruno@clisp.org>
46058         frexpf: Drop assumption about library that defines frexpf.
46059         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46060         'int *', 'float *', 'long double *', 'float', 'long double'.
46061         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46062         AC_CHECK_FUNCS.
46063         * modules/frexpf (Files): Add m4/mathfunc.m4.
46065         Tests for module 'frexpf'.
46066         * modules/frexpf-tests: New file.
46067         * tests/test-frexpf.c: New file.
46069         New module 'frexpf'.
46070         * lib/math.in.h (frexpf): New declaration.
46071         * lib/frexpf.c: New file.
46072         * m4/frexpf.m4: New file.
46073         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46075         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46076         * modules/frexpf: New file.
46077         * tests/test-math-c++.cc: Check the declaration of frexpf.
46078         * doc/posix-functions/frexpf.texi: Mention the new module.
46080 2011-10-06  Bruno Haible  <bruno@clisp.org>
46082         math: Sort function declarations of math.in.h.
46083         * lib/math.in.h (frexp, logb): Move declarations.
46085 2011-10-05  Bruno Haible  <bruno@clisp.org>
46087         Tests for module 'modff'.
46088         * modules/modff-tests: New file.
46089         * tests/test-modff.c: New file.
46091         New module 'modff'.
46092         * lib/math.in.h (modff): New declaration.
46093         * lib/modff.c: New file.
46094         * m4/modff.m4: New file.
46095         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46097         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46098         * modules/modff: New file.
46099         * tests/test-math-c++.cc: Check the declaration of modff.
46100         * doc/posix-functions/modff.texi: Mention the new module.
46102         modf tests: Make test sharper.
46103         * tests/test-modf.c (main): Strengthen upper bound.
46105         modf: Use a .m4 file.
46106         * m4/modf.m4: New file.
46107         * modules/modf (Files): Add it.
46108         (configure.ac): Just invoke gl_FUNC_MODF.
46110 2011-10-05  Bruno Haible  <bruno@clisp.org>
46112         Tests for module 'fmodf'.
46113         * modules/fmodf-tests: New file.
46114         * tests/test-fmodf.c: New file.
46116         New module 'fmodf'.
46117         * lib/math.in.h (fmodf): New declaration.
46118         * lib/fmodf.c: New file.
46119         * m4/fmodf.m4: New file.
46120         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46122         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46123         * modules/fmodf: New file.
46124         * tests/test-math-c++.cc: Check the declaration of fmodf.
46125         * doc/posix-functions/fmodf.texi: Mention the new module.
46127         fmod: Use a .m4 file.
46128         * m4/fmod.m4: New file.
46129         * modules/fmod (Files): Add it.
46130         (configure.ac): Just invoke gl_FUNC_FMOD.
46132 2011-10-05  Bruno Haible  <bruno@clisp.org>
46134         Tests for module 'fabsf'.
46135         * modules/fabsf-tests: New file.
46136         * tests/test-fabsf.c: New file.
46138         New module 'fabsf'.
46139         * lib/math.in.h (fabsf): New declaration.
46140         * lib/fabsf.c: New file.
46141         * m4/fabsf.m4: New file.
46142         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46144         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46145         * modules/fabsf: New file.
46146         * tests/test-math-c++.cc: Check the declaration of fabsf.
46147         * doc/posix-functions/fabsf.texi: Mention the new module.
46149         fabs: Use a .m4 file.
46150         * m4/fabs.m4: New file.
46151         * modules/fabs (Files): Add it.
46152         (configure.ac): Just invoke gl_FUNC_FABS.
46154 2011-10-05  Jim Meyering  <meyering@redhat.com>
46156         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46157         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46158         ls -lL regression introduced in coreutils-8.12, it does so at the
46159         cost of an additional stat call in the common case.  Besides, now
46160         that the kernel change that prompted commit 95f7c57f has been reverted
46161         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46162         we have no use for commit 95f7c57f, "file-has-acl: use
46163         acl_extended_file_nofollow if available".
46165 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46167         file-has-acl: revert unintended change in behavior of ls -L
46168         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46169         derived from...
46170         (file_has_acl): ...code here.  Call it.
46171         This problem was introduced with 2011-07-22 commit 95f7c57f,
46172         "file-has-acl: use acl_extended_file_nofollow if available".
46173         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46175 2011-10-03  Bruno Haible  <bruno@clisp.org>
46177         poll: Avoid link errors on MSVC.
46178         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46179         * modules/poll (Depends-on): Add sockets.
46180         (Link): New section.
46181         * NEWS: Mention the change.
46182         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46183         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46184         $(LIB_POLL) instead of $(LIBSOCKET).
46186 2011-10-03  Bruno Haible  <bruno@clisp.org>
46188         sys_select tests: Fix link error on MSVC 9.
46189         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46190         with $(LIB_SELECT) instead of $(LIBSOCKET).
46192 2011-10-03  Bruno Haible  <bruno@clisp.org>
46194         sys_select: Fix compilation error on mingw.
46195         * lib/sys_select.in.h: On native Windows, include <io.h>.
46197 2011-10-03  Bruno Haible  <bruno@clisp.org>
46199         wmemset: Support for MSVC.
46200         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46201         whether wmemset() exists.
46203 2011-10-03  Bruno Haible  <bruno@clisp.org>
46205         wmemmove: Support for MSVC.
46206         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46207         whether wmemmove() exists.
46209 2011-10-03  Bruno Haible  <bruno@clisp.org>
46211         wmemcpy: Support for MSVC.
46212         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
46213         whether wmemcpy() exists.
46215 2011-10-03  Bruno Haible  <bruno@clisp.org>
46217         wmemcmp: Support for MSVC.
46218         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
46219         whether wmemcmp() exists.
46221 2011-10-03  Bruno Haible  <bruno@clisp.org>
46223         wmemchr: Support for MSVC.
46224         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
46225         whether wmemchr() exists.
46227 2011-10-03  Bruno Haible  <bruno@clisp.org>
46229         glthread/*, strsignal: Support for MSVC.
46230         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
46231         including <winsock.h> on MSVC 9.
46232         * lib/glthread/lock.h: Likewise.
46233         * lib/glthread/thread.h: Likewise.
46234         * lib/glthread/tls.h: Likewise.
46235         * lib/glthread/yield.h: Likewise.
46236         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
46237         if HAVE_UNISTD_H is false.
46238         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
46240 2011-10-03  Bruno Haible  <bruno@clisp.org>
46242         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
46243         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
46244         Set to 100000.
46246 2011-10-03  Bruno Haible  <bruno@clisp.org>
46248         acl: Fix specification.
46249         * lib/file-has-acl.c (file_has_acl): Fix specification.
46251 2011-10-03  Bruno Haible  <bruno@clisp.org>
46253         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46254         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46255         (compute_curr_prefix, shared_library_fullname,
46256         find_shared_library_fullname, get_shared_library_fullname, relocate):
46257         Use it together with PIC && INSTALLDIR.
46258         Reported by <jojelino@gmail.com>
46259         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46261 2011-10-01  Jim Meyering  <meyering@redhat.com>
46263         maint.mk: adjust a release-related rule not to require use of gzip
46264         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46265         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46266         projects that build only .tar.xz files.  Also fix an erroneous test.
46268         test-linkat: don't leave behind a temporary file
46269         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46270         Otherwise, coreutils' "make distcheck" would fail with this:
46271           Only in /c/cu/tests/torture/coreutils/test/\
46272             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46273           make[2]: *** [my-distcheck] Error 1
46275         float, math: add omitted file
46276         * lib/itold.c: Add file, required for yesterday's float change.
46278 2011-10-01  Bruno Haible  <bruno@clisp.org>
46280         isinf: Fix for OpenBSD/x86.
46281         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46282         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46283         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46285 2011-10-01  Bruno Haible  <bruno@clisp.org>
46287         isfinite: Fix syntax error in configure test.
46288         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46290         isfinite: Fix typo.
46291         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46292         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46294 2011-10-01  Bruno Haible  <bruno@clisp.org>
46296         nonblocking tests: Fix test failure on Linux/IA-64.
46297         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46298         Set to 270000.
46300 2011-10-01  Bruno Haible  <bruno@clisp.org>
46302         mkfifoat tests: Fix a test failure on mingw.
46303         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46304         with error ENOSYS.
46306 2011-09-30  Bruno Haible  <bruno@clisp.org>
46308         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46309         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46310         'long double'. Set REPLACE_ITOLD.
46311         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46312         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46313         * lib/itold.c: New file.
46314         * modules/float (Files): Add lib/itold.c.
46315         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46316         (Makefile.am): Substitute REPLACE_ITOLD.
46317         * modules/math (Depends-on): Add float.
46318         (Makefile.am): Substitute REPLACE_ITOLD.
46319         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46320         * doc/posix-headers/math.texi: Likewise.
46321         * doc/posix-functions/logl.texi: Likewise.
46323 2011-09-30  Bruno Haible  <bruno@clisp.org>
46325         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46326         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46327         Set to 140000.
46329 2011-09-30  Bruno Haible  <bruno@clisp.org>
46331         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46332         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46333         invocation, say "right after AC_PROG_CC_STDC", not "right after
46334         AC_PROG_CC".
46335         Reported by Gary V. Vaughan <gary@gnu.org>.
46337 2011-09-30  Bruno Haible  <bruno@clisp.org>
46339         Centralize C99 requirement.
46340         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46341         * modules/stdarg (configure.ac-early): Invoke it instead of
46342         AC_PROG_CC_STDC.
46343         Reported by Gary V. Vaughan and Paul Eggert.
46345 2011-09-29  Bruno Haible  <bruno@clisp.org>
46347         float: Fix LDBL_MAX value on Linux/PowerPC.
46348         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46349         on Linux/PowerPC.
46350         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46351         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46352         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46353         platform.
46354         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46356 2011-09-29  Bruno Haible  <bruno@clisp.org>
46358         doc: Improve doc about gl_EARLY.
46359         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46360         AC_PROG_CC_STDC invocation.
46361         Reported by Gary V. Vaughan <gary@gnu.org>.
46363 2011-09-28  Bruno Haible  <bruno@clisp.org>
46365         fgetc, fputc, fread, fwrite tests: Fix link error.
46366         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46367         on non-MSVC platforms.
46368         * tests/test-fputc.c (main): Likewise.
46369         * tests/test-fread.c (main): Likewise.
46370         * tests/test-fwrite.c (main): Likewise.
46371         Reported by Jim Meyering.
46373 2011-09-27  Bruno Haible  <bruno@clisp.org>
46375         fputc, fwrite tests: Avoid test failure on MSVC.
46376         * tests/test-fgetc.c: Include msvc-inval.h.
46377         (main): Invoke gl_msvc_inval_ensure_handler.
46378         * tests/test-fputc.c: Include msvc-inval.h.
46379         (main): Invoke gl_msvc_inval_ensure_handler.
46380         * tests/test-fread.c: Include msvc-inval.h.
46381         (main): Invoke gl_msvc_inval_ensure_handler.
46382         * tests/test-fwrite.c: Include msvc-inval.h.
46383         (main): Invoke gl_msvc_inval_ensure_handler.
46384         * modules/fgetc-tests (Depends-on): Add msvc-inval.
46385         * modules/fputc-tests (Depends-on): Likewise.
46386         * modules/fread-tests (Depends-on): Likewise.
46387         * modules/fwrite-tests (Depends-on): Likewise.
46389 2011-09-27  Bruno Haible  <bruno@clisp.org>
46391         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
46392         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
46393         (raise): Remove older, duplicated declaration.
46394         (_gl_raise_SIGPIPE): New declaration.
46395         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
46396         (rpl_raise): Remove function.
46397         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
46398         a gnulib-defined SIGPIPE here.
46399         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
46400         'sigprocmask' has detected missing signal-blocking and the module
46401         'sigpipe' is enabled.
46402         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46404 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
46406         base64-tests: avoid memory leak
46407         * tests/test-base64.c (main): Plug memory leak.
46409         base32: new module
46410         * modules/base32: New module.
46411         * lib/base32.c: New file.
46412         * lib/base32.h: Likewise.
46413         * m4/base32.m4: Likewise.
46414         * modules/base32-tests: New test.
46415         * tests/test-base32.c: Likewise.
46416         * MODULES.html.sh (Misc): Mention it.
46418 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46420         gnulib: use more-standard license notice wording
46421         * gnulib-tool (func_emit_copyright_notice): When emitting a
46422         license notice into a file, use the standard wording as suggested
46423         by the current information for GNU maintainers, except say "file"
46424         rather than "program".  The new wording gives a license version
46425         number, which addresses an issue raised by Glenn Morris in
46426         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
46427         * m4/onceonly.m4: Use that same wording here, too.
46429         dup2: minor simplification
46430         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
46431         as lib/dup2.c no longer uses 'inline'.
46433 2011-09-25  Bruno Haible  <bruno@clisp.org>
46435         strings: Fix compilation error on MSVC.
46436         * lib/strings.in.h: Include <stddef.h> for size_t.
46438 2011-09-25  Bruno Haible  <bruno@clisp.org>
46440         fflush et al.: Document limitation on MSVC.
46441         * doc/posix-functions/fflush.texi: Document possible crash in handling
46442         mode other than DEFAULT_HANDLING.
46443         * doc/posix-functions/fgetc.texi: Likewise.
46444         * doc/posix-functions/fputc.texi: Likewise.
46445         * doc/posix-functions/fread.texi: Likewise.
46446         * doc/posix-functions/fwrite.texi: Likewise.
46448 2011-09-25  Bruno Haible  <bruno@clisp.org>
46450         msvc-inval: Allow three invalid parameter handling modes.
46451         * lib/msvc-inval.h: Don't include <stdlib.h> here.
46452         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
46453         macros.
46454         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
46455         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
46456         SANE_LIBRARY_HANDLING as a no-op.
46457         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
46458         <stdlib.h>.
46459         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
46461 2011-09-25  Bruno Haible  <bruno@clisp.org>
46463         msvc-inval: Make handler multithread-safe.
46464         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
46465         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
46466         declarations.
46467         (gl_msvc_inval_current): New declaration.
46468         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46469         Operate on the structure returned by gl_msvc_inval_current().
46470         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
46471         Remove varaiables.
46472         (tls_index, tls_initialized): New variables.
46473         (not_per_thread): New variable.
46474         (gl_msvc_inval_current): New function.
46475         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
46476         returned by gl_msvc_inval_current().
46478 2011-09-25  Bruno Haible  <bruno@clisp.org>
46480         msvc-inval: Install handler globally.
46481         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
46482         !_MSC_VER.
46483         (gl_msvc_invalid_parameter_handler): Remove declaration.
46484         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
46485         declarations.
46486         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46487         Install the handler globally, don't uninstall it.
46488         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
46489         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
46490         currently valid, call RaiseException instead.
46491         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
46492         for !_MSC_VER.
46494 2011-09-25  Bruno Haible  <bruno@clisp.org>
46496         strerror_r-posix: Fix for MSVC 9.
46497         * lib/strerror_r.c (local_snprintf): New function.
46498         (snprintf): Define to local_snprintf, not to _snprintf.
46500 2011-09-25  Bruno Haible  <bruno@clisp.org>
46502         ftruncate: Support for MSVC 9.
46503         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
46504         (chsize_nothrow): New function.
46505         (chsize): Redefine as a macro.
46506         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
46507         * modules/ftruncate (Depends-on): Add msvc-inval.
46509 2011-09-25  Bruno Haible  <bruno@clisp.org>
46511         New module 'fstat'.
46512         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
46513         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
46514         * lib/fchdir.c (rpl_fstat): Remove function.
46515         * m4/fstat.m4: New file.
46516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
46517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
46518         declared.
46519         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
46520         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
46521         * modules/fstat: New file.
46522         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
46523         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
46524         is set.
46525         * doc/posix-functions/fstat.texi: Mention the new module and the
46526         problem on MSVC.
46527         * NEWS: Mention the change.
46528         * modules/acl (Depends-on): Add fstat.
46529         * modules/chdir-safer (Depends-on): Likewise.
46530         * modules/chown (Depends-on): Likewise.
46531         * modules/copy-file (Depends-on): Likewise.
46532         * modules/fchdir (Depends-on): Likewise.
46533         * modules/fdopendir (Depends-on): Likewise.
46534         * modules/fopen (Depends-on): Likewise.
46535         * modules/fts (Depends-on): Likewise.
46536         * modules/getcwd (Depends-on): Likewise.
46537         * modules/isapipe (Depends-on): Likewise.
46538         * modules/linkat (Depends-on): Likewise.
46539         * modules/lseek (Depends-on): Likewise.
46540         * modules/mkdir-p (Depends-on): Likewise.
46541         * modules/open (Depends-on): Likewise.
46542         * modules/openat (Depends-on): Likewise.
46543         * modules/read-file (Depends-on): Likewise.
46544         * modules/renameat (Depends-on): Likewise.
46545         * modules/utimens (Depends-on): Likewise.
46547 2011-09-25  Bruno Haible  <bruno@clisp.org>
46549         linkat: Fix compilation on MSVC 9.
46550         * lib/linkat.c: Don't include <stdint.h>.
46552 2011-09-25  Bruno Haible  <bruno@clisp.org>
46554         fclose: Support for MSVC 9.
46555         * lib/fclose.c: Include msvc-inval.h.
46556         (fclose_nothrow): New function.
46557         (rpl_fclose): Use it.
46558         * modules/fclose (Depends-on): Add msvc-inval.
46559         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
46561 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46563         dup2: minor simplifications
46564         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
46565         that it's a performance win.
46566         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
46567         ! defined __CYGWIN__)" to "ifdef F_GETFL".
46569 2011-09-24  Jim Meyering  <meyering@redhat.com>
46571         test-futimens: avoid a warning from gcc -Wshadow
46572         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
46573         to avoid a shadowing warning.
46575 2011-09-24  Bruno Haible  <bruno@clisp.org>
46577         fdopen: Support for MSVC 9.
46578         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
46579         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
46580         * lib/fdopen.c: Include msvc-inval.h.
46581         (fdopen_nothrow): New function.
46582         (rpl_fdopen): Use it.
46583         * modules/fdopen (Depends-on): Add msvc-inval.
46584         * modules/fclose-tests (Depends-on): Add fdopen.
46585         * modules/fflush-tests (Depends-on): Likewise.
46586         * modules/fgetc-tests (Depends-on): Likewise.
46587         * modules/fputc-tests (Depends-on): Likewise.
46588         * modules/fread-tests (Depends-on): Likewise.
46589         * modules/freopen-tests (Depends-on): Likewise.
46590         * modules/fseeko-tests (Depends-on): Likewise.
46591         * modules/ftello-tests (Depends-on): Likewise.
46592         * modules/fwrite-tests  (Depends-on): Likewise.
46593         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
46595 2011-09-24  Bruno Haible  <bruno@clisp.org>
46597         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
46598         * modules/fgetc-tests (Depends-on): Add unistd.
46599         * modules/fputc-tests (Depends-on): Likewise.
46600         * modules/fread-tests (Depends-on): Likewise.
46601         * modules/fwrite-tests (Depends-on): Likewise.
46603 2011-09-24  Bruno Haible  <bruno@clisp.org>
46605         dup: Simplify autoconf test.
46606         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
46607         on gl_MSVC_INVAL's result.
46609 2011-09-24  Bruno Haible  <bruno@clisp.org>
46611         Tests for function fwrite().
46612         * modules/fwrite-tests: New file.
46613         * tests/test-fwrite.c: New file.
46614         * modules/stdio-tests (Depends-on): Add fwrite-tests.
46616         Tests for function fread().
46617         * modules/fread-tests: New file.
46618         * tests/test-fread.c: New file.
46619         * modules/stdio-tests (Depends-on): Add fread-tests.
46621         Activate fputc tests.
46622         * modules/stdio-tests (Depends-on): Add fputc-tests.
46624         Enhance fgetc, fputc tests.
46625         * tests/test-fgetc.c (main): Also test the stream's error indicator.
46626         * tests/test-fputc.c (main): Likewise.
46628 2011-09-24  Bruno Haible  <bruno@clisp.org>
46630         write: Support for MSVC 9.
46631         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46632         is not 1.
46633         * lib/write.c (write_nothrow): New function.
46634         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
46635         not 1. Use write_nothrow.
46636         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
46637         invalid parameter handler.
46638         (gl_PREREQ_WRITE): New macro.
46639         * modules/write (Depends-on): Add msvc-inval.
46640         (configure.ac): Invoke gl_PREREQ_WRITE.
46641         * doc/posix-functions/write.texi: Mention the problem on MSVC.
46643 2011-09-24  Bruno Haible  <bruno@clisp.org>
46645         read: Fix last commit.
46646         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
46648 2011-09-24  Bruno Haible  <bruno@clisp.org>
46650         dup2: Fix last commit.
46651         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
46652         (rpl_dup2): Disable fcntl workaround on native Windows.
46654         sigprocmask: Make code safer.
46655         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
46656         section that changes macro definitions for this compilation unit.
46658 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46660         dup2: clarify by coalescing Windows-specific material
46661         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
46662         "msvc-nothrow.h"' to the Windows-specific section, so that the
46663         Emacs source need not contain these include files.
46664         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
46665         Windows-specific fixes into this function rather than just the
46666         nothrow fix, as this shortens and clarifies the code.  Always
46667         define as a function, as that's a bit cleaner than having it be
46668         sometimes a function and sometimes a macro.
46669         (rpl_dup2): Move the Windows-specific stuff out of here and into
46670         ms_windows_dup2.  Don't protect the Haiku-related fix with
46671         "#if !defined __linux__", as the same code also works around
46672         a Linux kernel bug, and it doesn't add any system calls on any
46673         platform.  Add comment about FreeBSD 6.1.
46675         sigprocmask: move #include directive
46676         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
46677         Windows-specific section, so that the Emacs source need not
46678         contain msvc-inval.h.
46680 2011-09-23  Bruno Haible  <bruno@clisp.org>
46682         read: Support for MSVC 9.
46683         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46684         is not 1.
46685         * lib/read.c (read_nothrow): New function.
46686         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
46687         read_nothrow.
46688         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
46689         invalid parameter handler.
46690         (gl_PREREQ_READ): New macro.
46691         * modules/read (Depends-on): Add msvc-inval.
46692         (configure.ac): Invoke gl_PREREQ_READ.
46693         * doc/posix-functions/read.texi: Mention the problem on MSVC.
46695 2011-09-23  Bruno Haible  <bruno@clisp.org>
46697         close: Support for MSVC 9.
46698         * lib/close.c: Include <errno.h>, msvc-inval.h.
46699         (close_nothrow): New function.
46700         (rpl_close): Use it.
46701         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
46702         invalid parameter handler.
46703         * modules/close (Depends-on): Add msvc-inval.
46704         * modules/dup2-tests (Depends-on): Add close.
46705         * modules/dup3-tests (Depends-on): Likewise.
46706         * modules/fcntl-tests (Depends-on): Likewise.
46707         * modules/spawn-pipe-tests (Depends-on): Likewise.
46708         * modules/unistd-safer-tests (Depends-on): Likewise.
46709         * doc/posix-functions/close.texi: Mention the problem on MSVC.
46711 2011-09-23  Bruno Haible  <bruno@clisp.org>
46713         New module 'dup'.
46714         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
46715         Allow replacement.
46716         * lib/dup.c: New file.
46717         * lib/fchdir.c (rpl_dup): Remove function.
46718         * m4/dup.m4: New file.
46719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
46720         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
46721         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
46722         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
46723         * modules/dup: New file.
46724         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
46725         'dup' module is in use.
46726         * modules/fdopendir (Depends-on): Add dup.
46727         * modules/fdutimensat-tests (Depends-on): Likewise.
46728         * modules/fts (Depends-on): Likewise.
46729         * modules/futimens-tests (Depends-on): Likewise.
46730         * modules/posix_spawnp-tests (Depends-on): Likewise.
46731         * modules/unistd-safer-tests (Depends-on): Likewise.
46732         * modules/utimens-tests (Depends-on): Likewise.
46733         * doc/posix-functions/dup.texi: Mention the new module and the problem
46734         on MSVC.
46736 2011-09-23  Bruno Haible  <bruno@clisp.org>
46738         getdtablesize: Support for MSVC 9.
46739         * lib/getdtablesize.c: Include msvc-inval.h.
46740         (_setmaxstdio_nothrow): New function.
46741         (_setmaxstdio): Redefine it.
46742         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
46743         * modules/getdtablesize (Depends-on): Add msvc-inval.
46744         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
46746 2011-09-23  Bruno Haible  <bruno@clisp.org>
46748         signal-h: Rename from signal.
46749         * modules/signal-h: Renamed from modules/signal.
46750         * modules/pthread_sigmask (Depends-on): Update.
46751         * modules/raise (Depends-on): Likewise.
46752         * modules/sigaction (Depends-on): Likewise.
46753         * modules/sigpipe (Depends-on): Likewise.
46754         * modules/sigprocmask (Depends-on): Likewise.
46755         * modules/sys_select (Depends-on): Likewise.
46756         * modules/signal-h-tests: Renamed from modules/signal-tests.
46757         (Files, Depends-on, Makefile.am): Update.
46758         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
46759         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
46760         (Files, Makefile.am): Update.
46761         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
46762         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
46763         * modules/signal: New placeholder file.
46764         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
46765         * doc/posix-headers/signal.texi: Update.
46766         * NEWS: Mention the change.
46768 2011-09-23  Bruno Haible  <bruno@clisp.org>
46770         sigprocmask: Avoid crashes through signal() on MSVC 9.
46771         * lib/sigprocmask.c: Include msvc-inval.h.
46772         (signal_nothrow): New function.
46773         (signal): Redefine it.
46774         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
46775         * modules/sigprocmask (Depends-on): Add msvc-inval.
46776         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
46778 2011-09-23  Bruno Haible  <bruno@clisp.org>
46780         Tests for module 'raise'.
46781         * modules/raise-tests: New file.
46782         * tests/test-raise.c: New file.
46784         raise: Support for MSVC.
46785         * lib/signal.in.h (raise): New declaration.
46786         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
46787         for native Windows platforms.
46788         * m4/raise.m4: New file.
46789         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
46790         HAVE_RAISE, REPLACE_RAISE.
46791         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
46792         REPLACE_RAISE.
46793         * modules/raise (Status, Notice): Remove fields.
46794         (Files): Add m4/raise.m4.
46795         (Depends-on): Add signal, msvc-inval.
46796         (configure.ac): Use the common idioms.
46797         (Maintainer): Add me.
46798         * tests/test-signal-c++.cc: Check the signature of raise.
46799         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
46801 2011-09-23  Bruno Haible  <bruno@clisp.org>
46803         pipe2: Fix compilation on pre-C99 compilers.
46804         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
46806 2011-09-23  Bruno Haible  <bruno@clisp.org>
46808         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
46809         * lib/msvc-nothrow.h: New file.
46810         * lib/msvc-nothrow.c: New file.
46811         * m4/msvc-nothrow.m4: New file.
46812         * modules/msvc-nothrow: New file.
46813         * lib/dup2.c: Include msvc-nothrow.h.
46814         (rpl_dup2): No need to protect _get_osfhandle call here.
46815         * lib/accept4.c: Include msvc-nothrow.h.
46816         * lib/error.c: Likewise.
46817         * lib/fcntl.c: Likewise.
46818         * lib/lseek.c: Likewise.
46819         * lib/nonblocking.c: Likewise.
46820         * lib/poll.c: Likewise.
46821         * lib/read.c: Likewise.
46822         * lib/select.c: Likewise.
46823         * lib/sockets.h: Likewise.
46824         * lib/sockets.c: Likewise.
46825         * lib/stdio-read.c: Likewise.
46826         * lib/stdio-write.c: Likewise.
46827         * lib/write.c: Likewise.
46828         * lib/w32sock.h: Likewise.
46829         * lib/w32spawn.h: Likewise.
46830         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
46831         * lib/fsync.c: Likewise.
46832         * lib/isapipe.c: Likewise.
46833         * modules/dup2 (Depends-on): Add msvc-nothrow.
46834         * modules/accept4 (Depends-on): Likewise.
46835         * modules/error (Depends-on): Likewise.
46836         * modules/fcntl (Depends-on): Likewise.
46837         * modules/lseek (Depends-on): Likewise.
46838         * modules/nonblocking (Depends-on): Likewise.
46839         * modules/poll (Depends-on): Likewise.
46840         * modules/read (Depends-on): Likewise.
46841         * modules/select (Depends-on): Likewise.
46842         * modules/sockets (Depends-on): Likewise.
46843         * modules/sigpipe (Depends-on): Likewise.
46844         * modules/write (Depends-on): Likewise.
46845         * modules/accept (Depends-on): Likewise.
46846         * modules/bind (Depends-on): Likewise.
46847         * modules/connect (Depends-on): Likewise.
46848         * modules/gethostname (Depends-on): Likewise.
46849         * modules/getpeername (Depends-on): Likewise.
46850         * modules/getsockname (Depends-on): Likewise.
46851         * modules/getsockopt (Depends-on): Likewise.
46852         * modules/ioctl (Depends-on): Likewise.
46853         * modules/listen (Depends-on): Likewise.
46854         * modules/recv (Depends-on): Likewise.
46855         * modules/recvfrom (Depends-on): Likewise.
46856         * modules/send (Depends-on): Likewise.
46857         * modules/sendto (Depends-on): Likewise.
46858         * modules/setsockopt (Depends-on): Likewise.
46859         * modules/shutdown (Depends-on): Likewise.
46860         * modules/socket (Depends-on): Likewise.
46861         * modules/execute (Depends-on): Likewise.
46862         * modules/spawn-pipe (Depends-on): Likewise.
46863         * modules/flock (Depends-on): Likewise.
46864         * modules/fsync (Depends-on): Likewise.
46865         * modules/isapipe (Depends-on): Likewise.
46866         * tests/test-cloexec.c: Include msvc-nothrow.h.
46867         * tests/test-dup-safer.c: Likewise.
46868         * tests/test-dup2.c: Likewise.
46869         * tests/test-dup3.c: Likewise.
46870         * tests/test-fcntl.c: Likewise.
46871         * tests/test-pipe.c: Likewise.
46872         * tests/test-pipe2.c: Likewise.
46873         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
46874         * modules/unistd-safer-tests (Depends-on): Likewise.
46875         * modules/dup2-tests (Depends-on): Likewise.
46876         * modules/dup3-tests (Depends-on): Likewise.
46877         * modules/fcntl-tests (Depends-on): Likewise.
46878         * modules/pipe-posix-tests (Depends-on): Likewise.
46879         * modules/pipe2-tests (Depends-on): Likewise.
46881 2011-09-23  Bruno Haible  <bruno@clisp.org>
46883         dup2: Make code more maintainable.
46884         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
46885         (rpl_dup2): Use it.
46886         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
46887         * modules/dup2 (configure.ac): Invoke it.
46888         Reported by Paul Eggert.
46890 2011-09-23  Bruno Haible  <bruno@clisp.org>
46892         msvc-inval: Fix compilation error.
46893         * lib/msvc-inval.h: Include <excpt.h>.
46895 2011-09-23  Bruno Haible  <bruno@clisp.org>
46897         mkdir: Tweak for MSVC 9.
46898         * lib/sys_stat.in.h: Update comments.
46899         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
46901         Tests for module 'chdir'.
46902         * modules/chdir-tests: New file.
46903         * tests/test-chdir.c: New file.
46905         New module 'chdir'.
46906         * modules/chdir: New file.
46907         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
46908         (chdir): New declaration.
46909         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
46910         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
46911         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
46912         * tests/test-unistd-c++.cc: Check signature of chdir.
46913         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
46914         * modules/chdir-long (Depends-on): Add chdir.
46915         * modules/fchdir (Depends-on): Likewise.
46916         * modules/rename (Depends-on): Likewise.
46917         * modules/savewd (Depends-on): Likewise.
46919         rmdir: Support for mingw, MSVC 9.
46920         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
46921         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
46923         getcwd: Tweak for MSVC 9.
46924         * lib/unistd.in.h: Update comments.
46925         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
46927 2011-09-22  Bruno Haible  <bruno@clisp.org>
46929         strerror_r-posix: Avoid a link error on MSVC.
46930         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
46931         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
46933 2011-09-22  Bruno Haible  <bruno@clisp.org>
46935         select: Avoid link errors on MSVC.
46936         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
46937         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
46938         * modules/pselect (Link): Likewise.
46939         * NEWS: Mention the change.
46940         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
46941         test-select-stdin against $(LIB_SELECT).
46942         * modules/pselect-tests (Makefile.am): Link test-pselect against
46943         $(LIB_SELECT).
46945 2011-09-22  Bruno Haible  <bruno@clisp.org>
46947         select: Avoid compilation error on MSVC.
46948         * lib/select.c: Don't include <stdbool.h>.
46950 2011-09-21  Bruno Haible  <bruno@clisp.org>
46952         Consolidate all uses of PATH_MAX in *.m4 files.
46953         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
46954         macros.
46955         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
46956         and gl_PATHMAX_SNIPPET.
46957         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
46958         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46959         * modules/chdir-long (Files): Add m4/pathmax.m4.
46960         * modules/getcwd (Files): Likewise.
46962 2011-09-21  Bruno Haible  <bruno@clisp.org>
46964         ftruncate: Un-deprecate, concentrate on Win32 support.
46965         * modules/ftruncate (Status, Notice): Remove sections.
46966         (Depends-on): Add largefile.
46967         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
46968         non-mingw platforms.
46969         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
46970         include <io.h>.
46971         * modules/perror-tests (Depends-on): Add ftruncate.
46972         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
46973         'ftruncate' module.
46975 2011-09-21  Bruno Haible  <bruno@clisp.org>
46977         Add dependencies to new dirent related modules.
46978         * modules/opendir (Depends-on): Add closedir.
46979         * modules/getcwd (Depends-on): Add opendir, closedir.
46980         * modules/dirent-safer-tests (Depends-on): Likewise.
46981         * modules/fdopendir-tests (Depends-on): Likewise.
46982         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
46983         * modules/renameat-tests (Depends-on): Likewise.
46985 2011-09-21  Bruno Haible  <bruno@clisp.org>
46987         opendir: Avoid compilation error on mingw.
46988         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
46989         * modules/opendir (Depends-on): Add unistd.
46991 2011-09-21  Bruno Haible  <bruno@clisp.org>
46993         ftruncate tests: Avoid a test failure on mingw.
46994         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
46996 2011-09-21  Bruno Haible  <bruno@clisp.org>
46998         select tests: Avoid test failures on OSF/1 5.1 and mingw.
46999         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47000         native Windows.
47002 2011-09-21  Bruno Haible  <bruno@clisp.org>
47004         New module 'fdopen'.
47005         * lib/stdio.in.h (fdopen): New declaration.
47006         * lib/fdopen.c: New file.
47007         * m4/fdopen.m4: New file.
47008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47009         REPLACE_FDOPEN.
47010         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47011         REPLACE_FDOPEN.
47012         * modules/fdopen: New file.
47013         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47014         * tests/test-stdio-c++.cc: Check signature of fdopen.
47015         * doc/posix-functions/fdopen.texi: Mention the new module.
47017 2011-09-21  Bruno Haible  <bruno@clisp.org>
47019         unlockpt tests: Avoid test failure on NetBSD 5.1.
47020         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47021         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47023 2011-09-21  Bruno Haible  <bruno@clisp.org>
47025         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47026         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47027         * tests/test-getlogin_r.c (main): Likewise.
47029 2011-09-20  Bruno Haible  <bruno@clisp.org>
47031         time tests: Don't require pid_t.
47032         * doc/posix-headers/time.texi: Revert last change.
47033         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47034         * tests/test-time.c: Comment out the check for pid_t.
47036 2011-09-20  Bruno Haible  <bruno@clisp.org>
47038         fsync tests: Avoid a test failure on mingw.
47039         * tests/test-fsync.c (main): Allow a failure with EIO.
47041 2011-09-20  Bruno Haible  <bruno@clisp.org>
47043         euidaccess: Update comments.
47044         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47046 2011-09-20  Bruno Haible  <bruno@clisp.org>
47048         Ensure EBADF returns for socket functions on mingw.
47049         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47050         descriptor is invalid.
47051         * lib/bind.c (rpl_bind): Likewise.
47052         * lib/connect.c (rpl_connect): Likewise.
47053         * lib/getpeername.c (rpl_getpeername): Likewise.
47054         * lib/getsockname.c (rpl_getsockname): Likewise.
47055         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47056         * lib/listen.c (rpl_listen): Likewise.
47057         * lib/recv.c (rpl_recv): Likewise.
47058         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47059         * lib/send.c (rpl_send): Likewise.
47060         * lib/sendto.c (rpl_sendto): Likewise.
47061         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47062         * lib/shutdown.c (rpl_shutdown): Likewise.
47064 2011-09-20  Bruno Haible  <bruno@clisp.org>
47066         select tests: EBADF tests.
47067         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47068         test_bad_fd): New functions.
47069         (test_function): Invoke also test_bad_fd.
47071 2011-09-20  Bruno Haible  <bruno@clisp.org>
47073         Tests for module 'posix_spawn_file_actions_addopen.
47074         * modules/posix_spawn_file_actions_addopen-tests: New file.
47075         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47077         Tests for module 'posix_spawn_file_actions_adddup2'.
47078         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47079         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47081         Tests for module 'posix_spawn_file_actions_addclose'.
47082         * modules/posix_spawn_file_actions_addclose-tests: New file.
47083         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47085 2011-09-20  Bruno Haible  <bruno@clisp.org>
47087         Tests for module 'unlockpt'.
47088         * modules/unlockpt-tests: New file.
47089         * tests/test-unlockpt.c: New file.
47090         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47092         Tests for module 'grantpt'.
47093         * modules/grantpt-tests: New file.
47094         * tests/test-grantpt.c: New file.
47095         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47097 2011-09-20  Bruno Haible  <bruno@clisp.org>
47099         freopen tests: EBADF tests.
47100         * tests/test-freopen.c: Include errno.h, unistd.h.
47101         (main): Add tests for EBADF, commented out for the moment.
47103         fclose tests: EBADF tests.
47104         * tests/test-fclose.c (main): Add tests for EBADF.
47106         fflush tests: EBADF tests.
47107         * tests/test-fflush.c: Include errno.h, macros.h.
47108         (main): Add tests for EBADF.
47110         ftello tests: EBADF tests.
47111         * tests/test-ftello4.sh: New file.
47112         * tests/test-ftello4.c: New file.
47113         * modules/ftello-tests (Files): Add them.
47114         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47116         fseeko tests: EBADF tests.
47117         * tests/test-fseeko4.sh: New file.
47118         * tests/test-fseeko4.c: New file.
47119         * modules/fseeko-tests (Files): Add them.
47120         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47122         Tests for function fputc().
47123         * modules/fputc-tests: New file.
47124         * tests/test-fputc.c: New file.
47125         * modules/stdio-tests (Depends-on): Add fputc-tests.
47127         Tests for function fgetc().
47128         * modules/fgetc-tests: New file.
47129         * tests/test-fgetc.c: New file.
47130         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47132         Tests for function fdopen().
47133         * modules/fdopen-tests: New file.
47134         * tests/test-fdopen.c: New file.
47135         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47137         Tests for module 'vdprintf'.
47138         * modules/vdprintf-tests: New file.
47139         * tests/test-vdprintf.c: New file.
47141         Tests for module 'dprintf'.
47142         * modules/dprintf-tests: New file.
47143         * tests/test-dprintf.c: New file.
47145 2011-09-20  Bruno Haible  <bruno@clisp.org>
47147         Tests for module 'ioctl'.
47148         * modules/ioctl-tests: New file.
47149         * tests/test-ioctl.c: New file.
47151 2011-09-20  Bruno Haible  <bruno@clisp.org>
47153         fcntl tests: EBADF tests.
47154         * tests/test-fcntl.c (main): Add more tests for EBADF.
47156 2011-09-20  Bruno Haible  <bruno@clisp.org>
47158         utimensat tests: EBADF tests.
47159         * tests/test-utimensat.c (main): Add tests for EBADF.
47161         renameat tests: EBADF tests.
47162         * tests/test-renameat.c (main): Add tests for EBADF.
47164         mkfifoat tests: EBADF tests.
47165         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47167         readlinkat tests: EBADF tests.
47168         * tests/test-readlinkat.c (main): Add tests for EBADF.
47170         symlinkat tests: EBADF tests.
47171         * tests/test-symlinkat.c (main): Add tests for EBADF.
47173         linkat tests: EBADF tests.
47174         * tests/test-linkat.c (main): Add tests for EBADF.
47176         Tests for module 'faccessat'.
47177         * modules/faccessat-tests: New file.
47178         * tests/test-faccessat.c: New file.
47180         fdopendir tests: EBADF tests.
47181         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47183         openat tests: EBADF tests.
47184         * tests/test-fchownat.c (main): Add tests for EBADF.
47185         * tests/test-fstatat.c (main): Likewise.
47186         * tests/test-mkdirat.c (main): Likewise.
47187         * tests/test-openat.c (main): Likewise.
47188         * tests/test-unlinkat.c (main): Likewise.
47189         * tests/test-fchmodat.c: New file.
47190         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47191         (Makefile.am): Also run 'test-fchmodat'.
47193 2011-09-20  Bruno Haible  <bruno@clisp.org>
47195         utimens, futimens, fdutimensat tests: EBADF tests.
47196         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47198         Tests for function fstat().
47199         * modules/fstat-tests: New file.
47200         * tests/test-fstat.c: New file.
47201         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47203 2011-09-20  Bruno Haible  <bruno@clisp.org>
47205         test-ttyname_r tests: EBADF tests.
47206         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47208         Tests for module 'isatty'.
47209         * modules/isatty-tests: New file.
47210         * tests/test-isatty.c: New file.
47212         Tests for module 'write'.
47213         * modules/write-tests: New file.
47214         * tests/test-write.c: New file.
47216         Tests for module 'read'.
47217         * modules/read-tests: New file.
47218         * tests/test-read.c: New file.
47220         pwrite tests: EBADF tests.
47221         * tests/test-pwrite.c (main): Add tests for EBADF.
47223         pread tests: EBADF tests.
47224         * tests/test-pread.c (main): Add tests for EBADF.
47226         lseek tests: EBADF tests.
47227         * tests/test-lseek.c (main): Add more tests for EBADF.
47229         Tests for module 'ftruncate'.
47230         * modules/ftruncate-tests: New file.
47231         * tests/test-ftruncate.sh: New file.
47232         * tests/test-ftruncate.c: New file.
47234         fsync tests: EBADF tests.
47235         * tests/test-fsync.c (main): Add more tests for EBADF.
47237         fdatasync tests: EBADF tests.
47238         * tests/test-fdatasync.c (main): Add more tests for EBADF.
47240         Tests for module 'fchown'.
47241         * modules/fchown-tests: New file.
47242         * tests/test-fchown.c: New file.
47244         Tests for module 'fchmod'.
47245         * modules/fchmod-tests: New file.
47246         * tests/test-fchmod.c: New file.
47248         fchdir tests: EBADF tests.
47249         * tests/test-fchdir.c (main): Add more tests for EBADF.
47251         dup2 tests: EBADF tests.
47252         * tests/test-dup2.c (main): Add more tests for EBADF.
47254         Tests for module 'dup'.
47255         * modules/dup-tests: New file.
47256         * tests/test-dup.c: New file.
47258         Tests for module 'close'.
47259         * modules/close-tests: New file.
47260         * tests/test-close.c: New file.
47262 2011-09-20  Bruno Haible  <bruno@clisp.org>
47264         Tests for module 'shutdown'.
47265         * modules/shutdown-tests: New file.
47266         * tests/test-shutdown.c: New file.
47268         Tests for module 'setsockopt'.
47269         * modules/setsockopt-tests: New file.
47270         * tests/test-setsockopt.c: New file.
47272         Tests for module 'sendto'.
47273         * modules/sendto-tests: New file.
47274         * tests/test-sendto.c: New file.
47276         Tests for module 'send'.
47277         * modules/send-tests: New file.
47278         * tests/test-send.c: New file.
47280         Tests for module 'recvfrom'.
47281         * modules/recvfrom-tests: New file.
47282         * tests/test-recvfrom.c: New file.
47284         Tests for module 'recv'.
47285         * modules/recv-tests: New file.
47286         * tests/test-recv.c: New file.
47288         Tests for module 'listen'.
47289         * modules/listen-tests: New file.
47290         * tests/test-listen.c: New file.
47292         Tests for module 'getsockopt'.
47293         * modules/getsockopt-tests: New file.
47294         * tests/test-getsockopt.c: New file.
47296         Tests for module 'getsockname'.
47297         * modules/getsockname-tests: New file.
47298         * tests/test-getsockname.c: New file.
47300         Tests for module 'getpeername'.
47301         * modules/getpeername-tests: New file.
47302         * tests/test-getpeername.c: New file.
47304         Tests for module 'connect'.
47305         * modules/connect-tests: New file.
47306         * tests/test-connect.c: New file.
47308         Tests for module 'bind'.
47309         * modules/bind-tests: New file.
47310         * tests/test-bind.c: New file.
47312         accept4 tests: Fix for native Windows.
47313         * tests/test-accept4.c: Include sockets.h.
47314         (main): Invoke gl_sockets_startup.
47315         * modules/accept4-tests (Depends-on): Add sockets.
47317         accept tests: Fix for native Windows.
47318         * tests/test-accept.c: Include sockets.h.
47319         (main): Invoke gl_sockets_startup.
47320         * modules/accept-tests (Depends-on): Add sockets.
47322 2011-09-19  Bruno Haible  <bruno@clisp.org>
47324         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47325         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47326         do...while(0).
47327         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47328         Suggested by Paul Eggert.
47330 2011-09-19  Bruno Haible  <bruno@clisp.org>
47332         sched: Ensure pid_t is defined.
47333         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47334         not define pid_t.
47335         * lib/sched.in.h: Include <sys/types.h>.
47336         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47339 2011-09-19  Bruno Haible  <bruno@clisp.org>
47341         msvc-inval: Ensure the entire expansion is a single statement.
47342         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47343         of braces.
47345 2011-09-19  Jim Meyering  <meyering@redhat.com>
47347         tests: use printf, not echo in init.sh's warn_ function
47348         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47349         misbehave when given strings containing a backslash or starting
47350         with e.g., -n.  James Youngman suggested setting IFS.
47352 2011-09-19  Eric Blake  <eblake@redhat.com>
47354         futimens: enhance test
47355         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47356         closed non-negative fd.
47358         date: accept 'hence' as opposite of 'ago'
47359         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47360         * tests/test-parse-datetime.c (main): Enhance test.
47361         Suggested by Jesse Wilson.
47363 2011-09-19  Jim Meyering  <meyering@redhat.com>
47365         getcwd: don't fail in a deep directory on a system without openat
47366         Before this change, getcwd would fail when called from a directory
47367         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47368         the non-openat implementation used "..", "../..", "../../..", etc.
47369         to access ancestor directories.  With too many, that string would
47370         be longer than PATH_MAX.
47371         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47372         using gnulib's openat replacement.
47373         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47374         we're using the replacement function.
47376 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47378         maint.mk: avoid warnings from perl about missing files
47379         * top/maint.mk (def_sym_regex): Ignore files listed in
47380         $(gl_other_headers_) that do not exist, say because a project
47381         does not use a corresponding module.
47383 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47385         stat: use pathmax.h only if needed
47386         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
47387         This is better for Emacs, which does not have a mingw port and
47388         therefore can avoid the pathmax module.
47390         utimens: remove dependency on dup2
47391         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
47392         to work around the Linux kernel bug.
47393         * modules/utimens (Depends-on): Remove dup2.
47395 2011-09-18  Bruno Haible  <bruno@clisp.org>
47397         inet_ntop, inet_pton: Look for it also in libresolv.
47398         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
47399         libnsl, search for it in libresolv.
47400         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47401         Needed on Solaris 7.
47403 2011-09-18  Bruno Haible  <bruno@clisp.org>
47405         accept, accept4 tests: Avoid link error on Solaris.
47406         * modules/accept-tests (Makefile.am): Link test-accept against
47407         $(LIBSOCKET).
47408         * modules/accept4-tests (Makefile.am): Link test-accept4 against
47409         $(LIBSOCKET).
47411         accept4: Avoid link error on Solaris.
47412         * modules/accept4 (Link): New section.
47414         socket functions: Avoid link errors on Solaris.
47415         * modules/accept (Depends-on): Add socketlib.
47416         (Link): New section.
47417         * modules/bind (Depends-on): Add socketlib.
47418         (Link): New section.
47419         * modules/connect (Depends-on): Add socketlib.
47420         (Link): New section.
47421         * modules/getpeername (Depends-on): Add socketlib.
47422         (Link): New section.
47423         * modules/getsockname (Depends-on): Add socketlib.
47424         (Link): New section.
47425         * modules/getsockopt (Depends-on): Add socketlib.
47426         (Link): New section.
47427         * modules/listen (Depends-on): Add socketlib.
47428         (Link): New section.
47429         * modules/recv (Depends-on): Add socketlib.
47430         (Link): New section.
47431         * modules/recvfrom (Depends-on): Add socketlib.
47432         (Link): New section.
47433         * modules/send (Depends-on): Add socketlib.
47434         (Link): New section.
47435         * modules/sendto (Depends-on): Add socketlib.
47436         (Link): New section.
47437         * modules/setsockopt (Depends-on): Add socketlib.
47438         (Link): New section.
47439         * modules/shutdown (Depends-on): Add socketlib.
47440         (Link): New section.
47441         * modules/socket (Depends-on): Add socketlib.
47442         (Link): New section.
47444 2011-09-18  Bruno Haible  <bruno@clisp.org>
47446         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
47447         * tests/test-ptsname.c (main): Terminate the test if it takes longer
47448         than 5 seconds.
47449         * modules/ptsname-tests (configure.ac): Test for alarm.
47451 2011-09-18  Bruno Haible  <bruno@clisp.org>
47453         posix_spawn_file_actions_add*: Fix module dependencies.
47454         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
47455         posix_spawn_file_actions_init.
47456         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
47457         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
47459 2011-09-18  Bruno Haible  <bruno@clisp.org>
47461         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
47462         * tests/test-rename.h (test_rename): Allow error code EEXIST.
47463         * tests/test-renameat.c (main): Likewise.
47465 2011-09-18  Bruno Haible  <bruno@clisp.org>
47467         Tests for module 'accept4'.
47468         * modules/accept4-tests: New file.
47469         * tests/test-accept4.c: New file.
47471 2011-09-18  Bruno Haible  <bruno@clisp.org>
47473         Tests for module 'accept'.
47474         * modules/accept-tests: New file.
47475         * tests/test-accept.c: New file.
47477 2011-09-18  Bruno Haible  <bruno@clisp.org>
47479         dup2: Support for MSVC.
47480         * lib/dup2.c: Include msvc-inval.h.
47481         (rpl_dup2): Handle invalid parameter notifications during dup2 and
47482         _get_osfhandle calls.
47483         * modules/dup2 (Depends-on): Add msvc-inval.
47484         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
47486         New module 'msvc-inval'.
47487         * lib/msvc-inval.h: New file.
47488         * lib/msvc-inval.c: New file.
47489         * m4/msvc-inval.m4: New file.
47490         * modules/msvc-inval: New file.
47492 2011-09-17  Bruno Haible  <bruno@clisp.org>
47494         Tests for module 'pclose'.
47495         * modules/pclose-tests: New file.
47497         New module 'pclose'.
47498         * lib/stdio.in.h (pclose): New declaration.
47499         * lib/pclose.c: New file.
47500         * m4/pclose.m4: New file.
47501         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
47502         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
47503         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
47504         * modules/pclose: New file.
47505         * modules/popen-tests (Depends-on): Add pclose.
47506         * modules/popen-safer-tests (Depends-on): Likewise.
47507         * doc/posix-functions/pclose.texi: Mention the new module.
47509 2011-09-17  Bruno Haible  <bruno@clisp.org>
47511         popen: Support for MSVC.
47512         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
47513         * lib/popen.c (popen): Provide alternate definition for native Windows.
47514         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
47515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
47516         * modules/popen (Depends-on, configure.ac): Update condition.
47517         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
47518         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
47519         fixed.
47521 2011-09-17  Bruno Haible  <bruno@clisp.org>
47523         isnanl, isnand, isnanf: Work around MSVC bug.
47524         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
47526 2011-09-17  Bruno Haible  <bruno@clisp.org>
47528         sys_socket tests: Fix recent mistake.
47529         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
47531 2011-09-17  Bruno Haible  <bruno@clisp.org>
47533         putenv: Support for MSVC.
47534         * modules/putenv (Depends-on): Add environ.
47535         * lib/putenv.c (environ): Disable declaration.
47536         * lib/unistd.in.h: Update comment.
47538 2011-09-17  Bruno Haible  <bruno@clisp.org>
47540         math: Avoid macro redefinition warnings on MSVC.
47541         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
47542         Undefine before redefining.
47544 2011-09-17  Bruno Haible  <bruno@clisp.org>
47546         doc: Mention functions which are declared as macros.
47547         * doc/posix-functions/*[fl].texi: Mention that some functions are
47548         defined as macros with arguments only.
47550 2011-09-17  Bruno Haible  <bruno@clisp.org>
47552         Add dependencies to new dirent related modules.
47553         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
47554         * modules/fts (Depends-on): Likewise.
47555         * modules/glob (Depends-on): Likewise.
47556         * modules/savedir (Depends-on): Likewise.
47557         * modules/scandir (Depends-on): Likewise.
47558         * modules/dirent-safer (Depends-on): Add opendir, closedir.
47559         * modules/fdopendir (Depends-on): Add opendir.
47561 2011-09-17  Bruno Haible  <bruno@clisp.org>
47563         inet_pton: Support for MSVC on Windows Vista or newer.
47564         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
47565         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
47566         HAVE_DECL_INET_PTON is defined.
47567         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47568         On platforms with <winsock2.h>, test whether inet_pton is declared in
47569         <ws2tcpip.h>. If so, arrange to replace it.
47570         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47571         REPLACE_INET_PTON.
47572         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
47573         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
47574         (Depends-on, configure.ac): Update condition.
47575         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
47577 2011-09-17  Bruno Haible  <bruno@clisp.org>
47579         inet_ntop: Support for MSVC on Windows Vista or newer.
47580         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
47581         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
47582         HAVE_DECL_INET_NTOP is defined.
47583         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47584         On platforms with <winsock2.h>, test whether inet_ntop is declared in
47585         <ws2tcpip.h>. If so, arrange to replace it.
47586         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47587         REPLACE_INET_NTOP.
47588         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
47589         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
47590         (Depends-on, configure.ac): Update condition.
47591         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
47593 2011-09-16  Eric Blake  <eblake@redhat.com>
47595         test-fsync: yet another enhancement
47596         * tests/test-fsync.c (main): Also test behavior on read-only text
47597         file.
47599 2011-09-16  Bruno Haible  <bruno@clisp.org>
47601         Enhance fsync, fdatasync tests.
47602         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
47603         * tests/test-fdatasync.c (main): Likewise.
47605 2011-09-16  Bruno Haible  <bruno@clisp.org>
47607         Support for MSVC compiler: Ensure mode_t gets defined.
47608         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
47609         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47611         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
47612         * tests/test-fcntl-h.c: Check that mode_t is defined.
47613         * tests/test-sys_stat.c: Likewise.
47614         * tests/test-sys_types.c: Likewise.
47615         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
47616         * doc/posix-headers/sys_stat.texi: Likewise.
47617         * doc/posix-headers/sys_types.texi: Likewise.
47619 2011-09-16  Bruno Haible  <bruno@clisp.org>
47621         sys_stat: Support for MSVC.
47622         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
47623         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
47624         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
47625         MSVC.
47627 2011-09-16  Bruno Haible  <bruno@clisp.org>
47629         Support for MSVC compiler: Ensure off_t gets defined.
47630         * lib/unistd.in.h: Include <sys/types.h>.
47631         * tests/test-fcntl-h.c: Check that off_t is defined.
47632         * tests/test-sys_stat.c: Likewise.
47633         * tests/test-sys_types.c: Likewise.
47635 2011-09-16  Eric Blake  <eblake@redhat.com>
47637         fdatasync: port to Solaris
47638         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
47639         * modules/fdatasync (Link): Document it.
47640         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
47642         fdatasync: port to MacOS X 10.7
47643         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
47644         declared.
47645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
47646         * modules/unistd (Makefile.am): Substitute it.
47647         * lib/unistd.in.h (fdatasync): Declare on MacOS.
47648         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
47650         fdatasync: minor improvements
47651         * modules/fdatasync (Depends-on): Add condition for fsync.
47652         * lib/fdatasync.c (fdatasync): Add comment.
47653         * tests/test-unistd-c++.cc: Test fdatasync.
47655         unistd: update refs to newer POSIX
47656         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
47657         Suggested by Bruno Haible.
47659         fdatasync: new module
47660         * modules/fsync (Description): Document difference to fdatasync.
47661         * modules/fdatasync: New module.
47662         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
47663         * lib/fdatasync.c (fdatasync): Likewise.
47664         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
47665         defaults.
47666         * modules/unistd (Makefile.am): Set witnesses.
47667         * lib/unistd.in.h (fdatasync): Declare.
47668         * MODULES.html.sh: Document it.
47669         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
47670         * modules/fdatasync-tests: New test.
47671         * tests/test-fdatasync.c: Likewise.
47673 2011-09-16  Eric Blake  <eblake@redhat.com>
47675         test-fsync: enhance tests
47676         * modules/fsync-tests (Depends-on): Add errno, for mingw.
47677         * tests/test-fsync.c (main): Enhance test.
47679 2011-09-15  Bruno Haible  <bruno@clisp.org>
47681         Support for MSVC compiler: Ensure ssize_t gets defined.
47682         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
47683         * doc/posix-headers/stdio.texi: Likewise.
47684         * modules/stdio (Depends-on): Add ssize_t.
47685         * modules/sys_socket (Depends-on): Likewise.
47686         * modules/sys_types (Depends-on): Likewise.
47687         * modules/sys_uio (Depends-on): Likewise.
47688         * modules/unistd (Depends-on): Likewise.
47689         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
47690         * tests/test-sys_types.c: Check that ssize_t is defined.
47692 2011-09-14  Bruno Haible  <bruno@clisp.org>
47694         Avoid using #, the m4 comment starter character, near brackets.
47695         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
47696         delimiter character in sed expressions.
47697         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
47698         Suggested by Eric Blake.
47700         Properly quote AC_CHECK_DECLS' 4th argument.
47701         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
47702         argument.
47703         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47704         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47705         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47706         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47707         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47708         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
47709         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
47710         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
47711         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
47712         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47713         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
47714         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47715         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47716         * m4/isinf.m4 (gl_ISINF): Likewise.
47717         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47718         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47719         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47720         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47721         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47722         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47723         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47724         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47725         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
47726         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47727         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
47730         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47732         Reported by Eric Blake.
47734         Properly quote AC_CHECK_DECL's 4th argument.
47735         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
47736         argument.
47737         * m4/argp.m4 (gl_ARGP): Likewise.
47738         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47739         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47740         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47741         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47742         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
47743         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
47744         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
47745         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47746         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47747         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47748         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47749         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47750         Reported by Eric Blake.
47752 2011-09-14  Eric Blake  <eblake@redhat.com>
47754         opendir: avoid compile warning
47755         * lib/opendir.c (includes): Always include errno.h.
47756         Reported by Tatsuro MATSUOKA.
47758 2011-09-14  Jim Meyering  <meyering@redhat.com>
47760         maint.mk: sc_tight_scope: propagate failure from sub-make
47761         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
47762         Reported by Martin von Gagern.
47764 2011-09-13  Bruno Haible  <bruno@clisp.org>
47766         tempname: Support for MSVC.
47767         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
47768         MSVC.
47769         * modules/tempname (Depends-on): Add fcntl-h.
47771 2011-09-13  Bruno Haible  <bruno@clisp.org>
47773         sys_time: Support for MSVC.
47774         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
47775         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
47776         include <winsock2.h>.
47777         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
47778         function declarations that collide with POSIX.
47779         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
47780         (Makefile.am): Substitute HAVE_WINSOCK2_H.
47782 2011-09-13  Bruno Haible  <bruno@clisp.org>
47784         stat: Support for MSVC.
47785         * lib/stat.c: Include pathmax.h.
47786         * modules/stat (Depends-on): Add pathmax.
47788         pathmax: Support for native Windows.
47789         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
47791 2011-09-12  Bruno Haible  <bruno@clisp.org>
47793         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
47794         * lib/dirent.in.h (struct dirent): New type.
47795         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
47796         DT_WHT): New macros.
47797         (DIR): New type.
47798         (opendir, closedir): Declare only if the module 'opendir' is enabled.
47799         (readdir, rewinddir): New declarations.
47800         * lib/dirent-private.h: New file.
47801         * lib/opendir.c: New file.
47802         * lib/readdir.c: New file.
47803         * lib/rewinddir.c: New file.
47804         * lib/closedir.c: New file.
47805         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
47806         * m4/opendir.m4: New file.
47807         * m4/readdir.m4: New file.
47808         * m4/rewinddir.m4: New file.
47809         * m4/closedir.m4: New file.
47810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
47811         REPLACE_CLOSEDIR here.
47812         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
47813         readdir, rewinddir are declared.
47814         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
47815         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
47816         HAVE_REWINDDIR, HAVE_CLOSEDIR.
47817         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
47818         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
47819         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
47820         * modules/opendir: New file.
47821         * modules/readdir: New file.
47822         * modules/rewinddir: New file.
47823         * modules/closedir: New file.
47824         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
47825         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
47826         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
47827         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
47828         * NEWS: Mention the 'fchdir' change.
47830 2011-09-11  Bruno Haible  <bruno@clisp.org>
47832         asm-underscore.m4: Support for MSVC.
47833         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
47834         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
47836 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
47838         Doc about crypt functions.
47839         * doc/posix-functions/crypt.texi: Expand range of glibc versions
47840         needing for _GNU_SOURCE to get crypt.
47841         * doc/posix-functions/encrypt.texi: Likewise.
47842         * doc/posix-functions/setkey.texi: Likewise.
47844 2011-09-11  Bruno Haible  <bruno@clisp.org>
47846         doc: Update regarding MSVC 9.
47847         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
47848         tested".
47849         * doc/posix-functions/*.texi: Update with info about MSVC 9.
47850         * doc/posix-headers/*.texi: Likewise.
47851         * doc/pastposix-functions/*.texi: Likewise.
47852         * doc/glibc-functions/*.texi: Likewise.
47853         * doc/glibc-headers/*.texi: Likewise.
47855 2011-09-11  Bruno Haible  <bruno@clisp.org>
47857         unistd et al.: Don't assume <unistd.h> exists.
47858         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
47859         does not exist.
47860         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
47861         exist. But include <stdlib.h>.
47862         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
47863         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
47864         symlink() does not exist.
47865         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
47866         include <io.h> instead.
47867         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
47868         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
47869         include <direct.h> instead.
47870         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47871         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47872         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
47873         <io.h> instead.
47874         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
47875         correctly if the system does not have hard links.
47876         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
47877         <direct.h> instead.
47878         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
47879         it when looking for function declarations.
47880         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
47881         <direct.h> and <io.h> instead.
47882         * doc/posix-headers/unistd.texi: More details about MSVC problem.
47884 2011-09-11  Bruno Haible  <bruno@clisp.org>
47886         strcase: Support for MSVC.
47887         * modules/strcase (Status, Notice): Remove obsoletion mark.
47888         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
47889         * doc/posix-functions/strncasecmp.texi: Likewise.
47891         strings: Don't assume <strings.h> exists.
47892         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
47893         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
47894         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
47895         * doc/posix-headers/strings.texi: Mention the MSVC problem.
47897 2011-09-11  Bruno Haible  <bruno@clisp.org>
47899         dirent: Don't assume <dirent.h> exists.
47900         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
47901         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
47902         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
47903         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
47905 2011-09-11  Bruno Haible  <bruno@clisp.org>
47907         Fix wint_t on MSVC.
47908         * lib/wchar.in.h (wint_t): On MSVC, override it.
47909         * lib/wctype.in.h (wint_t): Likewise.
47910         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
47911         MSVC.
47912         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
47913         * doc/posix-headers/wctype.texi: Likewise.
47915 2011-09-11  Bruno Haible  <bruno@clisp.org>
47917         sys_types: Fix typo.
47918         * lib/sys_types.in.h: Fix typo in comment.
47919         Reported by Paul Eggert.
47921         Support for MSVC compiler: Ensure size_t gets defined.
47922         * modules/strings (Depends-on): Add 'sys_types'.
47923         * modules/sys_uio (Depends-on): Likewise.
47924         * lib/sys_uio.in.h: Update comment.
47926         C++ tests for module 'sys_types'.
47927         * modules/sys_types-c++-tests: New file.
47928         * tests/test-sys_types-c++.cc: New file.
47930         Tests for module 'sys_types'.
47931         * modules/sys_types-tests: New file.
47932         * tests/test-sys_types.c: New file.
47934         New module 'sys_types'.
47935         * lib/sys_types.in.h: New file.
47936         * m4/sys_types_h.m4: New file.
47937         * modules/sys_types: New file.
47938         * doc/posix-headers/sys_types.texi: Mention the new module and the
47939         size_t problem on MSVC 9.
47941 2011-09-11  Bruno Haible  <bruno@clisp.org>
47943         Support for MSVC compiler: Avoid division by a literal 0.
47944         * lib/math.in.h (NAN): Define through a function call also on MSVC.
47945         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
47946         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
47947         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
47948         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
47949         * tests/infinity.h: New file.
47950         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
47951         on MSVC.
47952         * tests/test-ceilf1.c: Include infinity.h.
47953         (main): Use Infinityf.
47954         * tests/test-ceil1.c: Include infinity.h.
47955         (main): Use Infinityd.
47956         * tests/test-ceill.c: Include infinity.h.
47957         (main): Use Infinityl.
47958         * tests/test-dprintf-posix.c: Include infinity.h.
47959         (test_function): Use Infinityd.
47960         * tests/test-floorf1.c: Include infinity.h.
47961         (main): Use Infinityf.
47962         * tests/test-floor1.c: Include infinity.h.
47963         (main): Use Infinityd.
47964         * tests/test-floorl.c: Include infinity.h.
47965         (main): Use Infinityl.
47966         * tests/test-fprintf-posix.c: Include infinity.h.
47967         (test_function): Use Infinityd.
47968         * tests/test-frexp.c: Include infinity.h.
47969         (main): Use Infinityd.
47970         * tests/test-frexpl.c: Include infinity.h.
47971         (main): Use Infinityl.
47972         * tests/test-isfinite.c: Include infinity.h.
47973         (test_isfinitef): Use Infinityf.
47974         (test_isfinited): Use Infinityd.
47975         (test_isfinitel): Use Infinityl.
47976         * tests/test-isinf.c: Include infinity.h.
47977         (test_isinff): Use Infinityf.
47978         (test_isinfd): Use Infinityd.
47979         (test_isinfl): Use Infinityl.
47980         * tests/test-isnan.c: Include infinity.h.
47981         (test_float): Use Infinityf.
47982         (test_double): Use Infinityd.
47983         (test_long_double): Use Infinityl.
47984         * tests/test-isnanf.h: Include infinity.h.
47985         (main): Use Infinityf.
47986         * tests/test-isnand.h: Include infinity.h.
47987         (main): Use Infinityd.
47988         * tests/test-isnanl.h: Include infinity.h.
47989         (main): Use Infinityl.
47990         * tests/test-ldexpl.c: Include infinity.h.
47991         (main): Use Infinityl.
47992         * tests/test-printf-posix.h: Include infinity.h.
47993         (test_function): Use Infinityd.
47994         * tests/test-roundf1.c: Include infinity.h.
47995         (main): Use Infinityf.
47996         * tests/test-round1.c: Include infinity.h.
47997         (main): Use Infinityd.
47998         * tests/test-roundl.c: Include infinity.h.
47999         (main): Use Infinityl.
48000         * tests/test-signbit.c: Include infinity.h.
48001         (test_signbitf): Use Infinityf.
48002         (test_signbitd): Use Infinityd.
48003         (test_signbitl): Use Infinityl.
48004         * tests/test-snprintf-posix.h: Include infinity.h.
48005         (test_function): Use Infinityd, Infinityl.
48006         * tests/test-sprintf-posix.h: Include infinity.h.
48007         (test_function): Use Infinityd, Infinityl.
48008         * tests/test-truncf1.c: Include infinity.h.
48009         (main): Use Infinityf.
48010         * tests/test-trunc1.c: Include infinity.h.
48011         (main): Use Infinityd.
48012         * tests/test-truncl.c: Include infinity.h.
48013         (main): Use Infinityl.
48014         * tests/test-vasnprintf-posix.c: Include infinity.h.
48015         (test_function): Use Infinityd, Infinityl.
48016         * tests/test-vasprintf-posix.c: Include infinity.h.
48017         (test_function): Use Infinityd, Infinityl.
48018         * modules/ceilf-tests (Files): Add tests/infinity.h.
48019         * modules/ceil-tests (Files): Likewise.
48020         * modules/ceill-tests (Files): Likewise.
48021         * modules/dprintf-posix-tests (Files): Likewise.
48022         * modules/floorf-tests (Files): Likewise.
48023         * modules/floor-tests (Files): Likewise.
48024         * modules/floorl-tests (Files): Likewise.
48025         * modules/fprintf-posix-tests (Files): Likewise.
48026         * modules/frexp-tests (Files): Likewise.
48027         * modules/frexp-nolibm-tests (Files): Likewise.
48028         * modules/frexpl-tests (Files): Likewise.
48029         * modules/frexpl-nolibm-tests (Files): Likewise.
48030         * modules/isfinite-tests (Files): Likewise.
48031         * modules/isinf-tests (Files): Likewise.
48032         * modules/isnan-tests (Files): Likewise.
48033         * modules/isnanf-tests (Files): Likewise.
48034         * modules/isnanf-nolibm-tests (Files): Likewise.
48035         * modules/isnand-tests (Files): Likewise.
48036         * modules/isnand-nolibm-tests (Files): Likewise.
48037         * modules/isnanl-tests (Files): Likewise.
48038         * modules/isnanl-nolibm-tests (Files): Likewise.
48039         * modules/ldexpl-tests (Files): Likewise.
48040         * modules/printf-posix-tests (Files): Likewise.
48041         * modules/roundf-tests (Files): Likewise.
48042         * modules/round-tests (Files): Likewise.
48043         * modules/roundl-tests (Files): Likewise.
48044         * modules/signbit-tests (Files): Likewise.
48045         * modules/snprintf-posix-tests (Files): Likewise.
48046         * modules/sprintf-posix-tests (Files): Likewise.
48047         * modules/truncf-tests (Files): Likewise.
48048         * modules/trunc-tests (Files): Likewise.
48049         * modules/truncl-tests (Files): Likewise.
48050         * modules/vasnprintf-posix-tests (Files): Likewise.
48051         * modules/vasprintf-posix-tests (Files): Likewise.
48052         * modules/vdprintf-posix-tests (Files): Likewise.
48053         * modules/vfprintf-posix-tests (Files): Likewise.
48054         * modules/vprintf-posix-tests (Files): Likewise.
48055         * modules/vsnprintf-posix-tests (Files): Likewise.
48056         * modules/vsprintf-posix-tests (Files): Likewise.
48057         * modules/xprintf-posix-tests (Files): Likewise.
48059 2011-09-11  Bruno Haible  <bruno@clisp.org>
48061         Ensure pid_t gets defined.
48062         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48063         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48064         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48065         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48066         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48067         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48068         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48069         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48070         * tests/test-fcntl-h.c: Check that pid_t is defined.
48071         * tests/test-sched.c: Likewise.
48072         * tests/test-termios.c: Likewise.
48073         * tests/test-time.c: Likewise.
48074         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48075         * doc/posix-headers/signal.texi: Likewise.
48076         * doc/posix-headers/sys_types.texi: Likewise.
48077         * doc/posix-headers/time.texi: Likewise.
48079 2011-09-11  Bruno Haible  <bruno@clisp.org>
48081         acl: Fix compilation on Solaris 10 (older version).
48082         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48083         of ACE_EVERYONE.
48084         * lib/set-mode-acl.c (qset_acl): Likewise.
48085         Reported by Christian Jullien <eligis@orange.fr>.
48087 2011-09-10  Bruno Haible  <bruno@clisp.org>
48089         iconv, unsetenv: Add support for MSVC compiler.
48090         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48093 2011-09-10  Bruno Haible  <bruno@clisp.org>
48095         *printf: Add support for MSVC compiler.
48096         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48097         handles the exception caused by the %n directive. When cross-compiling,
48098         guess no on native Windows.
48099         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48100         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48101         emulate it through vsnprintf.
48102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48103         * doc/posix-functions/dprintf.texi: Update documentation regarding
48104         MSVC 9.
48105         * doc/posix-functions/fprintf.texi: Likewise.
48106         * doc/posix-functions/printf.texi: Likewise.
48107         * doc/posix-functions/snprintf.texi: Likewise.
48108         * doc/posix-functions/sprintf.texi: Likewise.
48109         * doc/posix-functions/swprintf.texi: Likewise.
48110         * doc/posix-functions/vdprintf.texi: Likewise.
48111         * doc/posix-functions/vfprintf.texi: Likewise.
48112         * doc/posix-functions/vprintf.texi: Likewise.
48113         * doc/posix-functions/vsnprintf.texi: Likewise.
48114         * doc/posix-functions/vsprintf.texi: Likewise.
48115         * doc/glibc-functions/asprintf.texi: Likewise.
48116         * doc/glibc-functions/obstack_printf.texi: Likewise.
48117         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48118         * doc/glibc-functions/vasprintf.texi: Likewise.
48120 2011-09-10  Bruno Haible  <bruno@clisp.org>
48122         nocrash: Add support for native Windows.
48123         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48125 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48126             Bruno Haible  <bruno@clisp.org>
48128         absolute-header, include-next: Add support for MSVC compiler.
48129         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48130         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48131         directory separator in #line directives.
48132         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48133         recognize also backslash as directory separator in #line directives.
48135 2011-09-08  Jim Meyering  <meyering@redhat.com>
48137         maint.mk: mark the post-release commit log with "maint: " prefix
48138         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48139         one-line commit-log summary.
48141 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48142             Bruno Haible  <bruno@clisp.org>
48144         Doc about crypt functions.
48145         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48146         systems.
48147         * doc/posix-functions/encrypt.texi: Likewise.
48148         * doc/posix-functions/setkey.texi: Likewise.
48150 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48152         * lib/gc.h: Fix copyright header.
48154 2011-09-07  Bruno Haible  <bruno@clisp.org>
48156         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48157         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48158         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48160 2011-09-07  Bruno Haible  <bruno@clisp.org>
48162         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48163         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48164         * lib/freopen.c: Likewise.
48165         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48166         * lib/lstat.c: Likewise.
48167         * lib/stat.c: Likewise.
48168         * lib/open.c: Use different syntax for include of <fcntl.h>.
48169         * lib/openat.c: Include fcntl.h again, explicitly.
48171 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48173         parse-datetime: document the newly accepted format
48174         * doc/parse-datetime.texi (Combined date and time of day items):
48175         New section.
48177 2011-09-06  Bruno Haible  <bruno@clisp.org>
48179         acl: Fix a test failure on newer Solaris 10 with ZFS.
48180         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48181         ENOSYS as no ACL.
48182         Reported by Jim Meyering.
48184 2011-09-06  Bruno Haible  <bruno@clisp.org>
48186         acl: Update for AIX >= 5.3 with NFS.
48187         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48188         ENOSYS as no ACL.
48190         acl: Fix a test failure on AIX >= 5.3 with NFS.
48191         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48192         as no ACL.
48194 2011-09-06  Bruno Haible  <bruno@clisp.org>
48196         acl: Fix a test failure on IRIX 6.5 with NFS.
48197         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48198         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48199         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48200         * lib/copy-acl.c (qcopy_acl): Likewise.
48202 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48204         openat: port to AIX 7.1 with large files
48205         AIX 7.1 does a "#define openat open64at" if large files are in use,
48206         so we can't simply #undef openat.  Use the orig_openat trick (similar
48207         to orig_open in lib/open.c) to work around the problem.  Problem
48208         reported by Kevin Brott for GNU tar, in the thread containing
48209         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
48210         * lib/openat.c (__need_system_fcntl_h): Define first.
48211         Include <fcntl.h> and <sys/types.h> before undefining.
48212         (orig_openat) [HAVE_OPENAT]: New inline function.
48213         (openat) [HAVE_OPENAT]: Do not undef.
48214         (rpl_openat): Use orig_openat, not openat.
48216 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48217             Bruno Haible  <bruno@clisp.org>
48219         acl: Avoid errors on NonStop Kernel.
48220         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
48221         ENOTSUP errors.
48223 2011-09-05  Bruno Haible  <bruno@clisp.org>
48225         acl: Clean up Solaris code.
48226         * lib/acl-internal.h: Remove no-op #if.
48227         * lib/file-has-acl.c: Likewise.
48228         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
48229         * lib/copy-acl.c (qcopy_acl): Likewise.
48231 2011-09-05  Bruno Haible  <bruno@clisp.org>
48233         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
48234         binaries built on the original Solaris 10.
48235         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
48236         trivial.
48238 2011-09-05  Bruno Haible  <bruno@clisp.org>
48240         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48241         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
48242         10.
48243         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
48244         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
48245         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
48246         instead of acl_get, facl_get, acl_set, facl_set.
48248 2011-09-05  Bruno Haible  <bruno@clisp.org>
48250         copy-file: Try unit tests on more file systems.
48251         * tests/test-copy-file-1.sh: New file.
48252         * tests/test-copy-file-2.sh: New file.
48253         * modules/copy-file-tests (Files): Add them.
48254         (Makefile.am): Add them to TESTS.
48256         acl: Try unit tests on more file systems.
48257         * tests/test-file-has-acl-1.sh: New file.
48258         * tests/test-file-has-acl-2.sh: New file.
48259         * tests/test-set-mode-acl-1.sh: New file.
48260         * tests/test-set-mode-acl-2.sh: New file.
48261         * tests/test-copy-acl-1.sh: New file.
48262         * tests/test-copy-acl-2.sh: New file.
48263         * modules/acl-tests (Files): Add them.
48264         (Makefile.am): Add them to TESTS.
48266 2011-09-04  Bruno Haible  <bruno@clisp.org>
48268         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48269         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48270         10.
48271         (OLD_ALLOW, OLD_DENY): New macros.
48272         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48273         ACE_ACCESS_ALLOWED_ACE_TYPE.
48274         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48275         ACE_ACCESS_DENIED_ACE_TYPE.
48276         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48277         (NEW_ACE_EXECUTE): Fix value.
48278         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48279         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48280         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48281         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48282         NEW_ACE_SYNCHRONIZE): New macros.
48283         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48284         instead of acl_fromtext, acl_set, facl_set.
48285         Fixes a coreutils/tests/cp/perm failure.
48287 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48289         openat: test for fstatat (..., 0) bug
48290         Further testing with tar suggests that fstatat (..., 0)
48291         does not work in general, on AIX 7.1; see
48292         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48293         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48294         replacement fstatat (which is what older AIX releases were using
48295         anyway).
48296         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48297         use is now changed to orig_fstatat.  This was probably the right
48298         thing to do anyway.
48299         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48300         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48301         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48302         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48303         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48304         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48305         if the bug is found.
48307         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48308         This tests for another fstatat bug on AIX 7.1:
48309         fstatat (AT_FDCWD, ..., 0) does not work.  See
48310         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48311         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48312         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48313         (rpl_fstatat): Adjust so that it works around either (or both)
48314         bugs if present.
48315         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48317 2011-09-03  Karl Berry  <karl@gnu.org>
48319         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48320         in index entries.
48322 2011-09-02  Bruno Haible  <bruno@clisp.org>
48324         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48325         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48326         values of AR, ARFLAGS, RANLIB.
48327         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48329 2011-09-02  Bruno Haible  <bruno@clisp.org>
48331         Find 'ar' program that fits with --host argument.
48332         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48334 2011-09-02  Bruno Haible  <bruno@clisp.org>
48336         tests: init.sh: Support any non-GNU diff.
48337         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48338         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48339         Solaris 8.
48341 2011-09-02  Bruno Haible  <bruno@clisp.org>
48343         tests: init.sh: work also with any non-GNU diff that supports -u
48344         * tests/init.sh: Relax check for diff -u support.
48345         Rather than checking for GNU diff via --version, simply check
48346         for support for -u itself.  Useful at least on OpenBSD 4.9,
48347         AIX 7.1, IRIX 6.5, and Solaris 10.
48349 2011-09-01  Bruno Haible  <bruno@clisp.org>
48351         strtoimax, strtoumax: Document problem on HP-UX 11.
48352         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48353         * doc/posix-functions/strtoumax.texi: Likewise.
48355 2011-09-01  Bruno Haible  <bruno@clisp.org>
48357         strtoumax: Avoid link error on OSF/1 with DTK cc.
48358         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48359         defined as a function.
48360         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48361         strtoumax is defined, not whether it is declared.
48363 2011-09-01  Bruno Haible  <bruno@clisp.org>
48365         strtoimax: Avoid link error on OSF/1 with DTK cc.
48366         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48367         defined as a function.
48368         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48369         strtoimax is defined, not whether it is declared.
48371 2011-09-01  Bruno Haible  <bruno@clisp.org>
48373         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48374         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48375         as a function.
48376         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48377         whether it is declared.
48379 2011-09-01  Bruno Haible  <bruno@clisp.org>
48381         imaxabs: Avoid link error on OSF/1 with DTK cc.
48382         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
48383         as a function.
48384         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
48385         whether it is declared.
48387 2011-09-01  Bruno Haible  <bruno@clisp.org>
48389         Tests for module 'strtoumax'.
48390         * modules/strtoumax-tests: New file.
48391         * tests/test-strtoumax.c: New file.
48393         Tests for module 'strtoimax'.
48394         * modules/strtoimax-tests: New file.
48395         * tests/test-strtoimax.c: New file.
48397         Tests for module 'imaxdiv'.
48398         * modules/imaxdiv-tests: New file.
48399         * tests/test-imaxdiv.c: New file.
48401         Tests for module 'imaxabs'.
48402         * modules/imaxabs-tests: New file.
48403         * tests/test-imaxabs.c: New file.
48405 2011-09-01  Bruno Haible  <bruno@clisp.org>
48407         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
48408         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
48409         pthread_create.
48411 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48413         openat: work around AIX 7.1 fstatat issue
48414         This should fix the problem that was not properly fixed
48415         in the previous change, dated 2011-08-30.
48416         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
48417         __need_system_stat_h defined.
48418         (orig_fstatat) [HAVE_FSTATAT]: New function.
48419         (rpl_fstatat): Go back to the old way of doing things,
48420         except call orig_fstatat instead of fstatat.
48421         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
48422         Remove unnecessary check whether fstatat fills in st_size etc.
48424 2011-09-01  Bruno Haible  <bruno@clisp.org>
48426         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
48427         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
48428         just include the system's header.
48430 2011-08-31  Jim Meyering  <meyering@redhat.com>
48432         tests: avoid spurious assertion failure in test-float.c on ppc64
48433         * tests/test-float.c (test_long_double): Comment out an assertion,
48434         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
48435         with gcc-4.4.4.
48437         maint: indent with spaces, not TABs
48438         I need to get in the habit of running gnulib's "make check".
48439         Both of these would have been caught.
48440         * m4/largefile.m4: Indent with spaces, not TABs.
48441         * lib/parse-datetime.y (iso_8601_time): Likewise.
48442         Spotted by Pádraig Brady.
48444         test-parse-datetime.c: accommodate a relatively strict gcc warning
48445         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
48446         to avoid a warning from gcc's -Werror=missing-declarations.
48447         Insert a few spaces-before-funcall-parenthesis.
48449 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
48451         parse-datetime: accept ISO 8601 date and time rep with "T" separator
48452         The parser now accepts ISO 8601 date-time strings with "T" as the
48453         separator.  It has long parsed dates like "2004-02-29 16:21:42"
48454         with a space between the date and time strings.  Now it also parses
48455         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
48456         variants like "2004-02-29T16:21:42.333-07:00"
48457         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
48458         of day representation using the 'T' separator character.
48459         * doc/parse-datetime.texi (General date syntax): replace use of
48460         deprecated --iso-8601 option with --rfc-3339 in example of date
48461         command output formats that can be parsed.
48462         * tests/test-parse-datetime.c (tm_diff): New function, taken from
48463         lib/parse-datetime.y.
48464         (gmt_offset): New function.
48465         (main): Add additional test cases to validate ISO8601 extended
48466         date and time of day parsing.
48468 2011-08-31  Bruno Haible  <bruno@clisp.org>
48470         freopen: Documentation.
48471         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
48472         name.
48473         Reported by Claudio Bley <claudio.bley@gmail.com>.
48475 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
48477         freopen: Don't crash if the filename argument is NULL.
48478         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
48479         NULL.
48481 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48483         openat: work around AIX 7.1 fstatat bug
48484         Problem reported by Kevin Brott for GNU tar, in the thread containing
48485         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
48486         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
48487         FSTATAT_ST_SIZE_ETC_BROKEN.
48488         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
48489         rpl_fstatat.
48490         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
48491         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
48492         AC_CHECK_FUNCS_ONCE for fstatat.
48493         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
48494         fchmodat, mkdirat, openat and unlinkat.
48496 2011-08-30  Bruno Haible  <bruno@clisp.org>
48498         Avoid endless recursions if config.h includes some header files.
48499         * lib/fopen.c (__need_FILE): Define already before including config.h.
48500         * lib/freopen.c (__need_FILE): Likewise.
48501         * lib/open.c (__need_system_fcntl_h): Likewise.
48502         * lib/stat.c (__need_system_sys_stat_h): Likewise.
48503         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
48504         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
48506 2011-08-25  Karl Berry  <karl@gnu.org>
48508         * config/srclist.txt (ylwrap): new try.
48509         * build-aux/ylwrap: new file.
48511 2011-08-23  Bruno Haible  <bruno@clisp.org>
48513         tmpdir: Use a good default directory on native Windows.
48514         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
48515         (P_tmpdir): Default to _P_tmpdir on native Windows.
48516         (path_search): On native Windows, try the value returned by GetTempPath
48517         before trying P_tmpdir.
48518         * modules/tmpdir (Depends-on): Add pathmax.
48519         Suggested by John Darrington <john@darrington.wattle.id.au>.
48521 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
48523         doc: fix typo in README-release
48524         * top/README-release: Capitalize first word of a sentence.
48526 2011-08-19  Jim Meyering  <meyering@redhat.com>
48528         fts: do not exhaust memory when processing million-entry directories
48529         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
48530         directory would require about 256*N bytes of memory.  Thus, it was
48531         easy to construct a directory too large to be processed by any of
48532         those tools.  With this change, fts' maximum memory utilization is
48533         now limited to around 30MB.
48534         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
48535         (fts_read): When we've processed the final entry (i.e., when
48536         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
48537         using the parent entry to read any remaining entries.  Dispatch
48538         depending on what fts_build returns:
48539         - NULL+stop, aka failure: stop
48540         - NULL otherwise: move up in the dir hierarchy
48541         - non-NULL: handle this new entry
48542         (fts_build): Declare and use new local, continue_readdir.
48543         Prepare to be called from fts_read, when the entries
48544         from a partially-read directory have just been exhausted.
48545         In that case, we'll skip the opendir and instead use the parent's
48546         fts_dirp and derive dir_fd from that.
48547         Finally, in the readdir loop, if we read max_entries entries,
48548         exit the loop ensuring *not* to call closedir.  This is required
48549         so that fts_dirp can be reused on a subsequent call.
48550         Prompted by Ben England's report of memory exhaustion in find
48551         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
48553         maint: fts: move decl of `dp' down into while loop; split a long line
48554         * lib/fts.c (fts_build): No semantic change.
48556         fts: add/use new struct member, fts_dirp
48557         We are about to use this to manage any directory with
48558         too many entries to read all of them into memory at once.
48559         To do that, we'll need to save the DIR* pointer in each
48560         affected FTSENT struct.
48561         * lib/fts_.h: Include <dirent.h>.
48562         (struct FTSENT) [fts_dirp]: New member.
48563         * lib/fts.c (closedir_and_clear): Define.
48564         Use it in place of closedir so that we are sure to
48565         clear the new fts_dirp member when done with it.
48566         (fts_alloc): Initialize the new member.
48567         (fts_lfree): Free, if needed.
48569         maint: fts: give __opendir2 a new parameter and rename
48570         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
48571         than surreptitiously using sole caller's "dir_fd".
48572         (fts_opendir): Rename from __opendir2.
48574         maint: fts.c: remove __opendir2's now-unused parameter, oflag
48575         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
48577         maint: fts.c: correct off-by-one indentation
48578         * lib/fts.c (fts_build): Correct indentation, change style
48579         of a couple of block comments, and bracing style.
48581         maint: fts.c: move __opendir2 #define "up" out of function body
48582         * lib/fts.c (__opendir2): Move "up".  No semantic change.
48584         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
48585         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
48586         out for a long time and besides was useful only on BSD systems.
48588 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48590         regex: port to Stratus OpenVOS
48591         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
48592         define to empty, rather than attempting nonportable optimizations.
48593         Problem reported by Paul Green in:
48594         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
48595         and fix suggested by Eric Blake in:
48596         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
48598 2011-08-17  Eric Blake  <eblake@redhat.com>
48600         getcwd: fix test failures on mingw
48601         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
48602         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
48603         test if long directory cannot be created, and allow mingw errno.
48605         getcwd-lgpl: fix m4 to match relaxed test for BSD
48606         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
48607         (gl_FUNC_GETCWD_SIGNATURE): New macro.
48608         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
48609         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
48610         signature problem.
48612         getcwd: fix compilation on mingw64
48613         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
48614         getcwd.
48615         Reported by Marc-André Lureau.
48617         pipe2: silence compiler warning
48618         * lib/pipe2.c (pipe2): Hide label if it is not used.
48620 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
48622         relocatable-prog: fix link error
48623         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
48624         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
48625         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
48626         into modules/relocatable-lib without noticing that
48627         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
48628         also needs to build relocatable.c.
48630 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48632         getaddrinfo: fix sh typo in gai_strerrorA decl checking
48633         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
48634         shell code: it contained a 'break' that was not in a loop.
48635         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
48636         via a shell-language loop; this may have been true in old Autoconf
48637         versions, but it's not true in Autoconf 2.68.  I found this bug
48638         when testing coreutils git on Solaris 8, whose shell complains
48639         about the syntax error.
48641 2011-08-12  Simon Josefsson  <simon@josefsson.org>
48643         * lib/base64.c: Fix comment to reference RFC 4648.
48644         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
48645         <gvtulder@gmail.com>.
48647 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48649         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
48651         po/Makefile.in.in: fix make -q problem
48652         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
48653         rule, since there's no file named 'check-macro-version' and its
48654         use as a file breaks make -q.
48655         (all): Don't depend on check-macro-version.
48656         (CHECK_MACRO_VERSION): New macro.
48657         (stamp-po): Use it.
48659         configmake: fix make -q problem
48660         * modules/configmake (configmake.h): Update configmake.h's time stamp
48661         even if the file does not change.  Otherwise, 'make -q' fails.
48662         Problem reported by Simon Josefsson in
48663         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
48665 2011-08-11  Jim Meyering  <meyering@redhat.com>
48667         git-version-gen: correct the advice in a comment
48668         * build-aux/git-version-gen: Correct comment.
48669         Don't recommend to list .tarball-version in .gitignore.
48671 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48673         base64: fix off-by-one buffer size bug
48674         Problem and (trivial) fix reported by Gijs van Tulder in
48675         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
48676         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
48677         * tests/test-base64.c (main): Catch the bug.
48679 2011-08-10  Eric Blake  <eblake@redhat.com>
48681         closein: correct comments
48682         * lib/closein.c (close_stdin): Improve comments.
48684 2011-08-09  Bruno Haible  <bruno@clisp.org>
48686         More tests for 'fseeko'.
48687         * tests/test-fseeko3.c: New file, from Eric Blake.
48688         * tests/test-fseeko3.sh: New file.
48689         * modules/fseeko-tests (Files): Add them.
48690         (TESTS): Add test-fseeko3.sh.
48691         (check_PROGRAMS): Add test-fseeko3.
48693 2011-08-09  Eric Blake  <eblake@redhat.com>
48695         fseeko: remove unneeded hack
48696         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
48698         fseeko: fix bug on glibc
48699         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
48700         Reported by John W. Eaton.
48702 2011-08-08  Bruno Haible  <bruno@clisp.org>
48704         unictype/base: Fix interoperability with preinstalled libunistring.
48705         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
48706         Reported by Simon Josefsson.
48708 2011-08-08  Bruno Haible  <bruno@clisp.org>
48710         iswblank: Detect declaration correctly.
48711         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
48712         AC_CHECK_DECLS invocation.
48714 2011-08-08  Bruno Haible  <bruno@clisp.org>
48716         tcgetsid: Detect declaration correctly.
48717         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
48718         AC_CHECK_DECLS invocation.
48719         Reported by Simon Josefsson.
48721 2011-08-08  Eric Blake  <eblake@redhat.com>
48723         largefile: fix typo that regressed large file support
48724         * modules/largefile (configure.ac-early): Fix section name.
48726 2011-08-06  Karl Berry  <karl@gnu.org>
48728         * MODULES.html.sh (func_all_files): _Noreturn is no longer
48729         a separate module.
48731 2011-08-05  Simon Josefsson  <simon@josefsson.org>
48733         openat: Fix warnings and commens when building unlinkat.c on Hurd.
48734         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
48735         get prototype for free.
48737 2011-08-04  Bruno Haible  <bruno@clisp.org>
48739         Tests for module 'pathmax'.
48740         * modules/pathmax-tests: New file.
48741         * tests/test-pathmax.c: New file.
48743         canonicalize-lgpl: Support larger filenames on the Hurd.
48744         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
48745         Reported by Paul Eggert.
48747         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
48748         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
48749         * lib/chdir-long.h: Include pathmax.h.
48750         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
48751         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
48752         (PATH_MAX): Remove code that is done by pathmax.h.
48753         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
48754         * lib/tmpfile.c: Add a comment.
48755         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
48756         * modules/chdir-long (Depends-on): Add pathmax.
48757         * modules/getcwd (Depends-on): Add pathmax.
48758         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
48759         is not defined.
48760         * doc/posix-headers/limits.texi: Mention the pathmax module.
48761         * NEWS: Mention the change.
48763 2011-08-02  Bruno Haible  <bruno@clisp.org>
48765         pthread_sigmask: Actually use results of gl_THREADLIB.
48766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
48767         gl_THREADLIB, not gl_[]THREADLIB.
48768         Reported by Eric Blake.
48770 2011-08-02  Jim Meyering  <meyering@redhat.com>
48772         maint.mk: relax the default _gl_TS_function_match regexp
48773         * top/maint.mk (_gl_TS_function_match): Don't require at least one
48774         space between function name and "(" in an "extern" declaration.
48775         That would fail to match a decl with no space there: extern void foo();
48777 2011-07-31  Iain Nicol  <iain@thenicols.net>
48779         git-version-gen: document that EXTRA_DIST must include .version
48780         * build-aux/git-version-gen: In the how-to-use comment, document
48781         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
48782         will fail when run from an unpacked distribution tarball.
48784 2011-08-01  Bruno Haible  <bruno@clisp.org>
48786         wctype-h: Fix last change.
48787         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
48788         REPLACE_TOWLOWER to 0.
48789         Reported by Sam Steingold <sds@gnu.org>.
48791 2011-07-31  Bruno Haible  <bruno@clisp.org>
48793         frexpl: Update autoconf test.
48794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
48795         according to changes of 2011-06-20.
48797 2011-07-31  Bruno Haible  <bruno@clisp.org>
48799         sys_utsname: Add support for Minix.
48800         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
48801         <sys/utsname.h>.
48802         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
48803         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
48805 2011-07-31  Bruno Haible  <bruno@clisp.org>
48807         strings: Add support for Minix.
48808         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
48809         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
48810         * doc/posix-headers/strings.texi: Document the Minix problem.
48812 2011-07-31  Bruno Haible  <bruno@clisp.org>
48814         wctype-h: Add support for Minix.
48815         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
48816         REPLACE_TOWLOWER.
48817         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
48818         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
48819         REPLACE_ISWCNTRL.
48821 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
48823         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
48824         This is a performance improvement for 64-bit hosts: it causes the
48825         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
48827 2011-07-31  Bruno Haible  <bruno@clisp.org>
48829         stdioext: Add support for Minix.
48830         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
48831         * lib/fpurge.c (fpurge): Likewise.
48832         * lib/freadahead.c (freadahead): Likewise.
48833         * lib/freadable.c (freadable): Likewise.
48834         * lib/freading.c (freading): Likewise.
48835         * lib/freadptr.c (freadptr): Likewise.
48836         * lib/freadseek.c (freadptrinc): Likewise.
48837         * lib/fseeko.c (rpl_fseeko): Likewise.
48838         * lib/fseterr.c (fseterr): Likewise.
48839         * lib/fwritable.c (fwritable): Likewise.
48840         * lib/fwriting.c (fwriting): Likewise.
48841         * lib/fflush.c (clear_ungetc_buffer): Update comment.
48842         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
48844 2011-07-31  Bruno Haible  <bruno@clisp.org>
48846         errno: Port to Minix.
48847         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
48848         ECONNABORTED are defined.
48849         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
48850         GNULIB_defined_ECONNABORTED): New macros.
48851         * lib/strerror-override.h (strerror_override): Test also
48852         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
48853         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
48854         ECONNABORTED.
48855         * doc/posix-headers/errno.texi: Mention the Minix problem.
48857 2011-07-31  Bruno Haible  <bruno@clisp.org>
48859         Work around declaration collisions on Minix.
48860         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
48861         defined, set REPLACE_MBSINIT.
48862         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
48863         defined, set REPLACE_MBRTOWC.
48864         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
48865         set REPLACE_MBRLEN.
48866         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
48867         defined, set REPLACE_MBSRTOWCS.
48868         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
48869         defined, set REPLACE_WCRTOMB.
48870         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
48871         defined, set REPLACE_WCSRTOMBS.
48873 2011-07-31  Bruno Haible  <bruno@clisp.org>
48875         Add support for Minix with ACK compiler.
48876         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
48877         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
48878         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
48880 2011-07-31  Bruno Haible  <bruno@clisp.org>
48882         Documentation about Minix.
48883         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
48884         * doc/glibc-headers/*.texi: Likewise.
48885         * doc/posix-functions/*.texi: Likewise.
48886         * doc/glibc-functions/*.texi: Likewise.
48888 2011-07-31  Bruno Haible  <bruno@clisp.org>
48890         snippet/warn-on-use: Fix indentation.
48891         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
48893 2011-07-25  Jim Meyering  <meyering@redhat.com>
48895         tests: test-update-copyright.sh: remove unnecessary "rm" commands
48896         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
48897         commands.
48899 2011-07-27  Jim Meyering  <meyering@redhat.com>
48901         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
48902         * top/maint.mk (gl_extract_significant_defines_): Now that
48903         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
48904         gnulib/lib/signal.in.h, and now that we recommend to
48905         define-if-undefined those two symbols in application code,
48906         we must filter them out of the "significant" list.
48907         This avoids a "make syntax-check" failure in coreutils.
48909 2011-07-26  Eric Blake  <eblake@redhat.com>
48911         warnings: add comments about previous patch
48912         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
48913         * m4/include_next.m4: Likewise.
48914         * m4/warn-on-use.m4: Likewise.
48915         * m4/warnings.m4: Likewise, and simplify use.
48916         Suggested by Stefano Lattarini.
48918         include-next, warnings: support older autoconf
48919         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
48920         AS_VAR_PUSHDEF in a way that works with older autoconf.
48921         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
48922         Reported by Daniel P. Berrange.
48924 2011-07-25  Bruno Haible  <bruno@clisp.org>
48926         fseek, ftell: Fix doc.
48927         * doc/posix-functions/fseek.texi: Reword statement about
48928         AC_SYS_LARGEFILE.
48929         * doc/posix-functions/ftell.texi: Likewise.
48931 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48932             Bruno Haible  <bruno@clisp.org>
48934         Add dependencies to the 'largefile' module.
48935         * modules/fopen (Depends-on): Add 'largefile'.
48936         * modules/freopen (Depends-on): Likewise.
48937         * modules/fseeko (Depends-on): Likewise.
48938         * modules/ftello (Depends-on): Likewise.
48939         * modules/glob (Depends-on): Likewise.
48940         * modules/lseek (Depends-on): Likewise.
48941         * modules/lstat (Depends-on): Likewise.
48942         * modules/mkostemp (Depends-on): Likewise.
48943         * modules/mkostemps (Depends-on): Likewise.
48944         * modules/mkstemp (Depends-on): Likewise.
48945         * modules/mkstemps (Depends-on): Likewise.
48946         * modules/open (Depends-on): Likewise.
48947         * modules/openat (Depends-on): Likewise.
48948         * modules/pread (Depends-on): Likewise.
48949         * modules/pwrite (Depends-on): Likewise.
48950         * modules/scandir (Depends-on): Likewise.
48951         * modules/stat (Depends-on): Likewise.
48952         * modules/tmpfile (Depends-on): Likewise.
48953         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
48954         since the containing module now depends on the largefile module.
48955         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
48956         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
48957         off_t is fixed by gnulib.
48958         * doc/posix-functions/freopen.texi: Likewise.
48959         * doc/posix-functions/fseeko.texi: Likewise.
48960         * doc/posix-functions/fstatat.texi: Likewise.
48961         * doc/posix-functions/ftello.texi: Likewise.
48962         * doc/posix-functions/glob.texi: Likewise.
48963         * doc/posix-functions/lseek.texi: Likewise.
48964         * doc/posix-functions/lstat.texi: Likewise.
48965         * doc/posix-functions/mkstemp.texi: Likewise.
48966         * doc/posix-functions/open.texi: Likewise.
48967         * doc/posix-functions/openat.texi: Likewise.
48968         * doc/posix-functions/pread.texi: Likewise.
48969         * doc/posix-functions/pwrite.texi: Likewise.
48970         * doc/posix-functions/scandir.texi: Likewise.
48971         * doc/posix-functions/stat.texi: Likewise.
48972         * doc/posix-functions/tmpfile.texi: Likewise.
48973         * doc/glibc-functions/mkostemp.texi: Likewise.
48974         * doc/glibc-functions/mkostemps.texi: Likewise.
48975         * doc/glibc-functions/mkstemps.texi: Likewise.
48977 2011-07-25  Bruno Haible  <bruno@clisp.org>
48979         fcntl: Move AC_LIBOBJ invocation to module description.
48980         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
48981         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
48983         fcntl: Remove call-in from fchdir.m4.
48984         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
48985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
48987         dup3: Remove potential call-in from fchdir.m4.
48988         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
48989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
48991         dup2: Move AC_LIBOBJ invocation to module description.
48992         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
48993         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
48994         Don't invoke AC_LIBOBJ.
48995         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
48997         dup2: Remove call-in from fchdir.m4.
48998         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
48999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49001         fclose: Move AC_LIBOBJ invocation to module description.
49002         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49003         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49004         to 1.
49005         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49007         fclose: Remove call-in from close.m4.
49008         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49009         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49011         close: Move AC_LIBOBJ invocation to module description.
49012         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49013         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49014         1.
49015         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49017         close: Remove call-in from fchdir.m4.
49018         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49021         open: Move AC_LIBOBJ invocation to module description.
49022         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49023         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49024         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49026         open: Remove call-in from fchdir.m4.
49027         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49030         fchdir: Start to remove gl_REPLACE_* idiom.
49031         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49032         (gl_FUNC_FCHDIR): Invoke it.
49034 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49036         * lib/ftell.c (ftell): Comment out cast.
49038         close: use gl_REPLACE_FCLOSE only if defined
49039         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49040         is defined.  The close module doesn't depend on the fclose module
49041         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49042         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49043         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49045 2011-07-24  Jim Meyering  <meyering@redhat.com>
49047         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49048         * tests/test-select.h (test_function): Declare as "static".
49050 2011-07-24  Bruno Haible  <bruno@clisp.org>
49052         doc: Mention the effects of AC_SYS_LARGEFILE.
49053         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49054         on this function.
49055         * doc/posix-functions/aio_error.texi: Likewise.
49056         * doc/posix-functions/aio_fsync.texi: Likewise.
49057         * doc/posix-functions/aio_read.texi: Likewise.
49058         * doc/posix-functions/aio_return.texi: Likewise.
49059         * doc/posix-functions/aio_suspend.texi: Likewise.
49060         * doc/posix-functions/aio_write.texi: Likewise.
49061         * doc/posix-functions/fgetpos.texi: Likewise.
49062         * doc/posix-functions/fopen.texi: Likewise.
49063         * doc/posix-functions/freopen.texi: Likewise.
49064         * doc/posix-functions/fsetpos.texi: Likewise.
49065         * doc/posix-functions/fstatvfs.texi: Likewise.
49066         * doc/posix-functions/ftruncate.texi: Likewise.
49067         * doc/posix-functions/ftw.texi: Likewise.
49068         * doc/posix-functions/getrlimit.texi: Likewise.
49069         * doc/posix-functions/glob.texi: Likewise.
49070         * doc/posix-functions/lio_listio.texi: Likewise.
49071         * doc/posix-functions/lockf.texi: Likewise.
49072         * doc/posix-functions/mkstemp.texi: Likewise.
49073         * doc/posix-functions/mmap.texi: Likewise.
49074         * doc/posix-functions/nftw.texi: Likewise.
49075         * doc/posix-functions/openat.texi: Likewise.
49076         * doc/posix-functions/opendir.texi: Likewise.
49077         * doc/posix-functions/posix_fadvise.texi: Likewise.
49078         * doc/posix-functions/posix_fallocate.texi: Likewise.
49079         * doc/posix-functions/pread.texi: Likewise.
49080         * doc/posix-functions/pwrite.texi: Likewise.
49081         * doc/posix-functions/readdir.texi: Likewise.
49082         * doc/posix-functions/readdir_r.texi: Likewise.
49083         * doc/posix-functions/rewinddir.texi: Likewise.
49084         * doc/posix-functions/scandir.texi: Likewise.
49085         * doc/posix-functions/seekdir.texi: Likewise.
49086         * doc/posix-functions/setrlimit.texi: Likewise.
49087         * doc/posix-functions/statvfs.texi: Likewise.
49088         * doc/posix-functions/telldir.texi: Likewise.
49089         * doc/posix-functions/tmpfile.texi: Likewise.
49090         * doc/posix-functions/truncate.texi: Likewise.
49091         * doc/glibc-functions/fallocate.texi: Likewise.
49092         * doc/glibc-functions/fstatfs.texi: Likewise.
49093         * doc/glibc-functions/fts_children.texi: Likewise.
49094         * doc/glibc-functions/fts_read.texi: Likewise.
49095         * doc/glibc-functions/getdirentries.texi: Likewise.
49096         * doc/glibc-functions/mkostemp.texi: Likewise.
49097         * doc/glibc-functions/mkostemps.texi: Likewise.
49098         * doc/glibc-functions/mkstemps.texi: Likewise.
49099         * doc/glibc-functions/preadv.texi: Likewise.
49100         * doc/glibc-functions/pwritev.texi: Likewise.
49101         * doc/glibc-functions/sendfile.texi: Likewise.
49102         * doc/glibc-functions/statfs.texi: Likewise.
49104 2011-07-24  Bruno Haible  <bruno@clisp.org>
49106         doc: Fix typo.
49107         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49109 2011-07-24  Bruno Haible  <bruno@clisp.org>
49111         doc: Mention fsusage.
49112         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49114 2011-07-24  Bruno Haible  <bruno@clisp.org>
49116         doc: Mention new glibc headers and functions.
49117         * doc/glibc-headers/gshadow.texi: New file.
49118         * doc/glibc-functions/endsgent.texi: New file.
49119         * doc/glibc-functions/fgetsgent.texi: New file.
49120         * doc/glibc-functions/fgetsgent_r.texi: New file.
49121         * doc/glibc-functions/getsgent.texi: New file.
49122         * doc/glibc-functions/getsgent_r.texi: New file.
49123         * doc/glibc-functions/getsgnam.texi: New file.
49124         * doc/glibc-functions/getsgnam_r.texi: New file.
49125         * doc/glibc-functions/putsgent.texi: New file.
49126         * doc/glibc-functions/setsgent.texi: New file.
49127         * doc/glibc-functions/sgetsgent.texi: New file.
49128         * doc/glibc-functions/sgetsgent_r.texi: New file.
49129         * doc/glibc-functions/malloc_info.texi: New file.
49130         * doc/glibc-functions/preadv.texi: New file.
49131         * doc/glibc-functions/pwritev.texi: New file.
49132         * doc/glibc-functions/register_printf_modifier.texi: New file.
49133         * doc/glibc-functions/register_printf_specifier.texi: New file.
49134         * doc/glibc-functions/register_printf_type.texi: New file.
49135         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49136         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49137         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49138         * doc/glibc-functions/pthread_getname_np.texi: New file.
49139         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49140         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49141         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49142         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49143         * doc/glibc-functions/pthread_setname_np.texi: New file.
49144         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49145         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49146         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49147         * doc/glibc-functions/qsort_r.texi: New file.
49148         * doc/glibc-functions/quick_exit.texi: New file.
49149         * doc/glibc-functions/syncfs.texi: New file.
49150         * doc/gnulib.texi: Include them.
49151         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49152         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49153         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49154         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49155         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49156         * doc/glibc-functions/execvpe.texi: Likewise.
49158 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49160         ftell: don't include <unistd.h>
49161         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49162         guaranteed to define off_t, and the ftell module depends on the
49163         stdio module.
49165         ftell: do not assume wraparound signed arithmetic
49166         * lib/ftell.c: Include <limits.h>.
49167         (ftell): Don't assume wraparound signed arithmetic.
49169 2011-07-24  Bruno Haible  <bruno@clisp.org>
49171         close: No longer depend on module 'fclose'.
49172         * modules/close (Depends-on): Remove fclose.
49173         * NEWS: Mention the change.
49174         Suggested by Sam Steingold <sds@gnu.org>.
49176 2011-07-24  Bruno Haible  <bruno@clisp.org>
49178         fsusage: Enable large volume support on AIX >= 5.2.
49179         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49180         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49181         instead of STAT_STATVFS.
49182         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49184         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49186         f_blocks field only on MacOS X.
49188         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49189         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49190         * modules/fsusage (Depends-on): Add largefile.
49192 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49194         * README: Modernize discussion of signed integers.
49195         Assuming overflow wraparound is no longer safe.
49196         Mention ones' complement and signed magnitude.
49198 2011-07-22  Bruno Haible  <bruno@clisp.org>
49200         select tests, pselect tests: Refactor.
49201         * tests/test-select.h: New file, extracted from tests/test-select.c.
49202         (select_fn): New type.
49203         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49204         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49205         test_pipe): Add my_select argument.
49206         (test_function): Renamed from main. Add my_select argument.
49207         * tests/test-select.c: Move most code to tests/test-select.h. Include
49208         test-select.h.
49209         * modules/select-tests (Files): Add tests/test-select.h.
49210         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
49211         (my_select, main): New functions.
49212         * modules/pselect-tests (Files): Add tests/test-select.h,
49213         tests/macros.h, tests/signature.h.
49214         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
49215         (configure.ac): Check for <sys/wait.h>.
49217 2011-07-22  Bruno Haible  <bruno@clisp.org>
49219         sys_select tests: Check the signature of FD_*.
49220         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
49221         signature tests from here...
49222         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
49223         here.
49224         * modules/sys_select-tests (Files): Add tests/signature.h.
49226 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49228         largefile: new module, replacing large-inode
49229         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
49230         * MODULES.html.sh: Add largefile, remove large-inode.
49231         * modules/largefile, m4/largefile.m4: New files.
49232         * modules/large-inode, m4/large-inode.m4: Remove.
49234         fsusage: port to MacOS X 10.7 with 4 TiB file systems
49235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
49236         implementations that use only 32 bits to count blocks.
49237         On typical hosts with 1024-byte blocks, this fails with file
49238         systems as small as 4 TiB.  Problem reported by Herb Wartens
49239         <http://debbugs.gnu.org/9140> and this should also fix a similar
49240         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
49242         large-inode: New module
49243         * MODULES.html.sh: Add it.
49244         * modules/large-inode, m4/large-inode.m4: New files.
49246         extensions: Enable extensions on MacOS X 10.5 and later.
49247         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49249 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49251         file-has-acl: use acl_extended_file_nofollow if available
49252         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49253         (acl_extended_file): New macro.
49254         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49255         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49257 2011-07-21  Bruno Haible  <bruno@clisp.org>
49259         Declare system functions in a way that works with C++.
49260         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49261         declare fdopendir as extern "C".
49262         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49263         declare frexpl as extern "C".
49264         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49265         declare gai_strerror as extern "C".
49266         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49267         programs, declare gai_strerror as extern "C".
49268         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49269         declare getlogin_r as extern "C".
49270         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49271         as extern "C".
49272         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49273         declare ldexpl as extern "C".
49274         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49275         as extern "C".
49276         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49277         program, declare getmntinfo as extern "C".
49278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49279         stpncpy as extern "C".
49280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49281         program, declare __xpg_strerror_r as extern "C".
49282         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49283         strndup as extern "C".
49284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49285         declare memset and bzero as extern "C".
49286         Reported by Sam Steingold <sds@gnu.org>.
49288 2011-07-12  Jim Meyering  <meyering@redhat.com>
49290         maint.mk: prohibit inclusion of "verify.h" without use
49291         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49293 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49295         timer-time: A new module to check for timer_settime()
49296         * m4/timer_time.m4: Check for the posix function.
49297         * modules/timer-time: Add the new module.
49298         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49299         Mention it.
49301 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49302             Bruno Haible  <bruno@clisp.org>
49304         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49305         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49306         not defined, assume POSIX threads and look for pthread_sigmask in
49307         $LIBS, without changing $CPPFLAGS.
49309 2011-07-19  Bruno Haible  <bruno@clisp.org>
49311         strstr: Update cross-compilation guess.
49312         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49313         CPUs, guess no, in view of glibc
49314         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49315         Suggested by Eric Blake. Reported by Reuben Thomas.
49317 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49319         getopt-gnu: suppress core dumps from detection code
49320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49321         to suppress core dumps that may well occur on glibc systems.
49322         * modules/getopt-gnu: Depend on nocrash.
49324 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49326         pthread_sigmask: ensure usleep is declared
49327         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49328         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49330 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49332         doc: Document NonStop portability issues.
49333         * doc/posix-functions/sigaction.texi (sigaction):
49334         * doc/posix-headers/signal.texi (signal.h):
49335         Document NonStop.  See Joachim Schmitz in
49336         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49338 2011-07-15  Bruno Haible  <bruno@clisp.org>
49340         ffsl, ffsll: Avoid unportable behaviour.
49341         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49343 2011-07-15  Bruno Haible  <bruno@clisp.org>
49345         ffs: More tests.
49346         * tests/test-ffs.c (NBITS): New macro.
49347         (main): Add more tests.
49348         * tests/test-ffsl.c (NBITS): New macro.
49349         (main): Add more tests.
49350         * tests/test-ffsll.c (NBITS): New macro.
49351         (main): Add more tests.
49353 2011-07-15  Eric Blake  <eblake@redhat.com>
49355         ffsl, ffsll: new modules
49356         * modules/ffsl: New file.
49357         * modules/ffsll: Likewise.
49358         * m4/ffsl.m4: Likewise.
49359         * m4/ffsll.m4: Likewise.
49360         * lib/ffsl.c: Likewise.
49361         * lib/ffsl.h: Likewise.
49362         * lib/ffsll.c: Likewise.
49363         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49364         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49365         * modules/string (Makefile.am): Substitute witnesses.
49366         * lib/strings.in.h (ffsl, ffsll): Declare.
49367         * modules/ffsl-tests: New test file.
49368         * modules/ffsll-tests: Likewise.
49369         * tests/test-ffsl.c: Likewise.
49370         * tests/test-ffsll.c: Likewise.
49371         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49372         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49373         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49375         ffs: fix m4 prerequisite
49376         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49378         ffs: avoid undefined behavior
49379         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49380         * tests/test-ffs.c (naive, main): Avoid signed shifts.
49381         Reported by Bruno Haible.
49383 2011-07-12  Bruno Haible  <bruno@clisp.org>
49385         pthread_sigmask: Rely on module 'threadlib'.
49386         * modules/pthread_sigmask (Depends-on): Add threadlib.
49387         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
49388         is defined.
49390 2011-07-12  Bruno Haible  <bruno@clisp.org>
49392         regex: Depend on module 'strcase'.
49393         * modules/regex (Depends-on): Add strcase, for strcasecmp().
49395 2011-07-12  Jim Meyering  <meyering@redhat.com>
49397         warn-on-use: fix typo in file name
49398         * modules/snippet/warn-on-use (Files): Correct file name:
49399         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
49401 2011-07-12  Bruno Haible  <bruno@clisp.org>
49403         strings: Document module.
49404         * doc/posix-headers/strings.texi: Mention module 'strings'.
49406 2011-07-12  Bruno Haible  <bruno@clisp.org>
49408         Rename module '_Noreturn' to 'snippet/_Noreturn'.
49409         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
49410         (Files, Makefile.am): Update.
49411         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
49412         * modules/stdlib (Depends-on): Update.
49414 2011-07-12  Bruno Haible  <bruno@clisp.org>
49416         * NEWS: Mention the changes.
49418         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
49419         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
49420         (Files, Makefile.am): Update.
49421         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
49422         * modules/arpa_inet (Depends-on): Update.
49423         * modules/ctype (Depends-on): Update.
49424         * modules/dirent (Depends-on): Update.
49425         * modules/fcntl-h (Depends-on): Update.
49426         * modules/glob (Depends-on): Update.
49427         * modules/iconv-h (Depends-on): Update.
49428         * modules/inttypes-incomplete (Depends-on): Update.
49429         * modules/langinfo (Depends-on): Update.
49430         * modules/locale (Depends-on): Update.
49431         * modules/math (Depends-on): Update.
49432         * modules/netdb (Depends-on): Update.
49433         * modules/poll-h (Depends-on): Update.
49434         * modules/pty (Depends-on): Update.
49435         * modules/search (Depends-on): Update.
49436         * modules/signal (Depends-on): Update.
49437         * modules/spawn (Depends-on): Update.
49438         * modules/stdio (Depends-on): Update.
49439         * modules/stdlib (Depends-on): Update.
49440         * modules/string (Depends-on): Update.
49441         * modules/strings (Depends-on): Update.
49442         * modules/sys_file (Depends-on): Update.
49443         * modules/sys_ioctl (Depends-on): Update.
49444         * modules/sys_select (Depends-on): Update.
49445         * modules/sys_socket (Depends-on): Update.
49446         * modules/sys_stat (Depends-on): Update.
49447         * modules/sys_time (Depends-on): Update.
49448         * modules/sys_times (Depends-on): Update.
49449         * modules/sys_utsname (Depends-on): Update.
49450         * modules/sys_wait (Depends-on): Update.
49451         * modules/termios (Depends-on): Update.
49452         * modules/time (Depends-on): Update.
49453         * modules/unistd (Depends-on): Update.
49454         * modules/wchar (Depends-on): Update.
49455         * modules/wctype-h (Depends-on): Update.
49456         * MODULES.html.sh (Support for building libraries and executables):
49457         Update.
49459         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
49460         * modules/snippet/unused-parameter: Renamed from
49461         modules/unused-parameter.
49462         (Files, Makefile.am): Update.
49463         * build-aux/snippet/unused-parameter.h: Renamed from
49464         build-aux/unused-parameter.h.
49465         * modules/selinux-h (Depends-on): Update.
49466         * modules/unistr/base (Depends-on): Update.
49467         * MODULES.html.sh (Core language properties): Update.
49469         Rename module 'link-warning' to 'snippet/link-warning'.
49470         * modules/snippet/link-warning: Renamed from modules/link-warning.
49471         (Files, Makefile.am): Update.
49472         * build-aux/snippet/link-warning.h: Renamed from
49473         build-aux/link-warning.h.
49474         * MODULES.html.sh (Support for building libraries and executables):
49475         Update.
49477         Rename module 'c++defs' to 'snippet/c++defs'.
49478         * modules/snippet/c++defs: Renamed from modules/c++defs.
49479         (Files, Makefile.am): Update.
49480         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
49481         * modules/arpa_inet (Depends-on): Update.
49482         * modules/ctype (Depends-on): Update.
49483         * modules/dirent (Depends-on): Update.
49484         * modules/fcntl-h (Depends-on): Update.
49485         * modules/glob (Depends-on): Update.
49486         * modules/iconv-h (Depends-on): Update.
49487         * modules/langinfo (Depends-on): Update.
49488         * modules/locale (Depends-on): Update.
49489         * modules/math (Depends-on): Update.
49490         * modules/netdb (Depends-on): Update.
49491         * modules/poll-h (Depends-on): Update.
49492         * modules/pty (Depends-on): Update.
49493         * modules/search (Depends-on): Update.
49494         * modules/signal (Depends-on): Update.
49495         * modules/spawn (Depends-on): Update.
49496         * modules/stdio (Depends-on): Update.
49497         * modules/stdlib (Depends-on): Update.
49498         * modules/string (Depends-on): Update.
49499         * modules/strings (Depends-on): Update.
49500         * modules/sys_ioctl (Depends-on): Update.
49501         * modules/sys_select (Depends-on): Update.
49502         * modules/sys_socket (Depends-on): Update.
49503         * modules/sys_stat (Depends-on): Update.
49504         * modules/sys_time (Depends-on): Update.
49505         * modules/sys_wait (Depends-on): Update.
49506         * modules/termios (Depends-on): Update.
49507         * modules/time (Depends-on): Update.
49508         * modules/unistd (Depends-on): Update.
49509         * modules/wchar (Depends-on): Update.
49510         * modules/wctype-h (Depends-on): Update.
49512         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
49513         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
49514         (Files, Makefile.am): Update.
49515         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
49516         * modules/argv-iter (Depends-on): Update.
49517         * modules/arpa_inet (Depends-on): Update.
49518         * modules/dirent (Depends-on): Update.
49519         * modules/fcntl-h (Depends-on): Update.
49520         * modules/fnmatch (Depends-on): Update.
49521         * modules/getopt-posix (Depends-on): Update.
49522         * modules/glob (Depends-on): Update.
49523         * modules/iconv-h (Depends-on): Update.
49524         * modules/inttypes-incomplete (Depends-on): Update.
49525         * modules/locale (Depends-on): Update.
49526         * modules/math (Depends-on): Update.
49527         * modules/netdb (Depends-on): Update.
49528         * modules/search (Depends-on): Update.
49529         * modules/signal (Depends-on): Update.
49530         * modules/spawn (Depends-on): Update.
49531         * modules/stdio (Depends-on): Update.
49532         * modules/stdlib (Depends-on): Update.
49533         * modules/string (Depends-on): Update.
49534         * modules/strings (Depends-on): Update.
49535         * modules/sys_socket (Depends-on): Update.
49536         * modules/sys_stat (Depends-on): Update.
49537         * modules/sys_time (Depends-on): Update.
49538         * modules/sys_times (Depends-on): Update.
49539         * modules/sys_utsname (Depends-on): Update.
49540         * modules/time (Depends-on): Update.
49541         * modules/unistd (Depends-on): Update.
49542         * modules/wchar (Depends-on): Update.
49543         * MODULES.html.sh (Support for building libraries and executables):
49544         Update.
49546 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49548         Improvements on _Noreturn and related modules.
49550         modules/_Exit-tests: test _Noreturn too
49551         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
49552         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
49553         (main): Use them.
49555         stdnoreturn, stdnoreturn-tests: remove modules
49556         They're not needed here and a bit premature for use elsewhere.  See
49557         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
49558         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
49559         * tests/test-stdnoreturn.c: Remove files.
49560         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
49561         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
49562         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
49563         and using noreturn.
49564         * modules/openat, modules/sigpipe-die, modules/xalloc:
49565         * modules/xmemdup0, modules/xstrtol:
49566         Remove dependency on stdnoreturn.
49568         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
49569         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
49570         Reparenthesize to avoid GCC warning.
49571         Support Microsoft's syntax.
49572         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
49574         _Noreturn-tests: remove module
49575         * modules/_Noreturn-tests: Remove.
49576         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
49577         * tests/test-_Noreturn.c: Remove.
49578         * tests/test-stdnoreturn.c: Merge from the old
49579         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
49581 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49583         _Noreturn, stdnoreturn, and related modules.
49585         * top/maint.mk: Adjust to new noreturn support.
49586         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
49587         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
49589         xalloc: use stdnoreturn.h
49590         * lib/xalloc.h: Include <stdnoreturn.h>.
49591         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49592         * modules/xalloc (Depends-on): Add stdnoreturn.
49594         xstrtol: use stdnoreturn.h
49595         * lib/xstrtol.h: Include <stdnoreturn.h>.
49596         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49597         * modules/xstrtol (Depends-on): Add stdnoreturn.
49599         xmemdup0: use stdnoreturn.h
49600         * lib/xmemdup0.h: Include <stdnoreturn.h>.
49601         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49602         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
49604         sigpipe-die: use stdnoreturn.h
49605         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
49606         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49607         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
49609         openat: use stdnoreturn.h
49610         * lib/openat.h: Include <stdnoreturn.h>.
49611         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49612         * modules/openat (Depends-on): Add stdnoreturn.
49614         * lib/openat-die.c (openat_save_fail): Modernize comment.
49616         * lib/xalloc-die.c (xalloc_die): Modernize comment.
49618         * lib/glthread/thread.h: Modernize comment.
49620         obstack: use _Noreturn
49621         * lib/obstack.c (__attribute__): Remove macro.
49622         (print_and_abort): Use _Noreturn.
49624         c-stack: use _Noreturn
49625         * lib/c-stack.c (die, overflow_handler, segv_handler):
49626         Use _Noreturn rather than __attribute__((noreturn)).
49628         argmatch-tests, exclude_tests: use _Noreturn
49629         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
49630         Remove.
49631         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
49633         stdlib: use _Noreturn
49634         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
49635         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
49636         * modules/stdlib (Depends-on): Add _Noreturn.
49637         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
49639         stdnoreturn-tests: new module
49640         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
49642         stdnoreturn: new module
49643         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
49644         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
49646         _Noreturn-tests: new module
49647         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
49649         _Noreturn: new module
49650         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
49651         New section, mentioning it.
49652         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
49654         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
49656 2011-07-11  Eric Blake  <eblake@redhat.com>
49658         ffs: new module
49659         * modules/ffs: New file.
49660         * m4/ffs.m4: Likewise.
49661         * lib/ffs.c: Likewise.
49662         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
49663         * modules/strings (Makefile.am): Substitute witness.
49664         (Depends-on): Add c++defs.
49665         * lib/strings.in.h (ffs): Declare.
49666         * modules/ffs-tests: New test file.
49667         * tests/test-ffs.c: Test new module.
49668         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49669         * doc/posix-functions/ffs.texi (ffs): Likewise.
49671         regex: avoid compiler warning
49672         * lib/regex.c (includes): Include <strings.h>, for use of
49673         strcasecmp in regcomp.c.
49674         Reported by Joachim Schmitz.
49676 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49678         stdint: respect system's intmax_t if INTMAX_MAX
49679         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
49680         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
49681         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
49682         long but int64_t is long long, and where we will clash with the
49683         system intmax_t if we override it.  See
49684         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
49685         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
49686         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
49687         similarly for UINTMAX_C.
49689 2011-07-08  Bruno Haible  <bruno@clisp.org>
49691         pthread_sigmask tests: Avoid a compiler warning.
49692         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
49693         non-zero.
49695         sigprocmask tests: A better way to avoid a compiler warning.
49696         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
49697         (main): Complain if system() returns non-zero.
49698         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
49700 2011-07-08  Bruno Haible  <bruno@clisp.org>
49702         pthread_sigmask: Work around IRIX bug.
49703         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
49704         bug.
49705         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
49706         there may be unblocked pending signals.
49707         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
49709 2011-07-08  Bruno Haible  <bruno@clisp.org>
49711         pthread_sigmask: Work around Cygwin bug.
49712         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
49713         bug.
49714         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
49715         the system's pthread_sigmask function.
49716         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
49718 2011-07-08  Bruno Haible  <bruno@clisp.org>
49720         pthread_sigmask: Work around bug in single-threaded implementation.
49721         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
49722         FreeBSD, HP-UX, Solaris bug.
49723         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
49724         * lib/pthread_sigmask.c: Include <stddef.h>.
49725         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
49726         the system's pthread_sigmask function.
49727         * modules/pthread_sigmask (configure.ac): Invoke
49728         gl_PREREQ_PTHREAD_SIGMASK.
49729         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
49730         HP-UX, Solaris.
49732 2011-07-08  Eric Blake  <eblake@redhat.com>
49734         test-sigprocmask: avoid compiler warning
49735         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
49736         * tests/test-sigprocmask.c (main): Use it to silence warning.
49737         Reported by Jim Meyering.
49739         test-snprintf: avoid compiler warning
49740         * tests/test-snprintf.c (main): Avoid shadowed declaration.
49741         * tests/test-vsnprintf.c (main): Likewise.
49742         Reported by Jim Meyering.
49744 2011-07-08  Bruno Haible  <bruno@clisp.org>
49746         Tests for module 'pthread_sigmask'.
49747         * modules/pthread_sigmask-tests: New file.
49748         * tests/test-pthread_sigmask1.c: New file, based on
49749         tests/test-sigprocmask.c.
49750         * tests/test-pthread_sigmask2.c: New file.
49752 2011-07-08  Jim Meyering  <meyering@redhat.com>
49754         test-getopt.h: avoid warning about an unused variable
49755         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
49757 2011-07-07  Jim Meyering  <meyering@redhat.com>
49759         maint: reduce list of files exempt from sc_prohibit_leading_TABs
49760         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
49761         now that it no longer contains leading TABs.
49762         Remove unused "url=FIXME" statement.
49764 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49766         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
49767         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49768         When gl_THREADLIB is not in use, assume that the POSIX sematics
49769         are desired.  This is better for Emacs, which uses POSIX semantics
49770         on GNUish and/or POSIXish platforms, and does not use threads at
49771         all otherwise.
49773         pthread_sigmask: fix typo when testing for libraries
49774         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49775         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
49777 2011-07-08  Eric Blake  <eblake@redhat.com>
49779         fts: introduce FTS_NOATIME
49780         * lib/fts_.h (FTS_NOATIME): New bit flag.
49781         (FTS_OPTIONMASK): Adjust.
49782         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
49783         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
49785 2011-07-08  Bruno Haible  <bruno@clisp.org>
49787         Tests for module 'thread'.
49788         * modules/thread-tests: New file.
49789         * tests/test-thread_self.c: New file.
49790         * tests/test-thread_create.cc: New file.
49792 2011-07-08  Bruno Haible  <bruno@clisp.org>
49794         thread: Avoid gcc warnings when using gl_thread_self().
49795         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
49796         'void *'.
49797         (gl_thread_self_pointer): Update.
49799 2011-07-07  Bruno Haible  <bruno@clisp.org>
49801         signal-c++-tests: Check declaration of pthread_sigmask.
49802         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
49803         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
49804         $(LIB_PTHREAD_SIGMASK).
49806 2011-07-07  Bruno Haible  <bruno@clisp.org>
49808         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
49809         * lib/signal.in.h (pthread_sigmask): Override if
49810         REPLACE_PTHREAD_SIGMASK is 1.
49811         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49812         REPLACE_PTHREAD_SIGMASK.
49813         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
49814         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
49815         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
49816         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49817         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
49819 2011-07-07  Bruno Haible  <bruno@clisp.org>
49821         pthread_sigmask: Ensure declaration in <signal.h>.
49822         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
49823         include <pthread.h>.
49824         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
49825         problem.
49827 2011-07-07  Bruno Haible  <bruno@clisp.org>
49829         pthread_sigmask: Document the module.
49830         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
49832 2011-07-07  Bruno Haible  <bruno@clisp.org>
49834         pthread_sigmask: Follow gnulib conventions.
49835         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
49836         gl_PTHREAD_SIGMASK.
49837         * modules/pthread_sigmask (configure.ac): Update.
49839 2011-07-07  Bruno Haible  <bruno@clisp.org>
49841         pthread_sigmask: Make declaration C++ safe.
49842         * lib/signal.in.h: In two special conditions, just do an #include_next.
49843         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49844         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
49845         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49846         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49847         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
49848         not REPLACE_PTHREAD_MASK.
49849         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
49850         not REPLACE_PTHREAD_MASK.
49851         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49853 2011-07-07  Bruno Haible  <bruno@clisp.org>
49855         pthread_sigmask: Fix return value.
49856         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
49857         * lib/pthread_sigmask.c: New file.
49858         * modules/pthread_sigmask (Files): Add it.
49859         (configure.ac): Invoke AC_LIBOBJ.
49861 2011-07-07  Eric Blake  <eblake@redhat.com>
49863         getopt: more portable argv creation
49864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
49865         const, use char arrays rather than strings.
49866         Suggested by Paul Eggert.
49868 2011-07-07  Bruno Haible  <bruno@clisp.org>
49870         Tests for module 'sigprocmask'.
49871         * modules/sigprocmask-tests: New file.
49872         * tests/test-sigprocmask.c: New file.
49874 2011-07-07  Bruno Haible  <bruno@clisp.org>
49876         float tests: Tweak.
49877         * tests/test-float.c (main): Tweak skip message.
49879 2011-07-07  Eric Blake  <eblake@redhat.com>
49881         getopt: avoid compiler warning during configure
49882         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
49883         assigning string literals to non-const pointer.
49885         getopt-gnu: avoid crash in glibc getopt
49886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
49887         * tests/test-getopt.h (test_getopt): Enhance test.
49888         * tests/test-getopt_long.h (test_getopt_long): Likewise.
49889         * doc/posix-functions/getopt.texi (getopt): Document it.
49890         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49891         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49892         Likewise.
49894 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
49896         getopt: handle W; without long options in getopt [BZ #12922]
49897         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
49898         but no long options are defined, just return 'W'.
49900 2011-07-07  Bruno Haible  <bruno@clisp.org>
49902         Avoid literal tabs.
49903         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
49904         variable containing a tab instead of a literal tab.
49905         Reported by Jim Meyering.
49907 2011-07-07  Bruno Haible  <bruno@clisp.org>
49909         Comments.
49910         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
49912 2011-07-06  Bruno Haible  <bruno@clisp.org>
49914         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
49915         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
49916         <winsock2.h>.
49917         (rpl_fd_isset, FD_ISSET): New definitions, copied from
49918         lib/sys_socket.in.h.
49919         (close, gethostname): Hide declarations from <winsock2.h>.
49920         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49921         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
49922         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
49923         (select): Don't override if gnulib's <sys/select.h> was already
49924         included.
49925         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
49926         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
49927         setsockopt, shutdown, select): Tweak indentation.
49929 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49931         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
49932         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
49933         in an application that does not use the sys_select module.
49935 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
49937         poll: do not return 0 on timeout=-1
49938         * lib/poll.c: Loop with yield if no events occurred.
49940 2011-07-06  Eric Blake  <eblake@redhat.com>
49942         pthread_sigmask: always replace when not using pthread
49943         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
49944         replacement when using some threading other than pthread.  Fix
49945         logic bug.
49947 2011-07-06  Bruno Haible  <bruno@clisp.org>
49949         Comments.
49950         * m4/printf.m4: Update comments about mingw.
49952 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49954         sys_select: define sigset_t more portably
49955         * lib/sys_select.in.h: Always include <sys/types.h>, since
49956         we now need sigset_t and mingw defines it there.
49957         Include <signal.h> before split inclusion guard, to avoid
49958         mishaps on Solaris, whose <signal.h> eventually includes us.
49959         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
49960         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
49961         which come from ...
49962         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49963         gl_CHECK_TYPE_SIGSET_T.
49964         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
49965         does the real work.
49966         * modules/sys_select (Depends-on): Add 'signal'.
49968         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
49969         Suggested by Bruno Haible.
49971         pselect: Use pthread_sigmask, not sigprocmask.
49972         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
49973         multithreaded apps better than sigprocmask does.
49974         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
49975         sigprocmask directly.
49977 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49979         * lib/pselect.c (pselect): Use plain name, without "rpl_".
49980         Don't #undef,  since we don't need any underlying pselect.
49981         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
49982         (Depends-on): Add select.
49983         (Link): Add $(LIBSOCKET).
49984         These changes suggested by Bruno Haible.
49986         pselect: document better
49987         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
49988         * doc/posix-functions/pselect.texi (pselect): Document new module.
49990         pthread_sigmask: new module
49991         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
49992         * doc/posix-functions/pthread_sigmask.texi: Document new module.
49993         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
49994         This is done only as a macro; I don't know how well that'll
49995         work for C++.  Move <sys/types.h> include before the include_next,
49996         to avoid mishap on Solaris.
49997         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
49998         * modules/signal (Makefile.am): Substitute the check's results.
49999         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50001         test-pselect: new module
50002         * modules/pselect-tests, tests/test-pselect.c: New files.
50003         * tests/test-select.c, tests/test-sys_select-c++.cc:
50004         If TEST_PSELECT is defined, test pselect instead of testing select.
50006         * tests/test-sys_select.c (sigset_t): Test for it, too.
50007         Suggested by Bruno Haible.
50009 2011-07-05  Eric Blake  <eblake@redhat.com>
50011         snprintf: guarantee %1$d, for libintl
50012         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50013         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50014         * doc/posix-functions/snprintf.texi (snprintf): Update.
50015         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50016         * tests/test-snprintf.c (main): Enhance test.
50017         * tests/test-vsnprintf.c (main): Likewise.
50019 2011-07-05  Jim Meyering  <meyering@redhat.com>
50021         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50022         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50023         per Bruno's request, to accommodate this idiom (no space after "#")
50024         even when the function is inside an #if block:
50025         char *
50026         gets (char *s)
50027         #undef gets
50028         {
50029           ...
50030         }
50032 2011-07-04  Jim Meyering  <meyering@redhat.com>
50034         maint: indent with spaces, not TABs, and add a rule to check this
50035         * tests/test-userspec.c: Indent with spaces, not TABs.
50036         * tests/test-argp.c: Likewise.
50037         * tests/test-c-stack2.sh: Likewise.
50038         * tests/test-parse-duration.sh: Likewise
50039         * m4/strtod.m4: Likewise.
50040         * m4/alloca.m4: Likewise.
50041         * m4/pselect.m4: Likewise.
50042         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50044 2011-07-03  Jim Meyering  <meyering@redhat.com>
50046         maint.mk: correct omissions in prohibit_argmatch_without_use check
50047         This rule would mistakenly report that argmatch.h is included without
50048         use even when both the argmatch and invalid_arg macro were used.
50049         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50050         of argmatch and invalid_arg.
50052 2011-07-03  Bruno Haible  <bruno@clisp.org>
50054         Comments about EINTR.
50055         * lib/safe-read.h: Explain the purpose of this module.
50056         * lib/safe-write.h: Likewise.
50057         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50058         module.
50059         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50060         module.
50061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50063 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50065         xnanosleep: Rewrite to use new dtotimespec module.
50066         It has the conversion code that used to be in xnanosleep.
50067         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50068         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50069         (TIME_T_MAX): Remove.
50070         (xnanosleep): Rewrite in terms of dtotimespec.
50071         * modules/xnanosleep (Depends-on): Add dtotimespec.
50072         Remove intprops, stdbool.
50074         timespec-add, timespec-sub: new modules
50075         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50076         * lib/timespec-add.c, lib/timespec-sub.c:
50077         * modules/timespec-add, modules/timespec-sub: New files.
50079         dtotimespec: new module
50080         * lib/timespec.h (dtotimespec): New decl.
50081         * lib/dtotimespec.c, modules/dtotimespec: New files.
50083         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50085         pselect: new module
50086         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50087         (pselect): New decls.
50088         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50089         since the standard pselect decl uses 'restrict'.
50090         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50091         HAVE_PSELECT, REPLACE_PSELECT.
50092         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50093         HAVE_PSELECT, REPLACE_PSELECT.
50094         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50096         sys_select: don't depend on sys_socket
50097         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50098         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50099         This fix works on GNU and GNU-like platforms, but has not been tested
50100         on native Windows.
50101         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50102         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50103         gl_HEADER_SYS_SOCKET.
50104         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50105         gl_PREREQ_SYS_H_WINSOCK2.
50107 2011-06-29  Eric Blake  <eblake@redhat.com>
50109         pipe2: fix C89 compile problem
50110         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50111         Reported by Bruno Haible.
50113         pipe, pipe2: don't corrupt fd on error
50114         * lib/pipe.c (pipe): Leave fd unchanged on error.
50115         * lib/pipe2.c (pipe2): Likewise.
50116         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50117         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50119 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50121         mmap-anon: do not use regular expressions inadvertently
50122         * m4/mmap-anon.m4: Remove trailing period from strings sought
50123         in the output.
50125 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50127         nanosleep: fix integer overflow problem
50128         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50129         arithmetic wraps around on overflow.
50131         nanosleep: simplify carrying
50132         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50133         first call to the underyling nanosleep, not for the last one.
50134         This doesn't fix any bugs, but it simplifies the computation of
50135         the remaining delay.  Found while auditing integer overflow issues.
50137         dup2: remove test for existence of fcntl
50138         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50139         "#if HAVE_FCNTL", in the configure-time test program.
50140         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50141         and therefore speeds up "configure" a bit.  Found while
50142         adding the dup2 module to Emacs.
50144 2011-06-24  Eric Blake  <eblake@redhat.com>
50146         maint.mk: enhance useless header checks
50147         * top/maint.mk (_sc_header_without_use): Check both include
50148         styles.
50149         (sc_prohibit_assert_without_use)
50150         (sc_prohibit_close_stream_without_use)
50151         (sc_prohibit_getopt_without_use)
50152         (sc_prohibit_quotearg_without_use)
50153         (sc_prohibit_quote_without_use)
50154         (sc_prohibit_long_options_without_use)
50155         (sc_prohibit_inttostr_without_use)
50156         (sc_prohibit_ignore_value_without_use)
50157         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50158         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50159         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50160         (sc_prohibit_hash_pjw_without_use)
50161         (sc_prohibit_safe_read_without_use)
50162         (sc_prohibit_argmatch_without_use)
50163         (sc_prohibit_canonicalize_without_use)
50164         (sc_prohibit_root_dev_ino_without_use)
50165         (sc_prohibit_openat_without_use)
50166         (sc_prohibit_c_ctype_without_use)
50167         (sc_prohibit_signal_without_use)
50168         (sc_prohibit_stdio--_without_use)
50169         (sc_prohibit_stdio-safer_without_use)
50170         (sc_prohibit_strings_without_use)
50171         (sc_prohibit_intprops_without_use)
50172         (sc_prohibit_stddef_without_use)
50173         (sc_prohibit_xfreopen_without_use): Update clients.
50175 2011-06-24  Jim Meyering  <meyering@redhat.com>
50177         syntax-check: keep one maint.mk rule in sync with its header
50178         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50179         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50180         I prefer to avoid temporary files here, so use <(...), but that
50181         is not supported by /bin/sh, so...
50182         (SHELL): Define to /bin/bash.
50184 2011-06-24  Eric Blake  <eblake@redhat.com>
50186         maint.mk: update sc_prohibit_intprops_without_use
50187         * top/maint.mk (_intprops_names): Match recent changes.
50189 2011-06-24  Bruno Haible  <bruno@clisp.org>
50191         strerror-override: No-op tweak.
50192         * lib/strerror-override.h (strerror_override): Reorder conditions,
50193         for consistency with lib/strerror-override.c.
50195 2011-06-23  Eric Blake  <eblake@redhat.com>
50197         maint.mk: test further PATH_MAX issues
50198         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50199         (sc_prohibit_path_max_allocation): ...and also test alloca.
50200         Suggested by Jim Meyering.
50202 2011-06-22  Eric Blake  <eblake@redhat.com>
50204         maint.mk: add syntax-check to avoid char[PATH_MAX]
50205         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50207         stat: be robust to PATH_MAX definition
50208         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
50209         * modules/stat (Depends-on): Add verify.
50211         link: work around IRIX bug
50212         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
50213         * lib/link.c (rpl_link): Work around it.
50214         * tests/test-link.h (test_link): Enhance test.
50215         * doc/posix-functions/link.texi (link): Document the bug.
50217         getopt: silence clang warning
50218         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
50219         dereference.
50220         Reported by Gustavo Martin Domato.
50222 2011-06-22  Jim Meyering  <meyering@redhat.com>
50224         bootstrap: do not insert a blank line into each .gitignore file
50225         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
50227 2011-06-21  Eric Blake  <eblake@redhat.com>
50229         perror: test for output mismatch
50230         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
50231         perror on IRIX.
50233         strerror_r: fix OpenBSD behavior on out-of-range
50234         * lib/strerror_r.c (strerror_r): Always use maximal string.
50235         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50237         strerror_r: fix OpenBSD behavior on 0
50238         * lib/strerror-override.c (strerror_override): Also override 0
50239         when needed.
50240         * lib/strerror-override.h (strerror_override): Likewise.
50241         * lib/strerror.c (strerror): Simplify, now that 0 override is done
50242         earlier.
50243         * lib/strerror_r.c (strerror_r): Likewise.
50244         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
50245         behavior...
50246         (gl_FUNC_STRERROR_0): ...into new macro.
50247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
50248         is overridden.
50249         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50250         * modules/strerror-override (Files): Add strerror.m4.
50251         (configure.ac): Also provide override for 0 when needed.
50252         * doc/posix-functions/strerror.texi (strerror): Document this.
50253         * doc/posix-functions/perror.texi (perror): Likewise.
50255         perror: adjust array size
50256         * modules/perror (Depends-on): Add strerror-override.
50257         * lib/perror.c (perror): Use it to avoid magic number.
50259         strerror-override: reduce size
50260         * lib/strerror-override.c (strerror_override): Use fewer lines.
50262 2011-06-20  Bruno Haible  <bruno@clisp.org>
50264         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50265         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50267 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50269         alloca: port to compilers that can optimize like GCC 4.6.0
50270         * lib/alloca.c (find_stack_direction): New signature, taken from
50271         Autoconf git.  This works with GCC 4.6.0.  This code should never
50272         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50273         be used with other compilers that optimize as well as GCC 4.6.0 does.
50274         (alloca): Adjust to new signature.
50275         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50276         New macro, which patches Autoconf in a similar way.
50278         c-stack: stop worrying about stack direction
50279         * lib/c-stack.c (find_stack_direction): Remove.
50280         (segv_handler): Don't worry about stack direction growth, as it's
50281         too much of a pain to configure this correctly, given how compilers
50282         are optimizing-away our stack-growth detection code.  Instead, assume
50283         that any access to just before or just after the stack is OK.
50284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50285         Don't require AC_FUNC_ALLOCA; no longer needed.
50287 2011-06-20  Eric Blake  <eblake@redhat.com>
50289         test-stat: don't allocate PATH_MAX bytes
50290         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50291         PATH_MAX-sized buffer.
50292         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50293         * modules/stat-tests (Depends-on): Likewise.
50294         * tests/test-fstatat.c (includes): Drop pathmax.h.
50295         * tests/test-stat.c (includes): Likewise.
50296         Reported by Bruno Haible.
50298 2011-06-20  Bruno Haible  <bruno@clisp.org>
50300         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50301         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50302         * lib/float.c: New file.
50303         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50304         REPLACE_FLOAT_LDBL.
50305         * modules/float (Files): Add lib/float.c.
50306         (configure.ac): Invoke AC_LIBOBJ.
50307         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50309 2011-06-20  Bruno Haible  <bruno@clisp.org>
50311         Tests for module 'float'.
50312         * modules/float-tests: New file.
50313         * tests/test-float.c: New file.
50315 2011-06-19  Bruno Haible  <bruno@clisp.org>
50317         isinf: Coding style.
50318         * lib/isinf.c: Use GNU coding style.
50320 2011-06-19  Bruno Haible  <bruno@clisp.org>
50322         linkat test: Avoid test failure on AIX 7.1.
50323         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50324         * tests/test-link.h (test_link): Likewise.
50326 2011-06-19  Bruno Haible  <bruno@clisp.org>
50328         pread test: Avoid test failure on OpenBSD 4.9.
50329         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50331 2011-06-19  Bruno Haible  <bruno@clisp.org>
50333         sprintf-posix: Fix test failure on AIX 7.1.
50334         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50335         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50336         on AIX.
50337         * doc/posix-functions/fprintf.texi: Likewise.
50338         * doc/posix-functions/printf.texi: Likewise.
50339         * doc/posix-functions/snprintf.texi: Likewise.
50340         * doc/posix-functions/sprintf.texi: Likewise.
50341         * doc/posix-functions/vdprintf.texi: Likewise.
50342         * doc/posix-functions/vfprintf.texi: Likewise.
50343         * doc/posix-functions/vprintf.texi: Likewise.
50344         * doc/posix-functions/vsnprintf.texi: Likewise.
50345         * doc/posix-functions/vsprintf.texi: Likewise.
50347 2011-06-19  Bruno Haible  <bruno@clisp.org>
50349         roundl-ieee: Fix test failure on AIX 7.1.
50350         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50351         * doc/posix-functions/roundl.texi: Mention problem with negative
50352         arguments.
50354 2011-06-19  Bruno Haible  <bruno@clisp.org>
50356         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50357         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50358         * doc/posix-functions/round.texi: Mention problem with negative
50359         arguments.
50360         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50362 2011-06-19  Bruno Haible  <bruno@clisp.org>
50364         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50365         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50366         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50367         * doc/posix-functions/roundf.texi: Mention problem with negative
50368         arguments.
50369         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50371 2011-06-19  Bruno Haible  <bruno@clisp.org>
50373         ceilf-ieee: Work around bug on MacOS X 10.5.
50374         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50376         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50377         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50378         IEEE compliant, avoid compiler optimizations.
50379         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50380         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50381         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
50382         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50383         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50384         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50386         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50387         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
50388         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
50390 2011-06-19  Bruno Haible  <bruno@clisp.org>
50392         ceilf-ieee: Work around bug on AIX 7.1.
50393         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
50394         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
50396 2011-06-19  Bruno Haible  <bruno@clisp.org>
50398         ceil-ieee: Work around bug on AIX 7.1.
50399         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
50400         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
50402 2011-06-18  Bruno Haible  <bruno@clisp.org>
50404         fsync test: Avoid test failure on MacOS X and AIX.
50405         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
50406         EINVAL.
50408 2011-06-18  Bruno Haible  <bruno@clisp.org>
50410         openat, fdopendir tests: Fix link errors.
50411         * modules/openat-tests (Depends-on): Add progname.
50412         * modules/fdopendir-tests (Depends-on): Likewise.
50413         * tests/test-fchownat.c: Include progname.h.
50414         (main): Call set_program_name.
50415         * tests/test-fstatat.c: Include progname.h.
50416         (main): Call set_program_name.
50417         * tests/test-mkdirat.c: Include progname.h.
50418         (main): Call set_program_name.
50419         * tests/test-openat.c: Include progname.h.
50420         (main): Call set_program_name.
50421         * tests/test-unlinkat.c: Include progname.h.
50422         (main): Call set_program_name.
50423         * tests/test-fdopendir.c: Include progname.h.
50424         (main): Call set_program_name.
50426 2011-06-18  Bruno Haible  <bruno@clisp.org>
50428         Doc update.
50429         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
50430         HP-UX.
50431         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
50433 2011-06-18  Bruno Haible  <bruno@clisp.org>
50435         getcwd tests: Avoid compilation error on HP-UX 11.31.
50436         * modules/getcwd-tests (Depends-on): Add pathmax.
50437         * tests/test-getcwd.c: Include pathmax.h.
50439 2011-06-18  Bruno Haible  <bruno@clisp.org>
50441         isfinite, isinf: Fix link error on AIX 6 and 7.
50442         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
50443         needed, also test the macro with a 'float' argument.
50444         * m4/isinf.m4 (gl_ISINF): Likewise.
50446 2011-06-18  Bruno Haible  <bruno@clisp.org>
50448         getloadavg: Don't clobber LIBS. Regression from previous commit.
50449         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
50450         AC_CHECK_LIB from here...
50451         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
50452         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
50453         gl_func_getloadavg_done.
50454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50456 2011-06-18  Bruno Haible  <bruno@clisp.org>
50458         clean-temp: Improve documentation.
50459         * lib/clean-temp.h: Explain better how to use this module.
50460         Reported by John Darrington <john@darrington.wattle.id.au>.
50462 2011-06-17  Bruno Haible  <bruno@clisp.org>
50464         pread, pwrite: Avoid cc warning on AIX.
50465         * lib/unistd.in.h (pread): Undefine before defining as a macro.
50466         (pwrite): Likewise.
50468 2011-06-17  Bruno Haible  <bruno@clisp.org>
50470         spawn-pipe tests: Fix link error.
50471         * tests/test-spawn-pipe-child.c: Undefine fprintf.
50472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50474 2011-06-17  Bruno Haible  <bruno@clisp.org>
50476         Tests: Remove unnecessary dependency.
50477         * modules/canonicalize-tests (Depends-on): Remove progname.
50478         * modules/chown-tests (Depends-on): Likewise.
50479         * modules/dirname-tests (Depends-on): Likewise.
50480         * modules/fdopendir-tests (Depends-on): Likewise.
50481         * modules/fdutimensat-tests (Depends-on): Likewise.
50482         * modules/hash-tests (Depends-on): Likewise.
50483         * modules/lchown-tests (Depends-on): Likewise.
50484         * modules/linkat-tests (Depends-on): Likewise.
50485         * modules/renameat-tests (Depends-on): Likewise.
50486         * modules/spawn-pipe-tests (Depends-on): Likewise.
50487         * modules/utimensat-tests (Depends-on): Likewise.
50489 2011-06-17  Bruno Haible  <bruno@clisp.org>
50491         spawn-pipe tests: Fix link error.
50492         * tests/test-spawn-pipe-child.c: Undefine fflush.
50494 2011-06-17  Bruno Haible  <bruno@clisp.org>
50496         Fix tests link errors.
50497         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
50498         * modules/chown-tests (Makefile.am): Don't link test-chown with
50499         LIBINTL.
50500         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
50501         LIBINTL.
50502         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
50503         LIBINTL.
50504         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
50505         LIBINTL.
50507 2011-06-16  Bruno Haible  <bruno@clisp.org>
50509         crypto/gc-sha1: Fix recent regression.
50510         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
50511         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
50513         crypto/gc-md5: Fix recent regression.
50514         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
50516         crypto/gc-md4: Fix recent regression.
50517         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
50518         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
50520         crypto/gc-arctwo: Fix recent regression.
50521         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
50522         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
50524         crypto/gc-rijndael: Fix recent regression.
50525         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
50526         (configure.ac): Invoke AC_LIBOBJ here.
50527         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
50528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50530         crypto/gc-hmac-sha1: Fix recent regression.
50531         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
50532         (configure.ac): Invoke AC_LIBOBJ here.
50533         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
50534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50536         crypto/gc-hmac-md5: Fix recent regression.
50537         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
50538         (configure.ac): Invoke AC_LIBOBJ here.
50539         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
50540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50542         crypto/gc-des: Fix recent regression.
50543         * modules/crypto/gc-des (Files): Remove m4/des.m4.
50544         (configure.ac): Invoke AC_LIBOBJ here.
50545         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
50546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50548         crypto/gc-arcfour: Fix recent regression.
50549         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
50550         (configure.ac): Invoke AC_LIBOBJ here.
50551         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
50552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50554 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
50556         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
50557         After the 2011-05-21 change, this macro requires
50558         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
50559         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50561 2011-06-16  Bruno Haible  <bruno@clisp.org>
50563         fprintftime: Move AC_LIBOBJ invocations to module description.
50564         * m4/fprintftime.m4: Remove file.
50565         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
50566         (configure.ac): Remove gl_FPRINTFTIME call.
50567         (Makefile.am): Augment lib_SOURCES.
50568         Reported by Jim Meyering.
50570 2011-06-16  Bruno Haible  <bruno@clisp.org>
50572         tmpfile-safer: Finish 2011-05-23 commit.
50573         * m4/stdio-safer.m4: Really remove file.
50574         Reported by Jim Meyering.
50576 2011-06-16  Bruno Haible  <bruno@clisp.org>
50578         syntax-check: Fix typo.
50579         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
50580         printf-posix.m4.
50581         Reported by Jim Meyering.
50583 2011-06-13  Jim Meyering  <meyering@redhat.com>
50585         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
50586         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
50588 2011-05-23  Bruno Haible  <bruno@clisp.org>
50590         yesno: Move AC_LIBOBJ invocations to module description.
50591         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
50592         * modules/yesno (Makefile.am): Augment lib_SOURCES.
50594 2011-05-23  Bruno Haible  <bruno@clisp.org>
50596         xstrtol: Move AC_LIBOBJ invocations to module description.
50597         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
50598         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
50600 2011-05-23  Bruno Haible  <bruno@clisp.org>
50602         xstrtold: Move AC_LIBOBJ invocations to module description.
50603         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
50604         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
50606 2011-05-23  Bruno Haible  <bruno@clisp.org>
50608         xstrtod: Move AC_LIBOBJ invocations to module description.
50609         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
50610         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
50612 2011-05-23  Bruno Haible  <bruno@clisp.org>
50614         xnanosleep: Move AC_LIBOBJ invocations to module description.
50615         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
50616         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
50618 2011-05-23  Bruno Haible  <bruno@clisp.org>
50620         xgetcwd: Move AC_LIBOBJ invocations to module description.
50621         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
50622         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
50624 2011-05-23  Bruno Haible  <bruno@clisp.org>
50626         xalloc: Move AC_LIBOBJ invocations to module description.
50627         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
50628         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
50630 2011-05-23  Bruno Haible  <bruno@clisp.org>
50632         write-any-file: Move AC_LIBOBJ invocations to module description.
50633         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
50634         invocation.
50635         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
50637 2011-05-23  Bruno Haible  <bruno@clisp.org>
50639         utimens: Move AC_LIBOBJ invocations to module description.
50640         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
50641         * modules/utimens (Makefile.am): Augment lib_SOURCES.
50643 2011-05-23  Bruno Haible  <bruno@clisp.org>
50645         utimecmp: Move AC_LIBOBJ invocations to module description.
50646         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
50647         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
50649 2011-05-23  Bruno Haible  <bruno@clisp.org>
50651         userspec: Move AC_LIBOBJ invocations to module description.
50652         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
50653         * modules/userspec (Makefile.am): Augment lib_SOURCES.
50655 2011-05-23  Bruno Haible  <bruno@clisp.org>
50657         unlinkdir: Move AC_LIBOBJ invocations to module description.
50658         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
50659         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
50661 2011-05-23  Bruno Haible  <bruno@clisp.org>
50663         unistd-safer: Move AC_LIBOBJ invocations to module description.
50664         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
50665         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
50667 2011-05-23  Bruno Haible  <bruno@clisp.org>
50669         tempname: Move AC_LIBOBJ invocations to module description.
50670         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
50671         * modules/tempname (Makefile.am): Augment lib_SOURCES.
50673 2011-05-23  Bruno Haible  <bruno@clisp.org>
50675         strftime: Move AC_LIBOBJ invocations to module description.
50676         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
50677         * modules/strftime (Makefile.am): Augment lib_SOURCES.
50679 2011-05-23  Bruno Haible  <bruno@clisp.org>
50681         stdlib-safer: Move AC_LIBOBJ invocations to module description.
50682         * m4/stdlib-safer.m4: Remove file.
50683         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
50684         (configure.ac): Remove gl_STDLIB_SAFER call.
50685         (Makefile.am): Augment lib_SOURCES.
50687 2011-05-23  Bruno Haible  <bruno@clisp.org>
50689         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
50690         * m4/stdio-safer.m4: Remove file.
50691         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
50692         (configure.ac): Remove gl_TMPFILE_SAFER call.
50693         (Makefile.am): Augment lib_SOURCES.
50695 2011-05-23  Bruno Haible  <bruno@clisp.org>
50697         popen-safer: Move AC_LIBOBJ invocations to module description.
50698         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
50699         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
50700         (configure.ac): Remove gl_POPEN_SAFER call.
50701         (Makefile.am): Augment lib_SOURCES.
50703 2011-05-23  Bruno Haible  <bruno@clisp.org>
50705         freopen-safer: Move AC_LIBOBJ invocations to module description.
50706         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
50707         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
50708         (configure.ac): Remove gl_FREOPEN_SAFER call.
50709         (Makefile.am): Augment lib_SOURCES.
50711 2011-05-23  Bruno Haible  <bruno@clisp.org>
50713         fopen-safer: Move AC_LIBOBJ invocations to module description.
50714         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
50715         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
50716         (configure.ac): Remove gl_FOPEN_SAFER call.
50717         (Makefile.am): Augment lib_SOURCES.
50719 2011-05-23  Bruno Haible  <bruno@clisp.org>
50721         crypto/sha512: Move AC_LIBOBJ invocations to module description.
50722         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
50723         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
50725 2011-05-23  Bruno Haible  <bruno@clisp.org>
50727         crypto/sha256: Move AC_LIBOBJ invocations to module description.
50728         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
50729         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
50731 2011-05-23  Bruno Haible  <bruno@clisp.org>
50733         crypto/sha1: Move AC_LIBOBJ invocations to module description.
50734         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
50735         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
50737 2011-05-23  Bruno Haible  <bruno@clisp.org>
50739         settime: Move AC_LIBOBJ invocations to module description.
50740         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
50741         * modules/settime (Makefile.am): Augment lib_SOURCES.
50743 2011-05-23  Bruno Haible  <bruno@clisp.org>
50745         savedir: Move AC_LIBOBJ invocations to module description.
50746         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
50747         * modules/savedir (Makefile.am): Augment lib_SOURCES.
50749 2011-05-23  Bruno Haible  <bruno@clisp.org>
50751         save-cwd: Move AC_LIBOBJ invocations to module description.
50752         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
50753         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
50755 2011-05-23  Bruno Haible  <bruno@clisp.org>
50757         same: Move AC_LIBOBJ invocations to module description.
50758         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
50759         * modules/same (Makefile.am): Augment lib_SOURCES.
50761 2011-05-23  Bruno Haible  <bruno@clisp.org>
50763         safe-write: Move AC_LIBOBJ invocations to module description.
50764         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
50765         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
50766         instead of gl_SAFE_WRITE.
50767         (Makefile.am): Augment lib_SOURCES.
50769 2011-05-23  Bruno Haible  <bruno@clisp.org>
50771         safe-read: Move AC_LIBOBJ invocations to module description.
50772         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
50773         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
50774         of gl_SAFE_READ.
50775         (Makefile.am): Augment lib_SOURCES.
50777 2011-05-23  Bruno Haible  <bruno@clisp.org>
50779         safe-alloc: Move AC_LIBOBJ invocations to module description.
50780         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
50781         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
50783 2011-05-23  Bruno Haible  <bruno@clisp.org>
50785         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
50786         * m4/rijndael.m4: Remove file.
50787         * modules/crypto/rijndael (Files): Remove it.
50788         (configure.ac): Remove gl_RIJNDAEL call.
50789         (Makefile.am): Augment lib_SOURCES.
50791 2011-05-23  Bruno Haible  <bruno@clisp.org>
50793         readtokens: Move AC_LIBOBJ invocations to module description.
50794         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
50795         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
50797 2011-05-23  Bruno Haible  <bruno@clisp.org>
50799         read-file: Move AC_LIBOBJ invocations to module description.
50800         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
50801         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
50802         of gl_FUNC_READ_FILE.
50803         (Makefile.am): Augment lib_SOURCES.
50805 2011-05-23  Bruno Haible  <bruno@clisp.org>
50807         quotearg: Move AC_LIBOBJ invocations to module description.
50808         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
50809         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
50811 2011-05-23  Bruno Haible  <bruno@clisp.org>
50813         quote: Move AC_LIBOBJ invocations to module description.
50814         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
50815         * modules/quote (Makefile.am): Augment lib_SOURCES.
50817 2011-05-23  Bruno Haible  <bruno@clisp.org>
50819         posixver: Move AC_LIBOBJ invocations to module description.
50820         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
50821         * modules/posixver (Makefile.am): Augment lib_SOURCES.
50823 2011-05-23  Bruno Haible  <bruno@clisp.org>
50825         posixtm: Move AC_LIBOBJ invocations to module description.
50826         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
50827         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
50829 2011-05-23  Bruno Haible  <bruno@clisp.org>
50831         physmem: Move AC_LIBOBJ invocations to module description.
50832         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
50833         * modules/physmem (Makefile.am): Augment lib_SOURCES.
50835 2011-05-23  Bruno Haible  <bruno@clisp.org>
50837         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
50838         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
50839         invocation.
50840         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
50842 2011-05-23  Bruno Haible  <bruno@clisp.org>
50844         mpsort: Move AC_LIBOBJ invocations to module description.
50845         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
50846         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
50848 2011-05-23  Bruno Haible  <bruno@clisp.org>
50850         modechange: Move AC_LIBOBJ invocations to module description.
50851         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
50852         * modules/modechange (Makefile.am): Augment lib_SOURCES.
50854 2011-05-23  Bruno Haible  <bruno@clisp.org>
50856         mkdir-p: Move AC_LIBOBJ invocations to module description.
50857         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
50858         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
50860 2011-05-23  Bruno Haible  <bruno@clisp.org>
50862         mkancesdirs: Move AC_LIBOBJ invocations to module description.
50863         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
50864         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
50866 2011-05-23  Bruno Haible  <bruno@clisp.org>
50868         mgetgroups: Move AC_LIBOBJ invocations to module description.
50869         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
50870         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
50872 2011-05-23  Bruno Haible  <bruno@clisp.org>
50874         memxor: Move AC_LIBOBJ invocations to module description.
50875         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
50876         * modules/memxor (Makefile.am): Augment lib_SOURCES.
50878 2011-05-23  Bruno Haible  <bruno@clisp.org>
50880         memcoll: Move AC_LIBOBJ invocations to module description.
50881         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
50882         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
50884 2011-05-23  Bruno Haible  <bruno@clisp.org>
50886         memcasecmp: Move AC_LIBOBJ invocations to module description.
50887         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
50888         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
50890 2011-05-23  Bruno Haible  <bruno@clisp.org>
50892         crypto/md5: Move AC_LIBOBJ invocations to module description.
50893         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
50894         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
50896 2011-05-23  Bruno Haible  <bruno@clisp.org>
50898         crypto/md4: Move AC_LIBOBJ invocations to module description.
50899         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
50900         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
50902 2011-05-23  Bruno Haible  <bruno@clisp.org>
50904         crypto/md2: Move AC_LIBOBJ invocations to module description.
50905         * m4/md2.m4: Remove file.
50906         * modules/crypto/md2 (Files): Remove it.
50907         (configure.ac): Remove gl_MD2 call.
50908         (Makefile.am): Augment lib_SOURCES.
50910 2011-05-23  Bruno Haible  <bruno@clisp.org>
50912         long-options: Move AC_LIBOBJ invocations to module description.
50913         * m4/long-options.m4: Remove file.
50914         * modules/long-options (Files): Remove it.
50915         (configure.ac): Remove gl_LONG_OPTIONS call.
50916         (Makefile.am): Augment lib_SOURCES.
50918 2011-05-23  Bruno Haible  <bruno@clisp.org>
50920         i-ring: Move AC_LIBOBJ invocations to module description.
50921         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
50922         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
50924 2011-05-23  Bruno Haible  <bruno@clisp.org>
50926         idcache: Move AC_LIBOBJ invocations to module description.
50927         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
50928         * modules/idcache (Makefile.am): Augment lib_SOURCES.
50930 2011-05-23  Bruno Haible  <bruno@clisp.org>
50932         human: Move AC_LIBOBJ invocations to module description.
50933         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
50934         * modules/human (Makefile.am): Augment lib_SOURCES.
50936 2011-05-23  Bruno Haible  <bruno@clisp.org>
50938         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
50939         * m4/hmac-sha1.m4: Remove file.
50940         * modules/crypto/hmac-sha1 (Files): Remove it.
50941         (configure.ac): Remove gl_HMAC_SHA1 call.
50942         (Makefile.am): Augment lib_SOURCES.
50944 2011-05-23  Bruno Haible  <bruno@clisp.org>
50946         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
50947         * m4/hmac-md5.m4: Remove file.
50948         * modules/crypto/hmac-md5 (Files): Remove it.
50949         (configure.ac): Remove gl_HMAC_MD5 call.
50950         (Makefile.am): Augment lib_SOURCES.
50952 2011-05-23  Bruno Haible  <bruno@clisp.org>
50954         hash: Move AC_LIBOBJ invocations to module description.
50955         * m4/hash.m4: Remove file.
50956         * modules/hash (Files): Remove it.
50957         (configure.ac): Remove gl_HASH call.
50958         (Makefile.am): Augment lib_SOURCES.
50960 2011-05-23  Bruno Haible  <bruno@clisp.org>
50962         hard-locale: Move AC_LIBOBJ invocations to module description.
50963         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
50964         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
50966 2011-05-23  Bruno Haible  <bruno@clisp.org>
50968         getugroups: Move AC_LIBOBJ invocations to module description.
50969         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
50970         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
50972 2011-05-23  Bruno Haible  <bruno@clisp.org>
50974         gettime: Move AC_LIBOBJ invocations to module description.
50975         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
50976         * modules/gettime (Makefile.am): Augment lib_SOURCES.
50978 2011-05-23  Bruno Haible  <bruno@clisp.org>
50980         getndelim2: Move AC_LIBOBJ invocations to module description.
50981         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
50982         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
50984 2011-05-23  Bruno Haible  <bruno@clisp.org>
50986         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
50987         * m4/gc-pbkdf2-sha1.m4: Remove file.
50988         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
50989         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
50990         (Makefile.am): Augment lib_SOURCES.
50992 2011-05-23  Bruno Haible  <bruno@clisp.org>
50994         fts: Move AC_LIBOBJ invocations to module description.
50995         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
50996         * modules/fts (configure.ac): ... to here.
50998 2011-05-23  Bruno Haible  <bruno@clisp.org>
51000         file-type: Move AC_LIBOBJ invocations to module description.
51001         * m4/file-type.m4: Remove file.
51002         * modules/file-type (Files): Remove it.
51003         (configure.ac): Remove gl_FILE_TYPE call.
51004         (Makefile.am): Augment lib_SOURCES.
51006 2011-05-23  Bruno Haible  <bruno@clisp.org>
51008         filenamecat*: Respect rules for use of AC_LIBOBJ.
51009         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51010         Remove AC_LIBOBJ invocation.
51011         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51012         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51014 2011-05-23  Bruno Haible  <bruno@clisp.org>
51016         filemode: Move AC_LIBOBJ invocations to module description.
51017         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51018         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51020 2011-05-23  Bruno Haible  <bruno@clisp.org>
51022         openat-safer: Move AC_LIBOBJ invocations to module description.
51023         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51024         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51026 2011-05-23  Bruno Haible  <bruno@clisp.org>
51028         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51029         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51030         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51032 2011-05-23  Bruno Haible  <bruno@clisp.org>
51034         exclude: Move AC_LIBOBJ invocations to module description.
51035         * m4/exclude.m4: Remove file.
51036         * modules/exclude (Files): Remove it.
51037         (configure.ac): Remove gl_EXCLUDE call.
51038         (Makefile.am): Augment lib_SOURCES.
51040 2011-05-23  Bruno Haible  <bruno@clisp.org>
51042         dirname*: Respect rules for use of AC_LIBOBJ.
51043         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51044         invocations.
51045         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51046         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51048 2011-05-23  Bruno Haible  <bruno@clisp.org>
51050         dirent-safer: Move AC_LIBOBJ invocations to module description.
51051         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51052         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51054 2011-05-23  Bruno Haible  <bruno@clisp.org>
51056         crypto/des: Move AC_LIBOBJ invocations to module description.
51057         * m4/des.m4: Remove file.
51058         * modules/crypto/des (Files): Remove it.
51059         (configure.ac): Remove gl_DES call.
51060         (Makefile.am): Augment lib_SOURCES.
51062 2011-05-23  Bruno Haible  <bruno@clisp.org>
51064         cycle-check: Move AC_LIBOBJ invocations to module description.
51065         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51066         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51068 2011-05-23  Bruno Haible  <bruno@clisp.org>
51070         c-strtold: Move AC_LIBOBJ invocations to module description.
51071         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51072         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51074 2011-05-23  Bruno Haible  <bruno@clisp.org>
51076         c-strtod: Move AC_LIBOBJ invocations to module description.
51077         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51078         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51080 2011-05-23  Bruno Haible  <bruno@clisp.org>
51082         crc: Move AC_LIBOBJ invocations to module description.
51083         * m4/crc.m4: Remove file.
51084         * modules/crc (Files): Remove it.
51085         (configure.ac): Remove gl_CRC call.
51086         (Makefile.am): Augment lib_SOURCES.
51088 2011-05-23  Bruno Haible  <bruno@clisp.org>
51090         close-stream: Move AC_LIBOBJ invocations to module description.
51091         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51092         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51094 2011-05-23  Bruno Haible  <bruno@clisp.org>
51096         closeout: Move AC_LIBOBJ invocations to module description.
51097         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51098         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51100 2011-05-23  Bruno Haible  <bruno@clisp.org>
51102         closein: Move AC_LIBOBJ invocations to module description.
51103         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51104         * modules/closein (Makefile.am): Augment lib_SOURCES.
51106 2011-05-23  Bruno Haible  <bruno@clisp.org>
51108         cloexec: Move AC_LIBOBJ invocations to module description.
51109         * m4/cloexec.m4: Remove file.
51110         * modules/cloexec (Files): Remove it.
51111         (configure.ac): Remove gl_CLOEXEC call.
51112         (Makefile.am): Augment lib_SOURCES.
51114 2011-05-23  Bruno Haible  <bruno@clisp.org>
51116         check-version: Move AC_LIBOBJ invocations to module description.
51117         * m4/check-version.m4: Remove file.
51118         * modules/check-version (Files): Remove it.
51119         (configure.ac): Remove gl_CHECK_VERSION call.
51120         (Makefile.am): Augment lib_SOURCES.
51122 2011-05-23  Bruno Haible  <bruno@clisp.org>
51124         chdir-safer: Move AC_LIBOBJ invocations to module description.
51125         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51126         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51128 2011-05-23  Bruno Haible  <bruno@clisp.org>
51130         canonicalize: Move AC_LIBOBJ invocations to module description.
51131         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51132         AC_LIBOBJ invocation.
51133         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51135 2011-05-23  Bruno Haible  <bruno@clisp.org>
51137         canon-host: Move AC_LIBOBJ invocations to module description.
51138         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51139         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51140         instead of gl_CANON_HOST.
51141         (Makefile.am): Augment lib_SOURCES.
51143 2011-05-23  Bruno Haible  <bruno@clisp.org>
51145         backupfile: Move AC_LIBOBJ invocations to module description.
51146         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51147         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51149 2011-05-23  Bruno Haible  <bruno@clisp.org>
51151         argmatch: Move AC_LIBOBJ invocations to module description.
51152         * m4/argmatch.m4: Remove file.
51153         * modules/argmatch (Files): Remove it.
51154         (configure.ac): Remove gl_ARGMATCH call.
51155         (Makefile.am): Augment lib_SOURCES.
51157 2011-05-23  Bruno Haible  <bruno@clisp.org>
51159         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51160         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51161         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51163 2011-05-23  Bruno Haible  <bruno@clisp.org>
51165         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51166         * m4/arcfour.m4: Remove file.
51167         * modules/crypto/arcfour (Files): Remove it.
51168         (configure.ac): Remove gl_ARCFOUR call.
51169         (Makefile.am): Augment lib_SOURCES.
51171 2011-05-22  Bruno Haible  <bruno@clisp.org>
51173         write: Move AC_LIBOBJ invocations to module description.
51174         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51175         * modules/write (configure.ac): ... to here.
51177 2011-05-22  Bruno Haible  <bruno@clisp.org>
51179         wmemset: Move AC_LIBOBJ invocations to module description.
51180         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51181         here...
51182         * modules/wmemset (configure.ac): ... to here.
51184 2011-05-22  Bruno Haible  <bruno@clisp.org>
51186         wmemmove: Move AC_LIBOBJ invocations to module description.
51187         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51188         here...
51189         * modules/wmemmove (configure.ac): ... to here.
51191 2011-05-22  Bruno Haible  <bruno@clisp.org>
51193         wmemcpy: Move AC_LIBOBJ invocations to module description.
51194         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51195         here...
51196         * modules/wmemcpy (configure.ac): ... to here.
51198 2011-05-22  Bruno Haible  <bruno@clisp.org>
51200         wmemcmp: Move AC_LIBOBJ invocations to module description.
51201         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51202         here...
51203         * modules/wmemcmp (configure.ac): ... to here.
51205 2011-05-22  Bruno Haible  <bruno@clisp.org>
51207         wmemchr: Move AC_LIBOBJ invocations to module description.
51208         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
51209         here...
51210         * modules/wmemchr (configure.ac): ... to here.
51212 2011-05-22  Bruno Haible  <bruno@clisp.org>
51214         wcswidth: Move AC_LIBOBJ invocations to module description.
51215         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
51216         here...
51217         * modules/wcswidth (configure.ac): ... to here.
51219 2011-05-22  Bruno Haible  <bruno@clisp.org>
51221         wcwidth: Respect rules for use of AC_LIBOBJ.
51222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
51223         invocation from here...
51224         * modules/wcwidth (configure.ac): ... to here.
51225         (Depends-on): Update conditions.
51227 2011-05-22  Bruno Haible  <bruno@clisp.org>
51229         wctype: Move AC_LIBOBJ invocations to module description.
51230         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
51231         invocation from here...
51232         * modules/wctype (configure.ac): ... to here.
51233         (Depends-on): Update conditions.
51235 2011-05-22  Bruno Haible  <bruno@clisp.org>
51237         wctrans: Move AC_LIBOBJ invocations to module description.
51238         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
51239         invocation from here...
51240         * modules/wctrans (configure.ac): ... to here.
51242 2011-05-22  Bruno Haible  <bruno@clisp.org>
51244         wctomb: Move AC_LIBOBJ invocations to module description.
51245         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
51246         invocations from here...
51247         * modules/wctomb (configure.ac): ... to here.
51249 2011-05-22  Bruno Haible  <bruno@clisp.org>
51251         wctob: Move AC_LIBOBJ invocations to module description.
51252         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51253         gl_PREREQ_WCTOB invocations from here...
51254         * modules/wctob (configure.ac): ... to here.
51255         (Depends-on): Update conditions.
51257 2011-05-22  Bruno Haible  <bruno@clisp.org>
51259         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51260         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51261         here...
51262         * modules/wcsxfrm (configure.ac): ... to here.
51264 2011-05-22  Bruno Haible  <bruno@clisp.org>
51266         wcstok: Move AC_LIBOBJ invocations to module description.
51267         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51268         * modules/wcstok (configure.ac): ... to here.
51270 2011-05-22  Bruno Haible  <bruno@clisp.org>
51272         wcsstr: Move AC_LIBOBJ invocations to module description.
51273         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51274         * modules/wcsstr (configure.ac): ... to here.
51276 2011-05-22  Bruno Haible  <bruno@clisp.org>
51278         wcsspn: Move AC_LIBOBJ invocations to module description.
51279         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51280         * modules/wcsspn (configure.ac): ... to here.
51282 2011-05-22  Bruno Haible  <bruno@clisp.org>
51284         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51285         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51286         gl_PREREQ_WCSRTOMBS invocations from here...
51287         * modules/wcsrtombs (configure.ac): ... to here.
51289 2011-05-22  Bruno Haible  <bruno@clisp.org>
51291         wcsrchr: Move AC_LIBOBJ invocations to module description.
51292         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51293         here...
51294         * modules/wcsrchr (configure.ac): ... to here.
51296 2011-05-22  Bruno Haible  <bruno@clisp.org>
51298         wcspbrk: Move AC_LIBOBJ invocations to module description.
51299         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51300         here...
51301         * modules/wcspbrk (configure.ac): ... to here.
51303 2011-05-22  Bruno Haible  <bruno@clisp.org>
51305         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51306         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51307         gl_PREREQ_WCSNRTOMBS invocations from here...
51308         * modules/wcsnrtombs (configure.ac): ... to here.
51310 2011-05-22  Bruno Haible  <bruno@clisp.org>
51312         wcsnlen: Move AC_LIBOBJ invocations to module description.
51313         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51314         here...
51315         * modules/wcsnlen (configure.ac): ... to here.
51317 2011-05-22  Bruno Haible  <bruno@clisp.org>
51319         wcsncpy: Move AC_LIBOBJ invocations to module description.
51320         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51321         here...
51322         * modules/wcsncpy (configure.ac): ... to here.
51324 2011-05-22  Bruno Haible  <bruno@clisp.org>
51326         wcsncmp: Move AC_LIBOBJ invocations to module description.
51327         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51328         here...
51329         * modules/wcsncmp (configure.ac): ... to here.
51331 2011-05-22  Bruno Haible  <bruno@clisp.org>
51333         wcsncat: Move AC_LIBOBJ invocations to module description.
51334         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51335         here...
51336         * modules/wcsncat (configure.ac): ... to here.
51338 2011-05-22  Bruno Haible  <bruno@clisp.org>
51340         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51341         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51342         from here...
51343         * modules/wcsncasecmp (configure.ac): ... to here.
51345 2011-05-22  Bruno Haible  <bruno@clisp.org>
51347         wcslen: Move AC_LIBOBJ invocations to module description.
51348         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51349         * modules/wcslen (configure.ac): ... to here.
51351 2011-05-22  Bruno Haible  <bruno@clisp.org>
51353         wcsdup: Move AC_LIBOBJ invocations to module description.
51354         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51355         * modules/wcsdup (configure.ac): ... to here.
51357 2011-05-22  Bruno Haible  <bruno@clisp.org>
51359         wcscspn: Move AC_LIBOBJ invocations to module description.
51360         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51361         here...
51362         * modules/wcscspn (configure.ac): ... to here.
51364 2011-05-22  Bruno Haible  <bruno@clisp.org>
51366         wcscpy: Move AC_LIBOBJ invocations to module description.
51367         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51368         * modules/wcscpy (configure.ac): ... to here.
51370 2011-05-22  Bruno Haible  <bruno@clisp.org>
51372         wcscoll: Move AC_LIBOBJ invocations to module description.
51373         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51374         here...
51375         * modules/wcscoll (configure.ac): ... to here.
51377 2011-05-22  Bruno Haible  <bruno@clisp.org>
51379         wcscmp: Move AC_LIBOBJ invocations to module description.
51380         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
51381         * modules/wcscmp (configure.ac): ... to here.
51383 2011-05-22  Bruno Haible  <bruno@clisp.org>
51385         wcschr: Move AC_LIBOBJ invocations to module description.
51386         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
51387         * modules/wcschr (configure.ac): ... to here.
51389 2011-05-22  Bruno Haible  <bruno@clisp.org>
51391         wcscat: Move AC_LIBOBJ invocations to module description.
51392         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
51393         * modules/wcscat (configure.ac): ... to here.
51395 2011-05-22  Bruno Haible  <bruno@clisp.org>
51397         wcscasecmp: Move AC_LIBOBJ invocations to module description.
51398         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
51399         here...
51400         * modules/wcscasecmp (configure.ac): ... to here.
51402 2011-05-22  Bruno Haible  <bruno@clisp.org>
51404         wcrtomb: Move AC_LIBOBJ invocations to module description.
51405         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
51406         invocations from here...
51407         * modules/wcrtomb (configure.ac): ... to here.
51409 2011-05-22  Bruno Haible  <bruno@clisp.org>
51411         wcpncpy: Move AC_LIBOBJ invocations to module description.
51412         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
51413         here...
51414         * modules/wcpncpy (configure.ac): ... to here.
51416 2011-05-22  Bruno Haible  <bruno@clisp.org>
51418         wcpcpy: Move AC_LIBOBJ invocations to module description.
51419         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
51420         * modules/wcpcpy (configure.ac): ... to here.
51422 2011-05-22  Bruno Haible  <bruno@clisp.org>
51424         waitpid: Move AC_LIBOBJ invocations to module description.
51425         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
51426         invocation from here...
51427         * modules/waitpid (configure.ac): ... to here.
51429 2011-05-22  Bruno Haible  <bruno@clisp.org>
51431         utimensat: Move AC_LIBOBJ invocations to module description.
51432         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51433         here...
51434         * modules/utimensat (configure.ac): ... to here.
51436 2011-05-22  Bruno Haible  <bruno@clisp.org>
51438         usleep: Move AC_LIBOBJ invocations to module description.
51439         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
51440         here...
51441         * modules/usleep (configure.ac): ... to here.
51443 2011-05-22  Bruno Haible  <bruno@clisp.org>
51445         unlockpt: Move AC_LIBOBJ invocations to module description.
51446         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
51447         gl_PREREQ_UNLOCKPT invocations from here...
51448         * modules/unlockpt (configure.ac): ... to here.
51450 2011-05-22  Bruno Haible  <bruno@clisp.org>
51452         unlink: Respect rules for use of AC_LIBOBJ.
51453         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
51454         * modules/unlink (configure.ac): ... to here.
51456 2011-05-22  Bruno Haible  <bruno@clisp.org>
51458         uname: Move AC_LIBOBJ invocations to module description.
51459         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
51460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
51461         here...
51462         * modules/uname (configure.ac): ... to here.
51464 2011-05-22  Bruno Haible  <bruno@clisp.org>
51466         ttyname_r: Move AC_LIBOBJ invocations to module description.
51467         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
51468         gl_PREREQ_TTYNAME_R invocations from here...
51469         * modules/ttyname_r (configure.ac): ... to here.
51471 2011-05-22  Bruno Haible  <bruno@clisp.org>
51473         tsearch: Move AC_LIBOBJ invocations to module description.
51474         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
51475         invocations from here...
51476         * modules/tsearch (configure.ac): ... to here.
51478 2011-05-22  Bruno Haible  <bruno@clisp.org>
51480         towctrans: Move AC_LIBOBJ invocations to module description.
51481         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
51482         AC_LIBOBJ invocation from here...
51483         * modules/towctrans (configure.ac): ... to here.
51485 2011-05-22  Bruno Haible  <bruno@clisp.org>
51487         tmpfile: Move AC_LIBOBJ invocations to module description.
51488         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
51489         invocations from here...
51490         * modules/tmpfile (configure.ac): ... to here.
51492 2011-05-22  Bruno Haible  <bruno@clisp.org>
51494         times: Move AC_LIBOBJ invocations to module description.
51495         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
51496         * modules/times (configure.ac): ... to here.
51498 2011-05-22  Bruno Haible  <bruno@clisp.org>
51500         time_r: Move AC_LIBOBJ invocations to module description.
51501         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
51502         invocations from here...
51503         * modules/time_r (configure.ac): ... to here.
51505 2011-05-22  Bruno Haible  <bruno@clisp.org>
51507         timegm: Move AC_LIBOBJ invocations to module description.
51508         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
51509         invocations from here...
51510         * modules/timegm (configure.ac): ... to here.
51512 2011-05-22  Bruno Haible  <bruno@clisp.org>
51514         tcgetsid: Move AC_LIBOBJ invocations to module description.
51515         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
51516         and gl_PREREQ_TCGETSID invocations from here...
51517         * modules/tcgetsid (configure.ac): ... to here.
51518         (Depends-on): Update conditions.
51520 2011-05-22  Bruno Haible  <bruno@clisp.org>
51522         symlinkat: Move AC_LIBOBJ invocations to module description.
51523         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
51524         here...
51525         * modules/symlinkat (configure.ac): ... to here.
51527 2011-05-22  Bruno Haible  <bruno@clisp.org>
51529         symlink: Move AC_LIBOBJ invocations to module description.
51530         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
51531         here...
51532         * modules/symlink (configure.ac): ... to here.
51534 2011-05-22  Bruno Haible  <bruno@clisp.org>
51536         strverscmp: Move AC_LIBOBJ invocations to module description.
51537         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
51538         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
51539         from here...
51540         * modules/strverscmp (configure.ac): ... to here.
51542 2011-05-22  Bruno Haible  <bruno@clisp.org>
51544         strtok_r: Move AC_LIBOBJ invocations to module description.
51545         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
51546         and gl_PREREQ_STRTOK_R invocations from here...
51547         * modules/strtok_r (configure.ac): ... to here.
51548         (Depends-on): Update conditions.
51550 2011-05-22  Bruno Haible  <bruno@clisp.org>
51552         strtoumax: Move AC_LIBOBJ invocations to module description.
51553         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
51554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
51555         from here...
51556         * modules/strtoumax (configure.ac): ... to here.
51558 2011-05-22  Bruno Haible  <bruno@clisp.org>
51560         strtoimax: Move AC_LIBOBJ invocations to module description.
51561         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
51562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
51563         from here...
51564         * modules/strtoimax (configure.ac): ... to here.
51566 2011-05-22  Bruno Haible  <bruno@clisp.org>
51568         strtoull: Move AC_LIBOBJ invocations to module description.
51569         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
51570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
51571         from here...
51572         * modules/strtoull (configure.ac): ... to here.
51574 2011-05-22  Bruno Haible  <bruno@clisp.org>
51576         strtoll: Move AC_LIBOBJ invocations to module description.
51577         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
51578         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
51579         here...
51580         * modules/strtoll (configure.ac): ... to here.
51582 2011-05-22  Bruno Haible  <bruno@clisp.org>
51584         strtoul: Move AC_LIBOBJ invocations to module description.
51585         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
51586         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51587         * modules/strtoul (configure.ac): ... to here.
51589 2011-05-22  Bruno Haible  <bruno@clisp.org>
51591         strtol: Move AC_LIBOBJ invocations to module description.
51592         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
51593         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51594         * modules/strtol (configure.ac): ... to here.
51596 2011-05-22  Bruno Haible  <bruno@clisp.org>
51598         strtod: Move AC_LIBOBJ invocations to module description.
51599         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
51600         invocations from here...
51601         * modules/strtod (configure.ac): ... to here.
51603 2011-05-22  Bruno Haible  <bruno@clisp.org>
51605         strstr*: Move AC_LIBOBJ invocations to module description.
51606         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
51607         invocations from here...
51608         * modules/strstr-simple (configure.ac): ... to here.
51609         * modules/strstr (configure.ac): ... and here.
51611 2011-05-22  Bruno Haible  <bruno@clisp.org>
51613         strsignal: Move AC_LIBOBJ invocations to module description.
51614         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
51615         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
51616         * modules/strsignal (configure.ac): ... to here.
51617         (Depends-on): Update conditions.
51619 2011-05-22  Bruno Haible  <bruno@clisp.org>
51621         strsep: Move AC_LIBOBJ invocations to module description.
51622         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
51623         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
51624         here...
51625         * modules/strsep (configure.ac): ... to here.
51627 2011-05-22  Bruno Haible  <bruno@clisp.org>
51629         strptime: Move AC_LIBOBJ invocations to module description.
51630         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
51631         gl_PREREQ_STRPTIME invocations from here...
51632         * modules/strptime (configure.ac): ... to here.
51634 2011-05-22  Bruno Haible  <bruno@clisp.org>
51636         strpbrk: Move AC_LIBOBJ invocations to module description.
51637         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
51638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
51639         here...
51640         * modules/strpbrk (configure.ac): ... to here.
51642 2011-05-22  Bruno Haible  <bruno@clisp.org>
51644         strnlen: Move AC_LIBOBJ invocations to module description.
51645         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
51646         invocations from here...
51647         * modules/strnlen (configure.ac): ... to here.
51649 2011-05-22  Bruno Haible  <bruno@clisp.org>
51651         strndup: Move AC_LIBOBJ invocations to module description.
51652         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
51653         invocations from here...
51654         * modules/strndup (configure.ac): ... to here.
51655         (Depends-on): Update conditions.
51657 2011-05-22  Bruno Haible  <bruno@clisp.org>
51659         strncat: Move AC_LIBOBJ invocations to module description.
51660         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
51661         invocations from here...
51662         * modules/strncat (configure.ac): ... to here.
51664 2011-05-22  Bruno Haible  <bruno@clisp.org>
51666         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
51667         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
51668         invocations from here...
51669         * modules/strdup (configure.ac): ... to here.
51670         * modules/strdup-posix (configure.ac): ... and here.
51672 2011-05-22  Bruno Haible  <bruno@clisp.org>
51674         strcspn: Move AC_LIBOBJ invocations to module description.
51675         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
51676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
51677         here...
51678         * modules/strcspn (configure.ac): ... to here.
51680 2011-05-22  Bruno Haible  <bruno@clisp.org>
51682         strchrnul: Move AC_LIBOBJ invocations to module description.
51683         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
51684         gl_PREREQ_STRCHRNUL invocations from here...
51685         * modules/strchrnul (configure.ac): ... to here.
51687 2011-05-22  Bruno Haible  <bruno@clisp.org>
51689         strcasestr*: Move AC_LIBOBJ invocations to module description.
51690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
51691         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
51692         * modules/strcasestr-simple (configure.ac): ... to here.
51693         * modules/strcasestr (configure.ac): ... and here.
51695 2011-05-22  Bruno Haible  <bruno@clisp.org>
51697         strcase: Move AC_LIBOBJ invocations to module description.
51698         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
51699         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
51700         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
51701         gl_PREREQ_STRNCASECMP invocations from here...
51702         * modules/strcase (configure.ac): ... to here.
51704 2011-05-22  Bruno Haible  <bruno@clisp.org>
51706         stpncpy: Move AC_LIBOBJ invocations to module description.
51707         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
51708         here...
51709         * modules/stpncpy (configure.ac): ... to here.
51711 2011-05-22  Bruno Haible  <bruno@clisp.org>
51713         stpcpy: Move AC_LIBOBJ invocations to module description.
51714         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
51715         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
51716         here...
51717         * modules/stpcpy (configure.ac): ... to here.
51719 2011-05-21  Bruno Haible  <bruno@clisp.org>
51721         stat: Move AC_LIBOBJ invocations to module description.
51722         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
51723         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
51724         here...
51725         * modules/stat (configure.ac): ... to here.
51727 2011-05-21  Bruno Haible  <bruno@clisp.org>
51729         sleep: Move AC_LIBOBJ invocations to module description.
51730         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
51731         * modules/sleep (configure.ac): ... to here.
51733 2011-05-21  Bruno Haible  <bruno@clisp.org>
51735         signbit: Move AC_LIBOBJ invocations to module description.
51736         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
51737         * modules/signbit (configure.ac): ... to here.
51739 2011-05-21  Bruno Haible  <bruno@clisp.org>
51741         sigprocmask: Move AC_LIBOBJ invocations to module description.
51742         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
51743         gl_PREREQ_SIGPROMASK invocations from here...
51744         * modules/sigprocmask (configure.ac): ... to here.
51746 2011-05-21  Bruno Haible  <bruno@clisp.org>
51748         sigaction: Move AC_LIBOBJ invocations to module description.
51749         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
51750         gl_PREREQ_SIGACTION invocations from here...
51751         * modules/sigaction (configure.ac): ... to here.
51753 2011-05-21  Bruno Haible  <bruno@clisp.org>
51755         sig2str: Move AC_LIBOBJ invocations to module description.
51756         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
51757         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
51758         here...
51759         * modules/sig2str (configure.ac): ... to here.
51761 2011-05-21  Bruno Haible  <bruno@clisp.org>
51763         setlocale: Move AC_LIBOBJ invocations to module description.
51764         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
51765         gl_PREREQ_SETLOCALE invocations from here...
51766         * modules/setlocale (configure.ac): ... to here.
51768 2011-05-21  Bruno Haible  <bruno@clisp.org>
51770         unsetenv: Move AC_LIBOBJ invocations to module description.
51771         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
51772         and gl_PREREQ_UNSETENV invocations from here...
51773         * modules/unsetenv (configure.ac): ... to here.
51774         (Depends-on): Update.
51776 2011-05-21  Bruno Haible  <bruno@clisp.org>
51778         setenv: Move AC_LIBOBJ invocations to module description.
51779         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
51780         here...
51781         * modules/setenv (configure.ac): ... to here.
51783 2011-05-21  Bruno Haible  <bruno@clisp.org>
51785         selinux-h: Move AC_LIBOBJ invocations to module description.
51786         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
51787         AC_LIBOBJ invocation from here...
51788         * modules/selinux-h (configure.ac): ... to here.
51790 2011-05-21  Bruno Haible  <bruno@clisp.org>
51792         select: Respect rules for use of AC_LIBOBJ.
51793         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
51794         here...
51795         * modules/select (configure.ac): ... to here.
51797 2011-05-21  Bruno Haible  <bruno@clisp.org>
51799         scandir: Move AC_LIBOBJ invocations to module description.
51800         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
51801         invocations from here...
51802         * modules/scandir (configure.ac): ... to here.
51804 2011-05-21  Bruno Haible  <bruno@clisp.org>
51806         rpmatch: Move AC_LIBOBJ invocations to module description.
51807         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
51808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
51809         here...
51810         * modules/rpmatch (configure.ac): ... to here.
51812 2011-05-21  Bruno Haible  <bruno@clisp.org>
51814         rmdir: Respect rules for use of AC_LIBOBJ.
51815         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
51816         * modules/rmdir (configure.ac): ... to here.
51818 2011-05-21  Bruno Haible  <bruno@clisp.org>
51820         renameat: Move AC_LIBOBJ invocations to module description.
51821         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
51822         here...
51823         * modules/renameat (configure.ac): ... to here.
51825 2011-05-21  Bruno Haible  <bruno@clisp.org>
51827         rename: Respect rules for use of AC_LIBOBJ.
51828         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
51829         here...
51830         * modules/rename (configure.ac): ... to here.
51832 2011-05-21  Bruno Haible  <bruno@clisp.org>
51834         remove: Move AC_LIBOBJ invocations to module description.
51835         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
51836         here...
51837         * modules/remove (configure.ac): ... to here.
51839 2011-05-21  Bruno Haible  <bruno@clisp.org>
51841         relocatable-lib: Move AC_LIBOBJ invocations to module description.
51842         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
51843         macro.
51844         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
51845         * modules/relocatable-lib (configure.ac): ... to here.
51846         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51847         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
51849 2011-05-21  Bruno Haible  <bruno@clisp.org>
51851         relocatable-prog: Move AC_LIBOBJ invocations to module description.
51852         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
51853         here...
51854         * modules/relocatable-prog (configure.ac): ... to here.
51856 2011-05-21  Bruno Haible  <bruno@clisp.org>
51858         regex: Move AC_LIBOBJ invocations to module description.
51859         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
51860         invocations from here...
51861         * modules/regex (configure.ac): ... to here.
51863 2011-05-21  Bruno Haible  <bruno@clisp.org>
51865         realloc-*: Move AC_LIBOBJ invocations to module description.
51866         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
51867         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
51868         AC_LIBOBJ invocations from here...
51869         * modules/realloc-gnu (configure.ac): ... to here.
51870         * modules/realloc-posix (configure.ac): ... and here.
51872 2011-05-21  Bruno Haible  <bruno@clisp.org>
51874         readutmp: Move AC_LIBOBJ invocations to module description.
51875         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
51876         * modules/readutmp (configure.ac): ... to here.
51878 2011-05-21  Bruno Haible  <bruno@clisp.org>
51880         readlinkat: Move AC_LIBOBJ invocations to module description.
51881         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
51882         here...
51883         * modules/readlinkat (configure.ac): ... to here.
51885 2011-05-21  Bruno Haible  <bruno@clisp.org>
51887         readlink: Move AC_LIBOBJ invocations to module description.
51888         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
51889         gl_PREREQ_READLINK invocations from here...
51890         * modules/readlink (configure.ac): ... to here.
51892 2011-05-21  Bruno Haible  <bruno@clisp.org>
51894         readline: Move AC_LIBOBJ invocations to module description.
51895         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
51896         gl_PREREQ_READLINE invocations from here...
51897         * modules/readline (configure.ac): ... to here.
51899 2011-05-21  Bruno Haible  <bruno@clisp.org>
51901         read: Move AC_LIBOBJ invocations to module description.
51902         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
51903         * modules/read (configure.ac): ... to here.
51905 2011-05-21  Bruno Haible  <bruno@clisp.org>
51907         rawmemchr: Move AC_LIBOBJ invocations to module description.
51908         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
51909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
51910         from here...
51911         * modules/rawmemchr (configure.ac): ... to here.
51913 2011-05-21  Bruno Haible  <bruno@clisp.org>
51915         random_r: Move AC_LIBOBJ invocations to module description.
51916         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
51917         gl_PREREQ_RANDOM_R invocations from here...
51918         * modules/random_r (configure.ac): ... to here.
51920 2011-05-21  Bruno Haible  <bruno@clisp.org>
51922         pwrite: Move AC_LIBOBJ invocations to module description.
51923         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
51924         * modules/pwrite (configure.ac): ... to here.
51926 2011-05-21  Bruno Haible  <bruno@clisp.org>
51928         putenv: Move AC_LIBOBJ invocations to module description.
51929         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
51930         * modules/putenv (configure.ac): ... to here.
51932 2011-05-21  Bruno Haible  <bruno@clisp.org>
51934         login_tty: Move AC_LIBOBJ invocations to module description.
51935         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
51936         * modules/login_tty (configure.ac): ... to here.
51938 2011-05-21  Bruno Haible  <bruno@clisp.org>
51940         openpty: Move AC_LIBOBJ invocations to module description.
51941         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
51942         * modules/openpty (configure.ac): ... to here.
51944 2011-05-21  Bruno Haible  <bruno@clisp.org>
51946         forkpty: Move AC_LIBOBJ invocations to module description.
51947         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
51948         * modules/forkpty (configure.ac): ... to here.
51950 2011-05-21  Bruno Haible  <bruno@clisp.org>
51952         ptsname: Move AC_LIBOBJ invocations to module description.
51953         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
51954         invocations from here...
51955         * modules/ptsname (configure.ac): ... to here.
51957 2011-05-21  Bruno Haible  <bruno@clisp.org>
51959         pread: Move AC_LIBOBJ invocations to module description.
51960         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
51961         * modules/pread (configure.ac): ... to here.
51963 2011-05-21  Bruno Haible  <bruno@clisp.org>
51965         posix_spawn*: Move AC_LIBOBJ invocations to module description.
51966         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
51967         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
51968         * modules/posix_spawn (configure.ac): ... to here.
51969         * modules/posix_spawnp (configure.ac): ... and here.
51971 2011-05-21  Bruno Haible  <bruno@clisp.org>
51973         popen: Move AC_LIBOBJ invocations to module description.
51974         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
51975         invocations from here...
51976         * modules/popen (configure.ac): ... to here.
51978 2011-05-21  Bruno Haible  <bruno@clisp.org>
51980         poll: Move AC_LIBOBJ invocations to module description.
51981         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
51982         invocations from here...
51983         * modules/poll (configure.ac): ... to here.
51985 2011-05-21  Bruno Haible  <bruno@clisp.org>
51987         pipe-posix: Move AC_LIBOBJ invocations to module description.
51988         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
51989         * modules/pipe-posix (configure.ac): ... to here.
51991 2011-05-21  Bruno Haible  <bruno@clisp.org>
51993         openat: Respect rules for use of AC_LIBOBJ.
51994         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
51995         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
51996         * modules/openat (configure.ac): ... to here.
51998 2011-05-21  Bruno Haible  <bruno@clisp.org>
52000         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52001         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52002         invocation from here...
52003         * modules/obstack-printf (configure.ac): ... to here.
52004         * modules/obstack-printf-posix (configure.ac): ... and here.
52006 2011-05-21  Bruno Haible  <bruno@clisp.org>
52008         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52009         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52010         from here...
52011         * modules/nl_langinfo (configure.ac): ... to here.
52013 2011-05-21  Bruno Haible  <bruno@clisp.org>
52015         nanosleep: Move AC_LIBOBJ invocations to module description.
52016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52017         gl_PREREQ_NANOSLEEP invocations from here...
52018         * modules/nanosleep (configure.ac): ... to here.
52020 2011-05-21  Bruno Haible  <bruno@clisp.org>
52022         mountlist: Move AC_LIBOBJ invocations to module description.
52023         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52024         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52025         * modules/mountlist (configure.ac): ... to here.
52027 2011-05-21  Bruno Haible  <bruno@clisp.org>
52029         mktime: Respect rules for use of AC_LIBOBJ.
52030         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52031         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52032         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52033         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52034         * modules/mktime (configure.ac): ... to here.
52035         * modules/mktime-internal (configure.ac): ... and here.
52036         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52038 2011-05-21  Bruno Haible  <bruno@clisp.org>
52040         mkstemps: Move AC_LIBOBJ invocations to module description.
52041         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52042         here...
52043         * modules/mkstemps (configure.ac): ... to here.
52045 2011-05-21  Bruno Haible  <bruno@clisp.org>
52047         mkstemp: Move AC_LIBOBJ invocations to module description.
52048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52049         gl_PREREQ_MKSTEMP invocations from here...
52050         * modules/mkstemp (configure.ac): ... to here.
52052 2011-05-21  Bruno Haible  <bruno@clisp.org>
52054         mkostemps: Move AC_LIBOBJ invocations to module description.
52055         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52056         here...
52057         * modules/mkostemps (configure.ac): ... to here.
52059 2011-05-21  Bruno Haible  <bruno@clisp.org>
52061         mkostemp: Move AC_LIBOBJ invocations to module description.
52062         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52063         gl_PREREQ_MKOSTEMP invocations from here...
52064         * modules/mkostemp (configure.ac): ... to here.
52066 2011-05-21  Bruno Haible  <bruno@clisp.org>
52068         mknod: Move AC_LIBOBJ invocations to module description.
52069         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52070         * modules/mknod (configure.ac): ... to here.
52072 2011-05-21  Bruno Haible  <bruno@clisp.org>
52074         mkfifoat: Move AC_LIBOBJ invocations to module description.
52075         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52076         here...
52077         * modules/mkfifoat (configure.ac): ... to here.
52079 2011-05-21  Bruno Haible  <bruno@clisp.org>
52081         mkfifo: Respect rules for use of AC_LIBOBJ.
52082         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52083         here...
52084         * modules/mkfifo (configure.ac): ... to here.
52086 2011-05-21  Bruno Haible  <bruno@clisp.org>
52088         mkdtemp: Move AC_LIBOBJ invocations to module description.
52089         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52090         invocations from here...
52091         * modules/mkdtemp (configure.ac): ... to here.
52093 2011-05-21  Bruno Haible  <bruno@clisp.org>
52095         mkdir: Move AC_LIBOBJ invocations to module description.
52096         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52097         * modules/mkdir (configure.ac): ... to here.
52099 2011-05-21  Bruno Haible  <bruno@clisp.org>
52101         memset: Move AC_LIBOBJ invocations to module description.
52102         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52104         here...
52105         * modules/memset (configure.ac): ... to here.
52107 2011-05-21  Bruno Haible  <bruno@clisp.org>
52109         memrchr: Move AC_LIBOBJ invocations to module description.
52110         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52112         here...
52113         * modules/memrchr (configure.ac): ... to here.
52115 2011-05-21  Bruno Haible  <bruno@clisp.org>
52117         mempcpy: Move AC_LIBOBJ invocations to module description.
52118         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52120         here...
52121         * modules/mempcpy (configure.ac): ... to here.
52123 2011-05-21  Bruno Haible  <bruno@clisp.org>
52125         memmove: Move AC_LIBOBJ invocations to module description.
52126         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52128         here...
52129         * modules/memmove (configure.ac): ... to here.
52131 2011-05-21  Bruno Haible  <bruno@clisp.org>
52133         memmem*: Move AC_LIBOBJ invocations to module description.
52134         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52135         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52136         here...
52137         (gl_FUNC_MEMMEM): ... and here...
52138         * modules/memmem-simple (configure.ac): ... to here.
52139         * modules/memmem (configure.ac): ... and here.
52141 2011-05-21  Bruno Haible  <bruno@clisp.org>
52143         memcpy: Move AC_LIBOBJ invocations to module description.
52144         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52145         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52146         here...
52147         * modules/memcpy (configure.ac): ... to here.
52149 2011-05-21  Bruno Haible  <bruno@clisp.org>
52151         memcmp: Simplify autoconf macro.
52152         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52153         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52154         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52156 2011-05-21  Bruno Haible  <bruno@clisp.org>
52158         memcmp: Move AC_LIBOBJ invocations to module description.
52159         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52160         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52161         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52162         * modules/memcmp (configure.ac): ... to here.
52163         (Depends-on): Update conditions.
52165 2011-05-21  Bruno Haible  <bruno@clisp.org>
52167         memchr: Respect rules for use of AC_LIBOBJ.
52168         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52169         invocations from here...
52170         * modules/memchr (configure.ac): ... to here.
52172 2011-05-21  Bruno Haible  <bruno@clisp.org>
52174         mbtowc: Move AC_LIBOBJ invocations to module description.
52175         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52176         invocations from here...
52177         * modules/mbtowc (configure.ac): ... to here.
52179 2011-05-21  Bruno Haible  <bruno@clisp.org>
52181         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52182         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52183         gl_PREREQ_MBSRTOWCS invocations from here...
52184         * modules/mbsrtowcs (configure.ac): ... to here.
52186 2011-05-21  Bruno Haible  <bruno@clisp.org>
52188         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52189         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52190         gl_PREREQ_MBSNRTOWCS invocations from here...
52191         * modules/mbsnrtowcs (configure.ac): ... to here.
52193 2011-05-21  Bruno Haible  <bruno@clisp.org>
52195         mbsinit: Move AC_LIBOBJ invocations to module description.
52196         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52197         invocations from here...
52198         * modules/mbsinit (configure.ac): ... to here.
52200 2011-05-21  Bruno Haible  <bruno@clisp.org>
52202         mbrlen: Move AC_LIBOBJ invocations to module description.
52203         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52204         invocations from here...
52205         * modules/mbrlen (configure.ac): ... to here.
52207 2011-05-21  Bruno Haible  <bruno@clisp.org>
52209         mbrtowc: Respect rules for use of AC_LIBOBJ.
52210         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
52211         invocations from here...
52212         * modules/mbrtowc (configure.ac): ... to here.
52214 2011-05-21  Bruno Haible  <bruno@clisp.org>
52216         malloc-*: Move AC_LIBOBJ invocations to module description.
52217         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
52218         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
52219         AC_LIBOBJ invocations from here...
52220         * modules/malloc-gnu (configure.ac): ... to here.
52221         * modules/malloc-posix (configure.ac): ... and here.
52223 2011-05-21  Bruno Haible  <bruno@clisp.org>
52225         lstat, openat: Respect rules for use of AC_LIBOBJ.
52226         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
52227         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
52228         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
52229         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
52230         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
52231         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
52232         here.
52233         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
52235 2011-05-21  Bruno Haible  <bruno@clisp.org>
52237         lseek: Move AC_LIBOBJ invocations to module description.
52238         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
52239         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52240         * modules/lseek (configure.ac): ... to here.
52242 2011-05-21  Bruno Haible  <bruno@clisp.org>
52244         linkat: Move AC_LIBOBJ invocations to module description.
52245         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
52246         here...
52247         * modules/linkat (configure.ac): ... to here.
52249 2011-05-21  Bruno Haible  <bruno@clisp.org>
52251         link: Respect rules for use of AC_LIBOBJ.
52252         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52253         * modules/link (configure.ac): ... to here.
52255 2011-05-21  Bruno Haible  <bruno@clisp.org>
52257         lchown: Move AC_LIBOBJ invocations to module description.
52258         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52259         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52260         * modules/lchown (configure.ac): ... to here.
52262 2011-05-21  Bruno Haible  <bruno@clisp.org>
52264         iswctype: Move AC_LIBOBJ invocations to module description.
52265         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52266         here...
52267         * modules/iswctype (configure.ac): ... to here.
52269 2011-05-21  Bruno Haible  <bruno@clisp.org>
52271         iswblank: Move AC_LIBOBJ invocations to module description.
52272         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52273         here...
52274         * modules/iswblank (configure.ac): ... to here.
52276 2011-05-21  Bruno Haible  <bruno@clisp.org>
52278         atanl: Move AC_LIBOBJ invocations to module description.
52279         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52280         * modules/atanl (configure.ac): ... to here.
52282 2011-05-21  Bruno Haible  <bruno@clisp.org>
52284         acosl: Move AC_LIBOBJ invocations to module description.
52285         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52286         * modules/acosl (configure.ac): ... to here.
52288 2011-05-21  Bruno Haible  <bruno@clisp.org>
52290         asinl: Respect rules for use of AC_LIBOBJ.
52291         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52292         * modules/asinl (configure.ac): ... to here.
52294 2011-05-21  Bruno Haible  <bruno@clisp.org>
52296         tanl: Move AC_LIBOBJ invocations to module description.
52297         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52298         * modules/tanl (configure.ac): ... to here.
52300 2011-05-21  Bruno Haible  <bruno@clisp.org>
52302         cosl: Move AC_LIBOBJ invocations to module description.
52303         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52304         * modules/cosl (configure.ac): ... to here.
52306 2011-05-21  Bruno Haible  <bruno@clisp.org>
52308         sinl: Move AC_LIBOBJ invocations to module description.
52309         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52310         * modules/sinl (configure.ac): ... to here.
52312 2011-05-21  Bruno Haible  <bruno@clisp.org>
52314         logl: Move AC_LIBOBJ invocations to module description.
52315         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52316         * modules/logl (configure.ac): ... to here.
52318 2011-05-21  Bruno Haible  <bruno@clisp.org>
52320         expl: Move AC_LIBOBJ invocations to module description.
52321         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52322         * modules/expl (configure.ac): ... to here.
52324 2011-05-21  Bruno Haible  <bruno@clisp.org>
52326         roundl: Move AC_LIBOBJ invocations to module description.
52327         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52328         * modules/roundl (configure.ac): ... to here.
52330 2011-05-21  Bruno Haible  <bruno@clisp.org>
52332         round: Move AC_LIBOBJ invocations to module description.
52333         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52334         * modules/round (configure.ac): ... to here.
52336 2011-05-21  Bruno Haible  <bruno@clisp.org>
52338         roundf: Move AC_LIBOBJ invocations to module description.
52339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52340         * modules/roundf (configure.ac): ... to here.
52342 2011-05-21  Bruno Haible  <bruno@clisp.org>
52344         truncl: Move AC_LIBOBJ invocations to module description.
52345         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52346         * modules/truncl (configure.ac): ... to here.
52348 2011-05-21  Bruno Haible  <bruno@clisp.org>
52350         trunc: Move AC_LIBOBJ invocations to module description.
52351         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52352         * modules/trunc (configure.ac): ... to here.
52354 2011-05-21  Bruno Haible  <bruno@clisp.org>
52356         truncf: Move AC_LIBOBJ invocations to module description.
52357         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52358         * modules/truncf (configure.ac): ... to here.
52360 2011-05-21  Bruno Haible  <bruno@clisp.org>
52362         ceill: Move AC_LIBOBJ invocations to module description.
52363         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52364         * modules/ceill (configure.ac): ... to here.
52366 2011-05-21  Bruno Haible  <bruno@clisp.org>
52368         ceil: Move AC_LIBOBJ invocations to module description.
52369         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52370         * modules/ceil (configure.ac): ... to here.
52372 2011-05-21  Bruno Haible  <bruno@clisp.org>
52374         ceilf: Move AC_LIBOBJ invocations to module description.
52375         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52376         * modules/ceilf (configure.ac): ... to here.
52378 2011-05-21  Bruno Haible  <bruno@clisp.org>
52380         floorl: Respect rules for use of AC_LIBOBJ.
52381         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
52382         * modules/floorl (configure.ac): ... to here.
52384 2011-05-21  Bruno Haible  <bruno@clisp.org>
52386         floor: Respect rules for use of AC_LIBOBJ.
52387         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
52388         * modules/floor (configure.ac): ... to here.
52390 2011-05-21  Bruno Haible  <bruno@clisp.org>
52392         floorf: Move AC_LIBOBJ invocations to module description.
52393         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
52394         * modules/floorf (configure.ac): ... to here.
52396 2011-05-20  Bruno Haible  <bruno@clisp.org>
52398         sqrtl: Respect rules for use of AC_LIBOBJ.
52399         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
52400         * modules/sqrtl (configure.ac): ... to here.
52402 2011-05-20  Bruno Haible  <bruno@clisp.org>
52404         ldexpl: Respect rules for use of AC_LIBOBJ.
52405         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
52406         * modules/ldexpl (configure.ac): ... to here.
52408 2011-05-20  Bruno Haible  <bruno@clisp.org>
52410         frexpl*: Respect rules for use of AC_LIBOBJ.
52411         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
52412         invocation from here...
52413         * modules/frexpl (configure.ac): ... to here.
52414         * modules/frexpl-nolibm (configure.ac): ... and here.
52416 2011-05-20  Bruno Haible  <bruno@clisp.org>
52418         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
52419         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
52420         invocation from here...
52421         * modules/frexp (configure.ac): ... to here.
52422         * modules/frexp-nolibm (configure.ac): ... and here.
52424 2011-05-20  Bruno Haible  <bruno@clisp.org>
52426         isnan: Respect rules for use of AC_LIBOBJ.
52427         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
52428         invocations here.
52429         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
52430         REPLACE_ISNAN.
52431         * modules/isnand (configure.ac): Likewise.
52432         * modules/isnanl (configure.ac): Likewise.
52434 2011-05-20  Bruno Haible  <bruno@clisp.org>
52436         isnanl*: Respect rules for use of AC_LIBOBJ.
52437         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
52438         invocation from here...
52439         * modules/isnanl (configure.ac): ... to here.
52440         * modules/isnanl-nolibm (configure.ac): ... and here.
52442 2011-05-20  Bruno Haible  <bruno@clisp.org>
52444         isnand*: Move AC_LIBOBJ invocations to module description.
52445         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
52446         invocation from here...
52447         * modules/isnand (configure.ac): ... to here.
52448         * modules/isnand-nolibm (configure.ac): ... and here.
52450 2011-05-20  Bruno Haible  <bruno@clisp.org>
52452         isnanf*: Move AC_LIBOBJ invocations to module description.
52453         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
52454         invocation from here...
52455         * modules/isnanf (configure.ac): ... to here.
52456         * modules/isnanf-nolibm (configure.ac): ... and here.
52458 2011-05-20  Bruno Haible  <bruno@clisp.org>
52460         isnan*: Separate the AC_LIBOBJ invocations.
52461         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
52462         AC_LIBOBJ invocation.
52463         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
52464         here.
52465         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
52466         AC_LIBOBJ invocation.
52467         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
52468         here.
52469         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
52470         AC_LIBOBJ invocation.
52471         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
52472         here.
52473         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
52475 2011-05-08  Bruno Haible  <bruno@clisp.org>
52477         isinf: Move AC_LIBOBJ invocations to module description.
52478         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
52479         * modules/isinf (configure.ac): ... to here.
52481 2011-05-08  Bruno Haible  <bruno@clisp.org>
52483         isfinite: Move AC_LIBOBJ invocations to module description.
52484         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52485         * modules/isfinite (configure.ac): ... to here.
52487 2011-05-08  Bruno Haible  <bruno@clisp.org>
52489         isblank: Move AC_LIBOBJ invocations to module description.
52490         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
52491         here...
52492         * modules/isblank (configure.ac): ... to here.
52494 2011-05-08  Bruno Haible  <bruno@clisp.org>
52496         isapipe: Move AC_LIBOBJ invocations to module description.
52497         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
52498         gl_PREREQ_ISAPIPE invocations from here...
52499         * modules/isapipe (configure.ac): ... to here.
52500         (Depends-on): Update condition.
52502 2011-05-08  Bruno Haible  <bruno@clisp.org>
52504         ioctl: Move AC_LIBOBJ invocations to module description.
52505         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
52506         invocations from here...
52507         * modules/ioctl (configure.ac): ... to here.
52508         (Depends-on): Update condition.
52510 2011-05-08  Bruno Haible  <bruno@clisp.org>
52512         imaxdiv: Move AC_LIBOBJ invocations to module description.
52513         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
52514         invocations from here...
52515         * modules/imaxdiv (configure.ac): ... to here.
52517 2011-05-08  Bruno Haible  <bruno@clisp.org>
52519         imaxabs: Move AC_LIBOBJ invocations to module description.
52520         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
52521         invocations from here...
52522         * modules/imaxabs (configure.ac): ... to here.
52524 2011-05-08  Bruno Haible  <bruno@clisp.org>
52526         getaddrinfo: Move AC_LIBOBJ invocations to module description.
52527         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
52528         AC_LIBOBJ invocations from here...
52529         * modules/getaddrinfo (configure.ac): ... to here.
52530         (Depends-on): Add conditions.
52532 2011-05-08  Bruno Haible  <bruno@clisp.org>
52534         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52535         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
52536         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52537         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
52538         (gl_PREREQ_INET_PTON): ... from here.
52539         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
52540         gl_PREREQ_INET_PTON here.
52541         (Depends-on): Update condition.
52543 2011-05-08  Bruno Haible  <bruno@clisp.org>
52545         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52546         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
52547         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52548         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
52549         (gl_PREREQ_INET_NTOP): ... from here.
52550         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
52551         gl_PREREQ_INET_NTOP here.
52552         (Depends-on): Update condition.
52554 2011-05-08  Bruno Haible  <bruno@clisp.org>
52556         iconv_open: Move AC_LIBOBJ invocations to module description.
52557         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
52558         AC_LIBOBJ invocations from here...
52559         * modules/iconv_open (configure.ac): ... to here.
52561 2011-05-08  Bruno Haible  <bruno@clisp.org>
52563         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
52564         If module 'iconv_open' is among the main modules and module
52565         'iconv_open-utf' is among the tests dependencies, then
52566         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
52567         return the special iconv_t values. Therefore iconv() and iconv_close()
52568         must support these special iconv_t values, already in lib, not only in
52569         tests.
52570         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
52571         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
52572         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
52573         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
52574         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
52575         (Depends-on): Add the dependencies of iconv_open-utf.
52576         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
52577         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
52578         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
52580 2011-05-08  Bruno Haible  <bruno@clisp.org>
52582         group-member: Move AC_LIBOBJ invocations to module description.
52583         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
52584         gl_PREREQ_GROUP_MEMBER invocations from here...
52585         * modules/group-member (configure.ac): ... to here.
52587 2011-05-08  Bruno Haible  <bruno@clisp.org>
52589         grantpt: Move AC_LIBOBJ invocations to module description.
52590         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
52591         invocations from here...
52592         * modules/grantpt (configure.ac): ... to here.
52594 2011-05-08  Bruno Haible  <bruno@clisp.org>
52596         glob: Move AC_LIBOBJ invocations to module description.
52597         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
52598         from here...
52599         * modules/glob (configure.ac): ... to here.
52601 2011-05-08  Bruno Haible  <bruno@clisp.org>
52603         getusershell: Move AC_LIBOBJ invocations to module description.
52604         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
52605         Move AC_LIBOBJ invocation from here...
52606         * modules/getusershell (configure.ac): ... to here.
52607         (Depends-on): Update condition.
52609 2011-05-08  Bruno Haible  <bruno@clisp.org>
52611         gettimeofday: Move AC_LIBOBJ invocations to module description.
52612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52613         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
52614         gl_PREREQ_GETTIMEOFDAY invocations from here...
52615         * modules/gettimeofday (configure.ac): ... to here.
52617 2011-05-08  Bruno Haible  <bruno@clisp.org>
52619         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
52620         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
52621         just gl_FUNC_TZSET.
52622         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
52623         (gl_FUNC_TZSET_CLOBBER): Remove actions.
52624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
52625         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
52627 2011-05-08  Bruno Haible  <bruno@clisp.org>
52629         getsubopt: Move AC_LIBOBJ invocations to module description.
52630         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
52631         gl_PREREQ_GETSUBOPT invocations from here...
52632         * modules/getsubopt (configure.ac): ... to here.
52634 2011-05-08  Bruno Haible  <bruno@clisp.org>
52636         getpass-gnu: Move AC_LIBOBJ invocations to module description.
52637         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
52638         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
52639         * modules/getpass-gnu (configure.ac): ... to here.
52641 2011-05-08  Bruno Haible  <bruno@clisp.org>
52643         getpass: Move AC_LIBOBJ invocations to module description.
52644         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
52645         gl_PREREQ_GETPASS invocations from here...
52646         * modules/getpass (configure.ac): ... to here.
52648 2011-05-08  Bruno Haible  <bruno@clisp.org>
52650         getpagesize: Move AC_LIBOBJ invocations to module description.
52651         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
52652         from here...
52653         * modules/getpagesize (configure.ac): ... to here.
52655 2011-05-08  Bruno Haible  <bruno@clisp.org>
52657         getopt: Move AC_LIBOBJ invocations to module description.
52658         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
52659         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
52660         invocations from here...
52661         * modules/getopt-gnu (configure.ac): ... to here.
52662         * modules/getopt-posix (configure.ac): ... and here.
52663         (Depends-on): Update condition.
52665 2011-05-08  Bruno Haible  <bruno@clisp.org>
52667         getopt, argp: Respect rules for use of AC_LIBOBJ.
52668         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
52669         (gl_REPLACE_GETOPT_ALWAYS): New macro.
52670         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
52671         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
52673 2011-05-08  Bruno Haible  <bruno@clisp.org>
52675         getlogin_r: Move AC_LIBOBJ invocations to module description.
52676         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
52677         gl_PREREQ_GETLOGIN_R invocations from here...
52678         * modules/getlogin_r (configure.ac): ... to here.
52680 2011-05-08  Bruno Haible  <bruno@clisp.org>
52682         getlogin: Move AC_LIBOBJ invocations to module description.
52683         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
52684         here...
52685         * modules/getlogin (configure.ac): ... to here.
52687 2011-05-08  Bruno Haible  <bruno@clisp.org>
52689         getloadavg: Move AC_LIBOBJ invocations to module description.
52690         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
52691         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
52692         * modules/getloadavg (configure.ac): ... to here.
52694 2011-05-08  Bruno Haible  <bruno@clisp.org>
52696         gethrxtime: Move AC_LIBOBJ invocations to module description.
52697         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
52698         LIB_GETHRXTIME from here...
52699         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
52700         invocations from here...
52701         * modules/gethrxtime (configure.ac): ... to here.
52703 2011-05-08  Bruno Haible  <bruno@clisp.org>
52705         gethostname: Move AC_LIBOBJ invocations to module description.
52706         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
52707         gl_PREREQ_GETHOSTNAME invocations from here...
52708         * modules/gethostname (configure.ac): ... to here.
52710 2011-05-08  Bruno Haible  <bruno@clisp.org>
52712         getgroups: Move AC_LIBOBJ invocations to module description.
52713         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
52714         here...
52715         * modules/getgroups (configure.ac): ... to here.
52717 2011-05-08  Bruno Haible  <bruno@clisp.org>
52719         getdtablesize: Move AC_LIBOBJ invocations to module description.
52720         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
52721         invocation from here...
52722         * modules/getdtablesize (configure.ac): ... to here.
52724 2011-05-08  Bruno Haible  <bruno@clisp.org>
52726         getdomainname: Move AC_LIBOBJ invocations to module description.
52727         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
52728         gl_PREREQ_GETDOMAINNAME invocations from here...
52729         * modules/getdomainname (configure.ac): ... to here.
52731 2011-05-08  Bruno Haible  <bruno@clisp.org>
52733         getline: Move AC_LIBOBJ invocations to module description.
52734         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
52735         invocations from here...
52736         * modules/getline (configure.ac): ... to here.
52738 2011-05-08  Bruno Haible  <bruno@clisp.org>
52740         getline: Simplify.
52741         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
52742         It's already handled through the module dependency.
52744 2011-05-08  Bruno Haible  <bruno@clisp.org>
52746         getdelim: Move AC_LIBOBJ invocations to module description.
52747         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
52748         and gl_PREREQ_GETDELIM invocations from here...
52749         * modules/getdelim (configure.ac): ... to here.
52750         (Depends-on): Fix condition.
52752 2011-05-08  Bruno Haible  <bruno@clisp.org>
52754         getcwd: Move AC_LIBOBJ invocations to module description.
52755         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
52756         invocations from here...
52757         * modules/getcwd (configure.ac): ... to here.
52759 2011-05-08  Bruno Haible  <bruno@clisp.org>
52761         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
52762         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
52763         here...
52764         * modules/getcwd-lgpl (configure.ac): ... to here.
52766 2011-05-07  Bruno Haible  <bruno@clisp.org>
52768         crypto/gc: Move AC_LIBOBJ invocations to module description.
52769         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
52770         * modules/crypto/gc (configure.ac): ... to here.
52772 2011-05-07  Bruno Haible  <bruno@clisp.org>
52774         fwriting: Move AC_LIBOBJ invocations to module description.
52775         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
52776         here...
52777         * modules/fwriting (configure.ac): ... to here.
52779 2011-05-07  Bruno Haible  <bruno@clisp.org>
52781         fwritable: Move AC_LIBOBJ invocations to module description.
52782         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
52783         here...
52784         * modules/fwritable (configure.ac): ... to here.
52786 2011-05-07  Bruno Haible  <bruno@clisp.org>
52788         futimens: Move AC_LIBOBJ invocations to module description.
52789         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
52790         here...
52791         * modules/futimens (configure.ac): ... to here.
52793 2011-05-07  Bruno Haible  <bruno@clisp.org>
52795         ftruncate: Move AC_LIBOBJ invocations to module description.
52796         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
52797         gl_PREREQ_FTRUNCATE invocations from here...
52798         * modules/ftruncate (configure.ac): ... to here.
52800 2011-05-07  Bruno Haible  <bruno@clisp.org>
52802         fsync: Move AC_LIBOBJ invocations to module description.
52803         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
52804         invocations from here...
52805         * modules/fsync (configure.ac): ... to here.
52807 2011-05-07  Bruno Haible  <bruno@clisp.org>
52809         fsusage: Move AC_LIBOBJ invocations to module description.
52810         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
52811         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
52812         * modules/fsusage (configure.ac): ... to here.
52814 2011-05-07  Bruno Haible  <bruno@clisp.org>
52816         freopen: Move AC_LIBOBJ invocations to module description.
52817         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
52818         invocations from here...
52819         * modules/freopen (configure.ac): ... to here.
52821 2011-05-07  Bruno Haible  <bruno@clisp.org>
52823         free: Move AC_LIBOBJ invocations to module description.
52824         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
52825         invocations from here...
52826         * modules/free (configure.ac): ... to here.
52828 2011-05-07  Bruno Haible  <bruno@clisp.org>
52830         freadable: Move AC_LIBOBJ invocations to module description.
52831         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
52832         here...
52833         * modules/freadable (configure.ac): ... to here.
52835 2011-05-07  Bruno Haible  <bruno@clisp.org>
52837         fpurge: Move AC_LIBOBJ invocations to module description.
52838         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
52839         invocations from here...
52840         * modules/fpurge (configure.ac): ... to here.
52842 2011-05-07  Bruno Haible  <bruno@clisp.org>
52844         fpending: Move AC_LIBOBJ invocations to module description.
52845         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
52846         gl_FUNC_FPENDING.
52847         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
52848         invocations from here...
52849         * modules/fpending (configure.ac): ... to here.
52851 2011-05-07  Bruno Haible  <bruno@clisp.org>
52853         fopen: Move AC_LIBOBJ invocations to module description.
52854         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
52855         invocations from here...
52856         * modules/fopen (configure.ac): ... to here.
52858 2011-05-07  Bruno Haible  <bruno@clisp.org>
52860         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
52861         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
52862         gl_FUNC_FNMATCH_POSIX.
52863         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
52864         invocations from here...
52865         * modules/fnmatch (configure.ac): ... to here.
52866         * modules/fnmatch-gnu (configure.ac): ... and here.
52868 2011-05-07  Bruno Haible  <bruno@clisp.org>
52870         flock: Move AC_LIBOBJ invocations to module description.
52871         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
52872         invocations from here...
52873         * modules/flock (configure.ac): ... to here.
52875 2011-05-07  Bruno Haible  <bruno@clisp.org>
52877         fileblocks: Move AC_LIBOBJ invocations to module description.
52878         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
52879         gl_PREREQ_FILEBLOCKS invocations from here...
52880         * modules/fileblocks (configure.ac): ... to here.
52882 2011-05-06  Bruno Haible  <bruno@clisp.org>
52884         fflush: Move AC_LIBOBJ invocations to module description.
52885         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
52886         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
52887         invocations from here...
52888         * modules/fflush (configure.ac): ... to here.
52890 2011-05-06  Bruno Haible  <bruno@clisp.org>
52892         fdopendir: Move AC_LIBOBJ invocations to module description.
52893         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
52894         here...
52895         * modules/fdopendir (configure.ac): ... to here.
52896         (Depends-on): Improve conditions.
52898 2011-05-06  Bruno Haible  <bruno@clisp.org>
52900         _Exit: Move AC_LIBOBJ invocations to module description.
52901         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
52902         invocations from here...
52903         * modules/_Exit (configure.ac): ... to here.
52905 2011-05-21  Bruno Haible  <bruno@clisp.org>
52907         euidaccess: Respect rules for use of AC_LIBOBJ.
52908         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
52910         from here...
52911         * modules/euidaccess (configure.ac): ... to here.
52913 2011-05-06  Bruno Haible  <bruno@clisp.org>
52915         error: Move AC_LIBOBJ invocations to module description.
52916         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
52917         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
52918         invocations from here...
52919         * modules/error (configure.ac): ... to here.
52921 2011-05-06  Bruno Haible  <bruno@clisp.org>
52923         duplocale: Move AC_LIBOBJ invocations to module description.
52924         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
52925         gl_PREREQ_DUPLOCALE invocations from here...
52926         * modules/duplocale (configure.ac): ... to here.
52928 2011-05-05  Bruno Haible  <bruno@clisp.org>
52930         dirfd: Move AC_LIBOBJ invocations to module description.
52931         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
52932         gl_FUNC_DIRFD.
52933         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
52934         here...
52935         * modules/dirfd (configure.ac): ... to here.
52936         (Depends-on): Fix condition.
52938 2011-05-05  Bruno Haible  <bruno@clisp.org>
52940         chown: Respect rules for use of AC_LIBOBJ.
52941         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
52942         * modules/chown (configure.ac): ... to here.
52944 2011-05-05  Bruno Haible  <bruno@clisp.org>
52946         chdir-long: Move AC_LIBOBJ invocations to module description.
52947         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
52948         gl_PREREQ_CHDIR_LONG invocations from here...
52949         * modules/chdir-long (configure.ac): ... to here.
52951 2011-05-05  Bruno Haible  <bruno@clisp.org>
52953         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
52954         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
52955         from here...
52956         * modules/canonicalize-lgpl (configure.ac): ... to here.
52958 2011-05-05  Bruno Haible  <bruno@clisp.org>
52960         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
52961         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
52962         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
52963         REPLACE_CALLOC.
52964         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
52965         * modules/calloc-gnu (configure.ac): Likewise.
52967 2011-05-05  Bruno Haible  <bruno@clisp.org>
52969         btowc: Move AC_LIBOBJ invocations to module description.
52970         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
52971         invocations from here...
52972         * modules/btowc (configure.ac): ... to here.
52974 2011-05-21  Bruno Haible  <bruno@clisp.org>
52976         atexit: Move AC_LIBOBJ invocations to module description.
52977         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
52978         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
52979         here...
52980         * modules/atexit (configure.ac): ... to here.
52982 2011-05-05  Bruno Haible  <bruno@clisp.org>
52984         atoll: Move AC_LIBOBJ invocations to module description.
52985         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
52986         invocations from here...
52987         * modules/atoll (configure.ac): ... to here.
52989 2011-05-05  Bruno Haible  <bruno@clisp.org>
52991         argz: Move AC_LIBOBJ invocations to module description.
52992         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
52993         * modules/argz (configure.ac): ... to here.
52995 2011-05-05  Bruno Haible  <bruno@clisp.org>
52997         alphasort: Move AC_LIBOBJ invocations to module description.
52998         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
52999         gl_PREREQ_ALPHASORT invocations from here...
53000         * modules/alphasort (configure.ac): ... to here.
53002 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53004         verify: new macro verify_expr; verify_true deprecated
53005         * NEWS: Mention this.
53006         * doc/verify.texi (Compile-time Assertions): Document this.
53007         * lib/verify.h (verify_true): Deprecate.
53008         (verify_expr): New macro.
53009         * tests/test-verify.c (function): Test verify_expr.
53011 2011-06-14  Jim Meyering  <meyering@redhat.com>
53013         init.sh: give more portable redirection-related advice in a comment
53014         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53015         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53016         for lots of discussion.  Stefano Lattarini suggested the solution
53017         of putting "9>&2" after the command.  Reported by Bruno Haible.
53019 2011-06-13  Bruno Haible  <bruno@clisp.org>
53021         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53022         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53023         'none'.
53025 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53027         ftoastr: use strtof only if HAVE_STRTOF
53028         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53029         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53030         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53031         * modules/ftoastr (configure.ac): Check for strtof.
53033 2011-06-13  Bruno Haible  <bruno@clisp.org>
53035         gnulib-tool: Addendum to 2011-06-08 commit.
53036         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53037         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53039 2011-06-13  Bruno Haible  <bruno@clisp.org>
53041         fseeko: Provide a non-inline replacement of fseek().
53042         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53043         * modules/fseeko (Depends-on): Add fseek.
53044         * modules/fseek (License): Change to LGPLv2+.
53046 2011-06-13  Bruno Haible  <bruno@clisp.org>
53048         ftello: Provide a non-inline replacement of ftell().
53049         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53050         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53051         not have ftello() (such as on mingw).
53052         * modules/ftello (Depends-on): Add ftell.
53053         * modules/ftell (License): Change to LGPLv2+.
53055 2011-05-07  Bruno Haible  <bruno@clisp.org>
53057         ftell: Move AC_LIBOBJ invocations to module description.
53058         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53059         * modules/ftell (configure.ac): ... to here.
53061 2011-05-07  Bruno Haible  <bruno@clisp.org>
53063         ftello: Respect rules for use of AC_LIBOBJ.
53064         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53065         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53066         here...
53067         * modules/ftello (configure.ac): ... to here.
53069 2011-05-07  Bruno Haible  <bruno@clisp.org>
53071         fseeko: Simplify.
53072         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53073         (gl_FUNC_FSEEKO): Inline it here.
53075 2011-05-07  Bruno Haible  <bruno@clisp.org>
53077         fseek: Move AC_LIBOBJ invocations to module description.
53078         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53079         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53080         * modules/fseek (configure.ac): ... to here.
53082 2011-05-07  Bruno Haible  <bruno@clisp.org>
53084         fseek: Respect rules for use of AC_LIBOBJ.
53085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53086         here...
53087         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53089 2011-05-07  Bruno Haible  <bruno@clisp.org>
53091         fseeko: Respect rules for use of AC_LIBOBJ.
53092         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53093         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53094         here...
53095         * modules/fseeko (configure.ac): ... to here.
53097 2011-06-13  Bruno Haible  <bruno@clisp.org>
53099         gnulib-tool: Allow comments in the 'Depends-on' section.
53100         * doc/gnulib.texi (Module description): Mention comment syntax in the
53101         Depends-on section.
53102         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53104 2011-06-13  Bruno Haible  <bruno@clisp.org>
53106         file-set.h: guard __attibute__ use, now that it's not always defined
53107         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53108         versions that support it.  This fixes a coreutils build failure with
53109         the vendor cc on HP-UX 11.31.
53111 2011-06-12  Bruno Haible  <bruno@clisp.org>
53113         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53114         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53115         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53116         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53117         (acl, aclsort): New declarations.
53118         (aclv_nontrivial): New declaration.
53119         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53120         (file_has_acl): Read also the second kind of HP-UX ACLs.
53121         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53122         kind of HP-UX ACLs if the first kind fails.
53123         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53124         second kind of HP-UX ACLs.
53125         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53126         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53127         agree.
53128         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53129         hpuxjfs.
53130         Handle hpuxjfs.
53131         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53132         hpuxjfs.
53133         Handle hpuxjfs.
53134         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53135         (func_test_same_acls): Use both lsacl and getacl.
53136         Handle hpuxjfs.
53137         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53138         (func_test_same_acls): Use both lsacl and getacl.
53139         Handle hpuxjfs.
53141 2011-06-12  Bruno Haible  <bruno@clisp.org>
53143         acl: Complete the 2010-08-10 fix.
53144         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53145         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53146         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53147         explicitly.
53148         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53149         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53151 2011-06-12  Bruno Haible  <bruno@clisp.org>
53153         spawn-pipe tests: Comments.
53154         * tests/test-spawn-pipe-child.c (main): Update comment.
53155         Reported by James Youngman <jay@gnu.org>.
53157 2011-06-11  James Youngman  <jay@gnu.org>
53159         New module 'stat-size'.
53160         * modules/stat-size: New module.  Provides macros for accessing
53161         file size information in instances of struct stat.  Depends on the
53162         fileblocks module because it calls st_blocks.
53163         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53164         * doc/gnulib.texi: Include stat-size.texi.
53165         * doc/stat-size.texi: Documentation for this module.
53166         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53167         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53168         AC_STRUCT_ST_BLOCKS.
53170 2011-06-09  Bruno Haible  <bruno@clisp.org>
53172         thread: Support pthreads-win32.
53173         * lib/glthread/thread.h (gl_thread_self): Define differently on
53174         pthreads-win32.
53175         (gl_null_thread): New declaration.
53176         (gl_thread_self_pointer): New macro.
53177         * lib/glthread/thread.c (gl_null_thread): New constant.
53178         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53179         gl_thread_self.
53180         * tests/test-tls.c: Likewise.
53181         Suggested by Paul Eggert. Reported by Eric Blake.
53183 2011-06-09  Bruno Haible  <bruno@clisp.org>
53185         thread: Fix confusion between NULL and 0.
53186         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53187         Reported by Paul Eggert.
53189 2011-06-09  Bruno Haible  <bruno@clisp.org>
53191         spawn-pipe tests: Avoid test failure on HP-UX 11.
53192         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53193         is closed.
53195 2011-06-09  Bruno Haible  <bruno@clisp.org>
53197         acl tests: Fix compilation error on HP-UX 11.
53198         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53200 2011-06-09  Bruno Haible  <bruno@clisp.org>
53202         rmdir: Avoid test failure on HP-UX 10.20.
53203         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53204         EEXIST.
53206 2011-06-08  Eric Blake  <eblake@redhat.com>
53208         perror: fix test on mingw
53209         * modules/perror-tests (Depends-on): Add dup2.
53211         strerror_r-posix: fix on MacOS
53212         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
53213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
53214         logic bug.
53215         * lib/strerror_r.c (strerror_r): Fix the bug.
53216         * lib/strerror.c (strerror): Likewise.
53217         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53218         problem.
53219         * doc/posix-functions/strerror.texi (strerror): Likewise.
53220         * doc/posix-functions/perror.texi (perror): Likewise.
53221         * tests/test-strerror.c (main): Enhance test.
53222         * tests/test-strerror_r.c (main): Likewise.
53224 2011-06-08  Bruno Haible  <bruno@clisp.org>
53226         gnulib-tool: Better isolation between different gnulib-tool invocations.
53227         * gnulib-tool: New option --witness-c-macro.
53228         (witness_c_macro): New variable.
53229         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
53230         AM_CPPFLAGS define it as a C macro.
53231         (func_emit_tests_Makefile_am): Likewise.
53232         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
53233         read it from there.
53234         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53235         m4_define, not AC_DEFUN.
53236         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
53237         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
53238         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
53239         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
53240         s|...|...|, to substitute the values of the GNULIB_* module indicator
53241         variables.
53242         * modules/dirent (Makefile.am): Likewise.
53243         * modules/fcntl-h (Makefile.am): Likewise.
53244         * modules/iconv-h (Makefile.am): Likewise.
53245         * modules/langinfo (Makefile.am): Likewise.
53246         * modules/locale (Makefile.am): Likewise.
53247         * modules/math (Makefile.am): Likewise.
53248         * modules/netdb (Makefile.am): Likewise.
53249         * modules/poll-h (Makefile.am): Likewise.
53250         * modules/pty (Makefile.am): Likewise.
53251         * modules/search (Makefile.am): Likewise.
53252         * modules/signal (Makefile.am): Likewise.
53253         * modules/spawn (Makefile.am): Likewise.
53254         * modules/stdio (Makefile.am): Likewise.
53255         * modules/stdlib (Makefile.am): Likewise.
53256         * modules/string (Makefile.am): Likewise.
53257         * modules/sys_ioctl (Makefile.am): Likewise.
53258         * modules/sys_select (Makefile.am): Likewise.
53259         * modules/sys_socket (Makefile.am): Likewise.
53260         * modules/sys_stat (Makefile.am): Likewise.
53261         * modules/sys_times (Makefile.am): Likewise.
53262         * modules/sys_utsname (Makefile.am): Likewise.
53263         * modules/sys_wait (Makefile.am): Likewise.
53264         * modules/termios (Makefile.am): Likewise.
53265         * modules/time (Makefile.am): Likewise.
53266         * modules/unistd (Makefile.am): Likewise.
53267         * modules/wchar (Makefile.am): Likewise.
53269 2011-06-08  Eric Blake  <eblake@redhat.com>
53271         strerror: simplify replacement
53272         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53273         * modules/strerror (configure.ac): No prereqs needed here...
53274         * modules/strerror-override (configure.ac): ...but this needs it.
53275         (Files): Add file for needed prereq macro.
53277 2011-06-08  Bruno Haible  <bruno@clisp.org>
53279         strerror_r-posix: Tweaks.
53280         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53281         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53282         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53283         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53284         (gl_FUNC_STRERROR_R): ... to here.
53285         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53287 2011-06-07  Eric Blake  <eblake@redhat.com>
53289         perror: document fixed bugs
53290         * doc/posix-functions/perror.texi (perror): Document recent
53291         patches.
53293 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53295         stat-time: get_stat_birthtime failure is better-defined
53296         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53297         return a timestamp whose tv_sec and tv_nsec values are both -1.
53298         Previously, the spec said only that the tv_nsec value was negative.
53299         This upward-compatible change simplifies GNU tar a bit.
53301 2011-06-07  Eric Blake  <eblake@redhat.com>
53303         strerror_r-posix: work around cygwin 1.7.9
53304         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53305         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53306         bug without replacing strerror_r.
53307         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53308         strerror_r is buggy, but without requiring strerror_r compilation.
53309         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53311         test-perror: relax test to ignore cygwin bug
53312         * tests/test-perror2.c (main): Relax test on requiring detection
53313         of stream errors, and use unbuffered stream.
53314         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53315         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53316         * doc/posix-functions/fputc.texi (fputc): Likewise.
53317         * doc/posix-functions/fputs.texi (fputs): Likewise.
53318         * doc/posix-functions/fputws.texi (fputws): Likewise.
53319         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53320         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53321         * doc/posix-functions/getopt.texi (getopt): Likewise.
53322         * doc/posix-functions/perror.texi (perror): Likewise.
53323         * doc/posix-functions/printf.texi (printf): Likewise.
53324         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53325         * doc/posix-functions/psignal.texi (psignal): Likewise.
53326         * doc/posix-functions/putc.texi (putc): Likewise.
53327         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53328         Likewise.
53329         * doc/posix-functions/putchar.texi (putchar): Likewise.
53330         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53331         Likewise.
53332         * doc/posix-functions/puts.texi (puts): Likewise.
53333         * doc/posix-functions/putwc.texi (putwc): Likewise.
53334         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53335         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53336         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53337         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53338         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53339         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53340         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53341         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53343 2011-05-22  Bruno Haible  <bruno@clisp.org>
53345         strerror: Move AC_LIBOBJ invocations to module description.
53346         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53347         gl_PREREQ_STRERROR invocations from here...
53348         * modules/strerror (configure.ac): ... to here.
53350 2011-05-21  Bruno Haible  <bruno@clisp.org>
53352         perror: Use common idiom.
53353         * modules/perror (configure.ac): Reorder statements.
53355 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53357         tests: fix usage message in 'mktempd_'
53358         * tests/init.sh (mktempd_): In the usage message, use literal
53359         'mktempd_', not '$ME' (which is even undefined), as the name of
53360         the subroutine.
53362 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53364         tests init: new function 'fatal_', for hard errors
53365         Before this patch, the only way offered by tests/init.sh to
53366         properly signal a hard error was the `framework_failure_'
53367         function.  But the error message issued by that function,
53368         as its name would suggest, refers to a set-up failure in the
53369         testsuite, while hard errors can obviously also be due to
53370         other reasons.  The best way to fix this inconsistency is to
53371         introduce a new function with a more general error message.
53372         * tests/init.sh (fatal_): New function.
53374 2011-06-06  Eric Blake  <eblake@redhat.com>
53376         canonicalize-lgpl: use common idiom
53377         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53378         over newer POSIX -Rf.
53379         Reported by Bruno Haible.
53381         canonicalize-lgpl: work around AIX realpath bug
53382         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
53383         * doc/posix-functions/realpath.texi (realpath): Document it.
53384         Reported by Bruno Haible.
53386         strerror: work around FreeBSD bug
53387         * lib/strerror.c (strerror): Special case 0.
53388         Reported by Bruno Haible.
53390         strerror-override: avoid bloating errno module
53391         * modules/errno (Files, configure.ac): Move replacement strings...
53392         * modules/strerror-override: ...to new module.
53393         * modules/strerror (Depends-on): Add strerror-override.
53394         * modules/strerror_r-posix (Depends-on): Likewise.
53395         * MODULES.html.sh: Document new module.
53396         Reported by Bruno Haible.
53398 2011-06-06  Bruno Haible  <bruno@clisp.org>
53400         spawn-pipe tests: Rename program.
53401         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
53402         * tests/test-spawn-pipe-child.c: Update comment.
53403         * tests/test-spawn-pipe.sh: Update.
53404         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
53406         spawn-pipe tests: Link the child program only against libc.
53407         * tests/test-spawn-pipe-child.c: New file, extracted from
53408         tests/test-spawn-pipe.c.
53409         (main): Expect only one argument.
53410         (is_open): New function, copied from tests/test-pipe.c.
53411         * tests/test-spawn-pipe.c: Don't include <errno.h>.
53412         (child_main): Remove function.
53413         (test_pipe): Pass only one argument to the child program.
53414         (main): Remove child process code. Expect the child program's name as
53415         first argument.
53416         * tests/test-spawn-pipe.sh: Pass the child program's name as first
53417         argument.
53418         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
53419         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
53420         test-spawn-pipe-child against no libraries.
53422 2011-06-06  Bruno Haible  <bruno@clisp.org>
53424         careadlinkat: Avoid mismatch between ssize_t and int.
53425         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
53426         * lib/careadlinkat.c (careadlinkatcwd): Define always.
53428 2011-06-06  Jim Meyering  <meyering@redhat.com>
53430         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
53431         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
53432         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
53434 2011-06-05  Bruno Haible  <bruno@clisp.org>
53436         ansi-c++-opt: Interoperability with libtool.
53437         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
53438         set the variable to "no", not to ":".
53439         * NEWS: Mention the change.
53441 2011-06-05  Bruno Haible  <bruno@clisp.org>
53443         acl: Fix test failure on AIX 7.
53444         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
53445         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
53447 2011-06-05  Bruno Haible  <bruno@clisp.org>
53449         pipe-filter-ii: Fix test failure on AIX and IRIX.
53450         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
53451         with EAGAIN, retry with a smaller buffer size.
53453 2011-06-05  Bruno Haible  <bruno@clisp.org>
53455         localename: Fix link dependencies.
53456         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
53457         * modules/localename-tests (Makefile.am): Link test-localename with
53458         $(LIBTHREAD).
53460 2011-06-05  Bruno Haible  <bruno@clisp.org>
53462         error: Avoid gcc warning.
53463         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
53465 2011-06-05  Bruno Haible  <bruno@clisp.org>
53467         unsetenv: Avoid gcc warning.
53468         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
53470 2011-06-05  Bruno Haible  <bruno@clisp.org>
53472         setenv: Avoid gcc warning.
53473         * lib/setenv.c (setenv): Provide declaration if system lacks it.
53475 2011-06-05  Bruno Haible  <bruno@clisp.org>
53477         sys_select: Ensure memset is declared also on AIX 7.
53478         * lib/sys_select.in.h: Include <string.h> also on AIX.
53479         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
53480         self-contained also on AIX 7.1.
53482 2011-06-04  Jim Meyering  <meyering@redhat.com>
53484         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
53485         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
53486         function name, "error".
53487         (_gl_translatable_diag_func_re): New configurable variable.
53489 2011-06-04  Bruno Haible  <bruno@clisp.org>
53491         getopt: Avoid gcc warning.
53492         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
53494 2011-06-04  Bruno Haible  <bruno@clisp.org>
53496         strerror_r: Fix comments.
53497         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
53498         commit.
53500 2011-06-04  Bruno Haible  <bruno@clisp.org>
53502         perror: Fix compilation error.
53503         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
53504         Undefine fprintf, not sprintf.
53505         * modules/perror (Depends-on): Remove intprops, verify.
53507 2011-06-04  Bruno Haible  <bruno@clisp.org>
53509         setlocale: Enable replacement on Cygwin 1.5.
53510         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
53511         Cygwin 1.5.x.
53512         * doc/posix-functions/setlocale.texi: Mention that the problem with the
53513         LC_CTYPE category also exists on Cygwin 1.5.x.
53515 2011-06-04  Bruno Haible  <bruno@clisp.org>
53517         strerror-override: Don't disable symbol renamings.
53518         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
53519         * lib/strerror-override.c: Include config.h.
53520         (strerror_override): Don't undefine.
53522 2011-06-03  Bruno Haible  <bruno@clisp.org>
53524         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
53525         * lib/localename.h: Update copyright header.
53526         * lib/localename.c: Likewise.
53527         * lib/relocatable.h: Likewise.
53528         * lib/relocatable.c: Likewise.
53530 2011-06-02  Bruno Haible  <bruno@clisp.org>
53532         doc: Fix a module name.
53533         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
53535 2011-06-02  Bruno Haible  <bruno@clisp.org>
53537         pipe2: Remove dependency on 'nonblocking' module.
53538         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
53539         O_NONBLOCK is defined by gnulib.
53540         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
53541         is zero.
53542         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
53543         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
53544         defined by gnulib.
53545         (get_nonblocking_flag): New function.
53546         (main): Test O_NONBLOCK flag only if it is nonzero.
53547         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
53549 2011-06-03  Jim Meyering  <meyering@redhat.com>
53551         maint: three new prohibit-header-without-use rules
53552         Prohibit use of cloexec.h, posixver.h, same.h without use.
53553         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
53554         (sc_prohibit_posixver_without_use): Likewise.
53555         (sc_prohibit_same_without_use): Likewise.
53557 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53559         allocator: 'die' routine is now given requested size
53560         * lib/allocator.h (struct allocator.die): New size arg.
53561         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
53562         If the actual problem is an ssize_t limitation, not a size_t or
53563         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
53565 2011-06-01  Eric Blake  <eblake@redhat.com>
53567         strerror: drop strerror_r dependency
53568         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
53569         * lib/strerror-override.c (strerror_override): ...to new file.
53570         * lib/strerror-override.h: Add prototype.
53571         * lib/strerror-impl.h: Delete.
53572         * lib/strerror.c (strerror): New implementation.
53573         * modules/errno (Files): Add new files.
53574         (configure.ac): Compile new file as appropriate.
53575         * modules/strerror (Files): Drop unused file.
53576         (Depends-on): Drop strerror_r-posix.
53577         * MODULES.html.sh: Document strerror_r-posix.
53578         Requested by Sam Steingold.
53580         perror: call strerror_r directly
53581         * modules/perror (Files): Drop strerror-impl.h.
53582         * lib/perror.c (perror): Use our own stack buffer, rather than
53583         calling a wrapper that uses static storage.
53584         * doc/posix-functions/perror.texi (perror): Document a limitation
53585         of our replacement.
53587         strerror_r: fix includes for FreeBSD
53588         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
53589         since we use abort on some platforms.
53590         Reported by Matthias Bolte.
53592 2011-05-31  Bruno Haible  <bruno@clisp.org>
53594         Fix link errors in tests: openat-die uses gettext-h.
53595         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
53596         against $(LIBINTL).
53597         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
53598         against $(LIBINTL).
53599         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
53600         $(LIBINTL).
53601         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
53602         against $(LIBINTL).
53603         * modules/linkat-tests (Makefile.am): Link test-linkat against
53604         $(LIBINTL).
53605         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
53606         $(LIBINTL).
53607         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
53608         against $(LIBINTL).
53609         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
53610         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
53611         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
53612         $(LIBINTL).
53613         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
53614         $(LIBINTL).
53615         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
53616         $(LIBINTL).
53617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53619 2011-05-31  Bruno Haible  <bruno@clisp.org>
53621         Fix link errors in tests: wait-process uses gettext-h.
53622         * modules/nonblocking-pipe-tests (Makefile.am): Set
53623         test_nonblocking_pipe_main_LDADD.
53624         * modules/nonblocking-socket-tests (Makefile.am): Link
53625         test-nonblocking-socket-main against $(LIBINTL).
53626         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53628 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
53630         assert-h: work around 'verify' incompatibility
53631         * lib/verify.h: Use @...@ directives, not ifdef.
53632         * modules/assert-h (assert.h): Implement the directives.
53633         (assert.h): Substitute the symbol-prefix more consistently.
53635 2011-05-29  Jim Meyering  <meyering@redhat.com>
53637         trim: remove three superfluous assignments
53638         * lib/trim.c (trim2): Remove three superfluous assignments
53639         and correct brace positioning.
53641 2011-05-29  Bruno Haible  <bruno@clisp.org>
53643         wctype-h: Avoid namespace pollution on Solaris 2.6.
53644         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
53645         identifiers.
53646         * doc/posix-headers/wctype.texi: Mention the problem.
53647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53649 2011-05-28  Jim Meyering  <meyering@redhat.com>
53651         parse-datetime.y: accommodate -Wstrict-overflow
53652         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
53653         placate -Wstrict-overflow.
53655         trim: avoid a warning from -O2 -Wstrict-overflow
53656         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
53658 2011-05-29  Bruno Haible  <bruno@clisp.org>
53660         gnulib-tool: Fix bug in yesterday's commit.
53661         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
53662         twice.
53664 2011-05-29  Bruno Haible  <bruno@clisp.org>
53666         Allow multiple gnulib generated include files to be combined.
53667         * gnulib-tool (func_compute_include_guard_prefix): New function.
53668         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
53669         ${gl_include_guard_prefix} references.
53670         (func_import, func_create_testdir): Invoke
53671         func_compute_include_guard_prefix.
53672         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
53673         * lib/ctype.in.h: Likewise.
53674         * lib/dirent.in.h: Likewise.
53675         * lib/errno.in.h: Likewise.
53676         * lib/fcntl.in.h: Likewise.
53677         * lib/float.in.h: Likewise.
53678         * lib/getopt.in.h: Likewise.
53679         * lib/iconv.in.h: Likewise.
53680         * lib/langinfo.in.h: Likewise.
53681         * lib/locale.in.h: Likewise.
53682         * lib/math.in.h: Likewise.
53683         * lib/netdb.in.h: Likewise.
53684         * lib/netinet_in.in.h: Likewise.
53685         * lib/poll.in.h: Likewise.
53686         * lib/pthread.in.h: Likewise.
53687         * lib/pty.in.h: Likewise.
53688         * lib/sched.in.h: Likewise.
53689         * lib/se-selinux.in.h: Likewise.
53690         * lib/search.in.h: Likewise.
53691         * lib/signal.in.h: Likewise.
53692         * lib/spawn.in.h: Likewise.
53693         * lib/stdarg.in.h: Likewise.
53694         * lib/stddef.in.h: Likewise.
53695         * lib/stdint.in.h: Likewise.
53696         * lib/stdio.in.h: Likewise.
53697         * lib/stdlib.in.h: Likewise.
53698         * lib/string.in.h: Likewise.
53699         * lib/strings.in.h: Likewise.
53700         * lib/sys_file.in.h: Likewise.
53701         * lib/sys_ioctl.in.h: Likewise.
53702         * lib/sys_select.in.h: Likewise.
53703         * lib/sys_socket.in.h: Likewise.
53704         * lib/sys_stat.in.h: Likewise.
53705         * lib/sys_time.in.h: Likewise.
53706         * lib/sys_times.in.h: Likewise.
53707         * lib/sys_uio.in.h: Likewise.
53708         * lib/sys_utsname.in.h: Likewise.
53709         * lib/sys_wait.in.h: Likewise.
53710         * lib/sysexits.in.h: Likewise.
53711         * lib/termios.in.h: Likewise.
53712         * lib/time.in.h: Likewise.
53713         * lib/unistd.in.h: Likewise.
53714         * lib/wchar.in.h: Likewise.
53715         * lib/wctype.in.h: Likewise.
53716         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
53717         * modules/ctype (Makefile.am): Likewise.
53718         * modules/dirent (Makefile.am): Likewise.
53719         * modules/errno (Makefile.am): Likewise.
53720         * modules/fcntl-h (Makefile.am): Likewise.
53721         * modules/float (Makefile.am): Likewise.
53722         * modules/getopt-posix (Makefile.am): Likewise.
53723         * modules/iconv-h (Makefile.am): Likewise.
53724         * modules/langinfo (Makefile.am): Likewise.
53725         * modules/locale (Makefile.am): Likewise.
53726         * modules/math (Makefile.am): Likewise.
53727         * modules/netdb (Makefile.am): Likewise.
53728         * modules/netinet_in (Makefile.am): Likewise.
53729         * modules/poll-h (Makefile.am): Likewise.
53730         * modules/pthread (Makefile.am): Likewise.
53731         * modules/pty (Makefile.am): Likewise.
53732         * modules/sched (Makefile.am): Likewise.
53733         * modules/search (Makefile.am): Likewise.
53734         * modules/selinux-h (Makefile.am): Likewise.
53735         * modules/signal (Makefile.am): Likewise.
53736         * modules/spawn (Makefile.am): Likewise.
53737         * modules/stdarg (Makefile.am): Likewise.
53738         * modules/stddef (Makefile.am): Likewise.
53739         * modules/stdint (Makefile.am): Likewise.
53740         * modules/stdio (Makefile.am): Likewise.
53741         * modules/stdlib (Makefile.am): Likewise.
53742         * modules/string (Makefile.am): Likewise.
53743         * modules/strings (Makefile.am): Likewise.
53744         * modules/sys_file (Makefile.am): Likewise.
53745         * modules/sys_ioctl (Makefile.am): Likewise.
53746         * modules/sys_select (Makefile.am): Likewise.
53747         * modules/sys_socket (Makefile.am): Likewise.
53748         * modules/sys_stat (Makefile.am): Likewise.
53749         * modules/sys_time (Makefile.am): Likewise.
53750         * modules/sys_times (Makefile.am): Likewise.
53751         * modules/sys_uio (Makefile.am): Likewise.
53752         * modules/sys_utsname (Makefile.am): Likewise.
53753         * modules/sys_wait (Makefile.am): Likewise.
53754         * modules/sysexits (Makefile.am): Likewise.
53755         * modules/termios (Makefile.am): Likewise.
53756         * modules/time (Makefile.am): Likewise.
53757         * modules/unistd (Makefile.am): Likewise.
53758         * modules/wchar (Makefile.am): Likewise.
53759         * modules/wctype-h (Makefile.am): Likewise.
53760         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
53762 2011-05-29  Bruno Haible  <bruno@clisp.org>
53764         assert-h: Allow multiple gnulib generated replacements to coexist.
53765         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
53767 2011-05-29  Bruno Haible  <bruno@clisp.org>
53769         argp: Allow coexistence with strerror_r-posix module.
53770         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
53771         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
53772         by gnulib's <string.h> replacement), assume it has the POSIX signature,
53773         not the glibc signature.
53775 2011-05-28  Bruno Haible  <bruno@clisp.org>
53777         gnulib-tool: Alternative structure of testdirs, similar to --import.
53778         * gnulib-tool: New option --single-configure.
53779         (func_usage): Document it.
53780         (single_configure): New variable.
53781         (func_modules_transitive_closure_separately,
53782         func_modules_transitive_closure_separately,
53783         func_determine_use_libtests, func_modules_add_dummy_separately,
53784         func_modules_to_filelist_separately): New functions, extracted from
53785         func_import.
53786         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
53787         (func_import): Use the new functions.
53788         (func_create_testdir): Set final_modules. Handle $single_configure =
53789         true case.
53791 2011-05-28  Bruno Haible  <bruno@clisp.org>
53793         getloadavg: Remove an unreliable safety check.
53794         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
53795         getloadavg.c is in place.
53796         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
53797         Reported by Sam Steingold <sds@gnu.org>.
53799 2011-05-28  Bruno Haible  <bruno@clisp.org>
53801         doc: Cleanup yet another file produced by texinfo.tex.
53802         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
53804 2011-05-28  Bruno Haible  <bruno@clisp.org>
53806         Finish the conditional dependencies mechanism.
53807         * gnulib-tool: New option --no-conditional-dependencies.
53808         (func_usage): Document it. Don't mark --conditional-dependencies as
53809         experimental.
53810         (cond_dependencies): The possible values can now be true, false, empty.
53811         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
53812         (func_import): Store setting in gnulib-cache.m4 and read it from there.
53813         * doc/gnulib-tool.texi (Conditional dependencies): New section.
53815 2011-05-28  Bruno Haible  <bruno@clisp.org>
53817         doc: Use a recent texinfo.tex.
53818         * doc/Makefile (tex_opts): New variable.
53819         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
53821 2011-05-28  Jim Meyering  <meyering@redhat.com>
53823         intprops.h: adjust comment to match code change
53824         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
53825         only once, it *may* have side effects.  Also fix an unrelated typo.
53826         (_GL_INT_SIGNED): Likewise.
53828 2011-05-26  Simon Josefsson  <simon@josefsson.org>
53830         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
53832 2011-05-26  Bruno Haible  <bruno@clisp.org>
53834         mbsrchr: Avoid collision with system function on Interix.
53835         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
53836         Reported by Markus Duft <mduft@gentoo.org>.
53838 2011-05-15  James Youngman  <jay@gnu.org>
53840         getopt: for ambiguous options, enumerate the possibilities.
53841         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
53842         the ambiguous options when an ambiguous prefix is given. This was
53843         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
53844         glibc change was
53845         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
53847 2011-05-25  Eric Blake  <eblake@redhat.com>
53849         getcwd: work around mingw bug
53850         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
53851         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53852         Reported by Matthias Bolte.
53854 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
53856         test-intprops: disable -Wtype-limits diagnostics
53857         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
53858         diagnostics.  Otherwise, the integer overflow macros generate many
53859         diagnostics.  Reported by Jim Meyering in
53860         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53862         intprops: shorten, to pacify gcc -Woverlength-strings
53863         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
53864         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
53865         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
53866         likely to run afoul of C compiler limits for string constant lengths.
53867         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53869 2011-05-24  Eric Blake  <eblake@redhat.com>
53871         docs: document recently fixed glibc printf bug
53872         * doc/posix-functions/fprintf.texi (fprintf): Document it.
53873         * doc/posix-functions/printf.texi (printf): Likewise.
53874         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53875         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53877         closein-tests: convert to init.sh
53878         * modules/closein-tests (Files): Add init.sh
53879         * tests/test-closein.sh Use it.
53881         yesno-tests: convert to init.sh
53882         * modules/yesno-tests (Files): Add init.sh.
53883         * tests/test-yesno.sh: Use it.
53885         atexit-tests: ensure reliable exit status
53886         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
53887         Reported by Bruno Haible.
53889 2011-05-24  Bruno Haible  <bruno@clisp.org>
53891         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
53892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
53893         gl_PREREQ_STRERROR_R invocations from here...
53894         * modules/strerror_r-posix (configure.ac): ... to here.
53896 2011-05-24  Eric Blake  <eblake@redhat.com>
53898         strerror_r: fix missing header
53899         * lib/strerror_r.c: Avoid compiler warning about snprintf.
53901         strerror_r: fix AIX test failures
53902         * lib/strerror_r.c (strerror_r): Convert silent truncation to
53903         ERANGE failure.
53905         strerror_r: fix Solaris test failures
53906         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
53907         failures.
53908         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
53910         strerror_r: enforce POSIX recommendations
53911         * lib/strerror_r.c (safe_copy): New helper method.
53912         (strerror_r): Guarantee a non-empty string.
53913         * tests/test-strerror_r.c (main): Enhance tests to incorporate
53914         recent POSIX rulings and to match our strerror guarantees.
53915         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
53917 2011-05-24  Jim Meyering  <meyering@redhat.com>
53919         test-perror2.c: avoid warning about unused variable
53920         * tests/test-perror2.c (main): Remove declaration of unused "fp".
53922 2011-05-24  Eric Blake  <eblake@redhat.com>
53924         perror: avoid spurious test failure on HP-UX
53925         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
53927         tests: fix logic bug in init.sh
53928         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
53929         shell.
53931 2011-05-24  Jim Meyering  <meyering@redhat.com>
53933         utimensat: do not reference an out-of-scope buffer
53934         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
53935         declared in an inner scope, yet "times" would be dereferenced outside
53936         the scope in which "ts" was valid.
53937         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
53938         of ts[2] "out/up", so that the use of aliased "times" (via
53939         "times = ts;") does not end up referencing an out-of-scope "ts"
53941         opendir-safer.c: don't clobber errno; don't close negative FD
53942         * lib/opendir-safer.c (opendir_safer):
53943         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
53944         file descriptor, and more importantly, don't clobber the
53945         offending errno value with EINVAL.  Before, upon failure
53946         of dup_safer, we would pass the negative file descriptor to
53947         fdopendir, which would clobber errno.
53949 2011-05-23  Bruno Haible  <bruno@clisp.org>
53951         idcache: Fix module description.
53952         * modules/idcache (Include): Set to "idcache.h".
53954 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
53956         gnulib-tool: fix portability problem with MacOS sed
53957         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
53958         before the "}".  Problem reported by Leo in
53959         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
53960         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
53961         sed_extract_condition1, sed_extract_condition2.
53963 2011-05-23  Bruno Haible  <bruno@clisp.org>
53965         hash: Simplify autoconf macro.
53966         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
53968 2011-05-23  Bruno Haible  <bruno@clisp.org>
53970         getugroups: Fix module description.
53971         * modules/getugroups (Include): Set to "getugroups.h".
53973 2011-05-23  Bruno Haible  <bruno@clisp.org>
53975         linkat: Simplify autoconf macro.
53976         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
53978 2011-05-23  Bruno Haible  <bruno@clisp.org>
53979             Eric Blake  <eblake@redhat.com>
53981         linkat, renameat: Update dependencies.
53982         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
53983         * modules/linkat (Depends-on): Likewise. Remove also readlink,
53984         symlinkat.
53986 2011-05-23  Jim Meyering  <meyering@redhat.com>
53988         maint.mk: more tight_scope improvements
53989         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
53990         (_gl_TS_headers): Define only in if-0'd block.
53991         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
53992         sometimes we must *not* use it.  Adjust uses accordingly.
53993         (sc_tight_scope): Use much simpler grep-based test to determine
53994         whether we skip this rule.
53996         maint.mk: generalize/improve the tight-scope rule
53997         * top/maint.mk: Emit a warning when the test is skipped.
53998         (_gl_TS_dir): Add $(srcdir)/ prefix.
53999         (_gl_TS_function_match): Simplify, rather than trying
54000         to enumerate common types.  Otherwise, it would fail to match an
54001         "extern unsigned char const *" declaration in idutils.
54002         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54003         a way to support use of that type of macro.
54004         (_gl_TS_var_match): Simplify regexp.
54005         (_gl_TS_obj_files): New configurable variable.
54006         (_gl_TS_headers): Likewise.
54008 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54010         verify: fix bug when gnulib <assert.h> is also included
54011         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54012         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54013         Perhaps there's a better way, but this fixes the immediate problem.
54014         Problem reported by Bruno Haible in
54015         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54017 2011-05-22  Bruno Haible  <bruno@clisp.org>
54019         xgetcwd: Simplify autoconf macro.
54020         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54022 2011-05-22  Bruno Haible  <bruno@clisp.org>
54024         New module 'mktime-internal'.
54025         * modules/mktime-internal: New file.
54026         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54027         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54028         mktime_internal as a C macro if libc has __mktime_internal.
54029         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54030         conditions.
54031         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54033 2011-05-22  Bruno Haible  <bruno@clisp.org>
54035         timegm: Correct mktime replacement statements.
54036         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54037         defining mktime as a C macro. This completes a 2009-07-28 commit.
54039 2011-05-22  Bruno Haible  <bruno@clisp.org>
54041         timegm: Simplify autoconf macro.
54042         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54044 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54046         clock-time: change to LGPLv2+.
54047         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54048         BSD-like but we have no mark for that; this is good enough for now.
54050 2011-05-21  Bruno Haible  <bruno@clisp.org>
54052         strerror_r: Fix comments.
54053         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54055 2011-05-21  Bruno Haible  <bruno@clisp.org>
54057         relocatable-prog-wrapper: Fix possible link error.
54058         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54059         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54060         (gl_FUNC_SETENV): ... to here.
54061         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54062         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54064 2011-05-21  Bruno Haible  <bruno@clisp.org>
54066         relocatable-prog-wrapper: Assume strerror() exists.
54067         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54068         m4/strerror.m4.
54069         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54070         * lib/relocwrapper.c: Remove mention of strerror module.
54071         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54072         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54073         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54074         C macro.
54076 2011-05-21  Bruno Haible  <bruno@clisp.org>
54078         select: Simplify replacement idiom.
54079         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54080         Win32 platforms.
54081         * lib/sys_select.in.h (select): Simplify accordingly.
54082         * modules/select (Depends-on): Likewise.
54084 2011-05-21  Bruno Haible  <bruno@clisp.org>
54086         mkdir-p: Simplify autoconf macro.
54087         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54088         gl_FUNC_LCHOWN.
54090 2011-05-21  Eric Blake  <eblake@redhat.com>
54092         strerror_r: avoid clobbering strerror on cygwin
54093         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54094         fall back instead to sys_errlist.
54095         * modules/strerror (configure.ac): Add witness.
54096         * tests/test-strerror_r.c (main): Enhance test.
54097         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54098         * tests/test-perror2.c (main): Free memory before exit.
54100 2011-05-21  Bruno Haible  <bruno@clisp.org>
54102         mkdtemp: Use gnulib naming conventions.
54103         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54104         * modules/mkdtemp (configure.ac): Update.
54106 2011-05-20  Eric Blake  <eblake@redhat.com>
54108         strerror_r: avoid corrupting errno on Solaris
54109         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54110         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54112         strerror_r: avoid compiler warning
54113         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54115         strerror_r: simplify AIX code
54116         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54118         test-perror: avoid spurious failure on FreeBSD
54119         * modules/perror-tests (Depends-on): Add strerror, now that
54120         strerror_r no longer pulls it in.
54122 2011-05-20  Bruno Haible  <bruno@clisp.org>
54124         strerror_r-posix: Remove unused dependencies.
54125         * modules/strerror_r-posix (Depends-on): Remove strerror.
54126         Reported by Eric Blake.
54128 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54130         intprops: remove assumption about A|B representation
54131         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54132         is a valid integer if both A and B are.  Although this is true for
54133         all known practical hosts, the C standard doesn't guarantee it,
54134         and the code need not assume it.  Also, this change may work around
54135         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54136         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54138 2011-05-20  Eric Blake  <eblake@redhat.com>
54140         perror: work around FreeBSD bug
54141         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54142         is broken.  Move AC_LIBOBJ...
54143         * modules/perror (configure.ac): Here.
54144         * doc/posix-functions/perror.texi (perror): Document this.
54145         * tests/test-perror2.c (main): Enhance test.
54147         test-perror: check for strerror interactions
54148         * tests/macros.h (STREQ): Add macro.
54149         * modules/perror-tests (Files): Add second test.
54150         * tests/test-perror2.c (main): New file.
54151         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54153         test-perror: rewrite to use init script
54154         * modules/perror-tests (Files): Add init.sh.
54155         * tests/test-perror.sh: Use temporary directory.
54157 2011-05-20  Jim Meyering  <meyering@redhat.com>
54159         maint: replace misused "a" with "an"
54160         * doc/intprops.texi: "a integer"
54161         * doc/regex.texi: "a explanation"
54162         * lib/alignof.h: "a object"
54163         * lib/argmatch.h: "a explanation"
54164         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54165         * lib/stdint.in.h: "a integer"
54166         * lib/userspec.c: "a owner"
54167         * doc/gnulib.texi: Fix "a idea", and reword.
54169 2011-05-19  Jim Meyering  <meyering@redhat.com>
54171         maint: correct misuse of "a" and "an"
54172         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54173         * lib/argp-help.c: "an docum...": s/an/a/
54174         * lib/argp-parse.c: "An vector": s/An/A/
54175         * lib/execute.c: "an native": s/an/a/
54176         * lib/spawn-pipe.c: Likewise.
54177         * lib/gc.h: "an Gc_rc": s/an/a/
54178         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54179         * lib/fts.c: "an stat.st_dev": s/an/a/
54181 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54183         intprops-tests: work around HP-UX 11.23 cc bug with constants
54184         * tests/test-intprops.c (VERIFY): New macro.
54185         (main): Use it, instead of verify, to work around the compiler bug; see
54186         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54188         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54189         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54190         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54191         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54192         (_GL_REMAINDER_OVERFLOW): Use it.
54194         intprops-tests: revert unsigned part of previous change
54195         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54196         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54197         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54198         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54200 2011-05-19  Bruno Haible  <bruno@clisp.org>
54202         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54203         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54204         strerror_r() returned without filling the buffer.
54205         Reported by Eric Blake.
54207 2011-05-19  Eric Blake  <eblake@redhat.com>
54209         strerror_r: guarantee unchanged errno
54210         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
54211         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
54212         failure.
54213         * tests/test-strerror_r.c (main): Enhance test.
54215 2011-05-19  Bruno Haible  <bruno@clisp.org>
54217         strerror_r: Reorder #if blocks.
54218         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
54219         for consistency with the previous commit.
54221 2011-05-19  Bruno Haible  <bruno@clisp.org>
54223         perror: Avoid clobbering the strerror buffer when possible.
54224         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
54225         * lib/strerror.c: Include it.
54226         * modules/strerror (Files): Add lib/strerror-impl.h.
54227         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
54228         (my_strerror): New function, defined through lib/strerror-impl.h.
54229         (perror): Use it instead of strerror.
54230         * modules/perror (Files): Add lib/strerror-impl.h.
54231         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
54233 2011-05-19  Eric Blake  <eblake@redhat.com>
54235         strerror_r: fix on newer cygwin
54236         * lib/strerror_r.c (strerror_r): Cygwin now has
54237         __xpg_strerror_r, use it.
54239 2011-05-19  Bruno Haible  <bruno@clisp.org>
54241         strerror_r: Avoid clobbering the strerror buffer when possible.
54242         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
54243         (sys_nerr, sys_errlist): New declarations.
54244         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
54245         HP-UX, native Win32, IRIX, and 32-bit Solaris.
54246         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
54248 2011-05-19  Bruno Haible  <bruno@clisp.org>
54250         strerror_r: Fix test failure on mingw.
54251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54252         EXTEND_STRERROR_R.
54253         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54254         macros from errno.in.h instead.
54256 2011-05-19  Eric Blake  <eblake@redhat.com>
54258         strerror: relax test for Solaris
54259         * tests/test-strerror.c (main): Permit Solaris behavior.
54260         * tests/test-strerror_r.c (main): Likewise.
54262         strerror: enforce POSIX ruling on strerror(0)
54263         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54264         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54265         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54266         * doc/posix-functions/strerror.texi (strerror): Document it.
54267         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54268         * tests/test-strerror.c (main): Strengthen test.
54269         * tests/test-strerror_r.c (main): Likewise.
54271 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54273         intprop-tests: port to older and more-pedantic compilers
54274         * modules/intprops-tests (Files): Add tests/macros.h.
54275         * tests/test-intprops.c: Include macros.h.
54276         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54277         it's no longer documented to expand to an integer constant expression.
54278         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54279         argument is floating point, as it's no longer documented to expand
54280         to an integer constant expression in that case.
54281         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54282         compiler bugs reported by Bruno Haible.  See
54283         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54284         (U0, U1): New constants, to work around the same bugs.  Also,
54285         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54287         intprops: work around C compiler bugs
54288         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54289         bug in Sun C 5.11 2010/08/13 and other compilers; see
54290         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54292         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54293         * doc/intprops.texi (Integer Type Determination): Fix
54294         documentation for TYPE_IS_INTEGER: it returns an constant
54295         expression, not an integer constant expression.  Fix doc for
54296         TYPE_SIGNED: it returns an integer constant expression only if its
54297         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54298         hardly worth documented that way....)
54300 2011-05-18  Bruno Haible  <bruno@clisp.org>
54302         strerror_r: Avoid clobbering the strerror buffer when possible.
54303         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54304         Handle gnulib defined errno values here. When strerror() returns NULL
54305         or an empty string, return EINVAL.
54306         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54307         gnulib defined errno values here.
54308         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54310 2011-05-18  Eric Blake  <eblake@redhat.com>
54312         fnmatch: avoid compiler warning
54313         * lib/fnmatch_loop.c (FCT): Use correct type.
54314         Reported by Matthias Bolte.
54316 2011-05-13  Jim Meyering  <meyering@redhat.com>
54318         maint.mk: three new prohibit_<HDR>_without_use rules
54319         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54320         (sc_prohibit_stdio-safer_without_use): Likewise.
54321         (sc_prohibit_xfreopen_without_use): Likewise.
54323 2011-05-17  Jim Meyering  <meyering@redhat.com>
54325         announce-gen: fail if the NEWS delta is empty
54326         If there's nothing noteworthy in NEWS, then either you forgot
54327         or you shouldn't be releasing.
54328         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54330 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54332         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54333         reserved symbols starting with double underscore from the check.
54335 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54337         intprops: add doc
54338         * doc/intprops.texi: New file, documenting intprops.
54339         * doc/gnulib.texi (Particular Modules): Include it.
54341         verify: add doc to gnulib manual and fix example
54342         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54343         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54344         (Compile-time Assertions): Fix example so it can't overflow.
54346 2011-05-17  Jim Meyering  <meyering@redhat.com>
54348         warnings.m4: don't usurp save_CPPFLAGS variable name
54349         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54351         doc: fix typo
54352         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54354 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54355             Bruno Haible  <bruno@clisp.org>
54357         doc: Tweak recent change.
54358         * README (Portability guidelines): Tweak new text.
54359         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54360         Interix 6.1.
54362 2011-05-16  Eric Blake  <eblake@redhat.com>
54364         inttypes: avoid autoconf warning
54365         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54366         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54368 2011-05-16  Sam Steingold  <sds@gnu.org>
54369         and Eric Blake  <eblake@redhat.com>
54371         vc-list-files: accept multiple directory operands
54372         * build-aux/vc-list-files: Iterate over all remaining operands.
54374 2011-05-16  Bruno Haible  <bruno@clisp.org>
54376         Fix confusion regarding deprecated modules.
54377         * modules/calloc (Status, Notice): Mark module as deprecated, not
54378         obsolete.
54379         * modules/fnmatch-posix (Status, Notice): Likewise.
54380         * modules/getdate (Status, Notice): Likewise.
54381         * modules/getopt (Status, Notice): Likewise.
54382         * modules/malloc (Status, Notice): Likewise.
54383         * modules/pipe (Status, Notice): Likewise.
54384         * modules/realloc (Status, Notice): Likewise.
54385         * modules/rename-dest-slash (Status, Notice): Likewise.
54386         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
54387         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
54388         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
54389         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
54390         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
54392 2011-05-16  Bruno Haible  <bruno@clisp.org>
54394         doc: List the target platforms.
54395         * doc/gnulib-intro.texi (Target Platforms): New section.
54396         * doc/gnulib.texi (Introduction): Update menu.
54397         * README (Portability guidelines): Refer to the new section. Update
54398         statement about oldest supported environment. Remove rationale why
54399         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
54400         unportable C89 function.
54401         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
54402         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
54404 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54406         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
54408 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54410         intprops-tests: new module
54411         * modules/intprops-tests, tests/test-intprops.c: New files.
54413         intprops: add safe, portable integer overflow checking
54414         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
54415         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
54416         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
54417         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
54418         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
54419         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
54420         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
54421         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
54422         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
54423         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
54424         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
54426 2011-05-12  James Youngman  <jay@gnu.org>
54428         Add a test for glibc's Bugzilla bug #12378.
54429         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
54430         doesn't allow the literal matching of a lone "[" (which is
54431         required by POSIX).
54432         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
54434 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
54436         Sync glibc change fixing Bugzilla bug #12378.
54437         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
54438         beginning and fall back to matching as normal character if the
54439         string ends before the matching ']' is found.  This is what POSIX
54440         requires.
54442 2011-05-13  Eric Blake  <eblake@redhat.com>
54444         getcwd-lgpl: relax test for FreeBSD
54445         * doc/posix-functions/getcwd.texi (getcwd): Document portability
54446         issue.
54447         * tests/test-getcwd-lgpl.c (main): Relax test.
54448         Reported by Matthias Bolte.
54450 2011-05-11  Eric Blake  <eblake@redhat.com>
54452         test-fflush: silence compiler warning
54453         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
54455 2011-05-11  Bruno Haible  <bruno@clisp.org>
54457         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
54458         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
54459         * modules/canonicalize (Depends-on): Add 'nocrash'.
54460         * modules/canonicalize-lgpl (Depends-on): Likewise.
54461         * doc/posix-functions/realpath.texi: Update platforms list.
54462         Reported by Ryan Schmidt <ryandesign@macports.org>.
54464 2011-05-11  Bruno Haible  <bruno@clisp.org>
54466         group-member: Declare function in <unistd.h>.
54467         * lib/unistd.in.h (group_member): New declaration.
54468         * lib/group-member.h: Remove file.
54469         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
54470         * tests/test-unistd-c++.cc: Check signature of group_member.
54471         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
54472         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
54473         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
54474         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
54475         HAVE_GROUP_MEMBER.
54476         * modules/group-member (Files): Remove lib/group-member.h.
54477         (Depends-on): Add unistd. Specify conditions.
54478         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54479         (Include): Change to <unistd.h>.
54480         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
54481         HAVE_GROUP_MEMBER.
54482         * NEWS: Mention the change.
54483         * lib/euidaccess.c: Don't include group-member.h.
54485 2011-05-11  Bruno Haible  <bruno@clisp.org>
54487         group-member: Document module.
54488         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
54489         module.
54491 2011-05-11  Bruno Haible  <bruno@clisp.org>
54493         fclose: Fix mistake earlier today.
54494         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
54496 2011-05-11  Eric Blake  <eblake@redhat.com>
54498         fclose: preserve fflush errors
54499         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
54500         Reported by Jim Meyering.
54502         bootstrap: support a prereq of 'rpcgen -' on RHEL5
54503         * build-aux/bootstrap (check_versions): When no specific version
54504         is required, merely check that the app produces an exit status
54505         that indicates its existence.
54507         maint.mk: drop redundant check
54508         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
54509         the same but better.
54511 2011-05-11  Bruno Haible  <bruno@clisp.org>
54513         fclose: Fix possible link error.
54514         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
54515         unregister_shadow_fd. Improve comments.
54516         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
54517         Eric Blake.
54519 2011-05-11  Jim Meyering  <meyering@redhat.com>
54521         maint.mk: improve "can not" detection and generalize rule name
54522         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
54523         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
54524         Use the same technique as in sc_prohibit_doubled_word, so that
54525         we recognize "can not" also when the words are separated by a newline.
54526         Suggested by Eric Blake.
54527         (perl_filename_lineno_text_): Define.  Factored out of...
54528         (prohibit_doubled_word_): ...here.  Use the new definition.
54529         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
54530         (prohibit_undesirable_word_seq_RE_): New overridable variable.
54531         (ignore_undesirable_word_sequence_RE_): New overridable variable.
54533 2011-05-10  Eric Blake  <eblake@redhat.com>
54535         fclose: avoid double close race when possible
54536         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
54537         all but WINDOWS_SOCKETS.
54539 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
54541         openat: correct new comment
54542         * lib/openat-proc.c (openat_proc_name): Correct the comment.
54544 2011-05-10  Jim Meyering  <meyering@redhat.com>
54546         openat: add comments
54547         * lib/openat-proc.c (openat_proc_name): Add comments,
54548         mostly from Eric Blake.
54550 2011-05-09  Eric Blake  <eblake@redhat.com>
54552         openat: reduce syscalls in first probe of /proc
54553         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
54554         be a directory.  Simplify the probe for .. bugs.
54555         * modules/openat (Depends-on): Drop same-inode.
54556         Reported by Bastien ROUCARIES.
54558 2011-05-09  Jim Meyering  <meyering@redhat.com>
54560         maint.mk: change semantics/name of tight_scope variables
54561         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
54562         Rename variables to align with semantics that make them more useful.
54564         maint.mk: tweak new rule's name not to impinge
54565         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
54566         (sc_tight_scope): Use new rule name rather than $@-0.
54568         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
54569         * top/maint.mk (sc_tight_scope): New rule.
54570         (sc_tight_scope-0): New rule, ifdef'd out.
54571         (_gl_TS_dir): Default.
54572         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
54573         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
54575 2011-05-09  Simon Josefsson  <simon@josefsson.org>
54577         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
54578         Haible <bruno@clisp.org>.
54580 2011-05-08  Bruno Haible  <bruno@clisp.org>
54582         Comments.
54583         * m4/isnanf.m4: Add comment.
54584         * m4/isnanl.m4: Likewise.
54586 2011-05-08  Bruno Haible  <bruno@clisp.org>
54588         glob: Remove obsolete macro.
54589         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
54591 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
54593         intprops: Sun C 5.11 supports __typeof__
54594         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
54595         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
54596         which is new.
54597         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
54599         intprops: switch to usual gnulib indenting and naming
54600         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
54601         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
54603         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
54605 2011-05-08  Jim Meyering  <meyering@redhat.com>
54607         maint.mk: suppress "Entering/Leaving directory" diag in announcement
54608         * top/maint.mk (release-prep): Use make's --no-print-directory
54609         option when generating the announcement.  This eliminates the
54610         pesky "make[2]: Entering/Leaving directory" diagnostics in the
54611         generated announcement template.
54613 2011-05-08  Bruno Haible  <bruno@clisp.org>
54615         tzset: Fix gettimeofday wrapper on Solaris 2.6.
54616         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
54617         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
54619 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
54621         ignore-value, verify: Omit include files from lib_SOURCES.
54622         * modules/ignore-value, modules/verify (Makefile.am):
54623         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
54624         that leads Automake to duplicate use of am__objects_... variables
54625         in Makefile.in.  See
54626         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
54628 2011-05-07  Bruno Haible  <bruno@clisp.org>
54630         fclose: Simplify autoconf macro.
54631         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
54632         defined.
54634 2011-05-07  Bruno Haible  <bruno@clisp.org>
54636         canonicalize-lgpl: Fix autoconf macro ordering bug.
54637         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
54638         gl_STDLIB_H_DEFAULTS.
54640 2011-05-06  Eric Blake  <eblake@redhat.com>
54642         maintainer-makefile: make sc_po_check easier to tune
54643         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
54644         to probe for strings, such as an alternate location for gnulib.
54646         fclose: guarantee behavior on seekable stdin
54647         * modules/fclose (Depends-on): Add fflush.
54648         * doc/posix-functions/fclose.texi (fclose): Document this.
54649         * tests/test-fclose.c (main): Make test for this unconditional.
54651 2011-05-06  Bruno Haible  <bruno@clisp.org>
54653         fflush, fpurge: Relicense under LGPLv2+.
54654         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
54655         * modules/fpurge (License): Likewise.
54656         With permission from Eric Blake and Jim Meyering.
54657         Suggested by Eric Blake.
54659 2011-05-06  Karl Berry  <karl@gnu.org>
54661         * MODULES.html.sh (func_all_modules): remove exit.
54663 2011-05-06  Jim Meyering  <meyering@redhat.com>
54665         maint.mk: use info-gnu@ as the default only for a stable release
54666         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
54667         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
54668         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
54669         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
54671 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
54673         assert-h: new module, which supports C1X-style static_assert
54674         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
54675         * lib/verify.h: Revamp so that this can be copied into assert.h,
54676         while retaining the ability to use it standalone as before.
54677         Rename private identifiers so as not to encroach on the
54678         standard C namespace, since this is now used by assert.h.
54679         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
54680         the old verify_true.
54681         (_GL_VERIFY_TRUE): New macro, with much of the contents of
54682         the old verify_true.  Use _GL_VERIFY_TYPE.
54683         (_GL_VERIFY): New macro, with much of the contents of the old verify.
54684         (static_assert): New macro, if _GL_STATIC_ASSERT_H
54685         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
54686         defined when this file is copied into the replacement assert.h.
54687         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
54688         and _Static_assert is not built in.
54689         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
54690         defined, and use the new macros mentioned above.
54691         * doc/posix-headers/assert.texi: Document this.
54693 2011-05-05  Bruno Haible  <bruno@clisp.org>
54695         fclose, fflush: Respect rules for use of AC_LIBOBJ.
54696         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
54697         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
54698         gl_REPLACE_FCLOSE here.
54699         * modules/fflush (Depends-on): Remove fclose.
54700         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
54701         combination with module 'fclose'.
54703 2011-05-05  Bruno Haible  <bruno@clisp.org>
54705         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
54706         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
54707         gl_FUNC_FFLUSH.
54708         (gl_FUNC_FFLUSH): Use it.
54709         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
54710         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
54711         gl_REPLACE_FSEEKO here.
54713 2011-05-05  Bruno Haible  <bruno@clisp.org>
54715         tzset: Relicense under LGPL.
54716         * modules/tzset (License): Change to LGPL.
54717         No agreement needed; it's a no-op.
54719         strtoimax, strtoumax: Relicense under LGPL.
54720         * modules/strtoimax (License): Change to LGPL.
54721         * modules/strtoumax (License): Likewise.
54722         With permission from Jim Meyering, Paul Eggert:
54723         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
54724         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
54726         getgroups: Relicense under LGPL.
54727         * modules/getgroups (License): Change to LGPL.
54728         With permission from Jim Meyering, Paul Eggert, Eric Blake:
54729         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54730         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54731         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54733         nanosleep: Relicense under LGPL.
54734         * modules/nanosleep (License): Change to LGPL.
54735         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
54736         Haible:
54737         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54738         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54739         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54740         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54742         futimens: Relicense under LGPL.
54743         * modules/futimens (License): Change to LGPL.
54744         With permission from Eric Blake:
54745         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54747         fflush: Relicense under LGPL.
54748         * modules/fflush (License): Change to LGPL.
54749         With permission from Eric Blake, Bruno Haible, Jim Meyering:
54750         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54751         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54752         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
54754         tmpfile: Relicense under LGPL.
54755         * modules/tmpfile (License): Change to LGPL.
54756         With permission from Ben Pfaff:
54757         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54759         isfinite: Relicense under LGPL.
54760         * modules/isfinite (License): Change to LGPL.
54761         With permission from Ben Pfaff, Bruno Haible:
54762         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54763         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
54765         acosl..tanl: Relicense under LGPL.
54766         * modules/acosl (License): Change to LGPL.
54767         * modules/asinl (License): Likewise.
54768         * modules/atanl (License): Likewise.
54769         * modules/cosl (License): Likewise.
54770         * modules/expl (License): Likewise.
54771         * modules/logl (License): Likewise.
54772         * modules/sinl (License): Likewise.
54773         * modules/sqrtl (License): Likewise.
54774         * modules/tanl (License): Likewise.
54775         Source code originally from glibc and Paolo Bonzini. Agreements:
54776         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
54777         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
54779 2011-05-05  Bruno Haible  <bruno@clisp.org>
54781         signal: Define sighandler_t.
54782         * lib/signal.in.h (sighandler_t): New type.
54783         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
54784         whether sighandler_t is defined.
54785         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
54786         * modules/signal (Depends-on): Add extensions.
54787         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
54788         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
54789         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
54791 2011-05-05  Eric Blake  <eblake@redhat.com>
54793         maint: remove useless REPLACE_*_H macros
54794         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
54795         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54796         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54797         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
54798         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54799         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54800         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
54801         * m4/btowc.m4: Update callers.
54802         * m4/dirfd.m4: Likewise.
54803         * m4/duplocale.m4: Likewise.
54804         * m4/fchdir.m4: Likewise.
54805         * m4/fdopendir.m4: Likewise.
54806         * m4/inet_ntop.m4: Likewise.
54807         * m4/inet_pton.m4: Likewise.
54808         * m4/ioctl.m4: Likewise.
54809         * m4/mbrlen.m4: Likewise.
54810         * m4/mbrtowc.m4: Likewise.
54811         * m4/mbsinit.m4: Likewise.
54812         * m4/mbsnrtowcs.m4: Likewise.
54813         * m4/mbsrtowcs.m4: Likewise.
54814         * m4/poll.m4: Likewise.
54815         * m4/setlocale.m4: Likewise.
54816         * m4/wcrtomb.m4: Likewise.
54817         * m4/wcsnrtombs.m4: Likewise.
54818         * m4/wcsrtombs.m4: Likewise.
54819         * m4/wctob.m4: Likewise.
54820         * m4/wcwidth.m4: Likewise.
54821         * modules/posix_spawn: Likewise.
54822         * modules/posix_spawn_file_actions_addclose: Likewise.
54823         * modules/posix_spawn_file_actions_adddup2: Likewise.
54824         * modules/posix_spawn_file_actions_addopen: Likewise.
54825         * modules/posix_spawn_file_actions_destroy: Likewise.
54826         * modules/posix_spawn_file_actions_init: Likewise.
54827         * modules/posix_spawnattr_destroy: Likewise.
54828         * modules/posix_spawnattr_getflags: Likewise.
54829         * modules/posix_spawnattr_getpgroup: Likewise.
54830         * modules/posix_spawnattr_getschedparam: Likewise.
54831         * modules/posix_spawnattr_getschedpolicy: Likewise.
54832         * modules/posix_spawnattr_getsigdefault: Likewise.
54833         * modules/posix_spawnattr_getsigmask: Likewise.
54834         * modules/posix_spawnattr_init: Likewise.
54835         * modules/posix_spawnattr_setflags: Likewise.
54836         * modules/posix_spawnattr_setpgroup: Likewise.
54837         * modules/posix_spawnattr_setschedparam: Likewise.
54838         * modules/posix_spawnattr_setschedpolicy: Likewise.
54839         * modules/posix_spawnattr_setsigdefault: Likewise.
54840         * modules/posix_spawnattr_setsigmask: Likewise.
54841         * modules/posix_spawnp: Likewise.
54843 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
54845         Add option to do-release-commit-and-tag to specify branch.
54846         * build-aux/do-release-commit-and-tag: Add --branch.
54848 2011-05-03  Bruno Haible  <bruno@clisp.org>
54850         Avoid unnecessary compilation units, through conditional dependencies.
54851         * modules/accept (Depends-on): Add conditions to the dependencies.
54852         * modules/acosl (Depends-on): Likewise.
54853         * modules/argz (Depends-on): Likewise.
54854         * modules/asinl (Depends-on): Likewise.
54855         * modules/atanl (Depends-on): Likewise.
54856         * modules/atoll (Depends-on): Likewise.
54857         * modules/bind (Depends-on): Likewise.
54858         * modules/btowc (Depends-on): Likewise.
54859         * modules/canonicalize-lgpl (Depends-on): Likewise.
54860         * modules/ceil (Depends-on): Likewise.
54861         * modules/ceilf (Depends-on): Likewise.
54862         * modules/ceill (Depends-on): Likewise.
54863         * modules/chdir-long (Depends-on): Likewise.
54864         * modules/chown (Depends-on): Likewise.
54865         * modules/close (Depends-on): Likewise.
54866         * modules/connect (Depends-on): Likewise.
54867         * modules/cosl (Depends-on): Likewise.
54868         * modules/dirfd (Depends-on): Likewise.
54869         * modules/dprintf (Depends-on): Likewise.
54870         * modules/dprintf-posix (Depends-on): Likewise.
54871         * modules/error (Depends-on): Likewise.
54872         * modules/euidaccess (Depends-on): Likewise.
54873         * modules/expl (Depends-on): Likewise.
54874         * modules/faccessat (Depends-on): Likewise.
54875         * modules/fchdir (Depends-on): Likewise.
54876         * modules/fclose (Depends-on): Likewise.
54877         * modules/fcntl (Depends-on): Likewise.
54878         * modules/fdopendir (Depends-on): Likewise.
54879         * modules/fflush (Depends-on): Likewise.
54880         * modules/floor (Depends-on): Likewise.
54881         * modules/floorf (Depends-on): Likewise.
54882         * modules/floorl (Depends-on): Likewise.
54883         * modules/fnmatch (Depends-on): Likewise.
54884         * modules/fopen (Depends-on): Likewise.
54885         * modules/fprintf-posix (Depends-on): Likewise.
54886         * modules/frexp (Depends-on): Likewise.
54887         * modules/frexp-nolibm (Depends-on): Likewise.
54888         * modules/frexpl (Depends-on): Likewise.
54889         * modules/frexpl-nolibm (Depends-on): Likewise.
54890         * modules/fseek (Depends-on): Likewise.
54891         * modules/fsusage (Depends-on): Likewise.
54892         * modules/ftell (Depends-on): Likewise.
54893         * modules/ftello (Depends-on): Likewise.
54894         * modules/futimens (Depends-on): Likewise.
54895         * modules/getcwd (Depends-on): Likewise.
54896         * modules/getcwd-lgpl (Depends-on): Likewise.
54897         * modules/getdelim (Depends-on): Likewise.
54898         * modules/getdomainname (Depends-on): Likewise.
54899         * modules/getgroups (Depends-on): Likewise.
54900         * modules/gethostname (Depends-on): Likewise.
54901         * modules/getline (Depends-on): Likewise.
54902         * modules/getlogin_r (Depends-on): Likewise.
54903         * modules/getopt-posix (Depends-on): Likewise.
54904         * modules/getpeername (Depends-on): Likewise.
54905         * modules/getsockname (Depends-on): Likewise.
54906         * modules/getsockopt (Depends-on): Likewise.
54907         * modules/getsubopt (Depends-on): Likewise.
54908         * modules/getusershell (Depends-on): Likewise.
54909         * modules/glob (Depends-on): Likewise.
54910         * modules/grantpt (Depends-on): Likewise.
54911         * modules/iconv_open (Depends-on): Likewise.
54912         * modules/iconv_open-utf (Depends-on): Likewise.
54913         * modules/inet_ntop (Depends-on): Likewise.
54914         * modules/inet_pton (Depends-on): Likewise.
54915         * modules/ioctl (Depends-on): Likewise.
54916         * modules/isapipe (Depends-on): Likewise.
54917         * modules/isfinite (Depends-on): Likewise.
54918         * modules/isinf (Depends-on): Likewise.
54919         * modules/lchown (Depends-on): Likewise.
54920         * modules/ldexpl (Depends-on): Likewise.
54921         * modules/link (Depends-on): Likewise.
54922         * modules/linkat (Depends-on): Likewise.
54923         * modules/listen (Depends-on): Likewise.
54924         * modules/logl (Depends-on): Likewise.
54925         * modules/lstat (Depends-on): Likewise.
54926         * modules/mbrlen (Depends-on): Likewise.
54927         * modules/mbrtowc (Depends-on): Likewise.
54928         * modules/mbsinit (Depends-on): Likewise.
54929         * modules/mbsnrtowcs (Depends-on): Likewise.
54930         * modules/mbsrtowcs (Depends-on): Likewise.
54931         * modules/mbtowc (Depends-on): Likewise.
54932         * modules/memcmp (Depends-on): Likewise.
54933         * modules/mkdir (Depends-on): Likewise.
54934         * modules/mkdtemp (Depends-on): Likewise.
54935         * modules/mkfifo (Depends-on): Likewise.
54936         * modules/mkfifoat (Depends-on): Likewise.
54937         * modules/mknod (Depends-on): Likewise.
54938         * modules/mkostemp (Depends-on): Likewise.
54939         * modules/mkostemps (Depends-on): Likewise.
54940         * modules/mkstemp (Depends-on): Likewise.
54941         * modules/mkstemps (Depends-on): Likewise.
54942         * modules/mktime (Depends-on): Likewise.
54943         * modules/nanosleep (Depends-on): Likewise.
54944         * modules/open (Depends-on): Likewise.
54945         * modules/openat (Depends-on): Likewise.
54946         * modules/perror (Depends-on): Likewise.
54947         * modules/poll (Depends-on): Likewise.
54948         * modules/popen (Depends-on): Likewise.
54949         * modules/posix_spawn (Depends-on): Likewise.
54950         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
54951         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54952         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54953         * modules/posix_spawnp (Depends-on): Likewise.
54954         * modules/pread (Depends-on): Likewise.
54955         * modules/printf-posix (Depends-on): Likewise.
54956         * modules/ptsname (Depends-on): Likewise.
54957         * modules/putenv (Depends-on): Likewise.
54958         * modules/pwrite (Depends-on): Likewise.
54959         * modules/readline (Depends-on): Likewise.
54960         * modules/readlink (Depends-on): Likewise.
54961         * modules/readlinkat (Depends-on): Likewise.
54962         * modules/recv (Depends-on): Likewise.
54963         * modules/recvfrom (Depends-on): Likewise.
54964         * modules/regex (Depends-on): Likewise.
54965         * modules/remove (Depends-on): Likewise.
54966         * modules/rename (Depends-on): Likewise.
54967         * modules/renameat (Depends-on): Likewise.
54968         * modules/rmdir (Depends-on): Likewise.
54969         * modules/round (Depends-on): Likewise.
54970         * modules/roundf (Depends-on): Likewise.
54971         * modules/roundl (Depends-on): Likewise.
54972         * modules/rpmatch (Depends-on): Likewise.
54973         * modules/select (Depends-on): Likewise.
54974         * modules/send (Depends-on): Likewise.
54975         * modules/sendto (Depends-on): Likewise.
54976         * modules/setenv (Depends-on): Likewise.
54977         * modules/setlocale (Depends-on): Likewise.
54978         * modules/setsockopt (Depends-on): Likewise.
54979         * modules/shutdown (Depends-on): Likewise.
54980         * modules/sigaction (Depends-on): Likewise.
54981         * modules/signbit (Depends-on): Likewise.
54982         * modules/sigprocmask (Depends-on): Likewise.
54983         * modules/sinl (Depends-on): Likewise.
54984         * modules/sleep (Depends-on): Likewise.
54985         * modules/snprintf (Depends-on): Likewise.
54986         * modules/snprintf-posix (Depends-on): Likewise.
54987         * modules/socket (Depends-on): Likewise.
54988         * modules/sprintf-posix (Depends-on): Likewise.
54989         * modules/sqrtl (Depends-on): Likewise.
54990         * modules/stat (Depends-on): Likewise.
54991         * modules/strchrnul (Depends-on): Likewise.
54992         * modules/strdup-posix (Depends-on): Likewise.
54993         * modules/strerror (Depends-on): Likewise.
54994         * modules/strerror_r-posix (Depends-on): Likewise.
54995         * modules/strndup (Depends-on): Likewise.
54996         * modules/strnlen (Depends-on): Likewise.
54997         * modules/strptime (Depends-on): Likewise.
54998         * modules/strsep (Depends-on): Likewise.
54999         * modules/strsignal (Depends-on): Likewise.
55000         * modules/strstr-simple (Depends-on): Likewise.
55001         * modules/strtod (Depends-on): Likewise.
55002         * modules/strtoimax (Depends-on): Likewise.
55003         * modules/strtok_r (Depends-on): Likewise.
55004         * modules/strtoumax (Depends-on): Likewise.
55005         * modules/symlink (Depends-on): Likewise.
55006         * modules/symlinkat (Depends-on): Likewise.
55007         * modules/tanl (Depends-on): Likewise.
55008         * modules/tcgetsid (Depends-on): Likewise.
55009         * modules/tmpfile (Depends-on): Likewise.
55010         * modules/trunc (Depends-on): Likewise.
55011         * modules/truncf (Depends-on): Likewise.
55012         * modules/truncl (Depends-on): Likewise.
55013         * modules/uname (Depends-on): Likewise.
55014         * modules/unlink (Depends-on): Likewise.
55015         * modules/unlockpt (Depends-on): Likewise.
55016         * modules/unsetenv (Depends-on): Likewise.
55017         * modules/usleep (Depends-on): Likewise.
55018         * modules/utimensat (Depends-on): Likewise.
55019         * modules/vasprintf (Depends-on): Likewise.
55020         * modules/vdprintf (Depends-on): Likewise.
55021         * modules/vdprintf-posix (Depends-on): Likewise.
55022         * modules/vfprintf-posix (Depends-on): Likewise.
55023         * modules/vprintf-posix (Depends-on): Likewise.
55024         * modules/vsnprintf (Depends-on): Likewise.
55025         * modules/vsnprintf-posix (Depends-on): Likewise.
55026         * modules/vsprintf-posix (Depends-on): Likewise.
55027         * modules/wcrtomb (Depends-on): Likewise.
55028         * modules/wcscasecmp (Depends-on): Likewise.
55029         * modules/wcscspn (Depends-on): Likewise.
55030         * modules/wcsdup (Depends-on): Likewise.
55031         * modules/wcsncasecmp (Depends-on): Likewise.
55032         * modules/wcsnrtombs (Depends-on): Likewise.
55033         * modules/wcspbrk (Depends-on): Likewise.
55034         * modules/wcsrtombs (Depends-on): Likewise.
55035         * modules/wcsspn (Depends-on): Likewise.
55036         * modules/wcsstr (Depends-on): Likewise.
55037         * modules/wcstok (Depends-on): Likewise.
55038         * modules/wcswidth (Depends-on): Likewise.
55039         * modules/wctob (Depends-on): Likewise.
55040         * modules/wctomb (Depends-on): Likewise.
55041         * modules/wctype (Depends-on): Likewise.
55042         * modules/wcwidth (Depends-on): Likewise.
55043         * modules/write (Depends-on): Likewise.
55045 2011-05-03  Bruno Haible  <bruno@clisp.org>
55047         Support for conditional dependencies.
55048         * doc/gnulib.texi (Module description): Document the syntax of
55049         conditional dependencies.
55050         * gnulib-tool: New option --conditional-dependencies.
55051         (func_usage): Document it.
55052         (cond_dependencies): New variable.
55053         (func_get_automake_snippet_conditional,
55054         func_get_automake_snippet_unconditional): New functions, extracted from
55055         func_get_automake_snippet.
55056         (func_get_automake_snippet): Use them.
55057         (sed_first_32_chars): New variable.
55058         (func_module_shellfunc_name): New function.
55059         (func_module_shellvar_name): New function.
55060         (func_module_conditional_name): New function.
55061         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55062         func_cond_module_condition): New functions.
55063         (func_modules_transitive_closure): Add support for conditional
55064         dependencies.
55065         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55066         conditional automake snippet in an automake conditional.
55067         (func_emit_autoconf_snippets): Emit shell functions that contain the
55068         code for conditional modules.
55069         (func_import, func_create_testdir): Update specification.
55071 2011-05-03  Eric Blake  <eblake@redhat.com>
55073         test-getaddrinfo: report error information
55074         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55076 2011-05-03  Jim Meyering  <meyering@redhat.com>
55078         bootstrap: avoid build failure when $GZIP is set
55079         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55080         program name.  If defined at all, it is supposed to list gzip options.
55081         Reported by Alan Curry in http://debbugs.gnu.org/8609
55083 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55085         readme-release: new module with release instructions
55086         * modules/readme-release: New module.
55087         * top/README-release: New file, from coreutils, grep, diffutils.
55088         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55090 2011-05-02  Eric Blake  <eblake@redhat.com>
55092         fflush: also replace fclose when fixing fflush
55093         * modules/fflush (Depends-on): Add fclose.
55094         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55095         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55096         memstreams with no backing fd.
55097         * doc/posix-functions/fclose.texi (fclose): Document the use of
55098         fflush module to fix the bug.
55099         * tests/test-fclose.c (main): Relax test when fclose is used in
55100         isolation.
55102         fclose: add some tests
55103         * modules/fclose-tests: New test module.
55104         * tests/test-fclose.c: New file.
55105         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55107         fclose: reduced dependencies
55108         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55109         simpler lseek.
55110         * lib/fclose.c (rpl_fclose): Likewise.
55111         Reported by Simon Josefsson.
55113         exit: drop remaining clients
55114         * modules/argmatch (Depends-on): Replace exit with stdlib.
55115         * modules/copy-file (Depends-on): Likewise.
55116         * modules/execute (Depends-on): Likewise.
55117         * modules/exitfail (Depends-on): Likewise.
55118         * modules/obstack (Depends-on): Likewise.
55119         * modules/pagealign_alloc (Depends-on): Likewise.
55120         * modules/pipe-filter-gi (Depends-on): Likewise.
55121         * modules/pipe-filter-ii (Depends-on): Likewise.
55122         * modules/savewd (Depends-on): Likewise.
55123         * modules/spawn-pipe (Depends-on): Likewise.
55124         * modules/wait-process (Depends-on): Likewise.
55125         * modules/xsetenv (Depends-on): Likewise.
55126         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55127         * modules/git-merge-changelog (Depends-on): Likewise.
55128         * modules/long-options (Depends-on): Likewise.
55129         * modules/pt_chown (Depends-on): Likewise.
55130         * modules/sysexits (Depends-on): Likewise.
55132         freading: relax license from LGPLv3+ to LGPLv2+
55133         * modules/freading (License): Relax LGPL version.
55135 2011-05-02  Bruno Haible  <bruno@clisp.org>
55137         fchdir: Remove unused dependencies.
55138         * modules/fchdir (Depends-on): Remove include_next.
55140 2011-05-02  Bruno Haible  <bruno@clisp.org>
55142         gnulib-tool: Refactor.
55143         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55144         from func_emit_autoconf_snippets.
55145         (func_emit_autoconf_snippets): Use it.
55147 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55149         * NEWS: Document removal of 'exit'.
55150         * modules/exit: Remove file.
55152 2011-05-01  Bruno Haible  <bruno@clisp.org>
55154         Update DEPENDENCIES.
55155         * DEPENDENCIES (gettext): Recommend the newest release.
55156         Reported by Simon Josefsson.
55158 2011-05-01  Bruno Haible  <bruno@clisp.org>
55160         gnulib-tool: Reduce code duplication.
55161         * gnulib-tool (func_emit_autoconf_snippets): New function.
55162         (func_import, func_create_testdir): Use it.
55164 2011-04-30  Eric Blake  <eblake@redhat.com>
55166         fclose: don't fail on non-seekable input stream
55167         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55168         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55169         since fflush is allowed to fail in that case.
55171 2011-04-30  Bruno Haible  <bruno@clisp.org>
55173         dup3: cleanup
55174         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55176 2011-04-30  Bruno Haible  <bruno@clisp.org>
55178         netdb: Make it work in C++ mode.
55179         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55180         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55181         module.
55182         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55183         gl_MODULE_INDICATOR_FOR_TESTS.
55184         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55185         * modules/netdb-c++-tests: New file.
55186         * tests/test-netdb-c++.cc: New file.
55188 2011-04-30  Bruno Haible  <bruno@clisp.org>
55190         New modules 'vfscanf', 'vscanf'.
55191         * modules/vfscanf: New file.
55192         * modules/vscanf: New file.
55193         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55194         here.
55195         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55196         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55198 2011-04-30  Bruno Haible  <bruno@clisp.org>
55200         passfd: Add comments.
55201         * lib/passfd.c: Add comments about platforms.
55203 2011-04-30  Bruno Haible  <bruno@clisp.org>
55205         sys_uio: Make <sys/uio.h> self-contained.
55206         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55207         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
55209 2011-04-30  Bruno Haible  <bruno@clisp.org>
55211         sys_socket: Ensure 'struct iovec' definition.
55212         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
55213         <sys/socket.h>.
55214         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
55216 2011-04-30  Bruno Haible  <bruno@clisp.org>
55218         sys_uio: Protect definition of 'struct iovec'.
55219         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
55220         it as a C struct.
55222 2011-04-30  Bruno Haible  <bruno@clisp.org>
55224         manywarnings: fix indentation
55225         * m4/manywarnings.m4: Indent by 2 spaces consistently.
55227 2011-04-30  Pádraig Brady  <P@draigBrady.com>
55229         manywarnings: add -Wno-missing-field-initializers if needed.
55230         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
55231         option if it's needed to allow initialization with { 0, }
55233 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
55235         announce-gen: cosmetic improvement
55236         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55238 2011-04-29  Jim Meyering  <meyering@redhat.com>
55240         vc-list-files: indent with spaces, not TABs
55241         * build-aux/vc-list-files: Convert leading TABs to spaces,
55242         to match the style of most other files in gnulib.
55244         announce-gen: indent with spaces, not TABs
55245         * build-aux/announce-gen: Convert all TABs to spaces, to match
55246         the style of most other files in gnulib.
55248 2011-04-29  Eric Blake  <eblake@redhat.com>
55250         quotearg: avoid uninitialized variable use
55251         * lib/quotearg.c (quoting_options_from_style): Initialize
55252         remaining fields, and ensure that custom styles are only used via
55253         quoting_options rather than quoting_style.
55255 2011-04-29  Jim Meyering  <meyering@redhat.com>
55257         maint.mk: remove unused VC-tag variable
55258         * top/maint.mk (VC-tag): Remove unused variable.
55260 2011-04-29  Bruno Haible  <bruno@clisp.org>
55262         netdb: fix gai_strerror replacements
55263         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55264         * modules/netdb: Substitute it.
55266 2011-04-29  Jim Meyering  <meyering@redhat.com>
55268         test-getcwd.c: avoid new set-but-not-used warning
55269         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55270         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55271         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55272         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55274         test-hash.c: avoid a new shadowing warning
55275         * tests/test-hash.c (main): Don't shadow "dup".
55277 2011-04-28  Eric Blake  <eblake@redhat.com>
55279         getaddrinfo: fix gai_strerror signature
55280         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55281         and work around mingw with UNICODE defined.
55282         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55283         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55284         * modules/netdb (Makefile.am): Substitute it.
55285         * lib/netdb.in.h (gai_strerror): Declare replacement.
55286         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55287         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55288         the fix.
55290         getsockopt: avoid compiler warning
55291         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55292         Reported by Matthias Bolte.
55294         tests: drop unused link dependency
55295         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55296         * modules/dirent-safer-tests (Makefile.am): Likewise.
55297         * modules/fdopendir-tests (Makefile.am): Likewise.
55298         * modules/mkfifoat-tests (Makefile.am): Likewise.
55299         * modules/openat-safer-tests (Makefile.am): Likewise.
55300         * modules/openat-tests (Makefile.am): Likewise.
55301         * modules/readlinkat-tests (Makefile.am): Likewise.
55302         * modules/symlinkat-tests (Makefile.am): Likewise.
55303         * modules/linkat-tests (Makefile.am): Likewise.
55304         (Depends-on): Switch to filenamecat-lgpl.
55305         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55306         LIBINTL.
55307         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55308         * tests/test-linkat.c (main): Don't require xalloc.
55310         hash, mgetgroups: drop xalloc dependency
55311         * lib/hash.c (includes): Adjust includes.
55312         * lib/mgetgroups.c (includes): Likewise.
55313         (xgetgroups): Move...
55314         * lib/xgetgroups.c: ...to new file.
55315         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55316         * modules/xgetgroups: New file, split from...
55317         * modules/mgetgroups: ...here.
55318         (Depends-on): Add xalloc-oversized.
55319         * modules/hash (Depends-on): Likewise.
55320         * modules/hash-tests (Depends-on): Drop xalloc.
55321         (test_hash_LDADD): Drop unused library.
55322         * tests/test-hash.c (main): Break xalloc dependency.
55323         (includes): Drop unused include.
55325         xalloc-oversized: new module
55326         * modules/xalloc-oversized: New module.
55327         * modules/xalloc (Depends-on): Add it.
55328         * lib/xalloc.h (xalloc_oversized): Move...
55329         * lib/xalloc-oversized.h: ...into new file.
55331         utimecmp: drop dependency on xmalloc
55332         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55333         due to memory pressure.
55334         * modules/utimecmp (Depends-on): Drop xalloc.
55336 2011-04-27  Eric Blake  <eblake@redhat.com>
55338         getcwd: fix mingw bugs
55339         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55340         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55341         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55343 2011-04-27  Bruno Haible  <bruno@clisp.org>
55345         mkstemps: Ensure declaration on MacOS X 10.5.
55346         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55347         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55348         MacOS X.
55350 2011-04-27  Bruno Haible  <bruno@clisp.org>
55352         mkstemp: More documentation.
55353         * doc/posix-functions/mkstemp.texi: Document header file problem on
55354         MacOS X.
55356 2011-04-27  Bruno Haible  <bruno@clisp.org>
55358         mkstemp: Tweak configure message when cross-compiling.
55359         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55360         result as a guess.
55362 2011-04-27  Bruno Haible  <bruno@clisp.org>
55364         clean-temp: Clarify what it does.
55365         * lib/clean-temp.h: Add more comments.
55366         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55367         module.
55368         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55369         * doc/glibc-functions/mkstemps.texi: Likewise.
55370         * doc/glibc-functions/mkostemps.texi: Likewise.
55372 2011-04-27  Eric Blake  <eblake@redhat.com>
55374         fchdir: avoid extra chdir and fix test
55375         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55376         getcwd-lgpl.
55377         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55378         have to be canonical.
55379         (canonicalize_file_name): Drop unused macro.
55380         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
55382         filenamecat-lgpl: fix licence
55383         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
55384         when it was first created.
55386         linkat, renameat: add missing dependency
55387         * modules/linkat (Depends-on): Require getcwd-lgpl.
55388         * modules/renameat (Depends-on): Likewise.
55390         tests: reduce dependencies
55391         * tests/test-linkat.c (main): Use lighter-weight getcwd.
55392         * tests/test-renameat.c (main): Likewise.
55393         * modules/linkat-tests (Depends-on): Relax dependency.
55394         * modules/renameat-tests (Depends-on): Likewise.
55395         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
55396         dependency explicit.
55398         save-cwd: reduce default dependency
55399         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
55400         * lib/save-cwd.c: Update comments.
55401         * NEWS: Document the semantic change.
55403         getcwd: enhance tests
55404         * tests/test-getcwd-lgpl.c: New file, taken from...
55405         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
55406         repeat long path stress tests from m4 probe.
55407         * modules/getcwd-lgpl-tests: New module.
55408         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
55409         * m4/getcwd-abort-bug.m4: Update comment.
55410         * m4/getcwd-path-max.m4: Likewise.
55412         getcwd-lgpl: new module
55413         * modules/getcwd-lgpl: New module.
55414         * lib/getcwd-lgpl.c: New file.
55415         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55416         * MODULES.html.sh (lacking POSIX:2008): Likewise.
55417         * modules/getcwd (configure.ac): Set C witness.
55418         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
55420         getcwd: tweak comments
55421         * m4/getcwd-abort-bug.m4: Fix comments.
55422         * m4/getcwd-path-max.m4: Likewise.
55423         * m4/getcwd.m4: Likewise.
55425 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55426         and Eric Blake  <eblake@redhat.com>
55428         mkstemp: replace if system version uses wrong permissions
55429         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
55430         read/write mode bits set in file created by mkstemp.
55431         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
55433 2011-04-27  Eric Blake  <eblake@redhat.com>
55435         passfd: avoid compiler warning
55436         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
55437         Reported by Laine Stump.
55439 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
55441         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
55442         required by the NetBSD (and perhaps other 4.4BSD derived) join.
55444 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55445         and Eric Blake  <eblake@redhat.com>
55447         mkstemp: mention clean-temp module
55448         * lib/mkstemp.c: Add comment.
55449         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
55451 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
55453         inttypes: also provide default values for 32-bit tests
55454         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
55455         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
55457 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55459         strtoumax: remove dependency on strtoimax
55460         This is like the strtoull change of yesterday.
55461         * modules/strtoumax (Files): Add lib/strtoimax.c.
55462         (Depends-on): Remove strtoimax and add verify.
55464         inttypes-incomplete: new module
55465         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
55466         all but the PRI* and SCN* parts of gl_INTTYPES_H.
55467         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
55468         of gl_INTTYPES_H.
55469         (gl_INTTYPES_H): Rewrite in terms of these new macros.
55470         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
55471         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
55472         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
55473         * modules/strtoumax, modules/xstrtol (Depends-on):
55474         Depend on inttypes-incomplete, not inttypes.
55475         * modules/inttypes-incomplete: New module, containing the contents
55476         of the old modules/inttypes module, except that the Files: section
55477         omits m4/inttypes-pri.m4, and the configure.ac section invokes
55478         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55479         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
55480         (Depends-on): Depend only on inttypes-incomplete.
55481         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
55483         inttypes: omit now-redundant strtoimax and strtoumax work
55484         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
55485         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
55487         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
55488         This supports apps that need pointers to strtoimax and strtoumax,
55489         and ports to HP-UX 11.00 64.bit, which has macros that expand to
55490         nonexistent functions.  See
55491         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
55492         et seq.
55493         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
55494         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
55495         a macro.
55496         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55498 2011-04-25  Simon Josefsson  <simon@josefsson.org>
55500         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
55502 2011-04-25  Bruno Haible  <bruno@clisp.org>
55504         strtol, strtoul: Mark modules as obsolete.
55505         * modules/strtol (Status, Notice): New sections.
55506         * modules/strtoul (Status, Notice): New sections.
55508 2011-04-25  Bruno Haible  <bruno@clisp.org>
55510         strtod: Remove check for strtod, unless supporting old platforms.
55511         * modules/strtod-obsolete: New file.
55512         * m4/strtod-obsolete.m4: New file.
55513         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
55514         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
55515         * modules/strtod (Depends-on): Add strtod-obsolete.
55516         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
55518 2011-04-25  Bruno Haible  <bruno@clisp.org>
55520         strcase: Make module obsolete.
55521         * modules/strcase (Status, Notice): New sections.
55523 2011-04-25  Bruno Haible  <bruno@clisp.org>
55525         dup2: Remove check for dup2, unless supporting old obsolete platforms.
55526         * modules/dup2-obsolete: New file.
55527         * m4/dup2-obsolete.m4: New file.
55528         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
55529         gl_FUNC_DUP2_OBSOLETE is not also defined.
55530         * modules/dup2 (Depends-on): Add dup2-obsolete.
55531         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
55533 2011-04-25  Bruno Haible  <bruno@clisp.org>
55535         strnlen: Avoid memchr related link error on old obsolete platforms.
55536         * modules/memchr-obsolete: New file.
55537         * m4/memchr-obsolete.m4: New file.
55538         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
55539         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
55540         * modules/memchr (Depends-on): Add memchr-obsolete.
55541         * modules/strnlen (Depends-on): Likewise.
55542         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
55544 2011-04-25  Jim Meyering  <meyering@redhat.com>
55546         maint.mk: makefile_at_at_check extend and clean up
55547         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
55548         in addition to */Makefile.am.
55549         Exempt legitimate uses of @VAR@ notation, e.g.,
55550         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
55551         Remove obsolete coreutils-specific comment.
55552         Prompted by discussion here:
55553         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
55555 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55557         strtoul: remove dependency on strtol
55558         This is so that 'configure' need not check for strtol merely because
55559         the application needs strtoul.
55560         * modules/strtoul (Files): Add lib/strtol.c.
55561         (Depends-on): Remove strtol.
55563         strtoull: remove dependency on strtoul
55564         This is like the strtoll change.
55565         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
55566         (Depends-on): Remove strtoul.
55568         strtoll: remove dependency on strtol
55569         This is so that 'configure' need not check for strtol merely because
55570         the application needs strtoll.
55571         * modules/strtoll (Files): Add lib/strtol.c.
55572         (Depends-on): Remove strtol.
55574 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55576         inttypes: Move some configure check to module 'imaxdiv'.
55577         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
55578         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
55579         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
55581 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55583         inttypes: Move some configure check to module 'imaxabs'.
55584         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
55585         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
55586         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
55588 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55590         inttypes: Remove configure tests that are not needed since 2009-12-31.
55591         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
55592         gl_cv_header_working_inttypes_h.
55594 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55596         * modules/strnlen (Depends-on): Remove memchr.
55597         The strnlen implementation doesn't need the memchr module's fixes; see
55598         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
55600         strtol: remove dependency on wchar
55601         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
55602         * modules/strtol (Depends-on): Remove wchar.
55604 2011-04-21  Eric Blake  <eblake@redhat.com>
55606         passfd: fix test regression on Linux
55607         * modules/passfd-tests (configure.ac): Correct socketpair check.
55609         passfd: speed up configure and drop unused code
55610         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
55611         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
55612         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
55613         Instead of probing at configure for unix_scm_rights_bsd44_way,
55614         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
55615         check to a struct member probe.
55616         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
55617         (sendfd, recvfd): Update preprocessor checks.
55618         * modules/passfd (Files): Reflect rename, and drop unused file.
55619         (Depends-on): Drop unused dependency.
55621         passfd: allow compilation on mingw
55622         * modules/sys_socket (Depends-on): Add sys_uio.
55623         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
55624         iovec and a minimal struct msghdr.
55625         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
55626         * tests/test-sys_socket.c (main): Enhance test.
55627         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
55628         guaranteed to provide what we need.
55629         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
55630         * modules/passfd-tests (Depends-on): Add sys_wait.
55631         * tests/test-passfd.c (main): Skip test on mingw, for now.
55632         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
55633         partial 'struct msghdr' implementation.
55635         sys_uio: new module
55636         * modules/sys_uio: New module.
55637         * modules/sys_uio-tests: Likewise.
55638         * lib/sys_uio.in.h: New file.
55639         * m4/sys_uio_h.m4: Likewise.
55640         * tests/test-sys_uio.c: Likewise.
55641         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
55642         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
55644 2011-04-20  Jim Meyering  <meyering@redhat.com>
55646         useless-if-before-free: avoid false-positive
55647         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
55648         disjunct so that it too requires a terminating ";".  Without that,
55649         this script would identify as useless one statement from gcc that
55650         was not:
55651           if (aligned_ptr)
55652             free (((void **) aligned_ptr) [-1]);
55654 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
55656         doc: update users.txt.
55657         * users.txt: Add barcode.
55659 2011-04-19  Bruno Haible  <bruno@clisp.org>
55661         ioctl: Remove link dependency on native Windows.
55662         * lib/fd-hook.h: Renamed from lib/close-hook.h.
55663         (gl_close_fn, gl_ioctl_fn): New types.
55664         (struct fd_hook): Renamed from struct close_hook. Change type of
55665         private_close_fn field. Add private_ioctl_fn field.
55666         (close_hook_fn): Add parameter for primary close method.
55667         (execute_close_hooks, execute_all_close_hooks): Likewise.
55668         (ioctl_hook_fn): New type.
55669         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
55670         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55671         argument.
55672         (unregister_fd_hook): Renamed from unregister_close_hook.
55673         * lib/fd-hook.c: Renamed from lib/close-hook.c.
55674         Don't include <unistd.h>.
55675         (close): Remove undef.
55676         (anchor): Update.
55677         (execute_close_hooks): Add argument for primary close method.
55678         (execute_all_close_hooks): Likewise.
55679         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
55680         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55681         argument. Allow each argument to be NULL.
55682         (unregister_fd_hook): Renamed from unregister_close_hook.
55683         * lib/close.c (rpl_close): Pass 'close' function pointer to
55684         execute_all_close_hooks.
55685         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
55686         (primary_ioctl): New function.
55687         (ioctl): Don't call ioctlsocket here. Instead, call
55688         execute_all_ioctl_hooks.
55689         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
55690         close method.
55691         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
55692         (fd_sockets_hook): Renamed from close_sockets_hook.
55693         (gl_sockets_startup, gl_sockets_cleanup): Update.
55694         * modules/fd-hook: Renamed from modules/close-hook. Update.
55695         * modules/close (Depends-on): Add fd-hook, remove close-hook.
55696         * modules/sockets (Depends-on): Likewise.
55697         * modules/ioctl (Depends-on): Add fd-hook.
55698         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
55699         GNULIB_SOCKET.
55701 2011-04-19  Bruno Haible  <bruno@clisp.org>
55703         Move the support of O_NONBLOCK in open() to the 'open' module.
55704         * modules/nonblocking (Depends-on): Remove 'open'.
55705         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
55706         gl_cv_have_open_O_NONBLOCK.
55707         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
55708         O_NONBLOCK support.
55709         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
55711 2011-04-17  Bruno Haible  <bruno@clisp.org>
55713         pipe2: Simplify code.
55714         * lib/pipe2.c (pipe2): Reduce code duplication.
55716 2011-04-17  Bruno Haible  <bruno@clisp.org>
55718         nonblocking: Add comment.
55719         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
55721 2011-04-17  Bruno Haible  <bruno@clisp.org>
55723         nonblocking: Add tests for sockets.
55724         * tests/test-nonblocking-socket.sh: New file.
55725         * tests/test-nonblocking-socket-main.c: New file.
55726         * tests/test-nonblocking-socket-child.c: New file.
55727         * tests/test-nonblocking-socket.h: New file.
55728         * tests/socket-server.h: New file.
55729         * tests/socket-client.h: New file.
55730         * modules/nonblocking-socket-tests: New file.
55731         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
55733 2011-04-17  Bruno Haible  <bruno@clisp.org>
55735         nonblocking: Add tests for pipes.
55736         * tests/test-nonblocking-pipe.sh: New file.
55737         * tests/test-nonblocking-pipe-main.c: New file.
55738         * tests/test-nonblocking-pipe-child.c: New file.
55739         * tests/test-nonblocking-pipe.h: New file.
55740         * tests/test-nonblocking-writer.h: New file.
55741         * tests/test-nonblocking-reader.h: New file.
55742         * tests/test-nonblocking-misc.h: New file.
55743         * modules/nonblocking-pipe-tests: New file.
55744         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
55746 2011-04-16  Bruno Haible  <bruno@clisp.org>
55748         gettext: Clarify the needed programmer actions.
55749         * modules/gettext (Notice): New field.
55750         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55752 2011-04-16  Bruno Haible  <bruno@clisp.org>
55754         strchrnul: Tweak last commit.
55755         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
55756         bug.
55757         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
55758         as in _GL_FUNCDECL_SYS.
55759         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
55760         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
55762 2011-04-15  Eric Blake  <eblake@redhat.com>
55764         strchrnul: work around cygwin bug
55765         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
55766         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
55767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
55768         * modules/string (Makefile.am): Substitute it.
55769         * lib/string.in.h (strchrnul): Use it.
55771 2011-04-15  Bruno Haible  <bruno@clisp.org>
55773         Don't require lib/stdio-write.c when only module 'stdio' is used.
55774         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
55775         invocation.
55776         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
55778 2011-04-14  Bruno Haible  <bruno@clisp.org>
55780         Support non-blocking pipe I/O in read() on native Windows.
55781         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
55782         (read): New declaration.
55783         * lib/read.c: New file.
55784         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
55785         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
55786         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
55787         vscanf): New declarations.
55788         * lib/stdio-read.c: New file.
55789         * m4/read.m4: New file.
55790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
55791         REPLACE_READ.
55792         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
55793         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55794         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
55795         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
55796         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
55797         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55798         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55799         * modules/read: New file.
55800         * modules/nonblocking (Files): Add lib/stdio-read.c.
55801         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
55802         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
55803         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55804         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55805         * modules/pread (Depends-on): Add read.
55806         * modules/safe-read (Depends-on): Likewise.
55807         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
55808         gets, scanf, vfscanf, vscanf): Verify signatures.
55809         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
55810         problem with non-blocking pipes.
55811         * doc/posix-functions/fgetc.texi: Likewise.
55812         * doc/posix-functions/fgets.texi: Likewise.
55813         * doc/posix-functions/fread.texi: Likewise.
55814         * doc/posix-functions/fscanf.texi: Likewise.
55815         * doc/posix-functions/getc.texi: Likewise.
55816         * doc/posix-functions/getchar.texi: Likewise.
55817         * doc/posix-functions/gets.texi: Likewise.
55818         * doc/posix-functions/scanf.texi: Likewise.
55819         * doc/posix-functions/vfscanf.texi: Likewise.
55820         * doc/posix-functions/vscanf.texi: Likewise.
55822 2011-04-14  Bruno Haible  <bruno@clisp.org>
55824         Support non-blocking pipe I/O in write() on native Windows.
55825         * lib/write.c (rpl_write): Split a write request that failed merely
55826         because the byte count was larger than the pipe buffer's size.
55827         * doc/posix-functions/write.texi: Mention the problem with large byte
55828         counts.
55830 2011-04-14  Bruno Haible  <bruno@clisp.org>
55832         wchar: Ensure that wchar_t gets defined on uClibc.
55833         * lib/wchar.in.h: On uClibc, include <stddef.h>.
55834         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
55836 2011-04-13  Bruno Haible  <bruno@clisp.org>
55838         safe-write, full-read: Avoid unnecessary compilation units.
55839         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
55840         (Depends-on): Remove safe-read. Add ssize_t.
55841         * modules/full-read (Files): Add lib/full-write.c.
55842         (Depends-on): Add full-write.
55844 2011-04-13  Bruno Haible  <bruno@clisp.org>
55846         Support non-blocking pipe I/O and SIGPIPE in pwrite().
55847         * modules/pwrite (Depends-on): Add 'write'.
55849 2011-04-13  Bruno Haible  <bruno@clisp.org>
55851         Support non-blocking pipe I/O in write() on native Windows.
55852         * lib/unistd.in.h (write): Enable replacement also if
55853         GNULIB_UNISTD_H_NONBLOCKING is 1.
55854         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
55855         (rpl_write): When failing to write on a non-blocking pipe, change
55856         errno from ENOSPC to EAGAIN.
55857         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
55858         putchar, puts, vfprintf, vprintf): Enable replacement also if
55859         GNULIB_STDIO_H_NONBLOCKING is 1.
55860         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
55861         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
55862         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
55863         CALL_WITH_SIGPIPE_EMULATION.
55864         (CALL_WITH_SIGPIPE_EMULATION): Use them.
55865         * m4/nonblocking.m4: New file.
55866         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
55867         for non-blocking I/O support.
55868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55869         GNULIB_UNISTD_H_NONBLOCKING.
55870         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
55871         required for non-blocking I/O support.
55872         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
55873         * modules/nonblocking (Files): Add m4/nonblocking.m4,
55874         lib/stdio-write.c, m4/asm-underscore.m4.
55875         (Depends-on): Add stdio, unistd.
55876         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
55877         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
55878         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
55879         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
55880         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
55881         problem with non-blocking pipes.
55882         * doc/posix-functions/fputc.texi: Likewise.
55883         * doc/posix-functions/fputs.texi: Likewise.
55884         * doc/posix-functions/fwrite.texi: Likewise.
55885         * doc/posix-functions/printf.texi: Likewise.
55886         * doc/posix-functions/putc.texi: Likewise.
55887         * doc/posix-functions/putchar.texi: Likewise.
55888         * doc/posix-functions/puts.texi: Likewise.
55889         * doc/posix-functions/vfprintf.texi: Likewise.
55890         * doc/posix-functions/vprintf.texi: Likewise.
55891         * doc/posix-functions/write.texi: Likewise.
55893 2011-04-10  Jim Meyering  <meyering@redhat.com>
55895         maint.mk: prohibit doubled words
55896         Detect them also when they're separated by a newline.
55897         There are 3 ways to customize it:
55898           - disable the test on a per file basis, as usual with rules using
55899             $(VC_LIST_EXCEPT)
55900           - replace the default doubled-word-selecting regexp (affects all files)
55901           - ignore a particular file-vs-doubled-word match
55902         I nearly used that last one to ignore the "is is" match in
55903         coreutils' NEWS file, since the text was "ls -is is ..."
55904         To do that, I would have added this line to cfg.mk:
55905           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
55906         but it would have ignored any "is is" match in NEWS.
55907         Low probability, but still...
55908         Instead, I changed the text, slightly:
55909           -  ls -is is now consistent with ls -lis in ignoring values returned
55910           +  "ls -is" is now consistent with ls -lis in ignoring values returned
55911         * top/maint.mk (prohibit_double_word_RE_): Provide default.
55912         (prohibit_doubled_word_): Define.
55913         (sc_prohibit_doubled_word): New rule.
55914         (sc_prohibit_the_the): Remove.  Subsumed by the above.
55916 2011-04-10  Jim Meyering  <meyering@redhat.com>
55918         maint: fix doubled-word typo in comment
55919         * m4/gethostname.m4: s/is is/it is/
55920         * m4/getdomainname.m4: Likewise.
55922 2011-04-10  Jim Meyering  <meyering@redhat.com>
55924         maint: remove doubled word: s/it it/it/
55925         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
55927 2011-04-10  Jim Meyering  <meyering@redhat.com>
55929         maint.mk: remove useless semicolon and backslash
55930         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
55931         semicolon and backslash.
55933 2011-04-10  Bruno Haible  <bruno@clisp.org>
55935         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
55936         * modules/stdint-tests (Depends-on): Add wchar.
55938 2011-04-10  Jim Meyering  <meyering@redhat.com>
55940         maint: remove doubled words in comments, e.g., s/a a/a/
55941         * lib/strptime.c (day_of_the_week): s/the the/the/
55942         * tests/test-chown.h (test_chown): s/a a/a/
55944         test-chown.h: correct a cast
55945         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
55946         when the destination is a stat.st_gid.
55948 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
55950         getaddrinfo: Fix test for sa_len member.
55951         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
55952         include <sys/types.h> before <sys/socket.h>.
55954 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55956         maint: change "can not" to "cannot"
55957         * doc/posix-functions/iconv.texi (iconv): This one crossed line
55958         boundaries.
55960 2011-04-09  Jim Meyering  <meyering@redhat.com>
55962         maint: change "a a" to "a"
55963         * tests/test-lchown.h (test_lchown): s/a a/a/
55965         maint.mk: prohibit \<the the\>
55966         * top/maint.mk (sc_prohibit_the_the): New rule.
55968         maint: fix "the the" in comment
55969         * lib/count-one-bits.h: s/the the/the/
55971         maint: change "can not" to "cannot"
55972         But do not change the occurrences in maintain.texi or in
55973         build-aux/po/Makefile.in.in, which I presume comes from gettext.
55974         * doc/gnulib-tool.texi: s/can not/cannot/
55975         * doc/posix-functions/accept.texi (accept): Likewise.
55976         * doc/posix-functions/socket.texi (socket): Likewise.
55977         * lib/mbrtowc.c: Likewise.
55979         maint.mk: prohibit use of "can not"
55980         * top/maint.mk (sc_prohibit_can_not): New rule.
55981         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
55983 2011-04-09  Bruno Haible  <bruno@clisp.org>
55985         careadlinkat: Guard against misuse of careadlinkatcwd.
55986         * lib/careadlinkat.c: Include <stdlib.h>.
55987         (careadlinkatcwd): Check that the fd argument is as expected.
55989 2011-04-09  Bruno Haible  <bruno@clisp.org>
55991         careadlinkat: Use common coding style.
55992         * lib/careadlinkat.c: Move gnulib includes after system includes.
55994 2011-04-09  Bruno Haible  <bruno@clisp.org>
55996         careadlinkat: Clarify specification.
55997         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
55998         (careadlinkatcwd): Add comment.
55999         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56001 2011-04-09  Bruno Haible  <bruno@clisp.org>
56003         areadlinkat: Avoid link error on many platforms.
56004         * modules/areadlinkat (Depends-on): Add areadlink.
56006 2011-04-09  Bruno Haible  <bruno@clisp.org>
56008         allocator, careadlinkat: Fix double-inclusion guard.
56009         * lib/allocator.h: Fix double-inclusion guard.
56010         * lib/careadlinkat.h: Likewise.
56012 2011-04-09  Bruno Haible  <bruno@clisp.org>
56014         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56015         * lib/relocwrapper.c: Update dependencies hierarchy.
56016         * build-aux/install-reloc: Update list of files to be compiled.
56017         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56018         lib/allocator.[hc].
56020 2011-04-08  Eric Blake  <eblake@redhat.com>
56022         strftime: silence gnulib-tool warning
56023         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56025 2011-04-08  Bruno Haible  <bruno@clisp.org>
56027         verify: Fix syntax error with GCC 4.6 in C++ mode.
56028         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56029         (HAVE_STATIC_ASSERT): New macro.
56030         (verify_true, verify): Use 'static_assert' if it is supported and
56031         '_Static_assert' is not supported.
56033 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56035         allocator: New module.
56036         * modules/allocator, lib/allocator.c: New files.
56037         * lib/allocator.h (stdlib_allocator): New decl.
56038         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56039         Remove.  Do not include <stdlib.h>.
56040         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56041         * modules/careadlinkat (Files): Remove lib/allocator.h.
56042         (Depends-on): Add allocator.
56044         stdlib: let modules use system malloc, realloc
56045         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56046         if !_GL_USE_STDLIB_ALLOC.
56047         (malloc, realloc): Limit this change to a smaller scope.
56049         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56050         (malloc, realloc): Don't #undef; no longer needed.
56051         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56052         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56053         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56054         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56055         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56056         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56057         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56058         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56060         careadlinkat: rename members to avoid problem
56061         * lib/allocator.h (struct allocator): Rename members from
56062         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56063         and realloc are #define'd.  Reported by Eric Blake in
56064         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56065         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56067 2011-04-08  Eric Blake  <eblake@redhat.com>
56069         nonblocking: reduce dependency
56070         * tests/test-nonblocking.c: Only test sockets when in use.
56071         * modules/nonblocking-tests (Depends-on): Drop socket.
56072         (Makefile.am): Link even if sockets are not present.
56073         * modules/pipe2-tests (Makefile.am): Likewise.
56074         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56076         pipe2: fix O_NONBLOCK support on mingw
56077         * modules/pipe2 (Depends-on): Add nonblocking.
56078         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56079         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56080         * tests/test-nonblocking.c (main): Likewise.
56081         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56083         fcntl-h: fix O_ACCMODE on cygwin
56084         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56085         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56087         pipe-filter: drop O_NONBLOCK workarounds
56088         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56089         * modules/pipe-filter-ii (Depends-on): Likewise.
56090         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56092         nonblocking: provide O_NONBLOCK for mingw
56093         * modules/nonblocking (Depends-on): Add open.
56094         (configure.ac): Set new witness macro.
56095         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56096         * modules/fcntl-h (Makefile.am): Substitute it.
56097         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56098         nonblocking module is in use.
56099         * lib/nonblocking.c: Adjust portability test.
56100         * lib/open.c (open): Don't let native open see gnulib flag.
56101         * tests/test-fcntl-h.c (main): Enhance test.
56102         * tests/test-open.h (test_open): Likewise.
56103         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56105         careadlinkat: fix compilation error on mingw
56106         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56107         within struct allocator.
56109 2011-04-06  Eric Blake  <eblake@redhat.com>
56111         binary-io: relicense under LGPLv2+
56112         * modules/binary-io (License): Relax to LGPLv2+.
56113         Requested for libvirt, and required by pipe2.
56115 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56117         verify: use _Static_assert if available
56118         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56119         (verify_true, verify): Use it if available.  This generates better
56120         diagnostics with GCC 4.6.0 and later.
56122 2011-04-05  Bruno Haible  <bruno@clisp.org>
56124         Remove leftover generated .h files after config.status changed.
56126         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56127         GL_GENERATE_ALLOCA_H.
56128         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56129         GL_GENERATE_ALLOCA_H evaluates to false.
56131         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56132         GL_GENERATE_ARGZ_H.
56133         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56134         evaluates to false.
56136         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56137         GL_GENERATE_BYTESWAP_H.
56138         * modules/byteswap (Makefile.am): Remove byteswap.h if
56139         GL_GENERATE_BYTESWAP_H evaluates to false.
56141         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56142         GL_GENERATE_ERRNO_H.
56143         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56144         evaluates to false.
56146         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56147         GL_GENERATE_FLOAT_H.
56148         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56149         evaluates to false.
56151         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56152         GL_GENERATE_FNMATCH_H.
56153         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56154         GL_GENERATE_FNMATCH_H evaluates to false.
56156         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56157         GL_GENERATE_GLOB_H.
56158         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56159         evaluates to false.
56161         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56162         automake conditional GL_GENERATE_ICONV_H.
56163         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56164         evaluates to false.
56166         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56167         GL_GENERATE_NETINET_IN_H.
56168         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56169         GL_GENERATE_NETINET_IN_H evaluates to false.
56171         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56172         conditional GL_GENERATE_PTHREAD_H.
56173         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56174         * modules/pthread (Makefile.am): Remove pthread.h if
56175         GL_GENERATE_PTHREAD_H evaluates to false.
56177         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56178         GL_GENERATE_SCHED_H.
56179         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56180         evaluates to false.
56182         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56183         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56184         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56185         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56187         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56188         GL_GENERATE_STDARG_H.
56189         * modules/stdarg (Makefile.am): Remove stdarg.h if
56190         GL_GENERATE_STDARG_H evaluates to false.
56192         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56193         GL_GENERATE_STDBOOL_H.
56194         * modules/stdbool (Makefile.am): Remove stdbool.h if
56195         GL_GENERATE_STDBOOL_H evaluates to false.
56197         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56198         conditional GL_GENERATE_STDDEF_H.
56199         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56200         * modules/stddef (Makefile.am): Remove stddef.h if
56201         GL_GENERATE_STDDEF_H evaluates to false.
56203         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56204         GL_GENERATE_STDINT_H.
56205         * modules/stdint (Makefile.am): Remove stdint.h if
56206         GL_GENERATE_STDINT_H evaluates to false.
56208         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
56209         GL_GENERATE_SYSEXITS_H.
56210         * modules/sysexits (Makefile.am): Remove sysexits.h if
56211         GL_GENERATE_SYSEXITS_H evaluates to false.
56213         Reported by Karl Berry and Ralf Wildenhues.
56215 2011-04-05  Bruno Haible  <bruno@clisp.org>
56217         Ensure to rebuild generated .h files when config.status has changed.
56218         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
56219         config.status.
56220         * modules/ctype (Makefile.am): Likewise.
56221         * modules/dirent (Makefile.am): Likewise.
56222         * modules/errno (Makefile.am): Likewise.
56223         * modules/fcntl-h (Makefile.am): Likewise.
56224         * modules/float (Makefile.am): Likewise.
56225         * modules/getopt-posix (Makefile.am): Likewise.
56226         * modules/glob (Makefile.am): Likewise.
56227         * modules/iconv-h (Makefile.am): Likewise.
56228         * modules/inttypes (Makefile.am): Likewise.
56229         * modules/langinfo (Makefile.am): Likewise.
56230         * modules/locale (Makefile.am): Likewise.
56231         * modules/math (Makefile.am): Likewise.
56232         * modules/netdb (Makefile.am): Likewise.
56233         * modules/netinet_in (Makefile.am): Likewise.
56234         * modules/poll-h (Makefile.am): Likewise.
56235         * modules/pthread (Makefile.am): Likewise.
56236         * modules/pty (Makefile.am): Likewise.
56237         * modules/sched (Makefile.am): Likewise.
56238         * modules/search (Makefile.am): Likewise.
56239         * modules/selinux-h (Makefile.am): Likewise.
56240         * modules/signal (Makefile.am): Likewise.
56241         * modules/spawn (Makefile.am): Likewise.
56242         * modules/stdarg (Makefile.am): Likewise.
56243         * modules/stdbool (Makefile.am): Likewise.
56244         * modules/stddef (Makefile.am): Likewise.
56245         * modules/stdint (Makefile.am): Likewise.
56246         * modules/stdio (Makefile.am): Likewise.
56247         * modules/stdlib (Makefile.am): Likewise.
56248         * modules/string (Makefile.am): Likewise.
56249         * modules/strings (Makefile.am): Likewise.
56250         * modules/sys_file (Makefile.am): Likewise.
56251         * modules/sys_ioctl (Makefile.am): Likewise.
56252         * modules/sys_select (Makefile.am): Likewise.
56253         * modules/sys_socket (Makefile.am): Likewise.
56254         * modules/sys_stat (Makefile.am): Likewise.
56255         * modules/sys_time (Makefile.am): Likewise.
56256         * modules/sys_times (Makefile.am): Likewise.
56257         * modules/sys_utsname (Makefile.am): Likewise.
56258         * modules/sys_wait (Makefile.am): Likewise.
56259         * modules/sysexits (Makefile.am): Likewise.
56260         * modules/termios (Makefile.am): Likewise.
56261         * modules/time (Makefile.am): Likewise.
56262         * modules/unistd (Makefile.am): Likewise.
56263         * modules/wchar (Makefile.am): Likewise.
56264         * modules/wctype-h (Makefile.am): Likewise.
56265         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56267 2011-04-05  Bruno Haible  <bruno@clisp.org>
56269         pipe2: Relicense under LGPLv2+.
56270         * modules/pipe2 (License): Change to LGPLv2+.
56271         Requested by Eric Blake, for libvirt.
56273 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56275         bootstrap: compute gnulib_extra_files after updating build_aux
56276         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56277         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56279 2011-04-05  Eric Blake  <eblake@redhat.com>
56281         bootstrap: preserve git whitelist item sorting
56282         * build-aux/bootstrap (sort_patterns): New function.
56283         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56285 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56287         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56288         sc_space_tab check.
56290 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56292         areadlink, areadlinkat: rewrite in terms of careadlinkat
56293         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56294         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56295         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56296         (malloc, realloc): Remove #undefs.
56297         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56298         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56299         readlink, ssize_t, stdint, unistd.
56300         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56301         areadlink, stdint.
56303         careadlinkat: new module
56304         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56305         * modules/careadlinkat: New files, written by me with
56306         a review and feedback from Ben Pfaff in
56307         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56309 2011-04-01  Bruno Haible  <bruno@clisp.org>
56311         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56312         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56313         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56314         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56315         Reported by Bruce Korb <bruce.korb@gmail.com>.
56317 2011-04-01  Bruno Haible  <bruno@clisp.org>
56319         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56320         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56321         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56322         * modules/wcpcpy (Depends-on): Add extensions.
56323         * modules/wcpncpy (Depends-on): Likewise.
56324         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56325         systems.
56326         * doc/posix-functions/wcpncpy.texi: Likewise.
56327         * doc/posix-functions/wcwidth.texi: Likewise.
56329 2011-03-31  Eric Blake  <eblake@redhat.com>
56331         nonblocking: fix mingw test failures
56332         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56333         non-blocking flag on regular file.
56334         (get_nonblocking_flag): Set errno on invalid fd.
56335         * tests/test-nonblocking.c (main): Avoid test failure on
56336         directories if fchdir is not active.
56337         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56339 2011-03-31  Bruno Haible  <bruno@clisp.org>
56341         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56342         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56343         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56344         Reported by Simon Josefsson <simon@josefsson.org>.
56346 2011-03-31  Bruno Haible  <bruno@clisp.org>
56347         and Eric Blake  <eblake@redhat.com>
56349         nonblocking: new module
56350         * modules/nonblocking: New module.
56351         * modules/nonblocking-tests: Likewise.
56352         * lib/nonblocking.h: New file.
56353         * lib/nonblocking.c: Likewise.
56354         * tests/test-nonblocking.c: New test.
56355         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56357 2011-03-30  Bruno Haible  <bruno@clisp.org>
56359         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56360         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56361         instead of 'printf' format for GCC >= 4.4.
56362         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56363         (fprintf, printf, vfprintf, vprintf): Declare with
56364         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56365         the system's vfprintf() function.
56366         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56368 2011-03-30  Eric Blake  <eblake@redhat.com>
56370         passfd: fix scoping bug
56371         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56372         before sendmsg/recvmsg.
56374         passfd: standardize coding conventions
56375         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56376         can be learned at compile time.
56377         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56378         ifdefs.
56379         (sendfd, recvfd): Follow gnulib code conventions.
56381         passfd: fix incorrect sendmsg arguments
56382         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
56383         incorrect msg_controllen value.
56384         * modules/passfd-tests (Depends-on): Check for alarm.
56385         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
56386         Reported by Bastien ROUCARIES.
56388 2011-03-30  Bruno Haible  <bruno@clisp.org>
56390         c-strcasestr: Relicense under LGPLv2+.
56391         * modules/c-strcasestr (License): Change to LGPLv2+.
56392         Requested by Eric Blake, for libvirt.
56394 2011-03-30  Simon Josefsson  <simon@josefsson.org>
56396         * users.txt: Add libidn2.  Fix libtasn1 link.
56398 2011-03-30  Jim Meyering  <meyering@redhat.com>
56400         tests: readlink* ("",... fails with EINVAL on newer kernels
56401         readlink and readlinkat have typically failed with ENOENT for
56402         the invalid, empty file name,  "".  However, with the advent
56403         of linux-2.6.39, they fail with EINVAL.
56404         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
56405         when operating on the empty file name.
56406         * tests/test-readlink.h (test_readlink): Likewise.
56408 2011-03-29  Bruno Haible  <bruno@clisp.org>
56410         Relicense some modules under LGPLv2+, for libidn2.
56411         * modules/array-mergesort (License): Change to LGPLv2+.
56412         * modules/c-strcaseeq (License): Likewise.
56413         * modules/striconveh (License): Likewise.
56414         * modules/striconveha (License): Likewise.
56415         * modules/uniconv/base (License): Likewise.
56416         * modules/uniconv/u8-conv-from-enc (License): Likewise.
56417         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
56418         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
56419         * modules/unictype/base (License): Likewise.
56420         * modules/unictype/bidiclass-of (License): Likewise.
56421         * modules/unictype/category-M (License): Likewise.
56422         * modules/unictype/category-none (License): Likewise.
56423         * modules/unictype/category-of (License): Likewise.
56424         * modules/unictype/category-test (License): Likewise.
56425         * modules/unictype/category-test-withtable (License): Likewise.
56426         * modules/unictype/combining-class (License): Likewise.
56427         * modules/unictype/joiningtype-of (License): Likewise.
56428         * modules/unictype/scripts (License): Likewise.
56429         * modules/uninorm/base (License): Likewise.
56430         * modules/uninorm/canonical-decomposition (License): Likewise.
56431         * modules/uninorm/composition (License): Likewise.
56432         * modules/uninorm/decompose-internal (License): Likewise.
56433         * modules/uninorm/decomposition-table (License): Likewise.
56434         * modules/uninorm/nfc (License): Likewise.
56435         * modules/uninorm/nfd (License): Likewise.
56436         * modules/uninorm/u32-normalize (License): Likewise.
56437         * modules/unistr/base (License): Likewise.
56438         * modules/unistr/u32-cpy (License): Likewise.
56439         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
56440         * modules/unistr/u32-to-u8 (License): Likewise.
56441         * modules/unistr/u32-uctomb (License): Likewise.
56442         * modules/unistr/u8-check (License): Likewise.
56443         * modules/unistr/u8-mblen (License): Likewise.
56444         * modules/unistr/u8-mbtouc (License): Likewise.
56445         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
56446         * modules/unistr/u8-mbtoucr (License): Likewise.
56447         * modules/unistr/u8-prev (License): Likewise.
56448         * modules/unistr/u8-strlen (License): Likewise.
56449         * modules/unistr/u8-to-u32 (License): Likewise.
56450         * modules/unistr/u8-uctomb (License): Likewise.
56451         * modules/unitypes (License): Likewise.
56452         Requested by Simon Josefsson.
56454 2011-03-29  Simon Josefsson  <simon@josefsson.org>
56456         lib-symbol-visibility: Add a notice.
56457         * modules/lib-symbol-visibility (Notice): New field.
56459 2011-03-29  Bruno Haible  <bruno@clisp.org>
56461         getaddrinfo: Doc fix.
56462         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56463         section "fixed in Gnulib".
56465 2011-03-28  Simon Josefsson  <simon@josefsson.org>
56467         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
56468         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
56470 2011-03-26  Bruno Haible  <bruno@clisp.org>
56472         unictype/property-byname: Reduce the number of load-time relocations.
56473         * lib/unictype/pr_byname.c: Include <stdlib.h>.
56474         (UC_PROPERTY_INDEX_*): New enumeration values.
56475         (uc_property_byname): Convert an index from the lookup table to an
56476         uc_property_t.
56477         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
56478         values.
56480 2011-03-26  Bruno Haible  <bruno@clisp.org>
56482         unictype/property-byname: Allow omitted word separators and aliases.
56483         * lib/unictype/pr_byname.gperf: Add property names without word
56484         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
56485         for 'space'.
56487 2011-03-26  Bruno Haible  <bruno@clisp.org>
56489         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
56490         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
56491         also hyphens to space.
56492         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
56493         without spaces.
56494         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
56496 2011-03-26  Bruno Haible  <bruno@clisp.org>
56498         unictype/joiningtype-byname: Recognize long names as well.
56499         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
56500         a long name.
56501         * lib/unictype/joiningtype_byname.c: Include <string.h>,
56502         unictype/joiningtype_byname.h.
56503         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
56504         * lib/unictype/joiningtype_byname.gperf: New file.
56505         * modules/unictype/joiningtype-byname (Files): Add
56506         lib/unictype/joiningtype_byname.gperf.
56507         (Depends-on): Add gperf.
56508         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
56509         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
56510         long names.
56512         Tests for module 'unictype/joiningtype-longname'.
56513         * modules/unictype/joiningtype-longname-tests: New file.
56514         * tests/unictype/test-joiningtype_longname.c: New file.
56516         New module 'unictype/joiningtype-longname'.
56517         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
56518         * lib/unictype/joiningtype_longname.c: New file.
56519         * modules/unictype/joiningtype-longname: New file.
56520         * modules/unictype/joiningtype-all (Depends-on): Add
56521         unictype/joiningtype-longname.
56523 2011-03-26  Bruno Haible  <bruno@clisp.org>
56525         unictype/bidiclass-byname: Recognize long names as well.
56526         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
56527         name.
56528         * lib/unictype/bidi_byname.c: Include <string.h>,
56529         unictype/bidi_byname.h.
56530         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
56531         * lib/unictype/bidi_byname.gperf: New file.
56532         * modules/unictype/bidiclass-byname (Files): Add
56533         lib/unictype/bidi_byname.gperf.
56534         (Depends-on): Add gperf.
56535         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
56536         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
56537         long names.
56539         Tests for module 'unictype/bidiclass-longname'.
56540         * modules/unictype/bidiclass-longname-tests: New file.
56541         * tests/unictype/test-bidi_longname.c: New file.
56543         New module 'unictype/bidiclass-longname'.
56544         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
56545         * lib/unictype/bidi_longname.c: New file.
56546         * modules/unictype/bidiclass-longname: New file.
56547         * modules/unictype/bidiclass-all (Depends-on): Add
56548         unictype/bidiclass-longname.
56550 2011-03-26  Bruno Haible  <bruno@clisp.org>
56552         unictype/bidi*: Rename modules.
56553         * modules/unictype/bidiclass-all: Renamed from
56554         modules/unictype/bidicategory-all.
56555         * modules/unictype/bidiclass-name: Renamed from
56556         modules/unictype/bidiclass-name.
56557         (Description): Update.
56558         * modules/unictype/bidiclass-name-tests: Renamed from
56559         modules/unictype/bidicategory-name-tests.
56560         * modules/unictype/bidiclass-byname: Renamed from
56561         modules/unictype/bidicategory-byname.
56562         (Description): Update.
56563         * modules/unictype/bidiclass-byname-tests: Renamed from
56564         modules/unictype/bidicategory-byname-tests.
56565         * modules/unictype/bidiclass-of: Renamed from
56566         modules/unictype/bidicategory-of.
56567         (Description): Update.
56568         * modules/unictype/bidiclass-of-tests: Renamed from
56569         modules/unictype/bidicategory-of-tests.
56570         * modules/unictype/bidiclass-test: Renamed from
56571         modules/unictype/bidicategory-test.
56572         (Description): Update.
56573         * modules/unictype/bidiclass-test-tests: Renamed from
56574         modules/unictype/bidicategory-test-tests.
56575         * modules/unictype/bidicategory-all: New file, a simple redirection.
56576         * modules/unictype/bidicategory-name: Likewise.
56577         * modules/unictype/bidicategory-byname: Likewise.
56578         * modules/unictype/bidicategory-of: Likewise.
56579         * modules/unictype/bidicategory-test: Likewise.
56580         * modules/unictype/property-bidi-* (Dependencies): Update.
56581         * lib/unictype/bidi_*.c: Update comment.
56583 2011-03-26  Bruno Haible  <bruno@clisp.org>
56585         unictype/bidi*: Rename functions, part 2.
56586         * modules/unictype/bidicategory-name (configure.ac): Update required
56587         libunistring version.
56588         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
56590 2011-03-25  Bruno Haible  <bruno@clisp.org>
56592         New module 'unictype/combining-class-all'.
56593         * modules/unictype/combining-class-all: New file.
56595         Tests for module 'unictype/combining-class-byname'.
56596         * modules/unictype/combining-class-byname-tests: New file.
56597         * tests/unictype/test-combiningclass_byname.c: New file.
56599         New module 'unictype/combining-class-byname'.
56600         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
56601         * lib/unictype/combiningclass_byname.c: New file.
56602         * lib/unictype/combiningclass_byname.gperf: New file.
56603         * modules/unictype/combining-class-byname: New file.
56605         Tests for module 'unictype/combining-class-longname'.
56606         * modules/unictype/combining-class-longname-tests: New file.
56607         * tests/unictype/test-combiningclass_longname.c: New file.
56609         New module 'unictype/combining-class-longname'.
56610         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
56611         * lib/unictype/combiningclass_longname.c: New file.
56612         * modules/unictype/combining-class-longname: New file.
56614         Tests for module 'unictype/combining-class-name'.
56615         * modules/unictype/combining-class-name-tests: New file.
56616         * tests/unictype/test-combiningclass_name.c: New file.
56618         New module 'unictype/combining-class-name'.
56619         * lib/unictype.in.h (uc_combining_class_name): New declaration.
56620         * lib/unictype/combiningclass_name.c: New file.
56621         * modules/unictype/combining-class-name: New file.
56623 2011-03-25  Bruno Haible  <bruno@clisp.org>
56625         unictype/combining-class: Rename source files.
56626         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
56627         of unictype/combining.h.
56628         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
56629         Update.
56630         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
56631         * modules/unictype/combining-class (Description): Fix.
56632         (Files, Makefile.am): Update.
56633         * tests/unictype/test-combiningclass.c: Renamed from
56634         tests/unictype/test-combining.c.
56635         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
56637 2011-03-25  Bruno Haible  <bruno@clisp.org>
56639         unictype: Update list of canonical combining classes.
56640         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
56642 2011-03-25  Bruno Haible  <bruno@clisp.org>
56644         unictype/category-byname: Recognize long names as well.
56645         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
56646         a long name.
56647         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
56648         unictype/categ_byname.h.
56649         (UC_CATEGORY_INDEX_*): New enumeration values.
56650         (uc_general_category_byname): Use uc_general_category_lookup and
56651         convert from index to value.
56652         * lib/unictype/categ_byname.gperf: New file.
56653         * modules/unictype/category-byname (Files): Add
56654         lib/unictype/categ_byname.gperf.
56655         (Depends-on): Add gperf.
56656         (Makefile.am): Add rule for generating unictype/categ_byname.h.
56657         * tests/unictype/test-categ_byname.c (main): Test the recognition of
56658         long names.
56660         Tests for module 'unictype/category-longname'.
56661         * modules/unictype/category-longname-tests: New file.
56662         * tests/unictype/test-categ_longname.c: New file.
56664         New module 'unictype/category-longname'.
56665         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
56666         * lib/unictype/categ_longname.c: New file.
56667         * modules/unictype/category-longname: New file.
56668         * modules/unictype/category-all (Depends-on): Add it.
56670 2011-03-25  Bruno Haible  <bruno@clisp.org>
56672         Tests for module 'unictype/category-LC'.
56673         * modules/unictype/category-LC-tests: New file.
56674         * tests/unictype/test-categ_LC.c: New file, automatically generated.
56676         New module 'unictype/category-LC'.
56677         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
56678         (UC_CATEGORY_LC): New declaration.
56679         (UC_CASED_LETTER): New macro.
56680         * lib/gen-uni-tables.c (is_category_LC): New function.
56681         (output_categories): Also handle category LC.
56682         (UC_CATEGORY_MASK_LC): New enumeration value.
56683         (general_category_byname): Also handle category LC.
56684         * lib/unictype/categ_LC.c: New file.
56685         * lib/unictype/categ_LC.h: New file, automatically generated.
56686         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
56687         category LC.
56688         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
56689         * modules/unictype/category-LC: New file.
56690         * modules/unictype/category-byname (Depends-on): Add
56691         unictype/category-LC.
56692         * modules/unictype/category-all (Depends-on): Likewise.
56694 2011-03-25  Eric Blake  <eblake@redhat.com>
56696         xmalloc: revert yesterday's regression
56697         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
56698         realloc's underlying behavior (allowing allocation of zero-size
56699         objects, especially if malloc-gnu is also in use).
56701 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
56703         maint.mk: add missing version to VC-tag
56704         * top/maint.mk: git tag was missing actual tag name; add it.
56706         valgrind: do leak checking, and exit with code 1 on error (not 0)
56707         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
56708         to VALGRIND.
56710 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
56712         posix-modules: say what it does.
56713         * posix-modules: Add a line to the --help output saying what it does.
56715 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
56717         xmalloc: Do not leak if underlying realloc is C99 compatible.
56718         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
56719         This avoids a leak on C99-based systems.  See
56720         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
56722 2011-03-24  Eric Blake  <eblake@redhat.com>
56724         realloc: document portability problem
56725         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
56726         passing 0 size to realloc.
56728 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
56730         doc: update users.txt
56731         * users.txt: Add cvsps, tmpwatch
56733 2011-03-23  Matt Rice  <ratmice@gmail.com>
56735         doc: update users.txt
56736         * users.txt: Add gdb.
56738 2011-03-23  Jim Meyering  <meyering@redhat.com>
56740         doc: update users.txt
56741         Looking through matches up to the following URL (there are still
56742         several more pages), I found several projects that use gnulib:
56743         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
56744         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
56745         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
56747 2011-03-22  Bruno Haible  <bruno@clisp.org>
56749         unictype/bidi*: Rename functions.
56750         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
56751         uc_bidi_class, uc_is_bidi_class): New declarations.
56752         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
56753         uc_bidi_category_byname.
56754         (uc_bidi_category_byname): New function.
56755         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
56756         u_bidi_category_name.
56757         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
56758         (uc_bidi_category_name): New function.
56759         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
56760         uc_bidi_category.
56761         (uc_bidi_category): New function.
56762         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
56763         uc_is_bidi_category. Invoke uc_bidi_class.
56764         (uc_is_bidi_category): New function.
56765         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
56766         instead of uc_bidi_category_byname.
56767         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
56768         instead of uc_bidi_category_name.
56769         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
56770         uc_bidi_category.
56771         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
56772         instead of uc_is_bidi_category.
56774 2011-03-21  Bruno Haible  <bruno@clisp.org>
56776         New module 'unictype/joininggroup-all'.
56777         * modules/unictype/joininggroup-all: New file.
56779         Tests for module 'unictype/joininggroup-of'.
56780         * modules/unictype/joininggroup-of-tests: New file.
56781         * tests/unictype/test-joininggroup_of.c: New file.
56782         * tests/unictype/test-joininggroup_of.h: New file, automatically
56783         generated by gen-uni-tables.
56785         New module 'unictype/joininggroup-of'.
56786         * modules/unictype/joininggroup-of: New file.
56787         * lib/unictype/joininggroup_of.c: New file.
56788         * lib/unictype/joininggroup_of.h: New file, automatically generated by
56789         gen-uni-tables.
56791         Tests for module 'unictype/joininggroup-byname'.
56792         * modules/unictype/joininggroup-byname-tests: New file.
56793         * tests/unictype/test-joininggroup_byname.c: New file.
56795         New module 'unictype/joininggroup-byname'.
56796         * modules/unictype/joininggroup-byname: New file.
56797         * lib/unictype/joininggroup_byname.c: New file.
56798         * lib/unictype/joininggroup_byname.gperf: New file.
56800         Tests for module 'unictype/joininggroup-name'.
56801         * modules/unictype/joininggroup-name-tests: New file.
56802         * tests/unictype/test-joininggroup_name.c: New file.
56804         New module 'unictype/joininggroup-name'.
56805         * modules/unictype/joininggroup-name: New file.
56806         * lib/unictype/joininggroup_name.c: New file.
56807         * lib/unictype/joininggroup_name.h: New file.
56809         New module 'unictype/joiningtype-all'.
56810         * modules/unictype/joiningtype-all: New file.
56812         Tests for module 'unictype/joiningtype-of'.
56813         * modules/unictype/joiningtype-of-tests: New file.
56814         * tests/unictype/test-joiningtype_of.c: New file.
56815         * tests/unictype/test-joiningtype_of.h: New file, automatically
56816         generated by gen-uni-tables.
56818         New module 'unictype/joiningtype-of'.
56819         * modules/unictype/joiningtype-of: New file.
56820         * lib/unictype/joiningtype_of.c: New file.
56821         * lib/unictype/joiningtype_of.h: New file, automatically generated by
56822         gen-uni-tables.
56824         Tests for module 'unictype/joiningtype-byname'.
56825         * modules/unictype/joiningtype-byname-tests: New file.
56826         * tests/unictype/test-joiningtype_byname.c: New file.
56828         New module 'unictype/joiningtype-byname'.
56829         * modules/unictype/joiningtype-byname: New file.
56830         * lib/unictype/joiningtype_byname.c: New file.
56832         Tests for module 'unictype/joiningtype-name'.
56833         * modules/unictype/joiningtype-name-tests: New file.
56834         * tests/unictype/test-joiningtype_name.c: New file.
56836         New module 'unictype/joiningtype-name'.
56837         * modules/unictype/joiningtype-name: New file.
56838         * lib/unictype/joiningtype_name.c: New file.
56840         unictype: Add support for Arabic shaping properties.
56841         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
56842         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
56843         declarations.
56844         (UC_JOINING_GROUP_*): New enumeration values.
56845         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
56846         declarations.
56847         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
56848         (unicode_joining_type): New variable.
56849         (UC_JOINING_GROUP_*): New enumeration values.
56850         (unicode_joining_group): New variable.
56851         (fill_arabicshaping, joining_type_as_c_identifier,
56852         output_joining_type_test, output_joining_type,
56853         joining_group_as_c_identifier, output_joining_group_test,
56854         output_joining_group): New functions.
56855         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
56856         fill_arabicshaping and output_joining_type_test, output_joining_type,
56857         output_joining_group_test, output_joining_group.
56858         Reported by Simon Josefsson.
56860 2011-03-21  Jim Meyering  <meyering@redhat.com>
56862         strftime: fix a bug in yesterday's change
56863         * lib/strftime.c (add): Accommodate width's initial value of -1.
56864         Otherwise, nstrftime would copy uninitialized data into
56865         the result buffer.
56867 2011-03-21  Jim Meyering  <meyering@redhat.com>
56869         tests: add strftime-tests module
56870         * tests/test-strftime.c: New file.
56871         * modules/strftime-tests: New module.
56873 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56875         strftime: don't assume a byte count fits in 'int'
56876         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
56877         found this problem by static analysis, using gcc -Wstrict-overflow
56878         (GCC 4.5.2, x86-64).  This reported an optimization that depended
56879         on an integer overflow having undefined behavior, but it turns out
56880         that the argument is a size, which might not fit in 'int' anyway,
56882 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56884         stdio: don't require ignore_value around fwrite
56886         This patch works around libc bug 11959
56887         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
56888         Without this patch, applications must often write
56889         ignore_value (fwrite (...)) even though the ignore_value is
56890         not helpful here.  It's common to write many objects, using
56891         fwrite/printf/etc., and then use ferror to detect output error.
56893         I considered making this patch optional, but decided against it,
56894         because libc is obviously being inconsistent here: there is no
56895         reason libc should insist that user code must inspect fwrite
56896         return's value without also insisting that it inspect printf's,
56897         putchar's, etc.  If user code wants to have a strict style where
56898         all these functions' values are checked (so that ferror need not
56899         be checked), we could add support for that style in a new gnulib
56900         module, but in the meantime it's better to be consistent and to
56901         support common usage.
56903         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
56904         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
56905         that we are compiling in checking mode, and if not C++, and
56906         if not already wrapping fwrite for some other reason.
56907         (fwrite): #define to rpl_fwrite if the latter is defined.
56909 2011-03-20  Bruno Haible  <bruno@clisp.org>
56911         verror: Fix compilation error introduced on 2011-02-13.
56912         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
56913         instead of __attribute__.
56914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56916 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
56917             Bruno Haible  <bruno@clisp.org>
56919         socklen: do not depend on sys_socket
56920         While trying to modify Emacs to use gnulib's socklen module,
56921         I discovered a circular dependency: socklen depends on sys_socket
56922         and vice versa.  Emacs can use socklen, but it does not need
56923         sys_socket because it has its own substitute for sys/socket.h.
56924         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
56925         gl_TYPE_SOCKLEN_T.
56926         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
56927         gl_PREREQ_SYS_H_SOCKET.
56928         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
56929         gl_PREREQ_SYS_H_SOCKET.
56930         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
56931         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
56932         * modules/socklen (Depends-on): Do not depend on sys_socket.
56933         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
56935 2011-03-20  Jim Meyering  <meyering@redhat.com>
56937         maint.mk: sort file names *after* new transformation
56938         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
56939         prefix would have led to an unwarranted failure in GNU parted.
56940         Sort after that transformation.
56942 2011-03-19  Jim Meyering  <meyering@redhat.com>
56944         maint.mk: fix po-file syntax-check rule
56945         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
56946         Patch by Bruno Haible.
56948 2011-03-19  Bruno Haible  <bruno@clisp.org>
56950         socklen: Update comment.
56951         * m4/socklen.m4: Update comment about platforms.
56953 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56954             Bruno Haible  <bruno@clisp.org>
56956         inet_ntop, inet_pton: Simplify.
56957         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
56958         documented to provide socklen_t and we already depend on sys_socket.
56959         * modules/inet_pton (Depends-on): Likewise.
56960         * lib/arpa_inet.in.h: Adjust comment.
56962 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56963             Bruno Haible  <bruno@clisp.org>
56965         netdb: Simplify.
56966         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
56967         documented to provide socklen_t and we already depend on sys_socket.
56968         * lib/netdb.in.h: Adjust comment.
56970 2011-03-19  Bruno Haible  <bruno@clisp.org>
56972         sys_socket, netdb: Document problem with socklen_t.
56973         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
56974         platforms.
56975         * doc/posix-headers/netdb.texi: Likewise.
56977 2011-03-18  Eric Blake  <eblake@redhat.com>
56979         maint.mk: let po check work in VPATH build
56980         * top/maint.mk (po_file): Allow cfg.mk override.
56981         (sc_po_check): Allow VPATH use.
56982         Reported by Jiri Denemark.
56984 2011-03-16  Jim Meyering  <meyering@redhat.com>
56986         maint.mk: allow fine-grained syntax-check exclusion via Make variables
56987         Before, you would have had to create one .x-sc_ file per rule in order
56988         to exempt offending files.  Now, you may instead use a Make variable --
56989         usually defined in cfg.mk -- whose name identifies the affected rule.
56990         * top/maint.mk (_sc_excl): Define.
56991         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
56992         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
56994 2011-03-13  Bruno Haible  <bruno@clisp.org>
56996         ignore-value tests: Avoid warnings.
56997         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
56998         empty for gcc < 3.4.
57000 2011-03-13  Bruno Haible  <bruno@clisp.org>
57002         passfd: Fix link error on Solaris.
57003         * modules/passfd (Description): Correct.
57004         (Depends-on): Add socketlib.
57005         (Link): New section.
57006         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57008 2011-03-13  Bruno Haible  <bruno@clisp.org>
57010         passfd: Fix link error on AIX 5.2.
57011         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57013 2011-03-13  Bruno Haible  <bruno@clisp.org>
57015         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57016         * lib/sys_socket.in.h: Include <stddef.h>.
57017         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57018         CMSG_FIRSTHDR. Remove unused variable.
57020 2011-03-13  Bruno Haible  <bruno@clisp.org>
57022         passfd: Fix compilation error on OpenBSD.
57023         * lib/passfd.c: Include <sys/uio.h>.
57025 2011-03-13  Bruno Haible  <bruno@clisp.org>
57027         passfd test: Fix warnings.
57028         * tests/test-passfd.c: Include <sys/wait.h>.
57029         (main): Fix typo.
57031 2011-03-13  Bruno Haible  <bruno@clisp.org>
57033         passfd module, part 4, tweaks.
57034         * tests/test-passfd.c: Reorder includes.
57035         (main): Fix perror and printf calls.
57037 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57039         passfd module, part 4.
57040         * modules/passfd-tests: New file.
57041         * tests/test-passfd.c: New file.
57043 2011-03-13  Jim Meyering  <meyering@redhat.com>
57045         Makefile: rely on GNU make; derive syntax-check rule names
57046         Rather than requiring that each sc_ rule be listed as a dependent
57047         of "check", use features of GNU make to derive the list.
57048         * Makefile (syntax-check-rules): Define.
57049         (check): Depend on the new variable, not the hard-coded list.
57051 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57052             Bruno Haible  <bruno@clisp.org>
57054         passfd module, part 3.
57055         * lib/passfd.h (recvfd): Add a flags argument.
57056         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57057         (recvfd): Add a flags argument.
57058         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57059         exists.
57060         * modules/passfd (Depends-on): Add cloexec.
57061         Suggested by Eric Blake.
57063 2011-03-13  Bruno Haible  <bruno@clisp.org>
57065         passfd module, part 2, tweaks.
57066         * modules/passfd (Files): Reorder.
57067         (Depends-on): Remove errno.
57068         (Include): Remove <sys/socket.h>, <sys/un.h>.
57069         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57070         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57071         specification header. Include <sys/socket.h> always. Don't include
57072         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57073         (sendfd): Clarify that it sets errno when it fails.
57074         (recvfd): Fix specification.
57076 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57078         passfd module, part 2.
57079         * modules/passfd: New file.
57080         * lib/passfd.h: New file.
57081         * lib/passfd.c: New file.
57083 2011-03-12  Bruno Haible  <bruno@clisp.org>
57085         wcswidth, mbswidth: Avoid integer overflow.
57086         * lib/wcswidth.c: Include <limits.h>.
57087         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57088         * lib/mbswidth.c: Include <limits.h>.
57089         (mbsnwidth): Avoid 'int' overflow.
57090         Reported by Jim Meyering.
57092 2011-03-12  Bruno Haible  <bruno@clisp.org>
57094         futimens, utimensat: Avoid endless recursion on Solaris 10.
57095         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57096         Solaris.
57097         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57098         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57100 2011-03-11  Jim Meyering  <meyering@redhat.com>
57102         maint.mk: relax a regexp to accommodate other formatting styles
57103         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57104         between "ngettext" and the following "(".
57106 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57108         maint.mk: suppress a false positive warning
57109         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57110         diagnostics are marked with ngettext.
57112 2011-03-10  Eric Blake  <eblake@redhat.com>
57114         wchar: add explicit dependencies, for Tru64
57115         * modules/mbmemcasecoll (Depends-on): Add wchar.
57116         * modules/mbtowc (Depends-on): Likewise.
57117         * modules/vasnprintf (Depends-on): Likewise.
57118         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57119         * modules/wctomb (Depends-on): Likewise.
57120         Reported by Peter O'Gorman.
57122 2011-03-08  Bruno Haible  <bruno@clisp.org>
57124         passfd module, part 1, tweaks.
57125         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57126         Improve indentation. Improve AC_MSG_CHECKING messages.
57127         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57128         gl_SOCKET_FAMILIES.
57130 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57132         passfd module, part 1.
57133         * m4/afunix.m4: New file.
57134         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57135         sockets.
57137 2011-03-08  Bruno Haible  <bruno@clisp.org>
57139         regex-quote: New API.
57140         * lib/regex-quote.h: Include <stdbool.h>.
57141         (struct regex_quote_spec): New type.
57142         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57143         New declarations.
57144         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57145         'const struct regex_quote_spec *' argument.
57146         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57147         (pcre_special): New constant.
57148         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57149         New functions.
57150         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57151         'const struct regex_quote_spec *' argument.
57152         * modules/regex-quote (Depends-on): Add stdbool.
57153         * tests/test-regex-quote.c (check): Update for new API. Add test for
57154         anchored results.
57155         * NEWS: Mention the API change.
57156         Reported by Reuben Thomas and Eric Blake.
57158 2011-03-06  Bruno Haible  <bruno@clisp.org>
57160         regex-quote: Fix creation of POSIX extended regular expressions.
57161         * lib/regex-quote.c (ere_special): Add grouping and alternation
57162         operators.
57164 2011-03-05  Bruno Haible  <bruno@clisp.org>
57166         doc: Improve doc regarding autopoint vs. gnulib.
57167         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57168         disable autopoint while running autoreconf.
57169         Suggested by Ralf Wildenhues.
57171 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57173         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57174         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57176 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57178         parse-duration: remove xalloc.h dependency
57179         * lib/parse-duration.c (parse_period): handle NULL return from
57180         strdup instead of calling xstrdup().
57181         * modules/parse-duration: remove "xalloc" dependency
57183 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57185         bootstrap: honor m4_base when running aclocal
57186         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57188 2011-03-02  Jim Meyering  <meyering@redhat.com>
57190         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57191         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57192         on request from Matt Booth.
57194 2011-03-01  Eric Blake  <eblake@redhat.com>
57196         test-link: work on Hurd
57197         * tests/test-link.h (test_link): Hurd rejects linking directories
57198         with EISDIR instead of the POSIX-mandated EPERM.
57200 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57202         stdio: simplify by moving files to printf-posix, sigpipe
57203         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57204         since this symbol is needed only if printf is replaced.
57205         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57206         Require gl_ASM_SYMBOL_PREFIX.
57207         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57208         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
57209         (Depends-on): Add 'raise'.
57210         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
57211         * modules/stdio (Files): Remove lib/stdio-write.c,
57212         m4/asm-underscore.m4.
57213         (Depends-on): Remove 'raise'.
57215         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
57216         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
57217         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
57218         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
57220 2011-02-28  Bruno Haible  <bruno@clisp.org>
57222         localcharset: Assume ANSI C behaviour of free().
57223         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
57224         calling free().
57225         Suggested by Simon Josefsson <simon@josefsson.org>.
57227 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
57228             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
57229             Bruno Haible  <bruno@clisp.org>  (tiny change)
57231         On Cygwin, use /proc file system instead of win32 API.
57232         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
57233         Win32 file names.
57234         (DllMain): Simplify by removing Cygwin specific code.
57235         (find_shared_library_fullname): Use Linux specific implementation also
57236         for Cygwin.
57237         (get_shared_library_fullname): Update accordingly.
57238         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
57239         Win32 file names.
57240         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
57241         Cygwin specific code.
57243 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
57244             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
57246         Fix OpenMP flag detection for various Fortran compilers.
57247         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
57248         OpenMP-conditional compilation construct, to force compile
57249         failure with missing OpenMP flag.
57250         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57252 2011-02-25  Eric Blake  <eblake@redhat.com>
57254         strstr: expand test coverage
57255         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57256         compilation.
57257         * tests/test-memmem.c (main): Duplicate tests.
57258         * tests/test-strcasestr.c (main): Likewise.
57259         * tests/test-c-strcasestr.c (main): Likewise.
57261 2011-02-25  Jim Meyering  <meyering@redhat.com>
57263         maint.mk: detect missing-NL-at-EOF, too
57264         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57265         it also detects when a file lacks a newline at EOF.
57266         (require_exactly_one_NL_at_EOF_): Renamed from
57267         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57268         since people may well have .x-sc_... file names tied to the
57269         existing name.  Suggested by Eric Blake.
57271 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57273         dirname: move m4/dos.m4 functionality into lib/dosname.h
57275         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57276         extracts symbols from it, puts them into config.h; but it's much
57277         easier to use the symbols directly.  filename.h already does this,
57278         but it disagrees with dos.m4 in some respects.  This patch
57279         introduces a different include file dosname.h that packages up
57280         dos.m4, and then later we can work on merging filename.h and
57281         dosname.h.  Applications that need only the easy-to-configure
57282         symbols should consider including dosname.h rather than dirname.h.
57283         * NEWS: Mention incompatible changes.
57284         * m4/dos.m4: Remove.
57285         * lib/dosname.h, modules/dosname: New files.
57286         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57287         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57288         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57289         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57290         Include dosname.h, not dirname.h.
57291         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57292         Include dosname.h, for definitions of symbols like ISSLASH
57293         that used to be in config.h.
57294         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57295         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57296         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57297         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57298         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57299         * modules/rmdir (Files): Likewise.
57300         * modules/stat (Files): Likewise.
57301         * modules/unlink (Files): Likewise.
57302         * modules/dirname-lgpl (Depends-on): Add dosname.
57303         * modules/lstat (Depends-on): Likewise.
57304         * modules/openat (Depends-on): Likewise.
57305         * modules/rmdir (Depends-on): Likewise.
57306         * modules/savewd (Depends-on): Likewise.
57307         * modules/stat (Depends-on): Likewise.
57308         * modules/unlink (Depends-on): Likewise.
57309         * modules/openat (Depends-on): Remove dirname-lgpl.
57310         * modules/savewd (Depends-on): Likewise.
57311         * tests/test-dirname.c: Do not use removed symbols like
57312         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57313         the remaining symbols, e.g., ISSLASH ('\\').
57315 2011-02-25  Eric Blake  <eblake@redhat.com>
57317         strstr: revert patches that introduced bug and pessimization
57318         * lib/str-two-way.h: Add another reference.
57319         (two_way_short_needle, two_way_long_needle): Revert changes from
57320         2011-02-24; they pessimize search speed.
57321         (critical_factorization): Partially revert changes from
57322         2010-06-22; they violate the requirement that the left half of the
57323         needle be smaller than the period of the needle.
57325 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57327         filenamecat: remove unnecessary dependency on dirname-lgpl
57328         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57329         is no direct dependency, just an indirect one via filenamecat-lgpl.
57331         remove: remove unnecessary use of m4/dos.m4
57332         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57333         * modules/remove (FILES): Remove m4/dos.m4.
57335         * lib/openat-proc.c: Don't include dirname.h; not needed.
57337         backupfile: remove unnecessary use of m4/dos.m4
57338         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57339         of its symbols are used by the backupfile code.  backupfile.c does
57340         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57341         for the rare case of programs that want all their backup file
57342         names to live within 8+3 limits, and dos.m4 doesn't address that.
57343         * modules/backupfile (Files): Remove m4/dos.m4.
57345 2011-02-24  Jim Meyering  <meyering@redhat.com>
57347         strstr: fix a bug whereby strstr would mistakenly return NULL
57348         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57349         in period calculation.
57350         (two_way_long_needle): Likewise.
57351         The original problem was reported by Mike Stump in
57352         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57353         Ralf Wildenhues provided the short needle and haystack.
57354         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57355         Add a more involved test to trigger the bug in two_way_long_needle.
57357 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57359         gnulib-tool: remove use of bold display in help screen
57360         * gnulib-tool (func_usage): Do not use bold display anymore in the
57361         help screen.  That was just meant to be a temporary emphasis for a
57362         backward-incompatible change.
57364 2011-02-23  Bruno Haible  <bruno@clisp.org>
57366         Fix misindentation of preprocessor directives.
57367         * lib/argp-namefrob.h: Reindent preprocessor directives.
57368         * lib/getopt_int.h (struct _getopt_data): Likewise.
57369         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57370         * lib/vasnprintf.c (decode_long_double): Likewise.
57371         * tests/test-argmatch.c: Insert blank lines, for clarity.
57372         * tests/test-exclude.c: Likewise.
57374 2011-02-22  Bruno Haible  <bruno@clisp.org>
57376         ioctl: Fix for MacOS X in 64-bit mode.
57377         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57378         value.
57379         Suggested by Eric Blake.
57380         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
57382 2011-02-22  Jim Meyering  <meyering@redhat.com>
57384         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
57385         * Makefile (sc_cpp_indent_check): Don't limit the check to files
57386         in lib/.
57388 2011-02-22  Eric Blake  <eblake@redhat.com>
57390         maint: avoid any CDPATH issue
57391         * Makefile (sc_cpp_indent_check): Anchor cd argument.
57393         maint: adjust cpp indentation for my modules, as well
57394         * Makefile (sc_cpp_indent_check): Add my name.
57395         * lib/fbufmode.c: Filter through cppi.
57396         * lib/fpurge.c: Likewise.
57397         * lib/freadable.c: Likewise.
57398         * lib/freading.c: Likewise.
57399         * lib/fwritable.c: Likewise.
57400         * lib/fwriting.c: Likewise.
57401         * lib/sigaction.c: Likewise.
57403 2011-02-22  Jim Meyering  <meyering@redhat.com>
57405         maint: adjust cpp indentation to reflect nesting depth
57406         I.e., in a block of code that begins with an unnested "#if",
57407         put one space between the "#" in column 1 and following token.
57408         For example,
57409         -#include <sys/vfs.h>
57410         +# include <sys/vfs.h>
57411         Do this only in .c files that are part of a module I maintain.
57412         * lib/linkat.c: Filter through cppi.
57413         * lib/nanosleep.c: Likewise.
57414         * lib/openat.c: Likewise.
57415         * lib/openat-die.c: Likewise.
57416         * lib/dup3.c: Likewise.
57417         * lib/fchownat.c: Likewise.
57418         * lib/flock.c: Likewise.
57419         * lib/fsync.c: Likewise.
57420         * lib/fts.c: Likewise.
57421         * lib/getpass.c: Likewise.
57422         * lib/gettimeofday.c: Likewise.
57423         * lib/userspec.c: Likewise.
57424         * Makefile (sc_cpp_indent_check): New rule, to check this.
57426 2011-02-22  Bruno Haible  <bruno@clisp.org>
57428         New module 'wctomb'.
57429         * lib/stdlib.in.h (wctomb): New declaration.
57430         * lib/wctomb.c: New file.
57431         * lib/wctomb-impl.h: New file.
57432         * m4/wctomb.m4: New file.
57433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
57434         REPLACE_WCTOMB.
57435         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
57436         REPLACE_WCTOMB.
57437         * modules/wctomb: New file.
57438         * tests/test-stdlib-c++.cc: Test signature of wctomb.
57439         * doc/posix-functions/wctomb.texi: Mention the new module.
57440         * modules/wctob (Depends-on): Add wctomb.
57442 2011-02-22  Bruno Haible  <bruno@clisp.org>
57444         New module 'mbtowc'.
57445         * lib/stdlib.in.h (mbtowc): New declaration.
57446         * lib/mbtowc.c: New file.
57447         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
57448         * m4/mbtowc.m4: New file.
57449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
57450         REPLACE_MBTOWC.
57451         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
57452         REPLACE_MBTOWC.
57453         * modules/mbtowc: New file.
57454         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
57455         * doc/posix-functions/mbtowc.texi: Mention the new module.
57456         * modules/btowc (Depends-on): Add mbtowc.
57458 2011-02-22  Bruno Haible  <bruno@clisp.org>
57460         wcrtomb: Add more tests for native Windows platforms.
57461         * tests/test-wcrtomb-w32-1.sh: New file.
57462         * tests/test-wcrtomb-w32-2.sh: New file.
57463         * tests/test-wcrtomb-w32-3.sh: New file.
57464         * tests/test-wcrtomb-w32-4.sh: New file.
57465         * tests/test-wcrtomb-w32-5.sh: New file.
57466         * tests/test-wcrtomb-w32.c: New file.
57467         * modules/wcrtomb-tests (Files): Add them.
57468         (Makefile.am): Arrange to run these tests.
57469         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
57470         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
57472 2011-02-20  Bruno Haible  <bruno@clisp.org>
57474         wcrtomb: Enhance test.
57475         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
57477 2011-02-20  Bruno Haible  <bruno@clisp.org>
57479         mbrtowc: Tiny optimization.
57480         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
57482 2011-02-20  Jim Meyering  <meyering@redhat.com>
57484         test-exclude.c: remove unmatched #endif
57485         * tests/test-exclude.c: Remove stray #endif, left over from
57486         the change of a week ago.
57488 2011-02-19  Jim Meyering  <meyering@redhat.com>
57490         git-version-gen: skip "-dirty" check when appropriate
57491         * build-aux/git-version-gen: Don't run any git commands when the
57492         version string comes from .tarball-version.  Prior to this, we
57493         would run git update-index --refresh even from a just-unpacked
57494         tarball directory, and that could affect a .git/ directory in a
57495         parent of the build directory.  Reported by Mike Frysinger.
57497 2011-02-19  Bruno Haible  <bruno@clisp.org>
57499         unictype/property-byname: Reduce the size of the 'data' segment.
57500         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
57502 2011-02-19  Bruno Haible  <bruno@clisp.org>
57504         unictype/scripts: Reduce the size of the 'data' segment.
57505         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
57506         '%pic'.
57507         * lib/unictype/scripts_byname.gperf: Regenerated.
57509 2011-02-19  Bruno Haible  <bruno@clisp.org>
57511         stdint: Update documentation.
57512         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
57514 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
57516         stdint: omit redundant check for wchar.h
57517         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
57518         always tests whether wchar.h exists, so remove the now-redundant test.
57520 2011-02-18  Bruno Haible  <bruno@clisp.org>
57522         stdint: Cut dependency to module 'wchar'.
57523         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
57524         include the necessary prerequisites.
57525         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
57526         * modules/stdint (Depends-on): Remove wchar.
57527         (Makefile.am): Substitute HAVE_WCHAR_H.
57528         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
57530 2011-02-18  Eric Blake  <eblake@redhat.com>
57532         longlong: skip, rather than fail, on cross-compilation
57533         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
57534         when cross-compiling; regression from 2011-02-16.
57536 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57538         * NEWS: Mention 2011-02-08 change to stdlib.
57540 2011-02-17  Bruno Haible  <bruno@clisp.org>
57542         getloadavg: Add comments about platforms.
57543         * m4/getloadavg.m4: Add comment.
57544         * lib/getloadavg.c: Likewise.
57546 2011-02-17  Bruno Haible  <bruno@clisp.org>
57548         getloadavg: Fix link error on Solaris 2.6.
57549         * modules/getloadavg (Link): New section.
57550         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
57551         linking test-getloadavg.
57552         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
57553         getloadavg.
57555 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57557         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
57558         It was 'int', but this doesn't match the IRIX 6.5 manual.
57559         Suggested by Bruno Haible in
57560         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
57562 2011-02-17  Bruno Haible  <bruno@clisp.org>
57564         havelib: Fix comments.
57565         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
57566         change.
57568 2011-02-17  Bruno Haible  <bruno@clisp.org>
57570         havelib: Update config.rpath.
57571         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
57573 2011-02-17  Bruno Haible  <bruno@clisp.org>
57575         getloadavg test: Add some plausibility checks.
57576         * tests/test-getloadavg.c (check_avg): Print a warning when the value
57577         is improbable.
57579 2011-02-16  Eric Blake  <eblake@redhat.com>
57581         maintainer-makefile: make syntax-check a no-op from tarballs
57582         * top/maint.mk (no-vc-detected): New rule.
57583         (local-checks-available): Use it to avoid hanging if someone tries
57584         'make syntax-check' from a tarball.  Also append to any non-syntax
57585         checks already defined in cfg.mk.
57587 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
57589         longlong: tune, particularly for common case of c99
57591         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
57592         or running anything if c99, or if unsigned long long int does not
57593         work.  In either case, we know the answer without further tests.
57594         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
57595         it at most once, and use its results for both long long int and
57596         unsigned long long int.  This is more likely to be efficient in
57597         the common case where the program wants to check for both long
57598         long int and unsigned long long int.
57599         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
57600         since the answer is already known.
57602 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
57604         getloadavg: set errno
57605         * lib/getloadavg.c: Set errno when returning -1.  If no other
57606         error number looks appropriate, set it to ENOSYS if the getloadavg
57607         looks like it can't possibly ever work, ENOTSUP otherwise.
57608         Suggested by Bruno Haible in
57609         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
57611         getloadavg: trim unused parts and speed up 'configure'
57612         * NEWS: Document this.
57613         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
57614         always compiled if getloadavg is absent.
57615         Move test code to ...
57616         * tests/test-getloadavg.c: New file, containing previous
57617         contents of test from lib/getloadavg.c.  It also contains
57618         suggestions by Bruno Haible in
57619         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
57620         * modules/getloadavg-tests: New file.
57621         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
57622         Do tests in the same order as they're needed for getloadavg.c.
57623         Omit setgid-related tests that generate symbols KMEM_GROUP,
57624         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
57625         Do only the tests that are needed to see whether the system has
57626         getloadavg, moving the other tests into ...
57627         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
57628         NLIST_NAME_UNION; nobody should be using it.  Do not define
57629         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
57630         relevant, as the user of this module shouldn't care how getloadavg
57631         is implemented.
57633         getloadavg: omit unused var
57634         * lib/getloadavg.c (getloadavg): Omit unused local variable.
57636 2011-02-15  Jim Meyering  <meyering@redhat.com>
57638         doc: update users.txt
57639         * users.txt: Update iwhd's URL.
57641 2011-02-13  Bruno Haible  <bruno@clisp.org>
57643         Consistent macro naming for macros that use GCC __attribute__.
57644         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
57645         _ATTRIBUTE_NONNULL_.
57646         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
57647         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
57648         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
57649         ATTRIBUTE_DEPRECATED.
57650         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
57651         ATTRIBUTE_NORETURN.
57652         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57653         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57654         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57655         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57656         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
57657         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
57658         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
57659         ATTRIBUTE_SENTINEL.
57660         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
57661         ATTRIBUTE_RETURN_CHECK.
57662         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
57663         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
57664         ATTRIBUTE_NORETURN.
57665         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
57666         Reported by Paul Eggert.
57668 2011-02-13  Bruno Haible  <bruno@clisp.org>
57670         Don't interfere with a program's definition of __attribute__.
57671         * lib/argp.h (__attribute__): Remove definition.
57672         (_GL_ATTRIBUTE_FORMAT): New macro.
57673         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
57674         * lib/argp-fmtstream.h (__attribute__): Remove definition.
57675         (_GL_ATTRIBUTE_FORMAT): New macro.
57676         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
57677         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
57678         GCC 3 or newer.
57679         * lib/error.h (__attribute__): Remove definition.
57680         (_GL_ATTRIBUTE_FORMAT): New macro.
57681         (error, error_at_line): Use it.
57682         * lib/hash.h (__attribute__): Remove definition.
57683         (ATTRIBUTE_WUR): Update definition. Define always.
57684         * lib/openat.h (__attribute__): Remove definition.
57685         (ATTRIBUTE_NORETURN): Update definition. Define always.
57686         * lib/sigpipe-die.h (__attribute__): Remove definition.
57687         (ATTRIBUTE_NORETURN): Update definition. Define always.
57688         * lib/vasnprintf.h (__attribute__): Remove definition.
57689         (_GL_ATTRIBUTE_FORMAT): New macro.
57690         (asnprintf, vasnprintf): Use it.
57691         * lib/xalloc.h (__attribute__): Remove definition.
57692         (ATTRIBUTE_NORETURN): Update definition. Define always.
57693         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
57694         * lib/xmemdup0.h (__attribute__): Remove definition.
57695         (ATTRIBUTE_NORETURN): Update definition. Define always.
57696         * lib/xprintf.h (__attribute__): Remove definition.
57697         (_GL_ATTRIBUTE_FORMAT): New macro.
57698         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
57699         * lib/xstrtol.h (__attribute__): Remove definition.
57700         (ATTRIBUTE_NORETURN): Update definition. Define always.
57701         * lib/xvasprintf.h (__attribute__): Remove definition.
57702         (_GL_ATTRIBUTE_FORMAT): New macro.
57703         (xasprintf, xvasprintf): Use it.
57704         * tests/test-argmatch.c (__attribute__): Remove definition.
57705         (ATTRIBUTE_NORETURN): Update definition. Define always.
57706         * tests/test-exclude.c (__attribute__): Remove definition.
57707         (ATTRIBUTE_NORETURN): Update definition. Define always.
57708         Reported by Paul Eggert.
57710 2011-02-13  Bruno Haible  <bruno@clisp.org>
57712         mbrtowc: Add more tests for native Windows platforms.
57713         * tests/test-mbrtowc-w32-1.sh: New file.
57714         * tests/test-mbrtowc-w32-2.sh: New file.
57715         * tests/test-mbrtowc-w32-3.sh: New file.
57716         * tests/test-mbrtowc-w32-4.sh: New file.
57717         * tests/test-mbrtowc-w32-5.sh: New file.
57718         * tests/test-mbrtowc-w32.c: New file.
57719         * modules/mbrtowc-tests (Files): Add them.
57720         (Makefile.am): Arrange to run these tests.
57721         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
57722         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
57724 2011-02-13  Bruno Haible  <bruno@clisp.org>
57726         mbrtowc: Work around native Windows bug.
57727         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
57728         guess when no suitable locale for testing was found.
57729         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
57731 2011-02-13  Bruno Haible  <bruno@clisp.org>
57733         mbsinit: Work around mingw bug.
57734         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
57735         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
57736         Windows.
57737         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
57739 2011-02-13  Bruno Haible  <bruno@clisp.org>
57741         mbsinit: Don't crash for a NULL argument.
57742         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
57743         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
57745 2011-02-13  Bruno Haible  <bruno@clisp.org>
57747         Don't interfere with a program's definition of __attribute__.
57748         * lib/stdio.in.h (__attribute__): Remove definition.
57749         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
57750         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
57751         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
57752         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
57753         * lib/string.in.h (__attribute__): Remove definition.
57754         Reported by Paul Eggert.
57756 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57758         stdlib: don't get in the way of non-GCC __attribute__
57759         See thread starting at
57760         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
57761         Revert previous stdlib change, installing the following instead:
57762         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
57763         to get in the way of a non-GCC compiler that supports __attribute__.
57764         (_GL_ATTRIBUTE_RETURN): New macro.
57765         (_Exit): Use it instead of __attribute__.
57767 2011-02-12  Bruno Haible  <bruno@clisp.org>
57769         quotearg test: Avoid test failure on mingw.
57770         * tests/test-quotearg.sh: Convert the locale identifier from native
57771         Windows syntax to Unix syntax.
57773 2011-02-12  Bruno Haible  <bruno@clisp.org>
57775         setlocale: Prefer gnulib's override over libintl's override.
57776         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
57777         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
57778         GNULIB_defined_setlocale is set.
57780 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57782         stdlib: support non-GCC __attribute__
57784         Fix a serious and tricky problem encountered when attempting to
57785         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
57786         5.5, but it crashed due to memory corruption on Solaris 10 with
57787         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
57788         bits that are otherwise zero.  This tagging is optional inside
57789         Emacs but is preferred and is used when __attribute__ ((__aligned
57790         (8))) works, as it does with both recent-enough GCC and with Sun C
57791         5.11.  However, Sun C 5.11 is not GCC and does not #define
57792         __GNUC__ and __GNUC_MINOR__.
57794         When I added the getloadavg module to Emacs, it brought in
57795         stdlib.in.h, which contained this fragment:
57797            #ifndef __attribute__
57798            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
57799            #  define __attribute__(Spec)   /* empty */
57800            # endif
57801            #endif
57803         When files that include <stdlib.h> were compiled with Sun C 5.11,
57804         the above code disabled __attribute__ ((__aligned (8))), which
57805         caused variables to not be properly aligned, which eventually led
57806         to the pointer corruption mentioned above.  (This was a bit hard
57807         to diagnose, unfortunately.)
57809         Several "#define __attribute__(X) /* empty */" code snippets need
57810         to be eradicated from Gnulib to work with non-GCC compilers that
57811         support __attribute__.  The Autoconf way to do this is to test for
57812         each kind of attribute that we want support for, and selectively
57813         enable that in source code.
57815         Fix this problem just for stdlib.h, by adding a test for the
57816         __noreturn__ attribute, and change stdlib.in.h to use that test
57817         when needed.  This technique can be easily generalized to the
57818         other *.in.h files and attributes, and a similar technique can be
57819         used for *.h and *.c files.  This patch is enough to solve the
57820         problem for Emacs + getloadavg, and I thought I'd publish it for
57821         feedback before undertaking further, similar fixes in other
57822         modules.
57824         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
57825         because it's not needed for stdlib.h.  It merely substitutes the
57826         value directly into stdlib.h.  We may well need to #define it, or
57827         similar symbols, for other modules, but it's nice to also have an
57828         option to not #define it for applications like Emacs that do not
57829         need it.
57831         * lib/stdlib.in.h (__attribute__): Do not #define.
57832         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
57833         be defined only if the _Exit module is also used.
57834         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
57835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
57836         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
57837         platforms.
57838         * modules/_Exit (Files): Add m4/attribute.m4.
57839         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
57840         * m4/attribute.m4: New file.
57842 2011-02-12  Bruno Haible  <bruno@clisp.org>
57844         wcsrtombs: Work around bug on native Windows.
57845         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
57846         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
57847         instead of len.
57848         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
57850 2011-02-12  Bruno Haible  <bruno@clisp.org>
57852         mbsrtowcs: Work around bug on native Windows.
57853         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
57854         against mingw bug.
57855         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
57857 2011-02-12  Bruno Haible  <bruno@clisp.org>
57859         Avoid setlocale bugs in tests.
57860         * modules/btowc (Dependencies): Add setlocale.
57861         * modules/c-strcase (Dependencies): Likewise.
57862         * modules/mbmemcasecmp (Dependencies): Likewise.
57863         * modules/mbmemcasecoll (Dependencies): Likewise.
57864         * modules/mbrtowc (Dependencies): Likewise.
57865         * modules/mbscasecmp (Dependencies): Likewise.
57866         * modules/mbscasestr (Dependencies): Likewise.
57867         * modules/mbschr (Dependencies): Likewise.
57868         * modules/mbscspn (Dependencies): Likewise.
57869         * modules/mbsinit (Dependencies): Likewise.
57870         * modules/mbsncasecmp (Dependencies): Likewise.
57871         * modules/mbsnrtowcs (Dependencies): Likewise.
57872         * modules/mbspbrk (Dependencies): Likewise.
57873         * modules/mbspcasecmp (Dependencies): Likewise.
57874         * modules/mbsrchr (Dependencies): Likewise.
57875         * modules/mbsrtowcs (Dependencies): Likewise.
57876         * modules/mbsspn (Dependencies): Likewise.
57877         * modules/mbsstr (Dependencies): Likewise.
57878         * modules/nl_langinfo (Dependencies): Likewise.
57879         * modules/quotearg (Dependencies): Likewise.
57880         * modules/unicase/locale-language (Dependencies): Likewise.
57881         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
57882         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
57883         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
57884         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
57885         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
57886         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
57887         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
57888         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
57889         * modules/vasnprintf-posix (Dependencies): Likewise.
57890         * modules/wcrtomb (Dependencies): Likewise.
57891         * modules/wcsnrtombs (Dependencies): Likewise.
57892         * modules/wcsrtombs (Dependencies): Likewise.
57894 2011-02-12  Bruno Haible  <bruno@clisp.org>
57896         setlocale: Workaround native Windows bug.
57897         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
57898         succeeds but sets LC_CTYPE to "C", report a failure.
57899         * tests/test-setlocale2.sh: New file.
57900         * tests/test-setlocale2.c: New file.
57901         * modules/setlocale-tests (Files): Add the new files.
57902         (Makefile.am): Enable test-setlocale2.sh test.
57903         * doc/posix-functions/setlocale.texi: Mention workaround.
57905 2011-02-11  Bruno Haible  <bruno@clisp.org>
57907         Tests for module 'setlocale'.
57908         * modules/setlocale-tests: New file.
57909         * tests/test-setlocale1.sh: New file.
57910         * tests/test-setlocale1.c: New file.
57912         New module 'setlocale'.
57913         * lib/locale.in.h (setlocale): New declaration.
57914         * lib/setlocale.c: New file, based on
57915         gettext/gettext-runtime/intl/setlocale.c.
57916         * m4/setlocale.m4: New file.
57917         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
57918         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
57919         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
57920         REPLACE_SETLOCALE.
57921         * modules/setlocale: New file.
57922         * tests/test-locale-c++.cc: Test the declaration of setlocale.
57923         * doc/posix-functions/setlocale.texi: Mention the new module.
57925 2011-02-11  Bruno Haible  <bruno@clisp.org>
57927         Prepare for locale dependent tests on mingw.
57928         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
57929         because it has the wrong locale encoding.
57930         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
57931         French_France.1252 instead of "fr".
57932         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
57933         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
57934         because it has the wrong locale encoding.
57935         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
57936         native Windows, try Turkish_Turkey.65001.
57937         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
57938         Chinese_China.54936.
57940         Prepare for locale dependent tests on mingw.
57941         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
57942         differently.
57943         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
57944         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
57945         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57946         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57948 2011-02-11  Eric Blake  <eblake@redhat.com>
57950         strptime: avoid compiler warnings
57951         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
57952         compiler warnings about dead code.
57953         Reported by Daniel P. Berrange.
57955 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
57957         doc: update users.txt
57958         * users.txt: Add rcs.
57960 2011-02-10  John W. Eaton  <jwe@gnu.org>
57962         doc: update users.txt
57963         * users.txt: Add octave.
57965 2011-02-10  Jim Meyering  <meyering@redhat.com>
57967         doc: update users.txt
57968         * users.txt: Add iwhd.
57970 2011-02-09  Bruno Haible  <bruno@clisp.org>
57972         gnulib-tool: Make copyright notice adjustment more robust.
57973         * gnulib-tool (func_import): In sed_transform_main_lib_file,
57974         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
57975         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
57976         License".
57977         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
57979 2011-02-06  Bruno Haible  <bruno@clisp.org>
57981         New module 'towctrans'.
57982         * modules/towctrans: New file.
57983         * lib/wctype.in.h (towctrans): New declaration.
57984         * lib/towctrans.c: New file.
57985         * lib/towctrans-impl.h: New file.
57986         * m4/towctrans.m4: New file.
57987         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
57988         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
57989         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
57990         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
57991         * doc/posix-functions/towctrans.texi: Mention the new module.
57993 2011-02-06  Bruno Haible  <bruno@clisp.org>
57995         New module 'wctrans'.
57996         * modules/wctrans: New file.
57997         * lib/wctype.in.h (wctrans): New declaration.
57998         * lib/wctrans.c: New file.
57999         * lib/wctrans-impl.h: New file.
58000         * m4/wctrans.m4: New file.
58001         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58002         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58003         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58004         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58005         * doc/posix-functions/wctrans.texi: Mention the new module.
58007 2011-02-06  Bruno Haible  <bruno@clisp.org>
58009         New module 'iswctype'.
58010         * modules/iswctype: New file.
58011         * lib/wctype.in.h (iswctype): New declaration.
58012         * lib/iswctype.c: New file.
58013         * lib/iswctype-impl.h: New file.
58014         * m4/iswctype.m4: New file.
58015         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58016         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58017         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58018         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58019         * doc/posix-functions/iswctype.texi: Mention the new module and the
58020         HP-UX 11.00 problem.
58022 2011-02-06  Bruno Haible  <bruno@clisp.org>
58024         New module 'wctype'.
58025         * modules/wctype: Change to represent the wctype() substitute.
58026         * lib/wctype.in.h (wctype): New declaration.
58027         * lib/wctype.c: New file.
58028         * lib/wctype-impl.h: New file.
58029         * m4/wctype.m4: New file.
58030         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58031         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58032         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58033         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58034         * doc/posix-functions/wctype.texi: Mention the new module and the
58035         HP-UX 11.00 problem.
58037 2011-02-06  Bruno Haible  <bruno@clisp.org>
58039         wctype-h: Ensure wctype_t and wctrans_t are defined.
58040         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58041         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58042         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58043         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58044         HAVE_WCTRANS_T.
58045         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58047 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58049         flock: fix license typo
58051         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58052         omitted.
58054 2011-02-08  Bruno Haible  <bruno@clisp.org>
58056         Split large sed scripts, for HP-UX sed.
58057         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58058         to avoid HP-UX limit of 99 commands, in the near future.
58059         * modules/stdlib (Makefile.am): Likewise.
58060         * modules/unistd (Makefile.am): Likewise.
58061         * modules/wchar (Makefile.am): Likewise.
58062         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58063         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58064         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58066 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58067             Bruno Haible  <bruno@clisp.org>
58069         stdlib: improve random_r modularization
58070         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58071         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58072         you also need the random_r module to get this material right.
58073         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58074         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58075         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58077 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58079         stdlib: don't depend on stdint
58080         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58081         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58082         be independent of whether stdint.h is needed.
58083         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58084         here, instead of ...
58085         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58086         struct random_data should be using the random_r module, not just
58087         the stdlib module (which wouldn't make sense: what package needs
58088         just struct random_data without also needing random_r?).
58089         * modules/stdlib (Depends-on): Remove stdint.
58091         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58092         See the thread rooted at
58093         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58094         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58095         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58096         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58097         __VMS)); previously it was always included (via fcntl--.h).
58098         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58099         hand; this is good enough for load averages.  Also, do not use
58100         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58101         flags directly if available and don't bother otherwise.  (Packages
58102         that need the extra reliability should use the modules that define
58103         these flags on older platforms that lack them.)
58104         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58105         fcntl-safer.
58107 2011-02-08  Jim Meyering  <meyering@redhat.com>
58109         di-set.h, ino-map.h: add multiple-inclusion guard
58110         Technically, the guard is required only for ino-map.h, due to its
58111         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58112         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58113         * lib/ino-map.h: Likewise.
58115 2011-02-06  Bruno Haible  <bruno@clisp.org>
58117         iswblank: Ensure declaration on glibc systems.
58118         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58119         * modules/iswblank (Dependencies): Add 'extensions'.
58120         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58122 2011-02-06  Bruno Haible  <bruno@clisp.org>
58124         New module 'iswblank'.
58125         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58126         * modules/iswblank: New file.
58127         * modules/wctype-h (Files): Remove lib/iswblank.c.
58128         (Makefile.am): Substitute GNULIB_ISWBLANK.
58129         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58130         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58131         (gl_WCTYPE_H_DEFAULTS): New macro.
58132         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58133         * modules/iswblank-tests: New file.
58134         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58135         * tests/test-wctype-h.c (main): Remove iswblank tests.
58136         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58137         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58138         of 'wctype-h'.
58139         * NEWS: Mention the change.
58140         * modules/mbchar (Depends-on): Add iswblank.
58142 2011-02-08  Bruno Haible  <bruno@clisp.org>
58144         di-set tests: Refactor.
58145         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58146         unnecessary includes.
58147         (ASSERT): Remove macro.
58148         (main): Make C90 compliant by avoiding variable declaration after
58149         statement.
58150         * modules/di-set-tests (Files): Add tests/macros.h.
58152 2011-02-08  Bruno Haible  <bruno@clisp.org>
58154         ino-map tests: Refactor.
58155         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58156         unnecessary includes.
58157         (ASSERT): Remove macro.
58158         (main): Make C90 compliant by avoiding variable declaration after
58159         statement.
58160         * modules/ino-map-tests (Files): Add tests/macros.h.
58162 2011-02-08  Jim Meyering  <meyering@redhat.com>
58164         di-set: add "const" to a cast
58165         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58166         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58168 2011-02-06  Bruno Haible  <bruno@clisp.org>
58170         Rename module 'wctype' to 'wctype-h'.
58171         * modules/wctype-h: Renamed from modules/wctype.
58172         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58173         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58174         (Files, Depends-on, Makefile.am): Update.
58175         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58176         (Files, Makefile.am): Update.
58177         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58178         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58179         * doc/posix-headers/wctype.texi: Update.
58180         * doc/posix-functions/iswalnum.texi: Update.
58181         * doc/posix-functions/iswalpha.texi: Update.
58182         * doc/posix-functions/iswblank.texi: Update.
58183         * doc/posix-functions/iswcntrl.texi: Update.
58184         * doc/posix-functions/iswdigit.texi: Update.
58185         * doc/posix-functions/iswgraph.texi: Update.
58186         * doc/posix-functions/iswlower.texi: Update.
58187         * doc/posix-functions/iswprint.texi: Update.
58188         * doc/posix-functions/iswpunct.texi: Update.
58189         * doc/posix-functions/iswspace.texi: Update.
58190         * doc/posix-functions/iswupper.texi: Update.
58191         * doc/posix-functions/iswxdigit.texi: Update.
58192         * doc/posix-functions/towlower.texi: Update.
58193         * doc/posix-functions/towupper.texi: Update.
58194         * NEWS: Mention the change.
58195         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58196         * modules/mbchar (Dependencies): Likewise.
58197         * modules/mbswidth (Dependencies): Likewise.
58198         * modules/quotearg (Dependencies): Likewise.
58199         * modules/regex (Dependencies): Likewise.
58200         * modules/wcscasecmp (Dependencies): Likewise.
58201         * modules/wcsncasecmp (Dependencies): Likewise.
58202         * modules/wcwidth (Dependencies): Likewise.
58204 2011-02-06  Bruno Haible  <bruno@clisp.org>
58206         New module 'wcswidth'.
58207         * modules/wcswidth: New file.
58208         * lib/wchar.in.h (wcswidth): New declaration.
58209         * lib/wcswidth.c: New file.
58210         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
58211         * m4/wcswidth.m4: New file.
58212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
58213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
58214         REPLACE_WCSWIDTH.
58215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
58216         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
58217         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
58218         * doc/posix-functions/wcswidth.texi: Mention the new module.
58220 2011-02-06  Bruno Haible  <bruno@clisp.org>
58222         New module 'wcstok'.
58223         * modules/wcstok: New file.
58224         * lib/wchar.in.h (wcstok): New declaration.
58225         * lib/wcstok.c: New file.
58226         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
58227         * m4/wcstok.m4: New file.
58228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
58229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
58230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
58231         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
58232         * doc/posix-functions/wcstok.texi: Mention the new module.
58234 2011-02-06  Bruno Haible  <bruno@clisp.org>
58236         New module 'wcsstr'.
58237         * modules/wcsstr: New file.
58238         * lib/wchar.in.h (wcsstr): New declaration.
58239         * lib/wcsstr.c: New file.
58240         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
58241         * m4/wcsstr.m4: New file.
58242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
58243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
58244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
58245         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
58246         * doc/posix-functions/wcsstr.texi: Mention the new module.
58248 2011-02-06  Bruno Haible  <bruno@clisp.org>
58250         New module 'wcspbrk'.
58251         * modules/wcspbrk: New file.
58252         * lib/wchar.in.h (wcspbrk): New declaration.
58253         * lib/wcspbrk.c: New file.
58254         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58255         * m4/wcspbrk.m4: New file.
58256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58259         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58260         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58262 2011-02-06  Bruno Haible  <bruno@clisp.org>
58264         New module 'wcsspn'.
58265         * modules/wcsspn: New file.
58266         * lib/wchar.in.h (wcsspn): New declaration.
58267         * lib/wcsspn.c: New file.
58268         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58269         * m4/wcsspn.m4: New file.
58270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58273         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58274         * doc/posix-functions/wcsspn.texi: Mention the new module.
58276 2011-02-06  Bruno Haible  <bruno@clisp.org>
58278         New module 'wcscspn'.
58279         * modules/wcscspn: New file.
58280         * lib/wchar.in.h (wcscspn): New declaration.
58281         * lib/wcscspn.c: New file.
58282         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58283         * m4/wcscspn.m4: New file.
58284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58287         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58288         * doc/posix-functions/wcscspn.texi: Mention the new module.
58290 2011-02-06  Bruno Haible  <bruno@clisp.org>
58292         New module 'wcsrchr'.
58293         * modules/wcsrchr: New file.
58294         * lib/wchar.in.h (wcsrchr): New declaration.
58295         * lib/wcsrchr.c: New file.
58296         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58297         * m4/wcsrchr.m4: New file.
58298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58301         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58302         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58304 2011-02-06  Bruno Haible  <bruno@clisp.org>
58306         New module 'wcschr'.
58307         * modules/wcschr: New file.
58308         * lib/wchar.in.h (wcschr): New declaration.
58309         * lib/wcschr.c: New file.
58310         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58311         * m4/wcschr.m4: New file.
58312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58314         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58315         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58316         * doc/posix-functions/wcschr.texi: Mention the new module.
58318 2011-02-06  Bruno Haible  <bruno@clisp.org>
58320         New module 'wcsdup'.
58321         * modules/wcsdup: New file.
58322         * lib/wchar.in.h (wcsdup): New declaration.
58323         * lib/wcsdup.c: New file.
58324         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58325         * m4/wcsdup.m4: New file.
58326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58329         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58330         * doc/posix-functions/wcsdup.texi: Mention the new module.
58332 2011-02-06  Bruno Haible  <bruno@clisp.org>
58334         New module 'wcsxfrm'.
58335         * modules/wcsxfrm: New file.
58336         * lib/wchar.in.h (wcsxfrm): New declaration.
58337         * lib/wcsxfrm.c: New file.
58338         * lib/wcsxfrm-impl.h: New file.
58339         * m4/wcsxfrm.m4: New file.
58340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58343         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58344         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58346 2011-02-06  Bruno Haible  <bruno@clisp.org>
58348         New module 'wcscoll'.
58349         * modules/wcscoll: New file.
58350         * lib/wchar.in.h (wcscoll): New declaration.
58351         * lib/wcscoll.c: New file.
58352         * lib/wcscoll-impl.h: New file.
58353         * m4/wcscoll.m4: New file.
58354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58357         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58358         * doc/posix-functions/wcscoll.texi: Mention the new module.
58360 2011-02-06  Bruno Haible  <bruno@clisp.org>
58362         New module 'wcsncasecmp'.
58363         * modules/wcsncasecmp: New file.
58364         * lib/wchar.in.h (wcsncasecmp): New declaration.
58365         * lib/wcsncasecmp.c: New file.
58366         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58367         * m4/wcsncasecmp.m4: New file.
58368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58371         HAVE_WCSNCASECMP.
58372         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58373         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58375 2011-02-06  Bruno Haible  <bruno@clisp.org>
58377         New module 'wcscasecmp'.
58378         * modules/wcscasecmp: New file.
58379         * lib/wchar.in.h (wcscasecmp): New declaration.
58380         * lib/wcscasecmp.c: New file.
58381         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
58382         * m4/wcscasecmp.m4: New file.
58383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
58384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
58385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
58386         HAVE_WCSCASECMP.
58387         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
58388         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
58390 2011-02-05  Bruno Haible  <bruno@clisp.org>
58392         New module 'wcsncmp'.
58393         * modules/wcsncmp: New file.
58394         * lib/wchar.in.h (wcsncmp): New declaration.
58395         * lib/wcsncmp.c: New file.
58396         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
58397         * m4/wcsncmp.m4: New file.
58398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
58399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
58400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
58401         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
58402         * doc/posix-functions/wcsncmp.texi: Mention the new module.
58404 2011-02-05  Bruno Haible  <bruno@clisp.org>
58406         New module 'wcscmp'.
58407         * modules/wcscmp: New file.
58408         * lib/wchar.in.h (wcscmp): New declaration.
58409         * lib/wcscmp.c: New file.
58410         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
58411         * m4/wcscmp.m4: New file.
58412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
58413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
58414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
58415         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
58416         * doc/posix-functions/wcscmp.texi: Mention the new module.
58418 2011-02-05  Bruno Haible  <bruno@clisp.org>
58420         New module 'wcsncat'.
58421         * modules/wcsncat: New file.
58422         * lib/wchar.in.h (wcsncat): New declaration.
58423         * lib/wcsncat.c: New file.
58424         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
58425         * m4/wcsncat.m4: New file.
58426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
58427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
58428         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
58429         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
58430         * doc/posix-functions/wcsncat.texi: Mention the new module.
58432 2011-02-05  Bruno Haible  <bruno@clisp.org>
58434         New module 'wcscat'.
58435         * modules/wcscat: New file.
58436         * lib/wchar.in.h (wcscat): New declaration.
58437         * lib/wcscat.c: New file.
58438         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
58439         * m4/wcscat.m4: New file.
58440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
58441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
58442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
58443         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
58444         * doc/posix-functions/wcscat.texi: Mention the new module.
58446 2011-02-05  Bruno Haible  <bruno@clisp.org>
58448         New module 'wcpncpy'.
58449         * modules/wcpncpy: New file.
58450         * lib/wchar.in.h (wcpncpy): New declaration.
58451         * lib/wcpncpy.c: New file.
58452         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
58453         * m4/wcpncpy.m4: New file.
58454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
58455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
58456         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
58457         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
58458         * doc/posix-functions/wcpncpy.texi: Mention the new module.
58460 2011-02-05  Bruno Haible  <bruno@clisp.org>
58462         New module 'wcsncpy'.
58463         * modules/wcsncpy: New file.
58464         * lib/wchar.in.h (wcsncpy): New declaration.
58465         * lib/wcsncpy.c: New file.
58466         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
58467         * m4/wcsncpy.m4: New file.
58468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
58469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
58470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
58471         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
58472         * doc/posix-functions/wcsncpy.texi: Mention the new module.
58474 2011-02-05  Bruno Haible  <bruno@clisp.org>
58476         New module 'wcpcpy'.
58477         * modules/wcpcpy: New file.
58478         * lib/wchar.in.h (wcpcpy): New declaration.
58479         * lib/wcpcpy.c: New file.
58480         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
58481         * m4/wcpcpy.m4: New file.
58482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
58483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
58484         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
58485         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
58486         * doc/posix-functions/wcpcpy.texi: Mention the new module.
58488 2011-02-05  Bruno Haible  <bruno@clisp.org>
58490         New module 'wcscpy'.
58491         * modules/wcscpy: New file.
58492         * lib/wchar.in.h (wcscpy): New declaration.
58493         * lib/wcscpy.c: New file.
58494         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
58495         * m4/wcscpy.m4: New file.
58496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
58497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
58498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
58499         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
58500         * doc/posix-functions/wcscpy.texi: Mention the new module.
58502 2011-02-05  Bruno Haible  <bruno@clisp.org>
58504         New module 'wcsnlen'.
58505         * modules/wcsnlen: New file.
58506         * lib/wchar.in.h (wcsnlen): New declaration.
58507         * lib/wcsnlen.c: New file.
58508         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
58509         * m4/wcsnlen.m4: New file.
58510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
58511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
58512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
58513         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
58514         * doc/posix-functions/wcsnlen.texi: Mention the new module.
58516 2011-02-05  Bruno Haible  <bruno@clisp.org>
58518         New module 'wcslen'.
58519         * modules/wcslen: New file.
58520         * lib/wchar.in.h (wcslen): New declaration.
58521         * lib/wcslen.c: New file.
58522         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
58523         * m4/wcslen.m4: New file.
58524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
58525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
58526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
58527         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
58528         * doc/posix-functions/wcslen.texi: Mention the new module.
58530 2011-02-05  Bruno Haible  <bruno@clisp.org>
58532         New module 'wmemset'.
58533         * modules/wmemset: New file.
58534         * lib/wchar.in.h (wmemset): New declaration.
58535         * lib/wmemset.c: New file.
58536         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
58537         * m4/wmemset.m4: New file.
58538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
58539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
58540         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
58541         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
58542         * doc/posix-functions/wmemset.texi: Mention the new module.
58544 2011-02-05  Bruno Haible  <bruno@clisp.org>
58546         New module 'wmemmove'.
58547         * modules/wmemmove: New file.
58548         * lib/wchar.in.h (wmemmove): New declaration.
58549         * lib/wmemmove.c: New file.
58550         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
58551         * m4/wmemmove.m4: New file.
58552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
58553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
58554         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
58555         HAVE_WMEMMOVE.
58556         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
58557         * doc/posix-functions/wmemmove.texi: Mention the new module.
58559 2011-02-05  Bruno Haible  <bruno@clisp.org>
58561         New module 'wmemcpy'.
58562         * modules/wmemcpy: New file.
58563         * lib/wchar.in.h (wmemcpy): New declaration.
58564         * lib/wmemcpy.c: New file.
58565         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
58566         * m4/wmemcpy.m4: New file.
58567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
58568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
58569         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
58570         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
58571         * doc/posix-functions/wmemcpy.texi: Mention the new module.
58573 2011-02-05  Bruno Haible  <bruno@clisp.org>
58575         New module 'wmemcmp'.
58576         * modules/wmemcmp: New file.
58577         * lib/wchar.in.h (wmemcmp): New declaration.
58578         * lib/wmemcmp.c: New file.
58579         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
58580         * m4/wmemcmp.m4: New file.
58581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
58582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
58583         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
58584         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
58585         * doc/posix-functions/wmemcmp.texi: Mention the new module.
58587 2011-02-07  Jim Meyering  <meyering@redhat.com>
58589         di-set, ino-map: new modules, from coreutils
58590         * lib/di-set.c: New file.
58591         * lib/di-set.h: Likewise.
58592         * lib/ino-map.c: Likewise.
58593         * lib/ino-map.h: Likewise.
58594         * modules/di-set: Likewise.
58595         * modules/di-set-tests: Likewise.
58596         * modules/ino-map: Likewise.
58597         * modules/ino-map-tests: Likewise.
58598         * tests/test-di-set.c: Likewise.
58599         * tests/test-ino-map.c: Likewise.
58601 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
58603         getloadavg: merge minor changes from Emacs
58605         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
58606         (getloadavg): Use memset, not bzero.
58608         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
58609         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
58610         clash (bug#86).
58612 2010-11-14  Bruno Haible  <bruno@clisp.org>
58614         Allow multiple gnulib generated replacements to coexist.
58615         * lib/getopt.in.h (struct option): Avoid identical redefinition.
58616         * lib/inttypes.in.h (imaxdiv_t): Likewise.
58617         * lib/langinfo.in.h (nl_item): Likewise.
58618         * lib/math.in.h (_NaN, NAN): Likewise.
58619         * lib/netdb.in.h (struct addrinfo): Likewise.
58620         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
58621         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
58622         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
58623         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
58624         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
58625         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
58626         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
58627         pthread_mutexattr_init, pthread_mutexattr_settype,
58628         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
58629         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
58630         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
58631         pthread_spin_trylock, pthread_spin_unlock): Likewise.
58632         * lib/sched.in.h (struct sched_param): Likewise.
58633         * lib/se-selinux.in.h (security_class_t, security_context_t,
58634         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
58635         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
58636         lsetfilecon, fsetfilecon, security_check_context,
58637         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
58638         Likewise.
58639         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
58640         Likewise.
58641         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
58642         _gl_function_taking_int_returning_void_t, union sigval,
58643         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
58644         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
58645         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
58646         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
58647         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
58648         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
58649         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
58650         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
58651         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
58652         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
58653         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
58654         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
58655         socklen_t, rpl_fd_isset): Likewise.
58656         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
58657         * lib/sys_time.in.h (struct timeval): Likewise.
58658         * lib/sys_times.in.h (struct tms): Likewise.
58659         * lib/sys_utsname.in.h (struct utsname):
58660         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
58661         * lib/unistd.in.h (getpagesize): Likewise.
58662         * lib/wchar.in.h (mbstate_t): Likewise.
58663         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58664         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
58665         towlower, towupper): Likewise.
58666         Reported by Sam Steingold <sds@gnu.org>.
58668 2011-02-05  Eric Blake  <eblake@redhat.com>
58670         unsetenv: work around Haiku issues
58671         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
58672         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
58674 2010-12-30  Bruce Korb  <bkorb@gnu.org>
58676         libposix: avoid calling error() within libposix
58677         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
58678         is defined.
58680 2011-02-05  Eric Blake  <eblake@redhat.com>
58682         strerror_r-posix: port to cygwin
58683         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
58684         implementation.
58685         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
58686         * tests/test-strerror_r.c (main): Fix test.
58687         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
58688         issue.
58690 2011-02-05  Bruno Haible  <bruno@clisp.org>
58692         New module 'wmemchr'.
58693         * modules/wmemchr: New file.
58694         * lib/wchar.in.h (wmemchr): New declaration.
58695         * lib/wmemchr.c: New file.
58696         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
58697         * m4/wmemchr.m4: New file.
58698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
58699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
58700         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
58701         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
58702         * doc/posix-functions/wmemchr.texi: Mention the new module.
58704 2011-02-04  Eric Blake  <eblake@redhat.com>
58706         fdopendir: detect FreeBSD bug
58707         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
58708         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
58710 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58712         stdbool: do not define HAVE_STDBOOL_H
58713         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
58714         AC_HEADER_STDBOOL.  All uses changed.  Do not define
58715         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
58716         imported from the latest Autoconf git.  It was motivated by Emacs,
58717         which uses gnulib but does not need HAVE_STDBOOL_H.
58719 2011-02-04  Bruno Haible  <bruno@clisp.org>
58721         wcsnrtombs: Prepare for new module wwcsnrtombs.
58722         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
58723         * lib/wcsnrtombs.c: Include it.
58724         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
58726         wcsrtombs: Prepare for new module wwcsrtombs.
58727         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
58728         * lib/wcsrtombs.c: Include it.
58729         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
58731         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
58732         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
58733         * lib/mbsnrtowcs.c: Include it.
58734         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
58736         mbsrtowcs: Prepare for new module mbsrtowwcs.
58737         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
58738         * lib/mbsrtowcs.c: Include it.
58739         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
58741 2011-02-04  Bruno Haible  <bruno@clisp.org>
58743         vasnprintf: Reduce use of malloc for small format strings.
58744         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
58745         (arguments): Add room for the first 7 arguments.
58746         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
58747         (char_directives, u8_directives, u16_directives, u32_directives): Add
58748         room for the first 7 directives.
58749         * lib/printf-parse.c: Include <string.h>.
58750         (PRINTF_PARSE): Change memory handling code so that it uses the first
58751         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
58752         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
58753         Reported by Pádraig Brady <P@draigbrady.com>.
58755 2011-01-31  Eric Blake  <eblake@redhat.com>
58757         dup2: work around Haiku bug
58758         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
58759         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
58760         * doc/posix-functions/dup2.texi (dup2): Document the bug.
58761         * tests/test-dup2.c (main): Enhance test.
58763 2011-01-31  Simon Josefsson  <simon@josefsson.org>
58765         doc: off_t is not available in eglibc 2.11.2 stdio.h.
58766         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
58767         declared by eglibc 2.11.2.
58768         * lib/stdio.in.h: Likewise.
58770 2011-01-31  Eric Blake  <eblake@redhat.com>
58772         ignore-value: add missing test dependency
58773         * tests/test-ignore-value.c: Revert previous change; stdio.h
58774         provides off_t.
58775         * modules/ignore-value-tests (Depends-on): Add missing dependency.
58777 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
58779         mktime: clarify long_int width checking
58780         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
58781         the top level, to make it clearer that the assumption about
58782         long_int width is being checked.  See
58783         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
58785 2011-01-30  Simon Josefsson  <simon@josefsson.org>
58787         ignore-value: Fix self-test.
58788         * tests/test-ignore-value.c: Include sys/types.h for off_t.
58790 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58792         TYPE_MAXIMUM: avoid theoretically undefined behavior
58793         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
58794         negative number, which the C Standard says has undefined behavior.
58795         In practice this is not a problem, but might as well do it by the book.
58796         Reported by Rich Felker and Eric Blake; see
58797         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
58798         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
58799         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58801         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
58802         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58803         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
58805         mktime: #undef mktime before #defining it
58806         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
58808         mktime: systematically normalize tm_isdst comparisons
58809         * lib/mktime.c (isdst_differ): New function.
58810         (__mktime_internal): Use it systematically for all isdst comparisons.
58811         This completes the fix for libc BZ #6723, and removes the need for
58812         normalizing tm_isdst.  See
58813         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
58814         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
58816         mktime: fix some integer overflow issues and sidestep the rest
58818         This was prompted by a bug report by Benjamin Lindner for MinGW
58819         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
58820         His bug is due to signed integer overflow (0 - INT_MIN), and I
58821         I scanned through mktime.c looking for other integer overflow
58822         problems, fixing all the bugs I found.
58824         Although the C Standard says the resulting code is still not safe
58825         in the presence of integer overflow, in practice it should be good
58826         enough for all real-world two's-complement implementations, except
58827         for debugging environments that deliberately trap on integer
58828         overflow (e.g., gcc -ftrapv).
58830         * lib/mktime.c (WRAPV): New macro.
58831         (SHR): Also check that long_int and time_t shift right in the
58832         usual way, before using the fast-but-unportable method.
58833         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
58834         used.  The code already assumed two's complement, so there's
58835         no need to test for alternatives.  All uses removed.
58836         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
58837         the C standard.  Problem reported by Rich Felker in
58838         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
58839         (twos_complement_arithmetic): Also check long_int and time_t.
58840         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
58841         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
58842         (__mktime_internal): Avoid integer overflow with unary subtraction
58843         in two instances where -1 - X is an adequate replacement for -X,
58844         since the calculations are approximate.
58846 2011-01-29  Eric Blake  <eblake@redhat.com>
58848         mktime: avoid infinite loop
58849         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
58850         type; behavior is still undefined but portable to all known targets.
58851         Reported by Rich Felker.
58853 2011-01-29  Simon Josefsson  <simon@josefsson.org>
58855         rename, unlink, same-inode: Relicense.
58856         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
58857         * modules/unlink (License): Likewise.
58858         * modules/same-inode (License): Likewise.
58860 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58862         mktime: avoid problems on NetBSD 5 / i386
58863         * lib/mktime.c (long_int): New type.  This works around a problem
58864         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
58865         but time_t is 64 bits, and where I expect the existing code is
58866         wrong in some cases.
58867         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
58868         (ydhms_diff): Bring back the compile-time check for wide-enough
58869         year and yday.
58871         mktime: fix misspelling in comment
58872         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
58873         This merges all recent glibc changes of importance.
58875 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58877         move-if-change: cope with concurrent mv of identical file.
58878         * build-aux/move-if-change (CMPPROG): Accept environment
58879         variable as an override for `cmp'.
58880         (usage): Document CMPPROG.
58881         Adjust comparison to drop stdout.  Cope with failure of mv if
58882         the target file exists and is identical to the source, for
58883         parallel builds.
58884         Report from H.J. Lu against binutils in PR binutils/12283.
58886 2011-01-28  Bruce Korb  <bkorb@gnu.org>
58888         * users.txt: Mention sharutils.
58890 2011-01-28  Simon Josefsson  <simon@josefsson.org>
58892         * users.txt: Mention OATH Toolkit.
58894 2011-01-27  Bruno Haible  <bruno@clisp.org>
58896         Prepare for supporting FreeBSD 10.
58897         * build-aux/config.libpath: Remove handling of freebsd1*.
58899 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
58901         Prepare for supporting FreeBSD 10.
58902         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
58903         match FreeBSD 10.0.
58905 2011-01-27  Bruno Haible  <bruno@clisp.org>
58907         vma-iter, get-rusage-as: Add OpenBSD support.
58908         * modules/vma-iter (configure.ac): Test for mquery.
58909         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
58910         * lib/vma-iter.c: Include <sys/mman.h>.
58911         (vma_iterate): Add an implementation based on mquery().
58912         * lib/resource-ext.h (get_rusage_as): Update comments.
58913         * lib/get-rusage-as.c: Likewise.
58914         * lib/get-rusage-data.c: Likewise.
58916 2011-01-26  Karl Berry  <karl@gnu.org>
58918         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
58919         variables to make it easier to override the makeinfo program used.
58921 2011-01-26  Eric Blake  <eblake@redhat.com>
58923         fcntl: work around Haiku F_DUPFD bugs
58924         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
58925         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
58926         cloexec bit on duplication.
58927         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
58929 2011-01-26  Bruno Haible  <bruno@clisp.org>
58931         Enable memory leak tests on AIX.
58932         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
58933         * tests/test-fprintf-posix3.c (main): Likewise.
58935 2011-01-26  Bruno Haible  <bruno@clisp.org>
58937         Tests for module 'get-rusage-data'.
58938         * modules/get-rusage-data-tests: New file.
58939         * tests/test-get-rusage-data.c: New file.
58941         New module 'get-rusage-data'.
58942         * lib/resource-ext.h (get_rusage_data): New declaration.
58943         * lib/get-rusage-data.c: New file.
58944         * modules/get-rusage-data: New file.
58946 2011-01-25  Bruno Haible  <bruno@clisp.org>
58948         get-rusage-as: Allow for easier testing.
58949         * lib/resource-ext.h (get_rusage_as): Add comment.
58950         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
58951         (main): New function for interactive testing.
58953 2011-01-25  Bruno Haible  <bruno@clisp.org>
58955         vma-iter: Treat Haiku like BeOS.
58956         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
58957         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
58959 2011-01-25  Eric Blake  <eblake@redhat.com>
58961         c-stack: fix regression on cygwin when libsigsegv is present
58962         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
58964 2011-01-24  Bruno Haible  <bruno@clisp.org>
58966         vma-iter: Avoid empty intervals.
58967         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
58968         on an empty interval.
58970 2011-01-24  Jim Meyering  <meyering@redhat.com>
58972         u64: remove unnecessary #include
58973         * lib/u64.h: Don't include <stddef.h>.  It was not used.
58975 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58977         Allow the user to avoid the HAVE_RAW_DECL_* macros.
58978         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
58980 2011-01-23  Bruno Haible  <bruno@clisp.org>
58982         New module 'vma-iter'.
58983         * lib/vma-iter.h: New file.
58984         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
58985         * modules/vma-iter: New file.
58986         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
58987         for get_rusage_as_via_iterator.
58988         (vma_iterate_callback): New function.
58989         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
58990         * modules/get-rusage-as (Depends-on): Add vma-iter.
58992 2011-01-23  Bruno Haible  <bruno@clisp.org>
58994         uninorm: Tweak includes.
58995         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
58996         Reported by Jim Meyering.
58998 2011-01-23  Bruno Haible  <bruno@clisp.org>
59000         get-rusage-as: Improve on NetBSD.
59001         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59002         /proc, like on FreeBSD.
59004 2011-01-23  Jim Meyering  <meyering@redhat.com>
59006         xreadlink.h: remove unnecessary #include
59007         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59009         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59010         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59012 2011-01-23  Bruno Haible  <bruno@clisp.org>
59014         get-rusage-as: Fix bug.
59015         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59016         original limit when aborting the first loop.
59018 2011-01-23  Bruno Haible  <bruno@clisp.org>
59020         wctype: Ensure valid C syntax.
59021         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59022         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59024 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59026         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59028         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59029         as they are needed only for configure's test case.
59030         This removes two unnecessary symbols from config.h.
59032         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59033         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59034         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59035         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59036         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59037         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59038         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59039         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59040         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59041         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59042         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59044         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59045         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59046         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59047         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59048         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59049         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59051 2011-01-21  Eric Blake  <eblake@redhat.com>
59053         maintainer-makefile: work with older git for submodule check
59054         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59055         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59056         Reported by Matthias Bolte.
59058         bootstrap: minor portability fixes
59059         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59060         (usage): Omit leading capital and trailing . on help phrases, per
59061         GNU Coding Standards.
59062         (check_versions, top level): Prefix messages with script name.
59064 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59066         bootstrap: support --no-git option
59067         * build-aux/bootstrap: Add --no-git option, to be used when
59068         --gnulib-srcdir points to the exact desired checkout.
59070 2011-01-21  Eric Blake  <eblake@redhat.com>
59072         strerror_r-posix: work with glibc 2.13
59073         * lib/strerror_r.c (strerror_r): Fix return type.
59075 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59076             Bruno Haible  <bruno@clisp.org>
59078         uN_strstr: New unit tests.
59079         * modules/unistr/u8-strstr-tests: New file.
59080         * modules/unistr/u16-strstr-tests: New file.
59081         * modules/unistr/u32-strstr-tests: New file.
59082         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59083         * tests/unistr/test-u8-strstr.c: New file.
59084         * tests/unistr/test-u16-strstr.c: New file.
59085         * tests/unistr/test-u32-strstr.c: New file.
59087 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59088             Bruno Haible  <bruno@clisp.org>
59090         Make uN_strstr functions O(n) worst-case.
59091         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59092         16-bit and 32-bit unit cases, use the unibyte algorithm from
59093         lib/mbsstr.c.
59094         * lib/unistr/u8-strstr.c: Include <string.h>.
59095         (UNIT_IS_UINT8_T): New macro.
59096         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59097         (U_STRLEN, U_STRNLEN): New macros.
59098         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59099         (U_STRLEN, U_STRNLEN): New macros.
59100         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59101         (configure.ac): Update required libunistring version.
59102         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59103         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59104         malloca.
59105         (configure.ac): Update required libunistring version.
59106         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59107         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59108         malloca.
59109         (configure.ac): Update required libunistring version.
59111 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59112             Bruno Haible  <bruno@clisp.org>
59114         Prepare for faster uN_strstr functions.
59115         * lib/str-kmp.h: Support definable UNITs.
59116         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59117         needle_len argument.
59118         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59119         * lib/mbscasestr.c (mbscasestr): Likewise.
59121 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59123         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59124         * tests/test-malloca.c (main): Unset the environment variable
59125         to greatly speed up the test.
59126         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59127         * modules/malloca-tests: Depend on unsetenv.
59129 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59131         ignore-value: remove stdint dependency
59132         * lib/ignore-value.h: Remove <stdint.h>
59133         * modules/ignore-value: Remove stdint dependency.
59135 2011-01-21  Jim Meyering  <meyering@redhat.com>
59137         maint.mk: adjust variable name to be consistent with other gl_ vars
59138         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59139         to be lower case.
59141 2011-01-20  Jim Meyering  <meyering@redhat.com>
59143         maint.mk: make "check" depend on public-submodule-commit by default
59144         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59146 2011-01-20  Bruno Haible  <bruno@clisp.org>
59148         mbfile, mbiter: Complete change from 2008-12-21.
59149         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59150         * m4/mbiter.m4 (gl_MBITER): Likewise.
59152 2011-01-20  Jim Meyering  <meyering@redhat.com>
59154         init.sh: insert space between each function name and "()"
59155         * tests/init.sh: Make it a little easier to see that a function's
59156         name is "warn_", and not "warn" when looking at the first part of
59157         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59159 2011-01-20  Jim Meyering  <meyering@redhat.com>
59161         mountlist: clean up code formatting
59162         * lib/mountlist.c (read_file_system_list): Split a long line,
59163         correct bracing style, use NULL in place of "(struct statfs *)0",
59164         don't parenthesize return value, add spaces around "=" and after
59165         ";-in-for-stmt".
59167 2011-01-14  Markus Duft  <mduft@gentoo.org>
59169         mountlist: add support for Interix
59170         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59171         Apply statvfs to all entries of /dev/fs.
59172         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59173         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59175 2011-01-20  Jim Meyering  <meyering@redhat.com>
59177         maint.mk: improve the public-submodule-commit rule
59178         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59179         to suppress printing of its commands... unless V=1.
59180         Add git submodule's --quiet option to suppress printing of e.g.,
59181         "Entering gnulib" output.
59182         "cd" into $(srcdir) before running git submodule.
59184 2011-01-20  Bruno Haible  <bruno@clisp.org>
59186         include_next: Fix bug introduced on 2011-01-18.
59187         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59188         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59189         ac_cv_header_... variable if the second argument is not 'check'.
59190         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59191         gl_NEXT_HEADERS_INTERNAL.
59193 2011-01-20  Bruno Haible  <bruno@clisp.org>
59195         Allow the user to avoid the GNULIB_TEST_* macros.
59196         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59197         Suggested by Paul Eggert.
59199 2011-01-14  Jim Meyering  <meyering@redhat.com>
59201         bootstrap: avoid failure when there is no .gitmodules file
59202         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59203         has been assigned to, even when its value is the empty string.
59204         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59205         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59206         Reported by John W. Eaton <jwe@gnu.org>.
59208 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59210         assume <ctype.h>, ..., <time.h> exist
59211         For years gnulib has been assuming the existence of the headers
59212         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
59213         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
59214         them, since they don't appear to be needed.
59215         * README (Portability guidelines): Document this.
59216         * lib/flock.c: Assume <fcntl.h> exists.
59217         * lib/regex_internal.h: Assume <locale.h> exists.
59218         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
59219         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
59220         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
59221         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
59222         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
59223         * m4/regex.m4 (gl_REGEX): Likewise.
59224         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
59225         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
59226         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
59227         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
59228         * tests/test-argp.c: Likewise.
59229         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
59231         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
59232         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
59233         AA_APPLE_UNIVERSAL_BUILD.  See
59234         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
59235         * NEWS: Document this.
59237 2011-01-19  Eric Blake  <eblake@redhat.com>
59239         c-stack: assume stack overflow if SA_SIGINFO unsupported
59240         * lib/c-stack.c (SIGACTION_WORKS): Rename...
59241         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
59242         sigaction will work.
59243         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
59244         behavior match Linux.
59245         * tests/test-c-stack.c (main): Prefer NULL for pointers.
59247         stdbool-tests: accommodate Haiku
59248         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59250         binary-io: fix O_TEXT on Haiku
59251         * modules/binary-io (Depends-on): Add fcntl-h.
59252         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59253         than blindly undefining O_TEXT.
59254         Reported by Scott McCreary.
59256 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59258         include_next: do not check for standard headers like stddef.h
59260         I found this problem when modifying Emacs to use gnulib.
59261         I noticed that it added HAVE_STDDEF_H to config.h, even though
59262         gnulib always assumes <stddef.h> exists as per README and this
59263         symbol is unnecessary.
59264         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59265         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59266         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59267         faster for headers like stddef.h that are known to exist.
59268         (gl_CHECK_NEXT_HEADERS): Use it.
59269         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59270         rather than gl_CHECK_NEXT_HEADERS.
59271         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59272         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59274 2011-01-18  Eric Blake  <eblake@redhat.com>
59276         ansi-c++-opt: skip C++ dependency style if C++ is unused
59277         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59278         tests when we know C++ compilation is not desired.
59279         Reported by Scott McCreary.
59281 2011-01-18  Bruno Haible  <bruno@clisp.org>
59283         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59284         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59285         (main): Perform test also when getrlimit and setrlimit don't exist or
59286         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59287         limiting the address space size using setrlimit, compare the address
59288         space size before and after the test.
59289         * tests/test-dprintf-posix2.c: Likewise.
59290         * tests/test-fprintf-posix3.sh: Update skip messages.
59291         * tests/test-dprintf-posix2.sh: Likewise.
59292         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59293         * modules/dprintf-posix-tests (Depends-on): Likewise.
59294         Reported by Bruce Korb <bkorb@gnu.org> and
59295         Gary V. Vaughan <gary@gnu.org>.
59297 2011-01-18  Bruno Haible  <bruno@clisp.org>
59299         get-rusage-as: Improvement for Cygwin.
59300         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59301         areas that are merely reserved.
59303 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59305         strftime: remove dependencies on multibyte modules
59307         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59308         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59309         only if __osf__ is defined, and I suspect OSF doesn't need these
59310         other modules.  If my guess is wrong, we'll need to come up with a
59311         variant of strftime that doesn't need the multibyte modules.
59313         I discovered this problem when attempting modify Emacs to use the
59314         strftime module.  With the previous gnulib, this caused Emacs to
59315         need 31 new files, ranging from lib/config.charset to
59316         m4/wint_t.m4.  This was overkill and I expect would be offputting
59317         to the Emacs maintainers.  After this change, only 6 new files are
59318         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59319         stdbool.m4, and tm_gmtoff.m4.
59321         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59322         Suggested by Bruno Haible in
59323         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59324         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59325         and do not check for wchar.h.
59326         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59327         (Depends-on): Remove mbrlen, mbsinit, wchar.
59329 2011-01-18  Bruno Haible  <bruno@clisp.org>
59331         Tests for module 'get-rusage-as'.
59332         * modules/get-rusage-as-tests: New file.
59333         * tests/test-get-rusage-as.c: New file.
59335         New module 'get-rusage-as'.
59336         * modules/get-rusage-as: New file.
59337         * lib/resource-ext.h: New file.
59338         * lib/get-rusage-as.c: New file.
59340 2011-01-17  Eric Blake  <eblake@redhat.com>
59342         sigaction: relax license from LGPLv3+ to LGPLv2+
59343         * modules/sigaction (License): Relax to LGPLv2+.
59345 2011-01-14  Bruno Haible  <bruno@clisp.org>
59347         filemode: Make function declarations usable in C++ mode.
59348         * lib/filemode.h: Enclose function declarations in extern "C" block.
59349         Reported by John W. Eaton <jwe@gnu.org>.
59351 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59353         save-cwd: no longer include "xgetcwd.h"
59354         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59355         This avoids a compilation failure in projects that use save-cwd
59356         without also using the xgetcwd module.
59358 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59360         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59361         This is so that a program like Emacs, which needs only dtoastr,
59362         does not have to bother with distributing and compiling ftoastr
59363         and ldtoastr.
59364         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59365         * modules/dtoastr, modules/ldtoastr: New files.
59366         * modules/ftoastr: Now works just for 'float'.
59367         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59368         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59369         dtoastr.c, ldtoastr.c.
59371 2011-01-11  Jim Meyering  <meyering@redhat.com>
59373         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59374         There is no need to work around the lack of the fchdir function,
59375         since gnulib can now provide a replacement when required.
59376         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59377         * modules/save-cwd (Depends-on): Add fchdir.
59379 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59381         openat, save-cwd: avoid xmalloc
59383         This removes a direct (but undocumented) dependency of openat on
59384         xalloc, along with an indirect dependency via save-cwd.  It also
59385         removes a dependency of save-cwd on xgetcwd, and thereby
59386         indirectly on xalloc.  This change causes the openat substitute
59387         to fall back on save_cwd when memory is tight, and for save_cwd to
59388         fail instead of dying when memory is tight, but that's good enough.
59389         Problem and initial idea for fix reported by Bastien Roucaries in
59390         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
59392         * lib/openat-proc.c: Include stdlib.h (for malloc), not
59393         xalloc.h (for xmalloc).
59394         (openat_proc_name): Use malloc, not xmalloc.
59395         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
59396         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
59398         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
59399         This avoids heap allocation for file names whose lengths are in
59400         the range 512..1023, with the upper bound increasing to at most
59401         4031 depending on the platform's PATH_MAX.  (We do not want
59402         pathmax.h here as it might supply a non-constant PATH_MAX.)
59403         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
59404         Perhaps they should be moved to malloca.h?
59405         (OPENAT_BUFFER_SIZE): Use them.
59407 2011-01-10  Bruno Haible  <bruno@clisp.org>
59409         doc: Update users.txt.
59410         * users.txt: Add recutils.
59412 2011-01-09  Karl Berry  <karl@gnu.org>
59414         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
59416         * doc/configmake.texi: New file.
59417         * doc/gnulib.texi: Include it.
59418         * modules/configmake: Move documentation from here.
59420 2011-01-09  Bruno Haible  <bruno@clisp.org>
59422         Update to Unicode 6.0.0.
59423         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
59424         (get_lbp): Update for Unicode 6.0.0.
59425         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
59426         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
59427         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
59428         U+11001, U+11038..U+11046. Remove U+06DE.
59429         (uc_width): Fix bounds of planes.
59430         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59431         lib/uniwidth/width.c.
59432         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
59433         trailing whitespace removed.
59434         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
59435         without comments, but with the original copyright notice.
59436         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
59437         * lib/unicase/ignorable.h: Likewise.
59438         * lib/unicase/tocasefold.h: Likewise.
59439         * lib/unicase/tolower.h: Likewise.
59440         * lib/unicase/totitle.h: Likewise.
59441         * lib/unicase/toupper.h: Likewise.
59442         * lib/unictype/bidi_of.h: Likewise.
59443         * lib/unictype/blocks.h: Likewise.
59444         * lib/unictype/categ_C.h: Likewise.
59445         * lib/unictype/categ_Cn.h: Likewise.
59446         * lib/unictype/categ_L.h: Likewise.
59447         * lib/unictype/categ_Ll.h: Likewise.
59448         * lib/unictype/categ_Lm.h: Likewise.
59449         * lib/unictype/categ_Lo.h: Likewise.
59450         * lib/unictype/categ_Lu.h: Likewise.
59451         * lib/unictype/categ_M.h: Likewise.
59452         * lib/unictype/categ_Mc.h: Likewise.
59453         * lib/unictype/categ_Me.h: Likewise.
59454         * lib/unictype/categ_Mn.h: Likewise.
59455         * lib/unictype/categ_N.h: Likewise.
59456         * lib/unictype/categ_Nd.h: Likewise.
59457         * lib/unictype/categ_No.h: Likewise.
59458         * lib/unictype/categ_P.h: Likewise.
59459         * lib/unictype/categ_Po.h: Likewise.
59460         * lib/unictype/categ_S.h: Likewise.
59461         * lib/unictype/categ_Sc.h: Likewise.
59462         * lib/unictype/categ_Sk.h: Likewise.
59463         * lib/unictype/categ_Sm.h: Likewise.
59464         * lib/unictype/categ_So.h: Likewise.
59465         * lib/unictype/categ_of.h: Likewise.
59466         * lib/unictype/combining.h: Likewise.
59467         * lib/unictype/ctype_alnum.h: Likewise.
59468         * lib/unictype/ctype_alpha.h: Likewise.
59469         * lib/unictype/ctype_graph.h: Likewise.
59470         * lib/unictype/ctype_lower.h: Likewise.
59471         * lib/unictype/ctype_print.h: Likewise.
59472         * lib/unictype/ctype_punct.h: Likewise.
59473         * lib/unictype/ctype_upper.h: Likewise.
59474         * lib/unictype/decdigit.h: Likewise.
59475         * lib/unictype/digit.h: Likewise.
59476         * lib/unictype/numeric.h: Likewise.
59477         * lib/unictype/pr_alphabetic.h: Likewise.
59478         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59479         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59480         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59481         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59482         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59483         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59484         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59485         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59486         * lib/unictype/pr_case_ignorable.h: Likewise.
59487         * lib/unictype/pr_cased.h: Likewise.
59488         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
59489         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
59490         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
59491         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
59492         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
59493         * lib/unictype/pr_combining.h: Likewise.
59494         * lib/unictype/pr_composite.h: Likewise.
59495         * lib/unictype/pr_currency_symbol.h: Likewise.
59496         * lib/unictype/pr_decimal_digit.h: Likewise.
59497         * lib/unictype/pr_deprecated.h: Likewise.
59498         * lib/unictype/pr_format_control.h: Likewise.
59499         * lib/unictype/pr_grapheme_base.h: Likewise.
59500         * lib/unictype/pr_grapheme_extend.h: Likewise.
59501         * lib/unictype/pr_grapheme_link.h: Likewise.
59502         * lib/unictype/pr_id_continue.h: Likewise.
59503         * lib/unictype/pr_id_start.h: Likewise.
59504         * lib/unictype/pr_ideographic.h: Likewise.
59505         * lib/unictype/pr_lowercase.h: Likewise.
59506         * lib/unictype/pr_math.h: Likewise.
59507         * lib/unictype/pr_numeric.h: Likewise.
59508         * lib/unictype/pr_other_alphabetic.h: Likewise.
59509         * lib/unictype/pr_other_id_continue.h: Likewise.
59510         * lib/unictype/pr_other_math.h: Likewise.
59511         * lib/unictype/pr_punctuation.h: Likewise.
59512         * lib/unictype/pr_sentence_terminal.h: Likewise.
59513         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59514         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59515         * lib/unictype/pr_unified_ideograph.h: Likewise.
59516         * lib/unictype/pr_uppercase.h: Likewise.
59517         * lib/unictype/pr_xid_continue.h: Likewise.
59518         * lib/unictype/pr_xid_start.h: Likewise.
59519         * lib/unictype/scripts.h: Likewise.
59520         * lib/unictype/scripts_byname.gperf: Likewise.
59521         * lib/unictype/sy_java_ident.h: Likewise.
59522         * lib/unigbrk/gbrkprop.h: Likewise.
59523         * lib/unilbrk/lbrkprop1.h: Likewise.
59524         * lib/unilbrk/lbrkprop2.h: Likewise.
59525         * lib/uninorm/decomposition-table2.h: Likewise.
59526         * lib/uniwbrk/wbrkprop.h: Likewise.
59527         * tests/unicase/test-cased.c: Likewise.
59528         * tests/unicase/test-ignorable.c: Likewise.
59529         * tests/unicase/test-uc_tolower.c: Likewise.
59530         * tests/unicase/test-uc_totitle.c: Likewise.
59531         * tests/unicase/test-uc_toupper.c: Likewise.
59532         * tests/unictype/test-categ_C.c: Likewise.
59533         * tests/unictype/test-categ_Cn.c: Likewise.
59534         * tests/unictype/test-categ_L.c: Likewise.
59535         * tests/unictype/test-categ_Ll.c: Likewise.
59536         * tests/unictype/test-categ_Lm.c: Likewise.
59537         * tests/unictype/test-categ_Lo.c: Likewise.
59538         * tests/unictype/test-categ_Lu.c: Likewise.
59539         * tests/unictype/test-categ_M.c: Likewise.
59540         * tests/unictype/test-categ_Mc.c: Likewise.
59541         * tests/unictype/test-categ_Me.c: Likewise.
59542         * tests/unictype/test-categ_Mn.c: Likewise.
59543         * tests/unictype/test-categ_N.c: Likewise.
59544         * tests/unictype/test-categ_Nd.c: Likewise.
59545         * tests/unictype/test-categ_No.c: Likewise.
59546         * tests/unictype/test-categ_P.c: Likewise.
59547         * tests/unictype/test-categ_Po.c: Likewise.
59548         * tests/unictype/test-categ_S.c: Likewise.
59549         * tests/unictype/test-categ_Sc.c: Likewise.
59550         * tests/unictype/test-categ_Sk.c: Likewise.
59551         * tests/unictype/test-categ_Sm.c: Likewise.
59552         * tests/unictype/test-categ_So.c: Likewise.
59553         * tests/unictype/test-ctype_alnum.c: Likewise.
59554         * tests/unictype/test-ctype_alpha.c: Likewise.
59555         * tests/unictype/test-ctype_graph.c: Likewise.
59556         * tests/unictype/test-ctype_lower.c: Likewise.
59557         * tests/unictype/test-ctype_print.c: Likewise.
59558         * tests/unictype/test-ctype_punct.c: Likewise.
59559         * tests/unictype/test-ctype_upper.c: Likewise.
59560         * tests/unictype/test-decdigit.h: Likewise.
59561         * tests/unictype/test-digit.h: Likewise.
59562         * tests/unictype/test-numeric.h: Likewise.
59563         * tests/unictype/test-pr_alphabetic.c: Likewise.
59564         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59565         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59566         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59567         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59568         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59569         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59570         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59571         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59572         * tests/unictype/test-pr_case_ignorable.c: Likewise.
59573         * tests/unictype/test-pr_cased.c: Likewise.
59574         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
59575         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
59576         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
59577         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
59578         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
59579         * tests/unictype/test-pr_combining.c: Likewise.
59580         * tests/unictype/test-pr_composite.c: Likewise.
59581         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59582         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59583         * tests/unictype/test-pr_deprecated.c: Likewise.
59584         * tests/unictype/test-pr_format_control.c: Likewise.
59585         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59586         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59587         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59588         * tests/unictype/test-pr_id_continue.c: Likewise.
59589         * tests/unictype/test-pr_id_start.c: Likewise.
59590         * tests/unictype/test-pr_ideographic.c: Likewise.
59591         * tests/unictype/test-pr_lowercase.c: Likewise.
59592         * tests/unictype/test-pr_math.c: Likewise.
59593         * tests/unictype/test-pr_numeric.c: Likewise.
59594         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59595         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59596         * tests/unictype/test-pr_other_math.c: Likewise.
59597         * tests/unictype/test-pr_punctuation.c: Likewise.
59598         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59599         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59600         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59601         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59602         * tests/unictype/test-pr_uppercase.c: Likewise.
59603         * tests/unictype/test-pr_xid_continue.c: Likewise.
59604         * tests/unictype/test-pr_xid_start.c: Likewise.
59605         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
59606         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
59607         changes.
59608         * lib/unictype/categ_Cc.h: Likewise.
59609         * lib/unictype/categ_Cf.h: Likewise.
59610         * lib/unictype/categ_Co.h: Likewise.
59611         * lib/unictype/categ_Cs.h: Likewise.
59612         * lib/unictype/categ_Lt.h: Likewise.
59613         * lib/unictype/categ_Nl.h: Likewise.
59614         * lib/unictype/categ_Pc.h: Likewise.
59615         * lib/unictype/categ_Pd.h: Likewise.
59616         * lib/unictype/categ_Pe.h: Likewise.
59617         * lib/unictype/categ_Pf.h: Likewise.
59618         * lib/unictype/categ_Pi.h: Likewise.
59619         * lib/unictype/categ_Ps.h: Likewise.
59620         * lib/unictype/categ_Z.h: Likewise.
59621         * lib/unictype/categ_Zl.h: Likewise.
59622         * lib/unictype/categ_Zp.h: Likewise.
59623         * lib/unictype/categ_Zs.h: Likewise.
59624         * lib/unictype/ctype_blank.h: Likewise.
59625         * lib/unictype/ctype_cntrl.h: Likewise.
59626         * lib/unictype/ctype_digit.h: Likewise.
59627         * lib/unictype/ctype_space.h: Likewise.
59628         * lib/unictype/ctype_xdigit.h: Likewise.
59629         * lib/unictype/mirror.h: Likewise.
59630         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59631         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59632         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59633         * lib/unictype/pr_bidi_control.h: Likewise.
59634         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59635         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59636         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59637         * lib/unictype/pr_bidi_pdf.h: Likewise.
59638         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59639         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59640         * lib/unictype/pr_dash.h: Likewise.
59641         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59642         * lib/unictype/pr_diacritic.h: Likewise.
59643         * lib/unictype/pr_extender.h: Likewise.
59644         * lib/unictype/pr_hex_digit.h: Likewise.
59645         * lib/unictype/pr_hyphen.h: Likewise.
59646         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59647         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59648         * lib/unictype/pr_ignorable_control.h: Likewise.
59649         * lib/unictype/pr_iso_control.h: Likewise.
59650         * lib/unictype/pr_join_control.h: Likewise.
59651         * lib/unictype/pr_left_of_pair.h: Likewise.
59652         * lib/unictype/pr_line_separator.h: Likewise.
59653         * lib/unictype/pr_logical_order_exception.h: Likewise.
59654         * lib/unictype/pr_non_break.h: Likewise.
59655         * lib/unictype/pr_not_a_character.h: Likewise.
59656         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59657         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59658         * lib/unictype/pr_other_id_start.h: Likewise.
59659         * lib/unictype/pr_other_lowercase.h: Likewise.
59660         * lib/unictype/pr_other_uppercase.h: Likewise.
59661         * lib/unictype/pr_paired_punctuation.h: Likewise.
59662         * lib/unictype/pr_paragraph_separator.h: Likewise.
59663         * lib/unictype/pr_pattern_syntax.h: Likewise.
59664         * lib/unictype/pr_pattern_white_space.h: Likewise.
59665         * lib/unictype/pr_private_use.h: Likewise.
59666         * lib/unictype/pr_quotation_mark.h: Likewise.
59667         * lib/unictype/pr_radical.h: Likewise.
59668         * lib/unictype/pr_soft_dotted.h: Likewise.
59669         * lib/unictype/pr_space.h: Likewise.
59670         * lib/unictype/pr_titlecase.h: Likewise.
59671         * lib/unictype/pr_variation_selector.h: Likewise.
59672         * lib/unictype/pr_white_space.h: Likewise.
59673         * lib/unictype/pr_zero_width.h: Likewise.
59674         * lib/unictype/sy_c_ident.h: Likewise.
59675         * lib/unictype/sy_c_whitespace.h: Likewise.
59676         * lib/unictype/sy_java_whitespace.h: Likewise.
59677         * lib/uninorm/composition-table.gperf: Likewise.
59678         * lib/uninorm/decomposition-table1.h: Likewise.
59679         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
59680         LB8.
59681         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59682         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59683         * modules/unictype/*: Bump version number of expected libunistring
59684         version.
59686 2011-01-09  Bruno Haible  <bruno@clisp.org>
59688         Update to Unicode 5.2.0.
59689         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
59690         trailing whitespace removed.
59692 2011-01-09  Bruno Haible  <bruno@clisp.org>
59694         New Unicode character properties, from Unicode 5.2.0.
59695         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
59696         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
59697         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
59698         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
59699         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
59700         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
59701         uc_is_property_cased, uc_is_property_case_ignorable,
59702         uc_is_property_changes_when_lowercased,
59703         uc_is_property_changes_when_uppercased,
59704         uc_is_property_changes_when_titlecased,
59705         uc_is_property_changes_when_casefolded,
59706         uc_is_property_changes_when_casemapped): New declarations.
59707         * lib/unictype/pr_byname.gperf: Add the new properties.
59708         * modules/unictype/property-byname (Depends-on): Depend on the new
59709         properties modules.
59710         * modules/unictype/property-all (Depends-on): Likewise.
59711         * MODULES.html.sh (Unicode string functions): Add
59712         unictype/property-case-ignorable, unictype/property-cased,
59713         unictype/property-changes-when-casefolded,
59714         unictype/property-changes-when-casemapped,
59715         unictype/property-changes-when-lowercased,
59716         unictype/property-changes-when-titlecased,
59717         unictype/property-changes-when-uppercased.
59719         New module 'unictype/property-changes-when-casemapped'.
59720         * modules/unictype/property-changes-when-casemapped: New file.
59721         * lib/unictype/pr_changes_when_casemapped.c: New file.
59722         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
59723         generated by gen-uni-tables.
59724         * modules/unictype/property-changes-when-casemapped-tests: New file.
59725         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
59726         automatically generated by gen-uni-tables.
59728         New module 'unictype/property-changes-when-casefolded'.
59729         * modules/unictype/property-changes-when-casefolded: New file.
59730         * lib/unictype/pr_changes_when_casefolded.c: New file.
59731         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
59732         generated by gen-uni-tables.
59733         * modules/unictype/property-changes-when-casefolded-tests: New file.
59734         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
59735         automatically generated by gen-uni-tables.
59737         New module 'unictype/property-changes-when-titlecased'.
59738         * modules/unictype/property-changes-when-titlecased: New file.
59739         * lib/unictype/pr_changes_when_titlecased.c: New file.
59740         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
59741         generated by gen-uni-tables.
59742         * modules/unictype/property-changes-when-titlecased-tests: New file.
59743         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
59744         automatically generated by gen-uni-tables.
59746         New module 'unictype/property-changes-when-uppercased'.
59747         * modules/unictype/property-changes-when-uppercased: New file.
59748         * lib/unictype/pr_changes_when_uppercased.c: New file.
59749         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
59750         generated by gen-uni-tables.
59751         * modules/unictype/property-changes-when-uppercased-tests: New file.
59752         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
59753         automatically generated by gen-uni-tables.
59755         New module 'unictype/property-changes-when-lowercased'.
59756         * modules/unictype/property-changes-when-lowercased: New file.
59757         * lib/unictype/pr_changes_when_lowercased.c: New file.
59758         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
59759         generated by gen-uni-tables.
59760         * modules/unictype/property-changes-when-lowercased-tests: New file.
59761         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
59762         automatically generated by gen-uni-tables.
59764         New module 'unictype/property-case-ignorable'.
59765         * modules/unictype/property-case-ignorable: New file.
59766         * lib/unictype/pr_case_ignorable.c: New file.
59767         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
59768         by gen-uni-tables.
59769         * modules/unictype/property-case-ignorable-tests: New file.
59770         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
59771         generated by gen-uni-tables.
59773         New module 'unictype/property-cased'.
59774         * modules/unictype/property-cased: New file.
59775         * lib/unictype/pr_cased.c: New file.
59776         * lib/unictype/pr_cased.h: New file, automatically generated by
59777         gen-uni-tables.
59778         * modules/unictype/property-cased-tests: New file.
59779         * tests/unictype/test-pr_cased.c: New file, automatically generated by
59780         gen-uni-tables.
59782 2011-01-09  Bruno Haible  <bruno@clisp.org>
59784         Update to Unicode 5.2.0.
59785         * lib/gen-uni-tables.c (output_predicate, output_category,
59786         output_combclass, output_bidi_category, output_decimal_digit_test,
59787         output_decimal_digit, output_digit_test, output_digit,
59788         output_numeric_test, output_numeric, output_mirror, output_scripts,
59789         output_scripts_byname, output_blocks, output_ident_category): Fix
59790         comment header.
59791         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
59792         get_wbp.
59793         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
59794         items.
59795         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
59796         Changes_When_Lowercased, Changes_When_Uppercased,
59797         Changes_When_Titlecased, Changes_When_Casefolded,
59798         Changes_When_Casemapped.
59799         (is_property_alphabetic, is_property_default_ignorable_code_point):
59800         Update for Unicode 5.2.0.
59801         (is_property_cased, is_property_case_ignorable,
59802         is_property_changes_when_lowercased,
59803         is_property_changes_when_uppercased,
59804         is_property_changes_when_titlecased,
59805         is_property_changes_when_casefolded,
59806         is_property_changes_when_casemapped): New functions.
59807         (output_properties): Output also the properties cased, case_ignorable,
59808         changes_when_lowercased, changes_when_uppercased,
59809         changes_when_titlecased, changes_when_casefolded,
59810         changes_when_casemapped.
59811         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
59812         Unicode TR#11 revision 17 -> 19.
59813         (LBP_CP): New enumeration value.
59814         (LBP_*): Adjust values accordingly.
59815         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59816         TR#14 revision 22 -> 24.
59817         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
59818         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
59819         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59820         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
59821         is_WBP_MIDLETTER.
59822         (output_composition_tables): Allow for 24 bits instead of 16 bits in
59823         the code1 and code2 of each composition rule.
59824         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
59825         * lib/unicase/ignorable.h: Likewise.
59826         * lib/unicase/tocasefold.h: Likewise.
59827         * lib/unicase/tolower.h: Likewise.
59828         * lib/unicase/totitle.h: Likewise.
59829         * lib/unicase/toupper.h: Likewise.
59830         * lib/unictype/bidi_of.h: Likewise.
59831         * lib/unictype/blocks.h: Likewise.
59832         * lib/unictype/categ_C.h: Likewise.
59833         * lib/unictype/categ_Cf.h: Likewise.
59834         * lib/unictype/categ_Cn.h: Likewise.
59835         * lib/unictype/categ_L.h: Likewise.
59836         * lib/unictype/categ_Ll.h: Likewise.
59837         * lib/unictype/categ_Lm.h: Likewise.
59838         * lib/unictype/categ_Lo.h: Likewise.
59839         * lib/unictype/categ_Lu.h: Likewise.
59840         * lib/unictype/categ_M.h: Likewise.
59841         * lib/unictype/categ_Mc.h: Likewise.
59842         * lib/unictype/categ_Mn.h: Likewise.
59843         * lib/unictype/categ_N.h: Likewise.
59844         * lib/unictype/categ_Nd.h: Likewise.
59845         * lib/unictype/categ_Nl.h: Likewise.
59846         * lib/unictype/categ_No.h: Likewise.
59847         * lib/unictype/categ_P.h: Likewise.
59848         * lib/unictype/categ_Pd.h: Likewise.
59849         * lib/unictype/categ_Po.h: Likewise.
59850         * lib/unictype/categ_S.h: Likewise.
59851         * lib/unictype/categ_Sc.h: Likewise.
59852         * lib/unictype/categ_So.h: Likewise.
59853         * lib/unictype/categ_of.h: Likewise.
59854         * lib/unictype/combining.h: Likewise.
59855         * lib/unictype/ctype_alnum.h: Likewise.
59856         * lib/unictype/ctype_alpha.h: Likewise.
59857         * lib/unictype/ctype_graph.h: Likewise.
59858         * lib/unictype/ctype_lower.h: Likewise.
59859         * lib/unictype/ctype_print.h: Likewise.
59860         * lib/unictype/ctype_punct.h: Likewise.
59861         * lib/unictype/ctype_upper.h: Likewise.
59862         * lib/unictype/decdigit.h: Likewise.
59863         * lib/unictype/digit.h: Likewise.
59864         * lib/unictype/numeric.h: Likewise.
59865         * lib/unictype/pr_alphabetic.h: Likewise.
59866         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59867         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59868         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59869         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59870         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59871         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59872         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59873         * lib/unictype/pr_combining.h: Likewise.
59874         * lib/unictype/pr_composite.h: Likewise.
59875         * lib/unictype/pr_currency_symbol.h: Likewise.
59876         * lib/unictype/pr_dash.h: Likewise.
59877         * lib/unictype/pr_decimal_digit.h: Likewise.
59878         * lib/unictype/pr_deprecated.h: Likewise.
59879         * lib/unictype/pr_diacritic.h: Likewise.
59880         * lib/unictype/pr_extender.h: Likewise.
59881         * lib/unictype/pr_grapheme_base.h: Likewise.
59882         * lib/unictype/pr_grapheme_extend.h: Likewise.
59883         * lib/unictype/pr_grapheme_link.h: Likewise.
59884         * lib/unictype/pr_id_continue.h: Likewise.
59885         * lib/unictype/pr_id_start.h: Likewise.
59886         * lib/unictype/pr_ideographic.h: Likewise.
59887         * lib/unictype/pr_ignorable_control.h: Likewise.
59888         * lib/unictype/pr_logical_order_exception.h: Likewise.
59889         * lib/unictype/pr_lowercase.h: Likewise.
59890         * lib/unictype/pr_numeric.h: Likewise.
59891         * lib/unictype/pr_other_alphabetic.h: Likewise.
59892         * lib/unictype/pr_punctuation.h: Likewise.
59893         * lib/unictype/pr_sentence_terminal.h: Likewise.
59894         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59895         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59896         * lib/unictype/pr_unified_ideograph.h: Likewise.
59897         * lib/unictype/pr_uppercase.h: Likewise.
59898         * lib/unictype/pr_xid_continue.h: Likewise.
59899         * lib/unictype/pr_xid_start.h: Likewise.
59900         * lib/unictype/pr_zero_width.h: Likewise.
59901         * lib/unictype/scripts.h: Likewise.
59902         * lib/unictype/scripts_byname.gperf: Likewise.
59903         * lib/unictype/sy_java_ident.h: Likewise.
59904         * lib/unigbrk/gbrkprop.h: Likewise.
59905         * lib/unilbrk/lbrkprop1.h: Likewise.
59906         * lib/unilbrk/lbrkprop2.h: Likewise.
59907         * lib/unilbrk/lbrktables.h: Likewise.
59908         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
59909         LBP_CP. Implement rule LB30.
59910         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
59911         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
59912         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
59913         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
59914         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
59915         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
59916         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
59917         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
59918         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
59919         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
59920         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
59921         bits instead of 16 bits in the code1 and code2 of each composition
59922         rule.
59923         (uc_composition): Update for Unicode 5.2.0.
59924         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
59925         * lib/uninorm/decomposition-table2.h: Likewise.
59926         * lib/uniwbrk/wbrkprop.h: Likewise.
59927         * tests/unicase/test-cased.c: Likewise.
59928         * tests/unicase/test-ignorable.c: Likewise.
59929         * tests/unicase/test-uc_tolower.c: Likewise.
59930         * tests/unicase/test-uc_totitle.c: Likewise.
59931         * tests/unicase/test-uc_toupper.c: Likewise.
59932         * tests/unictype/test-categ_C.c: Likewise.
59933         * tests/unictype/test-categ_Cf.c: Likewise.
59934         * tests/unictype/test-categ_Cn.c: Likewise.
59935         * tests/unictype/test-categ_L.c: Likewise.
59936         * tests/unictype/test-categ_Ll.c: Likewise.
59937         * tests/unictype/test-categ_Lm.c: Likewise.
59938         * tests/unictype/test-categ_Lo.c: Likewise.
59939         * tests/unictype/test-categ_Lu.c: Likewise.
59940         * tests/unictype/test-categ_M.c: Likewise.
59941         * tests/unictype/test-categ_Mc.c: Likewise.
59942         * tests/unictype/test-categ_Mn.c: Likewise.
59943         * tests/unictype/test-categ_N.c: Likewise.
59944         * tests/unictype/test-categ_Nd.c: Likewise.
59945         * tests/unictype/test-categ_Nl.c: Likewise.
59946         * tests/unictype/test-categ_No.c: Likewise.
59947         * tests/unictype/test-categ_P.c: Likewise.
59948         * tests/unictype/test-categ_Pd.c: Likewise.
59949         * tests/unictype/test-categ_Po.c: Likewise.
59950         * tests/unictype/test-categ_S.c: Likewise.
59951         * tests/unictype/test-categ_Sc.c: Likewise.
59952         * tests/unictype/test-categ_So.c: Likewise.
59953         * tests/unictype/test-ctype_alnum.c: Likewise.
59954         * tests/unictype/test-ctype_alpha.c: Likewise.
59955         * tests/unictype/test-ctype_graph.c: Likewise.
59956         * tests/unictype/test-ctype_lower.c: Likewise.
59957         * tests/unictype/test-ctype_print.c: Likewise.
59958         * tests/unictype/test-ctype_punct.c: Likewise.
59959         * tests/unictype/test-ctype_upper.c: Likewise.
59960         * tests/unictype/test-decdigit.h: Likewise.
59961         * tests/unictype/test-digit.h: Likewise.
59962         * tests/unictype/test-numeric.h: Likewise.
59963         * tests/unictype/test-pr_alphabetic.c: Likewise.
59964         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59965         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59966         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59967         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59968         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59969         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59970         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59971         * tests/unictype/test-pr_combining.c: Likewise.
59972         * tests/unictype/test-pr_composite.c: Likewise.
59973         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59974         * tests/unictype/test-pr_dash.c: Likewise.
59975         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59976         * tests/unictype/test-pr_deprecated.c: Likewise.
59977         * tests/unictype/test-pr_diacritic.c: Likewise.
59978         * tests/unictype/test-pr_extender.c: Likewise.
59979         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59980         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59981         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59982         * tests/unictype/test-pr_id_continue.c: Likewise.
59983         * tests/unictype/test-pr_id_start.c: Likewise.
59984         * tests/unictype/test-pr_ideographic.c: Likewise.
59985         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59986         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59987         * tests/unictype/test-pr_lowercase.c: Likewise.
59988         * tests/unictype/test-pr_numeric.c: Likewise.
59989         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59990         * tests/unictype/test-pr_punctuation.c: Likewise.
59991         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59992         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59993         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59994         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59995         * tests/unictype/test-pr_uppercase.c: Likewise.
59996         * tests/unictype/test-pr_xid_continue.c: Likewise.
59997         * tests/unictype/test-pr_xid_start.c: Likewise.
59998         * tests/unictype/test-pr_zero_width.c: Likewise.
59999         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60000         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60001         changed behaviour: line breaking is now disallowed between a letter
60002         or '=' and '('.
60003         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60004         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60005         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60006         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60007         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60008         lib/uniwidth/width.c.
60009         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60010         without comments, but with the original copyright notice.
60011         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60012         changes.
60013         * lib/unictype/categ_Cc.h: Likewise.
60014         * lib/unictype/categ_Co.h: Likewise.
60015         * lib/unictype/categ_Cs.h: Likewise.
60016         * lib/unictype/categ_Lt.h: Likewise.
60017         * lib/unictype/categ_Me.h: Likewise.
60018         * lib/unictype/categ_Pc.h: Likewise.
60019         * lib/unictype/categ_Pe.h: Likewise.
60020         * lib/unictype/categ_Pf.h: Likewise.
60021         * lib/unictype/categ_Pi.h: Likewise.
60022         * lib/unictype/categ_Ps.h: Likewise.
60023         * lib/unictype/categ_Sk.h: Likewise.
60024         * lib/unictype/categ_Sm.h: Likewise.
60025         * lib/unictype/categ_Z.h: Likewise.
60026         * lib/unictype/categ_Zl.h: Likewise.
60027         * lib/unictype/categ_Zp.h: Likewise.
60028         * lib/unictype/categ_Zs.h: Likewise.
60029         * lib/unictype/ctype_blank.h: Likewise.
60030         * lib/unictype/ctype_cntrl.h: Likewise.
60031         * lib/unictype/ctype_digit.h: Likewise.
60032         * lib/unictype/ctype_space.h: Likewise.
60033         * lib/unictype/ctype_xdigit.h: Likewise.
60034         * lib/unictype/mirror.h: Likewise.
60035         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60036         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60037         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60038         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60039         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60040         * lib/unictype/pr_bidi_control.h: Likewise.
60041         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60042         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60043         * lib/unictype/pr_bidi_pdf.h: Likewise.
60044         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60045         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60046         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60047         * lib/unictype/pr_format_control.h: Likewise.
60048         * lib/unictype/pr_hex_digit.h: Likewise.
60049         * lib/unictype/pr_hyphen.h: Likewise.
60050         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60051         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60052         * lib/unictype/pr_iso_control.h: Likewise.
60053         * lib/unictype/pr_join_control.h: Likewise.
60054         * lib/unictype/pr_left_of_pair.h: Likewise.
60055         * lib/unictype/pr_line_separator.h: Likewise.
60056         * lib/unictype/pr_math.h: Likewise.
60057         * lib/unictype/pr_non_break.h: Likewise.
60058         * lib/unictype/pr_not_a_character.h: Likewise.
60059         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60060         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60061         * lib/unictype/pr_other_id_continue.h: Likewise.
60062         * lib/unictype/pr_other_id_start.h: Likewise.
60063         * lib/unictype/pr_other_lowercase.h: Likewise.
60064         * lib/unictype/pr_other_math.h: Likewise.
60065         * lib/unictype/pr_other_uppercase.h: Likewise.
60066         * lib/unictype/pr_paired_punctuation.h: Likewise.
60067         * lib/unictype/pr_paragraph_separator.h: Likewise.
60068         * lib/unictype/pr_pattern_syntax.h: Likewise.
60069         * lib/unictype/pr_pattern_white_space.h: Likewise.
60070         * lib/unictype/pr_private_use.h: Likewise.
60071         * lib/unictype/pr_quotation_mark.h: Likewise.
60072         * lib/unictype/pr_radical.h: Likewise.
60073         * lib/unictype/pr_soft_dotted.h: Likewise.
60074         * lib/unictype/pr_space.h: Likewise.
60075         * lib/unictype/pr_titlecase.h: Likewise.
60076         * lib/unictype/pr_variation_selector.h: Likewise.
60077         * lib/unictype/pr_white_space.h: Likewise.
60078         * lib/unictype/sy_c_ident.h: Likewise.
60079         * lib/unictype/sy_c_whitespace.h: Likewise.
60080         * lib/unictype/sy_java_whitespace.h: Likewise.
60081         * modules/uni*/*: Bump version number of expected libunistring version.
60082         Reported by Simon Josefsson.
60084 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60086         useless-if-before-free: fix typo in --help and make the internal,
60087         automatic version date update process work once again.
60088         --help output contained a NUL character instead of the
60089         backslash-zero that was intended.  Also, the "must lie within
60090         the first 8 lines" line is on line 9, and hence not getting
60091         automatically updated.
60092         * build-aux/useless-if-before-free: Fix the former by adding a
60093         backslash, and the latter by condensing the three lines of what-it-does
60094         to a single line, leaving one line of slack for the future.
60096 2011-01-09  Bruno Haible  <bruno@clisp.org>
60098         uniwidth/width: Fix width of U+1D173..U+1D17A.
60099         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60100         symbolic_width, output_width_property_test): New functions.
60101         (main): Invoke output_nonspacing_property, output_width_property_test.
60102         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60103         U+1D173..U+1D17A.
60104         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60105         1.
60106         * modules/uniwidth/*: Bump version number of expected libunistring
60107         version.
60108         * modules/unilbrk/*: Likewise.
60110 2011-01-08  Bruno Haible  <bruno@clisp.org>
60112         uninorm tests: Preserve copyright of Unicode data file.
60113         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60114         Mention modifications.
60116 2011-01-08  Bruno Haible  <bruno@clisp.org>
60118         gen-uni-tables: Prepare for Unicode 5.2.0.
60119         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60120         (debug_output_lbp, output_lbp): Update.
60122 2011-01-08  Bruno Haible  <bruno@clisp.org>
60124         unilbrk: Clarify gen-uni-tables.c code.
60125         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60126         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60127         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60129 2011-01-07  Bruno Haible  <bruno@clisp.org>
60131         strtod: Restore errno when successfully parsing Infinity or NaN.
60132         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60133         restore the original errno.
60135 2011-01-07  Bruno Haible  <bruno@clisp.org>
60137         remove test: Avoid failure on HP-UX 11.
60138         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60140 2011-01-07  Bruno Haible  <bruno@clisp.org>
60142         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60143         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60144         error code.
60146 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60148         ignore-value: fixup comments, and add Eric Blake
60149         as an author since he rewrote the macros.
60150         * lib/ignore-value.h (ignore_value):  State that
60151         we now support aggregates.  Also specify exactly
60152         when the GCC warn_unused_result feature was added.
60154 2011-01-06  Eric Blake  <eblake@redhat.com>
60156         ignore-value: support aggregate types
60157         * lib/ignore-value.h (ignore_value): Provide separate gcc
60158         definition.
60159         * modules/ignore-value-tests: New test module.
60160         * tests/test-ignore-value.c: New test.
60162         maint.mk: improve sc_prohibit_strcmp regex
60163         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60164         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60165         definition of STRNEQ.
60167         signal: work around Haiku issue with SIGBUS
60168         * lib/siglist.h: Add comment.
60169         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60170         strsignal's favoring of SIGSEGV.
60171         * tests/test-signal.c (main): Avoid test failure.
60172         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60173         Reported by Scott McCreary.
60175         maint.mk: add pre-release check to ensure submodule commits are public
60176         * top/maint.mk (public-submodule-commit): New rule.
60177         (submodule-checks): New variable.
60178         (alpha beta stable): Depend on the variable.
60180 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60181         and Jim Meyering  <meyering@redhat.com>
60183         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60184         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60185         (ATTRIBUTE_DEPRECATED): Define.
60186         (_ignore_case): New function.
60187         (ignore_value): New macro, to replace the old function.
60188         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60189         * modules/ignore-value (Depends-on): Add stdint.
60191 2011-01-04  Eric Blake  <eblake@redhat.com>
60193         doc: regenerate INSTALL
60194         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60195         @firstparagraphindent support, now that autoconf dropped it.
60196         (INSTALL_PRELUDE): Reinstate old macro.
60197         * doc/install.texi: Resync from autoconf.
60198         * doc/INSTALL: Reflect recent autoconf update.
60199         * doc/INSTALL.ISO: Likewise.
60200         * doc/INSTALL.UTF-8: Likewise.
60201         Reported by Karl Berry.
60203 2011-01-04  Bruce Korb  <address@hidden>
60205         git-version-gen: avoid a sub-shell
60206         * build-aux/git-version-gen: Redirect stderr in `...` via
60207         "exec 2>...", rather than via an added sub-shell.
60209 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
60211         git-version-gen: use (...) rather than sh -c '...'
60212         * build-aux/git-version-gen: Rather than hard-coding a shell's name
60213         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
60215 2011-01-03  Jim Meyering  <meyering@redhat.com>
60217         git-version-gen: convert leading TABs to spaces
60218         * build-aux/git-version-gen: Expand leading TABs.
60220         git-version-gen: handle failed "git rev-list"
60221         * build-aux/git-version-gen: Rather than leaking a "fatal" error
60222         from git and proceeding as if it had succeeded but printed no SHA1
60223         checksums, suppress the diagnostic and handle the failure.
60224         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
60226         git-version-gen: include command name in one more diagnostic
60227         * build-aux/git-version-gen: When the required .tarball-version file
60228         was missing or unreadable, you might see the diagnostic from "cat",
60229         but no trace of the name of the invoking script.  Now, you still see
60230         the diagnostic from cat, but also get one from "git-version-gen: ".
60231         Inspired by a patch from Bruce Korb.
60233         update-copyright: adjust test to match changed code
60234         * tests/test-update-copyright.sh: Change test's expected output
60235         to match new actual output.
60237 2011-01-02  Bruno Haible  <bruno@clisp.org>
60239         getlogin_r: Avoid test failure on HP-UX 11.
60240         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
60241         ERANGE when the second argument is zero.
60242         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
60243         portability problem.
60245 2011-01-02  Bruce Korb  <bkorb@gnu.org>
60247         * build-aux/update-copyright: doc Simon's changes
60249 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60251         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60252         environment variable.
60254 2011-01-02  Bruno Haible  <bruno@clisp.org>
60256         unigbrk: Avoid gcc warnings.
60257         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60258         unused variable.
60259         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60260         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60261         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60262         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60263         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60264         Change type of first argument to 'const char *'.
60265         (main): Remove unused variable.
60266         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60267         type of first argument to 'const char *'.
60268         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60269         Likewise.
60270         (main): Change type of variable 's'.
60271         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60272         to 'int'.
60274 2011-01-02  Bruno Haible  <bruno@clisp.org>
60276         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60277         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60278         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60279         bug.
60280         * lib/pwrite.c: Undo 2010-12-31 patch.
60281         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60283 2011-01-02  Bruno Haible  <bruno@clisp.org>
60285         pread: Fix test whether it works.
60286         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60288 2011-01-02  Bruno Haible  <bruno@clisp.org>
60290         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60291         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60292         ends in "6". Don't require a specific month name. Try also the locale
60293         names found on HP-UX 11 and Solaris 7.
60295 2011-01-02  Bruno Haible  <bruno@clisp.org>
60297         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60298         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60299         C linkage.
60300         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60302 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60304         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60305         for consistency, since the "cluster" term is not used elsewhere.
60306         * lib/unigbrk.in.h: Update name.
60307         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60308         * lib/unigbrk/u16-grapheme-next.c: Update name.
60309         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60310         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60311         * lib/unigbrk/u32-grapheme-next.c: Update name.
60312         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60313         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60314         * lib/unigbrk/u8-grapheme-next.c: Update name.
60315         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60316         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60317         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60318         Suggested by Bruno Haible.
60320 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60322         Remove module 'u8-grapheme-len' as too redundant with
60323         'u8-grapheme-next'.
60324         * modules/unigbrk/u8-grapheme-len: Delete file.
60325         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60326         * lib/unigbrk.in.h: Remove prototype for deleted function.
60327         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60328         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60330         Remove module 'u16-grapheme-len' as too redundant with
60331         'u16-grapheme-next'.
60332         * modules/unigbrk/u16-grapheme-len: Delete file.
60333         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60334         * lib/unigbrk.in.h: Remove prototype for deleted function.
60335         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60336         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60338         Remove module 'u32-grapheme-len' as too redundant with
60339         'u32-grapheme-next'.
60340         * modules/unigbrk/u32-grapheme-len: Delete file.
60341         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60342         * lib/unigbrk.in.h: Remove prototype for deleted function.
60343         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60344         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60346         Suggested by Bruno Haible.
60348 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60350         * unigbrk.in.h: Fix typo: "ben" => "been".
60351         Reported by Bruno Haible.
60353 2011-01-01  Jim Meyering  <meyering@redhat.com>
60355         maint: update almost all copyright ranges to include 2011
60356         Run the new "make update-copyright" rule.
60358 2011-01-01  Jim Meyering  <meyering@redhat.com>
60360         maint: update-copyright: exempt doc/INSTALL*
60361         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60362         since they are generated.  Suggested by Bruno Haible.
60364 2011-01-01  Jim Meyering  <meyering@redhat.com>
60366         maint: refine the update-copyright rule
60367         * Makefile (update-copyright): Also exclude any file that includes
60368         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60369         code that merely generates the comment.
60371 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60373         New module 'u8-grapheme-len'.
60374         * modules/unigbrk/u8-grapheme-len: New file.
60375         * modules/unigbrk/u8-grapheme-len-tests: New file.
60376         * lib/unigbrk.in.h: Add prototype for new function.
60377         * lib/unigbrk/u8-grapheme-len.c: New file.
60378         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60380         New module 'u16-grapheme-len'.
60381         * modules/unigbrk/u16-grapheme-len: New file.
60382         * modules/unigbrk/u16-grapheme-len-tests: New file.
60383         * lib/unigbrk.in.h: Add prototype for new function.
60384         * lib/unigbrk/u16-grapheme-len.c: New file.
60385         * tests/unigbrk/test-u16-grapheme-len.c: New file.
60387         New module 'u32-grapheme-len'.
60388         * modules/unigbrk/u32-grapheme-len: New file.
60389         * modules/unigbrk/u32-grapheme-len-tests: New file.
60390         * lib/unigbrk.in.h: Add prototype for new function.
60391         * lib/unigbrk/u32-grapheme-len.c: New file.
60392         * tests/unigbrk/test-u32-grapheme-len.c: New file.
60394         New module 'u8-grapheme-next'.
60395         * modules/unigbrk/u8-grapheme-next: New file.
60396         * modules/unigbrk/u8-grapheme-next-tests: New file.
60397         * lib/unigbrk.in.h: Add prototype for new function.
60398         * lib/unigbrk/u8-grapheme-next.c: New file.
60399         * tests/unigbrk/test-u8-grapheme-next.c: New file.
60401         New module 'u16-grapheme-next'.
60402         * modules/unigbrk/u16-grapheme-next: New file.
60403         * modules/unigbrk/u16-grapheme-next-tests: New file.
60404         * lib/unigbrk.in.h: Add prototype for new function.
60405         * lib/unigbrk/u16-grapheme-next.c: New file.
60406         * tests/unigbrk/test-u16-grapheme-next.c: New file.
60408         New module 'u32-grapheme-next'.
60409         * modules/unigbrk/u32-grapheme-next: New file.
60410         * modules/unigbrk/u32-grapheme-next-tests: New file.
60411         * lib/unigbrk.in.h: Add prototype for new function.
60412         * lib/unigbrk/u32-grapheme-next.c: New file.
60413         * tests/unigbrk/test-u32-grapheme-next.c: New file.
60415         New module 'u8-grapheme-prev'.
60416         * modules/unigbrk/u8-grapheme-prev: New file.
60417         * modules/unigbrk/u8-grapheme-prev-tests: New file.
60418         * lib/unigbrk.in.h: Add prototype for new function.
60419         * lib/unigbrk/u8-grapheme-prev.c: New file.
60420         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
60422         New module 'u16-grapheme-prev'.
60423         * modules/unigbrk/u16-grapheme-prev: New file.
60424         * modules/unigbrk/u16-grapheme-prev-tests: New file.
60425         * lib/unigbrk.in.h: Add prototype for new function.
60426         * lib/unigbrk/u16-grapheme-prev.c: New file.
60427         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
60429         New module 'u32-grapheme-prev'.
60430         * modules/unigbrk/u32-grapheme-prev: New file.
60431         * modules/unigbrk/u32-grapheme-prev-tests: New file.
60432         * lib/unigbrk.in.h: Add prototype for new function.
60433         * lib/unigbrk/u32-grapheme-prev.c: New file.
60434         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
60436         New module 'u8-grapheme-breaks'.
60437         * modules/unigbrk/u8-grapheme-breaks: New file.
60438         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
60439         * lib/unigbrk.in.h: Add prototype for new function.
60440         * lib/unigbrk/u8-grapheme-breaks.c: New file.
60441         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
60443         New module 'u16-grapheme-breaks'.
60444         * modules/unigbrk/u16-grapheme-breaks: New file.
60445         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
60446         * lib/unigbrk.in.h: Add prototype for new function.
60447         * lib/unigbrk/u16-grapheme-breaks.c: New file.
60448         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
60450         New module 'u32-grapheme-breaks'.
60451         * modules/unigbrk/u32-grapheme-breaks: New file.
60452         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
60453         * lib/unigbrk.in.h: Add prototype for new function.
60454         * lib/unigbrk/u32-grapheme-breaks.c: New file.
60455         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
60457         New module 'ulc-grapheme-breaks'.
60458         * modules/unigbrk/ulc-grapheme-breaks: New file.
60459         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
60460         * m4/locale-ar.m4: New file.
60461         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
60462         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
60463         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
60465 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60467         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
60468         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
60469         modified how this file was generated before I initially submitted
60470         the module, but failed to regenerate it.  This meant that several
60471         of the level2 entries were wrong.
60472         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
60473         Remove the division-by-2 that is folded into the table now that
60474         gbrkprop.h has been regenerated properly.  Now -1 entries are
60475         handled correctly.
60477         New module 'unigbrk/uc-gbrk-prop-tests'.
60478         * modules/unigbrk/uc-gbrk-prop-tests: New file.
60479         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
60480         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
60481         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
60483 2011-01-01  Bruno Haible  <bruno@clisp.org>
60485         Avoid use of hexadecimal escapes.
60486         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
60487         instead of hexadecimal escapes.
60489 2011-01-01  Jim Meyering  <meyering@redhat.com>
60491         maint: new rule to update copyright year ranges
60492         * Makefile (update-copyright): New rule.
60494         maint: indent with TABs in Makefile
60495         * Makefile: Expand leading sequences of spaces to TABs
60497         version-etc: update the copyright year it reports
60498         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
60500 2010-12-31  Bruno Haible  <bruno@clisp.org>
60502         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
60503         * lib/isfinite.c (zerof, zerod, zerol): New variables.
60504         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
60505         zero.
60507 2010-12-31  Bruno Haible  <bruno@clisp.org>
60509         pwrite: Work around HP-UX 11.11 bug.
60510         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
60511         works and set REPLACE_PWRITE if not.
60512         * lib/pwrite.c (pwrite): Add an implementation that uses the system
60513         function.
60514         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
60516 2010-12-31  Bruno Haible  <bruno@clisp.org>
60518         pread: Work around HP-UX 11 bugs.
60519         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
60520         and set REPLACE_PREAD if not.
60521         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
60523 2010-12-31  Eric Blake  <eblake@redhat.com>
60525         nl_langinfo: fix YESEXPR on Irix 6.5
60526         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
60527         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
60528         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
60529         it.
60531 2010-12-31  Bruno Haible  <bruno@clisp.org>
60533         iconv: Document HP-UX 11 bug.
60534         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
60536 2010-12-31  Bruno Haible  <bruno@clisp.org>
60538         ldexpl: Fix link error on HP-UX 11.
60539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
60540         LDEXPL_LIBM, using $ISNANL_LIBM.
60542 2010-12-31  Eric Blake  <eblake@redhat.com>
60544         ftello: avoid compilation failure with SunStudio c89
60545         * lib/ftello.c (ftello): Use lseek, not llseek.
60547         tests: avoid failing coreutils tests on cygwin
60548         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
60549         (create_exe_shims_): Return 0 when skipping.
60551 2010-12-31  Bruno Haible  <bruno@clisp.org>
60553         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
60554         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
60556 2010-12-31  Bruno Haible  <bruno@clisp.org>
60558         waitpid: Fix link error in C++ mode.
60559         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
60561 2010-12-31  Bruno Haible  <bruno@clisp.org>
60563         isnan: Use GCC built-ins when possible.
60564         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
60565         __builtin_isnan.
60566         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
60567         (isnan): Define using GCC built-ins for GCC >= 4.0.
60569 2010-12-31  Bruno Haible  <bruno@clisp.org>
60571         isnand: Fix mistake.
60572         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
60573         __builtin_isnand.
60575 2010-12-31  Bruno Haible  <bruno@clisp.org>
60577         open: Avoid C++ error on HP-UX 11.
60578         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
60580 2010-12-31  Bruno Haible  <bruno@clisp.org>
60582         time_r: Add missing declarations on HP-UX 11.
60583         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
60584         instead of HAVE_LOCALTIME_R.
60585         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
60586         HAVE_LOCALTIME_R always.
60587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
60588         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
60589         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
60590         HAVE_LOCALTIME_R.
60591         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
60592         * doc/posix-functions/localtime_r.texi: Likewise.
60594 2010-12-29  Eric Blake  <eblake@redhat.com>
60596         mountlist: tweak previous commit
60597         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
60598         Reported by Paul Eggert.
60600         mountlist: fix local drive detection on cygwin
60601         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
60602         that works for cygwin.
60604 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60606         ftoastr, snprintf: ftoastr + snprintf module
60607         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
60608         since the snprintf module now should be good enough here.
60609         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
60610         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
60611         and gl_MODULE_INDICATOR([snprintf]), but the former enables
60612         GNULIB_SNPRINTF only for the test directory, and the latter
60613         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
60614         seems to suffice by itself.
60616 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60618         alloca: one step towards thread-safety
60619         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
60620         need for a static variable.  All callers changed.  This does not
60621         make the alloca replacement thread-safe, but it's one step.
60623         tests: minor indenting change
60624         * tests/init.sh: Sync from coreutils housekeeping patch
60625         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
60626         to keep lines within 80 columns.
60628 2010-12-28  Jim Meyering  <meyering@redhat.com>
60630         regex: don't infloop on persistent failing calloc
60631         * lib/regexec.c (build_trtable): Return failure indication upon
60632         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
60633         In glibc, this was fixed for version 2.13:
60634         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
60636 2010-12-28  Bruno Haible  <bruno@clisp.org>
60637             Paul Eggert <eggert@cs.ucla.edu>
60639         linkat: Make implementation robust against system behaviour variations.
60640         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
60641         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
60642         way, and to -2 if it needs a generic runtime test.
60643         * lib/linkat.c (solaris_optimized_link_immediate,
60644         solaris_optimized_link_follow): New functions.
60645         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
60646         (check_same_link): Use it.
60648 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
60650         New module 'unigbrk/base'.
60651         * modules/unigbrk/base: New file.
60652         * lib/unigbrk.in.h: New file.
60654         New module 'unigbrk/uc-gbrk-prop'.
60655         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
60656         * modules/unigbrk/uc-gbrk-prop: New file.
60657         * lib/unigbrk/gbrkprop.h: New file.
60658         * lib/unigbrk/uc-gbrk-prop.c: New file.
60660         New module 'unigbrk/uc-is-grapheme-break'.
60661         * modules/unigbrk/uc-is-grapheme-break: New file.
60662         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
60663         * lib/unigbrk/uc-is-grapheme-break.c: New file.
60664         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
60665         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
60666         * tests/unigbrk/GraphemeBreakTest.txt: New file.
60668         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
60670 2010-12-27  Bruno Haible  <bruno@clisp.org>
60672         linkat test: Avoid failure on Solaris 11 2010-11.
60673         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
60675 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60677         utimens: work around glibc rounding bug on more platforms
60678         * lib/utimens.c (fdutimens): Work around rounding bug even if
60679         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
60680         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
60682 2010-12-27  Bruno Haible  <bruno@clisp.org>
60684         select tests: Improve comments.
60685         * tests/test-select.c (do_select): Add comments.
60687 2010-12-27  Bruno Haible  <bruno@clisp.org>
60689         select tests: Safer way of handling timeout.
60690         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
60691         at every invocation.
60693 2010-12-27  Bruno Haible  <bruno@clisp.org>
60695         select tests: Use 'bool' where appropriate.
60696         * tests/test-select.c (connect_to_socket): Change argument type to
60697         'bool'.
60699 2010-12-27  Bruno Haible  <bruno@clisp.org>
60701         select tests: Use existing modules.
60702         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
60703         (configure.ac): Don't test for unistd.h.
60704         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
60705         declared in <unistd.h>.
60707 2010-12-27  Bruno Haible  <bruno@clisp.org>
60709         mbrtowc: Work around a Solaris 7 bug.
60710         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
60711         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
60712         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
60713         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
60714         MBRTOWC_NULL_ARG1_BUG.
60715         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
60716         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
60717         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
60718         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
60720 2010-12-27  Jim Meyering  <meyering@redhat.com>
60722         read-file.c: tweak syntax
60723         * lib/read-file.c (fread_file): Remove space after "*" in function
60724         definitions.
60726 2010-12-27  Bruno Haible  <bruno@clisp.org>
60728         times test: Avoid gcc warnings on OSF/1.
60729         * tests/test-times.c (main): Cast printf arguments from clock_t to
60730         'long int'.
60732 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60734         utimens: work around glibc rounding bug on older Linux kernels
60735         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
60736         on Linux with a glibc whose utimes might not work, then work
60737         around a longstanding glibc bug involving rounding rather than
60738         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
60739         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60741 2010-12-26  Bruno Haible  <bruno@clisp.org>
60743         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
60744         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
60745         _GL_CXXALIAS_SYS.
60746         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60748 2010-12-26  Bruno Haible  <bruno@clisp.org>
60750         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
60751         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
60752         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60753         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
60754         looking for the declaration.
60755         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60756         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
60757         problem.
60758         * doc/posix-functions/inet_pton.texi: Likewise.
60760 2010-12-26  Bruno Haible  <bruno@clisp.org>
60762         arpa_inet: Use the common idioms with C++ support.
60763         * lib/arpa_inet.in.h: Include c++defs.h.
60764         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
60765         support.
60766         * modules/arpa_inet (Depends-on): Add c++defs.
60767         (Makefile.am): Substitute the contents of c++defs.h.
60768         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
60769         * modules/arpa_inet-c++-tests: New file.
60770         * tests/test-arpa_inet-c++.cc: New file.
60772 2010-12-25  Bruno Haible  <bruno@clisp.org>
60774         Fix more C++ link errors on Solaris 8.
60775         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
60776         $(LIB_EACCESS).
60777         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
60778         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
60779         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
60780         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
60781         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
60783 2010-12-25  Bruno Haible  <bruno@clisp.org>
60785         printf-posix: Fix link error when a non-GCC compiler is used.
60786         * lib/stdio.in.h (printf): When not using GCC, override printf
60787         correctly.
60788         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60790 2010-12-25  Bruno Haible  <bruno@clisp.org>
60792         strerror_r-posix: Update doc.
60793         * doc/posix-functions/strerror_r.texi: Update doc about the return
60794         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
60796 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60798         utimens: simplify the logic of the previous change
60799         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
60800         This should not affect whether the test succeeds or fails.
60802         utimens: configure better on hosts with NFS clock skew
60803         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
60804         uses the clock of the local host.  It might use the clock of the
60805         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
60806         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60808 2010-12-25  Bruno Haible  <bruno@clisp.org>
60810         ptsname test: Avoid failure on Solaris.
60811         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
60812         open a pseudo-terminal; don't use BSD-style ptys.
60813         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
60815 2010-12-25  Bruno Haible  <bruno@clisp.org>
60817         ptsname: Avoid ERANGE failure on some systems.
60818         * lib/ptsname.c (buffer): Increase size.
60820 2010-12-25  Bruno Haible  <bruno@clisp.org>
60822         rename, renameat: Avoid test failures at NFS mounted locations.
60823         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
60824         so that subsequent mkdir calls succeed.
60826 2010-12-25  Bruno Haible  <bruno@clisp.org>
60828         iswblank: Fix C++ link error on Solaris 8.
60829         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
60830         _GL_FUNCDECL_SYS.
60832 2010-12-25  Bruno Haible  <bruno@clisp.org>
60834         unistd: Fix C++ link error on Solaris 8.
60835         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
60837 2010-12-25  Bruno Haible  <bruno@clisp.org>
60839         readlink doc: Mention an old glibc bug.
60840         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
60842 2010-12-25  Bruno Haible  <bruno@clisp.org>
60844         fcntl-h: Fix for use of C++ on glibc systems.
60845         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60846         also on glibc systems in C++ mode.
60847         Reported by Gary V. Vaughan <gary@gnu.org>.
60849 2010-12-25  Bruno Haible  <bruno@clisp.org>
60851         roundl-ieee: Make it work on OSF/1 5.1 with cc.
60852         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
60854 2010-12-25  Bruno Haible  <bruno@clisp.org>
60856         truncl-ieee: Make it work on OSF/1 5.1 with cc.
60857         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
60858         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
60859         test whether truncl works according to ISO C 99 with IEC 60559.
60860         * m4/truncl-ieee.m4: New file.
60861         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
60862         m4/signbit.m4.
60863         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
60865 2010-12-25  Bruno Haible  <bruno@clisp.org>
60867         ceill-ieee: Make it work on OSF/1 5.1 with cc.
60868         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
60869         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
60870         test whether ceill works according to ISO C 99 with IEC 60559.
60871         * m4/ceill-ieee.m4: New file.
60872         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
60873         m4/signbit.m4.
60874         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
60876 2010-12-25  Bruno Haible  <bruno@clisp.org>
60878         Ensure all prerequisites of <wchar.h> are included.
60879         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
60880         before <wchar.h>.
60881         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
60882         gl_MBRLEN_NUL_RETVAL): Likewise.
60883         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
60884         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
60885         AC_FUNC_MBRTOWC): Likewise.
60886         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
60887         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60888         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
60889         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
60890         Likewise.
60891         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
60892         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
60893         (gl_WCHAR_H): Improve comments.
60894         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60896 2010-12-25  Bruno Haible  <bruno@clisp.org>
60898         strtok_r: Fix C syntax error in autoconf macro.
60899         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
60900         characters in test program.
60902 2010-12-24  Bruno Haible  <bruno@clisp.org>
60904         ceil, trunc, round: Fix gcc warnings.
60905         * lib/ceil.c (MIN): Undefine before redefining.
60906         * lib/trunc.c (MIN): Likewise.
60907         * lib/round.c (MIN): Likewise.
60908         Include <math.h> first.
60910 2010-12-24  Bruno Haible  <bruno@clisp.org>
60912         select tests: Avoid failures on OSF/1 5.1.
60913         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
60914         failure of closing the last socket; it may fail with ECONNRESET.
60916 2010-12-24  Eric Blake  <eblake@redhat.com>
60918         stdint: avoid HP-UX 10.20 preprocessor bug
60919         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
60920         than #if.
60921         * tests/test-floor2.c (main): Likewise.
60922         Reported by Peter O'Gorman.
60924         pipe: make obsoletion transition easier
60925         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
60926         * modules/pipe (Files): Include revived file.
60927         (Include): Drop reference, to mirror getdate's behavior.
60929 2010-12-24  Bruno Haible  <bruno@clisp.org>
60931         sys_socket: Hide mismatch of declarations on NonStop Kernel.
60932         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
60933         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
60934         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60936 2010-12-24  Bruno Haible  <bruno@clisp.org>
60938         gethostname: Ensure declaration on NonStop Kernel.
60939         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
60940         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60942 2010-12-24  Bruno Haible  <bruno@clisp.org>
60944         sys_select: Ensure all necessary types on NonStop Kernel.
60945         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
60946         include <sys/time.h>.
60947         * doc/posix-headers/sys_select.texi: Mention that it's missing on
60948         NonStop Kernel.
60949         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60951 2010-12-24  Bruno Haible  <bruno@clisp.org>
60953         sys_select: Remove unneeded include.
60954         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
60955         have <sys/select.h>.
60957 2010-12-24  Bruno Haible  <bruno@clisp.org>
60959         gethostname: Provide a fallback for HOST_NAME_MAX.
60960         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
60961         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
60962         instead.
60963         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60965 2010-12-24  Bruno Haible  <bruno@clisp.org>
60967         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
60968         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
60969         (SA_RESTART): Likewise.
60970         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60972 2010-12-24  Bruno Haible  <bruno@clisp.org>
60974         signal: Define NSIG.
60975         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
60976         * tests/test-signal.c (nsig): New variable.
60977         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60979 2010-12-24  Bruno Haible  <bruno@clisp.org>
60981         rename, renameat: Avoid test failures on OSF/1 5.1.
60982         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
60983         alternative error codes.
60984         * tests/test-renameat.c (main): Likewise.
60986 2010-12-24  Bruno Haible  <bruno@clisp.org>
60988         *printf: Detect large precisions bug on Solaris 10/SPARC.
60989         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
60990         by Paul Eggert.
60991         * tests/test-snprintf-posix.h (test_function): Add this test code here
60992         too.
60993         * tests/test-sprintf-posix.h (test_function): Likewise.
60994         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60995         * tests/test-vasprintf-posix.c (test_function): Likewise.
60996         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
60997         around by gnulib.
60998         * doc/posix-functions/printf.texi: Likewise.
60999         * doc/posix-functions/snprintf.texi: Likewise.
61000         * doc/posix-functions/sprintf.texi: Likewise.
61001         * doc/posix-functions/vfprintf.texi: Likewise.
61002         * doc/posix-functions/vprintf.texi: Likewise.
61003         * doc/posix-functions/vsnprintf.texi: Likewise.
61004         * doc/posix-functions/vsprintf.texi: Likewise.
61005         * doc/posix-functions/dprintf.texi: Undo last commit.
61006         * doc/posix-functions/vdprintf.texi: Likewise.
61008 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61010         tests: port test-fdutimensat.c to Solaris 8
61011         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61012         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61013         On Solaris 8, it fails with errno == ENOSYS, because there is no
61014         futimens (so it can't use the fd), and there is no lutimens (so it
61015         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61017         vsnprintf: make more consistent with snprintf; doc fixes
61019         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61020         the byte count return problem was promoted from the snprintf-posix
61021         to the snprintf module.
61022         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61023         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61024         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61025         * tests/test-snprintf.c (main): Check the byte count returned.
61026         * tests/test-vsnprintf.c (main): Likewise.
61028 2010-12-23  Eric Blake  <eblake@redhat.com>
61030         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61031         * modules/sigpipe (License): Relax license.
61033 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61035         doc: document Solaris printf bug with large float precisions
61036         * doc/posix-functions/dprintf.texi (dprintf):
61037         * doc/posix-functions/fprintf.texi (fprintf):
61038         * doc/posix-functions/printf.texi (printf):
61039         * doc/posix-functions/snprintf.texi (snprintf):
61040         * doc/posix-functions/sprintf.texi (sprintf):
61041         * doc/posix-functions/vdprintf.texi (vdprintf):
61042         * doc/posix-functions/vfprintf.texi (vfprintf):
61043         * doc/posix-functions/vprintf.texi (vprintf):
61044         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61045         * doc/posix-functions/vsprintf.texi (vsprintf):
61046         Mention that these functions mishandle large floating point
61047         precisions on Solaris 10.  The same bug is also present in Solaris
61048         8, and I assume earlier.  This causes "cd gnulib-tests; make
61049         check" to fail on Solaris 8 (and I assume, later) when building
61050         the latest coreutils, in test-vasprintf-posix's call to
61051         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61052         the wide flavors (e.g., wprintf) so this patch just updates the
61053         documentation for the narrow ones.
61055         test-posixtm.c: add two tests
61056         * tests/test-posixtm.c: Add two tests, to highlight the
61057         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61058         around this bug; this is merely to document it.
61060 2010-12-22  Bruno Haible  <bruno@clisp.org>
61062         getlogin_r: Work around portability problem on OSF/1.
61063         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61064         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61065         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61066         test for a truncated result.
61067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61068         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61069         * modules/getlogin_r (Depends-on): Add memchr.
61070         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61072 2010-12-22  Bruno Haible  <bruno@clisp.org>
61074         ptsname: Avoid test failure on OSF/1 5.1.
61075         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61076         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61077         (same_slave): New function.
61078         (main): Use it to compare ptsname's result with the expected file name.
61080 2010-12-22  Bruno Haible  <bruno@clisp.org>
61082         Port extended stdio modules to HP NonStop Kernel.
61083         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61084         macros.
61085         * lib/fbufmode.c: Update comments.
61086         * lib/fflush.c: Likewise.
61087         * lib/fpurge.c: Likewise.
61088         * lib/freadable.c: Likewise.
61089         * lib/freadahead.c: Likewise.
61090         * lib/freading.c: Likewise.
61091         * lib/freadptr.c: Likewise.
61092         * lib/freadseek.c: Likewise.
61093         * lib/fseeko.c: Likewise.
61094         * lib/fseterr.c: Likewise.
61095         * lib/fwritable.c: Likewise.
61096         * lib/fwriting.c: Likewise.
61097         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61099 2010-12-22  Bruno Haible  <bruno@clisp.org>
61101         ttyname_r: Work around bug on OSF/1 5.1.
61102         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61103         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61104         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61105         present.
61106         * lib/ttyname_r.c (ttyname_r): Update comments.
61108 2010-12-22  Bruno Haible  <bruno@clisp.org>
61110         round: Implement result sign according to IEEE 754.
61111         * lib/round.c (MIN, MINUS_ZERO): New macros.
61112         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61113         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61114         * tests/test-round-ieee.c (main): Likewise.
61115         * tests/test-roundl-ieee.c (main): Likewise.
61117         trunc: Implement result sign according to IEEE 754.
61118         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61119         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61120         * tests/test-trunc2.c: Include minus-zero.h.
61121         (MINUS_ZERO): New macro.
61122         (trunc_reference): Keep in sync with lib/trunc.c.
61123         * tests/test-truncf2.c: Include minus-zero.h.
61124         (MINUS_ZERO): New macro.
61125         (truncf_reference): Keep in sync with lib/trunc.c.
61126         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61127         * tests/test-trunc-ieee.c (main): Likewise.
61128         * tests/test-truncl-ieee.c (main): Likewise.
61130         ceil: Implement result sign according to IEEE 754.
61131         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61132         (FUNC): Return -0.0 for -1 < x < 0.
61133         * tests/test-ceil2.c: Include minus-zero.h.
61134         (MINUS_ZERO): New macro.
61135         (ceil_reference): Keep in sync with lib/ceil.c.
61136         * tests/test-ceilf2.c: Include minus-zero.h.
61137         (MINUS_ZERO): New macro.
61138         (ceilf_reference): Keep in sync with lib/ceil.c.
61139         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61140         * tests/test-ceil-ieee.c (main): Likewise.
61141         * tests/test-ceill-ieee.c (main): Likewise.
61143         floor: Implement result sign according to IEEE 754.
61144         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61145         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61146         * tests/test-floorf2.c (floorf_reference): Likewise.
61147         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61148         * tests/test-floor-ieee.c (main): Likewise.
61149         * tests/test-floorl-ieee.c (main): Likewise.
61151 2010-12-22  Bruno Haible  <bruno@clisp.org>
61153         getaddrinfo: Update doc.
61154         * doc/posix-functions/gai_strerror.texi: Return type is also different
61155         on AIX and HP-UX.
61157 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61159         getaddrinfo, inet_ntop: Update doc for Solaris.
61160         * doc/posix-functions/gai_strerror.texi: Return type is also an
61161         issue on Solaris 9 and earlier.
61162         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61163         on Solaris 10 and earlier.
61165 2010-12-21  Bruno Haible  <bruno@clisp.org>
61167         New module 'roundl-ieee'.
61168         * modules/roundl-ieee: New file.
61169         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61170         test whether roundl works according to ISO C 99 with IEC 60559.
61171         * m4/roundl-ieee.m4: New file.
61172         * modules/roundl-ieee-tests: New file.
61173         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61174         * tests/test-roundl.c (main): Remove signbit tests.
61175         * modules/roundl-tests (Depends-on): Remove signbit.
61176         * doc/posix-functions/roundl.texi: Mention the new module.
61178 2010-12-21  Bruno Haible  <bruno@clisp.org>
61180         New module 'truncl-ieee'.
61181         * modules/truncl-ieee: New file.
61182         * modules/truncl-ieee-tests: New file.
61183         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61184         * tests/test-truncl.c (main): Remove signbit tests.
61185         * modules/truncl-tests (Depends-on): Remove signbit.
61186         * doc/posix-functions/truncl.texi: Mention the new module.
61188 2010-12-21  Bruno Haible  <bruno@clisp.org>
61190         New module 'ceill-ieee'.
61191         * modules/ceill-ieee: New file.
61192         * modules/ceill-ieee-tests: New file.
61193         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61194         * tests/test-ceill.c (main): Remove signbit tests.
61195         * modules/ceill-tests (Depends-on): Remove signbit.
61196         * doc/posix-functions/ceill.texi: Mention the new module.
61198 2010-12-21  Bruno Haible  <bruno@clisp.org>
61200         New module 'floorl-ieee'.
61201         * modules/floorl-ieee: New file.
61202         * modules/floorl-ieee-tests: New file.
61203         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61204         * tests/test-floorl.c (main): Remove signbit tests.
61205         * modules/floorl-tests (Depends-on): Remove signbit.
61206         * doc/posix-functions/floorl.texi: Mention the new module.
61208 2010-12-21  Bruno Haible  <bruno@clisp.org>
61210         New module 'round-ieee'.
61211         * modules/round-ieee: New file.
61212         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
61213         whether round works according to ISO C 99 with IEC 60559.
61214         * m4/round-ieee.m4: New file.
61215         * modules/round-ieee-tests: New file.
61216         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
61217         * tests/test-round1.c (main): Remove signbit tests.
61218         * modules/round-tests (Depends-on): Remove 'signbit'.
61219         * doc/posix-functions/round.texi: Mention the new module.
61221 2010-12-21  Bruno Haible  <bruno@clisp.org>
61223         New module 'trunc-ieee'.
61224         * modules/trunc-ieee: New file.
61225         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
61226         whether trunc works according to ISO C 99 with IEC 60559.
61227         * m4/trunc-ieee.m4: New file.
61228         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
61229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
61230         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
61231         * modules/trunc-ieee-tests: New file.
61232         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
61233         * tests/test-trunc1.c (main): Remove signbit tests.
61234         * modules/trunc-tests (Depends-on): Remove 'signbit'.
61235         * doc/posix-functions/trunc.texi: Mention the new module.
61237 2010-12-21  Bruno Haible  <bruno@clisp.org>
61239         New module 'ceil-ieee'.
61240         * modules/ceil-ieee: New file.
61241         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
61242         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
61243         ISO C 99 with IEC 60559.
61244         * m4/ceil-ieee.m4: New file.
61245         * modules/ceil (Files): Add lib/ceil.c.
61246         (Depends-on): Add 'float'.
61247         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61248         * lib/math.in.h (ceil): New declaration.
61249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61250         REPLACE_CEIL.
61251         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61252         * modules/ceil-ieee-tests: New file.
61253         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61254         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61255         * doc/posix-functions/ceil.texi: Mention the new module.
61257 2010-12-21  Bruno Haible  <bruno@clisp.org>
61259         New module 'floor-ieee'.
61260         * modules/floor-ieee: New file.
61261         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61262         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61263         ISO C 99 with IEC 60559.
61264         * m4/floor-ieee.m4: New file.
61265         * modules/floor (Files): Add lib/floor.c.
61266         (Depends-on): Add 'float'.
61267         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61268         * lib/math.in.h (floor): New declaration.
61269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61270         REPLACE_FLOOR.
61271         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61272         * modules/floor-ieee-tests: New file.
61273         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61274         * tests/test-math-c++.cc: Check the signature of 'floor'.
61275         * doc/posix-functions/floor.texi: Mention the new module.
61277 2010-12-21  Bruno Haible  <bruno@clisp.org>
61279         New module 'roundf-ieee'.
61280         * modules/roundf-ieee: New file.
61281         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61282         test whether roundf works according to ISO C 99 with IEC 60559.
61283         * m4/roundf-ieee.m4: New file.
61284         * modules/roundf-ieee-tests: New file.
61285         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61286         * tests/test-roundf1.c (main): Remove signbit tests.
61287         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61288         * doc/posix-functions/roundf.texi: Mention the new module.
61290 2010-12-21  Bruno Haible  <bruno@clisp.org>
61292         New module 'truncf-ieee'.
61293         * modules/truncf-ieee: New file.
61294         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61295         test whether truncf works according to ISO C 99 with IEC 60559.
61296         * m4/truncf-ieee.m4: New file.
61297         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61299         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61300         * modules/truncf-ieee-tests: New file.
61301         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61302         * tests/test-truncf1.c (main): Remove signbit tests.
61303         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61304         * doc/posix-functions/truncf.texi: Mention the new module.
61306 2010-12-21  Bruno Haible  <bruno@clisp.org>
61308         New module 'ceilf-ieee'.
61309         * modules/ceilf-ieee: New file.
61310         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61311         test whether ceilf works according to ISO C 99 with IEC 60559.
61312         * m4/ceilf-ieee.m4: New file.
61313         * modules/ceilf-ieee-tests: New file.
61314         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61315         * tests/test-ceilf1.c (main): Remove signbit tests.
61316         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61317         * doc/posix-functions/ceilf.texi: Mention the new module.
61319 2010-12-21  Bruno Haible  <bruno@clisp.org>
61321         New module 'floorf-ieee'.
61322         * modules/floorf-ieee: New file.
61323         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61324         test whether floorf works according to ISO C 99 with IEC 60559.
61325         * m4/floorf-ieee.m4: New file.
61326         * modules/floorf-ieee-tests: New file.
61327         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61328         * tests/test-floorf1.c (main): Remove signbit tests.
61329         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61330         * doc/posix-functions/floorf.texi: Mention the new module.
61332 2010-12-21  Bruno Haible  <bruno@clisp.org>
61334         Support for minus zero in autoconf macros.
61335         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61336         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61337         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61338         * tests/minus-zero.h: Update comments.
61340 2010-12-21  Bruno Haible  <bruno@clisp.org>
61342         Tests for module 'ceil'.
61343         * modules/ceil-tests: New file.
61344         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61345         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61347 2010-12-21  Bruno Haible  <bruno@clisp.org>
61349         Tests for module 'floor'.
61350         * modules/floor-tests: New file.
61351         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61352         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61354 2010-12-21  Bruno Haible  <bruno@clisp.org>
61356         math: Fix indentation.
61357         * lib/math.in.h (floorf): Fix indentation.
61359 2010-12-21  Bruno Haible  <bruno@clisp.org>
61361         Fix cross-compilation guesses on Solaris.
61362         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61363         not match "solaris2.10".
61364         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61365         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61366         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61368 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61370         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61371         This fixes a problem observed with the latest coreutils snapshot
61372         that caused a test to fail on Solaris 8.  src/csplit.c's call
61373         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61374         earlier, instead of returning the number of bytes that would have
61375         been generated; this causes csplit to incorrectly report memory
61376         exhaustion.
61377         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61378         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61379         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61380         comments to match.
61381         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
61382         Fix typo in matching older versions of Solaris: "solaris2.10"
61383         is matched by the shell pattern "solaris2.[0-9]*".  This matters
61384         only for guessing while cross-compiling.
61385         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
61387 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
61389         ftoastr: fix comment again
61390         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61391         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
61392         Also, simplify example a bit by using flags = 0.
61394 2010-12-20  Bruno Haible  <bruno@clisp.org>
61396         round*, trunc*: Update documentation regarding glibc.
61397         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
61398         * doc/posix-functions/round.texi: Likewise.
61399         * doc/posix-functions/roundl.texi: Likewise.
61400         * doc/posix-functions/truncf.texi: Likewise.
61401         * doc/posix-functions/trunc.texi: Likewise.
61402         * doc/posix-functions/truncl.texi: Likewise.
61404 2010-12-20  Bruno Haible  <bruno@clisp.org>
61406         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
61407         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
61408         * doc/posix-functions/round.texi: Likewise.
61409         * doc/posix-functions/roundl.texi: Likewise.
61411 2010-12-20  Bruno Haible  <bruno@clisp.org>
61413         ttyname_r: Add missing declaration on HP-UX 11.
61414         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
61415         HAVE_TTYNAME_R.
61416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
61417         declared. Set HAVE_TTYNAME_R always.
61418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61419         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
61420         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
61421         HAVE_TTYNAME_R.
61422         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
61424 2010-12-20  Bruno Haible  <bruno@clisp.org>
61426         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
61427         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
61428         * doc/posix-functions/getlogin_r.texi: Likewise.
61429         * tests/test-getlogin.c: Include <errno.h>.
61430         (main): Avoid test failure on HP-UX 11.11.
61431         * tests/test-getlogin_r.c (main): Likewise.
61433 2010-12-20  Bruno Haible  <bruno@clisp.org>
61435         getlogin_r: Add missing declaration on HP-UX 11.
61436         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
61437         declared also when it exists as a function.
61438         * doc/posix-functions/getlogin_r.texi: Document this workaround.
61440 2010-12-20  Bruno Haible  <bruno@clisp.org>
61442         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
61443         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
61444         through wcrtomb.
61446 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61448         ftoastr: fix comment
61449         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61450         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
61452 2010-12-19  Bruno Haible  <bruno@clisp.org>
61454         isnan: Ensure it is a macro.
61455         * lib/math.in.h (isnan): Define as a macro if not already a macro.
61456         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
61457         Solaris.
61459 2010-12-19  Bruno Haible  <bruno@clisp.org>
61461         ldexpl test: Fix link error on OSF/1 5.1.
61462         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
61464 2010-12-19  Bruno Haible  <bruno@clisp.org>
61466         wctype: Make it work in C++ mode on OSF/1 5.1.
61467         * lib/wctype.in.h (iswblank): Declare but not define here.
61468         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
61469         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
61470         * modules/wctype (Files): Add lib/iswblank.c.
61472 2010-12-19  Bruno Haible  <bruno@clisp.org>
61474         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
61475         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
61476         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
61478 2010-12-19  Bruno Haible  <bruno@clisp.org>
61480         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
61481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
61482         _POSIX_PII_SOCKET.
61483         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
61484         * doc/posix-functions/recvfrom.texi: Likewise.
61485         * doc/posix-functions/send.texi: Likewise.
61486         * doc/posix-functions/sendto.texi: Likewise.
61488 2010-12-19  Bruno Haible  <bruno@clisp.org>
61490         tcgetsid: Add missing declaration on OSF/1 5.1.
61491         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
61492         HAVE_TCGETSID.
61493         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
61494         Don't set HAVE_TCGETSID.
61495         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
61496         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
61497         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
61498         HAVE_TCGETSID.
61499         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
61501 2010-12-19  Bruno Haible  <bruno@clisp.org>
61503         stdio: Fix problem with popen() declaration on OSF/1 5.1.
61504         * lib/stdio.in.h: During the include_next statement, let recursive
61505         includes of this file include only the system header file.
61507 2010-12-19  Bruno Haible  <bruno@clisp.org>
61509         iconv_open: Fix regression from 2010-12-04.
61510         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
61511         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
61513 2010-12-19  Bruno Haible  <bruno@clisp.org>
61515         stdbool test: Avoid a gcc warning.
61516         * tests/test-stdbool.c (main): Fail if e1 is false.
61517         Reported by Jim Meyering.
61519 2010-12-19  Jim Meyering  <meyering@redhat.com>
61521         setenv: restore to working order
61522         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
61523         mistakenly removed.
61524         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
61525         HAVE_SETENV.
61526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
61527         HAVE_SETENV.
61529 2010-12-19  Bruno Haible  <bruno@clisp.org>
61531         Document some different function declarations on OSF/1 5.1.
61532         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
61533         * doc/posix-functions/inet_ntop.texi: Likewise.
61534         * doc/posix-functions/gethostname.texi: Likewise.
61535         * lib/unistd.in.h (gethostname): Update comment.
61537 2010-12-19  Bruno Haible  <bruno@clisp.org>
61539         doc: Mention vasprintf-posix module.
61540         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
61541         the 'vasprintf-posix' module.
61542         * doc/glibc-functions/vasprintf.texi: Likewise.
61544 2010-12-19  Bruno Haible  <bruno@clisp.org>
61546         unsetenv: Add missing declaration on OSF/1 5.1.
61547         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
61548         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
61549         Don't set HAVE_UNSETENV. In the test program, set _BSD.
61550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
61551         not HAVE_UNSETENV.
61552         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
61553         HAVE_UNSETENV.
61554         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
61556 2010-12-19  Bruno Haible  <bruno@clisp.org>
61558         setenv: Add missing declaration on OSF/1 5.1.
61559         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
61560         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
61561         declared. Don't set HAVE_SETENV.
61562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
61563         not HAVE_SETENV.
61564         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
61565         HAVE_SETENV.
61566         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
61568 2010-12-19  Bruno Haible  <bruno@clisp.org>
61570         nl_langinfo tests: Avoid gcc warning.
61571         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
61573 2010-12-19  Bruno Haible  <bruno@clisp.org>
61575         mknod: Avoid error in C++ mode on OSF/1 with GCC.
61576         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
61577         _GL_CXXALIAS_SYS.
61579 2010-12-19  Bruno Haible  <bruno@clisp.org>
61581         stdbool: Relax test.
61582         * tests/test-stdbool.c (e): Don't require that casts from a variable's
61583         address to 'bool' work in static initializer, for compilers other than
61584         GCC.
61586 2010-12-19  Bruno Haible  <bruno@clisp.org>
61588         ftello: Add missing declaration on OSF/1 5.1.
61589         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
61590         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
61591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
61592         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
61593         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
61595 2010-12-19  Bruno Haible  <bruno@clisp.org>
61597         fseeko: Add missing declaration on OSF/1 5.1.
61598         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
61599         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
61600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
61601         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
61602         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
61604 2010-12-19  Bruno Haible  <bruno@clisp.org>
61606         fchdir: Add missing declaration on OSF/1 5.1.
61607         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
61608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
61609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
61610         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
61611         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
61613 2010-12-19  Bruno Haible  <bruno@clisp.org>
61615         relocatable-prog-wrapper: Separate from relocatable-prog.
61616         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
61617         uninstall-relocwrapper rule here.
61618         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
61619         Reported by Ian Beckwith <ianb@erislabs.net>.
61621 2010-12-19  Bruno Haible  <bruno@clisp.org>
61623         unistr/u8-mbsnlen: Add missing dependency.
61624         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
61625         Reported by Ian Beckwith <ianb@erislabs.net>.
61627 2010-12-19  Bruno Haible  <bruno@clisp.org>
61629         iconv: Make it possible again to use this module without 'iconv-h'.
61630         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
61631         if it is not defined.
61632         Reported by Ian Beckwith <ianb@erislabs.net>.
61634 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61636         acl: port to Solaris 8 when copying from tmpfs to ufs
61637         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
61638         error number.  Problem observed on Solaris 8 with latest
61639         coreutils, with "mv A B", where A is on a tmpfs file system and B
61640         is on a ufs file system.  This caused coreutils' mv/part-symlink
61641         test to fail.
61643         tests: set fail=0 at start
61644         * tests/init.sh (setup_): Move fail=0 initialization here ...
61645         (mktempd_): ... from here, so that tests can rely on fail being
61646         set to 0 initially.  This fixes a problem in coreutils; see:
61647         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
61649 2010-12-18  Bruno Haible  <bruno@clisp.org>
61651         memmem-simple: Stylistic changes.
61652         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
61653         Fix preprocessor directive indentation.
61655 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61657         memmem, memmem-simple: reorganize and expand empty needle check
61658         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
61659         functional checks to memmem-simple so that one has a fully functional
61660         memmem by using just this module.
61661         Restrict the performance only check to the memmem module.
61662         Also expand the empty needle check to ensure the correct
61663         pointer is returned, not just a non NULL pointer.
61664         * doc/glibc-functions/memmem.texi: Rearrange the portability
61665         documentation to correlate with the rearranged checks.
61666         Clarify exactly how the memmem and memmem-simple modules
61667         relate to each other.
61669 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61670             Bruno Haible  <bruno@clisp.org>
61672         Improve cross-compilation guesses for uClibc.
61673         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
61674         that uClibc does not have the glibc bug.
61675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
61676         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
61678 2010-12-14  Eric Blake  <eblake@redhat.com>
61680         configmake: provide fallbacks for oldest supported autotools
61681         * m4/configmake.m4: New file.
61682         * modules/configmake (Files): Ship it.
61683         (configure.ac): Use it to guarantee fallbacks.
61685 2010-12-13  Pádraig Brady  <P@draigBrady.com>
61687         read-file: Improve handling of large files
61688         * lib/read-file.c (fread_file): Minimize realloc()s
61689         for regular files, and better manage sizes around SIZE_MAX.
61691 2010-12-13  Eric Blake  <eblake@redhat.com>
61693         cloexec, fcntl: relax license
61694         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
61695         consent from all contributors.
61696         * modules/fcntl (License): Likewise.
61698 2010-12-10  Bruno Haible  <bruno@clisp.org>
61700         Tests for module 'pipe-posix'.
61701         * modules/pipe-posix-tests: New file.
61702         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
61704 2010-12-10  Bruno Haible  <bruno@clisp.org>
61706         pipe-posix: Make it work in C++ mode.
61707         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
61708         (pipe): Use common idiom, not a macro definition.
61709         * lib/pipe.c: New file.
61710         * m4/pipe.m4: New file.
61711         * modules/pipe-posix (Description): Enhance.
61712         (Files): Add lib/pipe.c, m4/pipe.m4.
61713         (configure.ac): Invoke gl_FUNC_PIPE.
61714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
61715         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
61716         * tests/test-unistd-c++.cc: Check the signature of pipe.
61718 2010-12-10  Bruno Haible  <bruno@clisp.org>
61720         Rename module 'pipe' to 'spawn-pipe'.
61721         * modules/spawn-pipe: New file, renamed from modules/pipe.
61722         (Files, configure.ac, Makefile.am): Update.
61723         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
61724         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
61725         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
61726         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
61727         "spawn-pipe.h" instead of "pipe.h".
61728         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
61729         to gl_SPAWN_PIPE.
61730         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
61731         (Files, Makefile.am): Update.
61732         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
61733         Update.
61734         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
61735         Include "spawn-pipe.h" instead of "pipe.h".
61736         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
61737         * lib/javacomp.c: Likewise.
61738         * lib/javaversion.c: Likewise.
61739         * lib/pipe-filter-gi.c: Likewise.
61740         * lib/pipe-filter-ii.c: Likewise.
61741         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
61742         * modules/javacomp (Depends-on): Likewise.
61743         * modules/javaversion (Depends-on): Likewise.
61744         * modules/pipe-filter-gi (Depends-on): Likewise.
61745         * modules/pipe-filter-ii (Depends-on): Likewise.
61746         * MODULES.html.sh (Executing programs): Update.
61747         * NEWS: Mention the change.
61749 2010-12-10  Eric Blake  <eblake@redhat.com>
61751         pipe-posix: new module
61752         * modules/pipe-posix: New file.
61753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
61754         (gl_UNISTD_H): Check for declaration.
61755         * modules/unistd (Makefile.am): Substitute it.
61756         * lib/unistd.in.h (pipe): Provide it for mingw.
61757         * doc/posix-functions/pipe.texi (pipe): Update documentation.
61758         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
61760 2010-12-07  Bruno Haible  <bruno@clisp.org>
61762         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
61763         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
61764         u8_strcmp_gnu.
61765         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
61767 2010-12-06  Bruno Haible  <bruno@clisp.org>
61769         Update internal documentation.
61770         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
61772 2010-12-04  Bruno Haible  <bruno@clisp.org>
61774         Put more information about failed tests into the test return codes.
61775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
61776         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
61777         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61778         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61779         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
61780         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61781         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61782         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61783         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
61784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61785         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
61786         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61787         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
61788         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61789         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
61790         returns a bit mask.
61791         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
61792         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
61793         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
61794         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
61795         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61796         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61799         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61800         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61801         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61802         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61803         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61805         * m4/link.m4 (gl_FUNC_LINK): Likewise.
61806         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61807         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
61808         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
61809         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61810         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
61811         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61812         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
61813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
61814         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61815         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61816         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61817         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
61818         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61819         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61820         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
61821         gl_PRINTF_PRECISION): Likewise.
61822         * m4/regex.m4 (gl_REGEX): Likewise.
61823         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
61824         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
61825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
61826         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61829         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
61830         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
61831         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61832         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61833         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61834         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61835         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61836         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61837         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61838         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
61839         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
61840         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61842         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
61843         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
61844         enumerated value.
61845         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
61847 2010-12-04  Bruno Haible  <bruno@clisp.org>
61849         Update for Solaris 11 2010-11.
61850         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
61851         Express, released in November 2010.
61853 2010-12-04  Bruno Haible  <bruno@clisp.org>
61855         nproc: Relax license.
61856         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
61857         and Paul Eggert.
61858         Requested by Ludovic Courtès <ludo@gnu.org>.
61860 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61862         utimecmp: fine-grained src to nearby coarse-grained dest
61864         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
61865         and the source is on a file system with higher-resolution time
61866         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
61867         not work, and the time stamps are close together, the algorithm to
61868         determine the exact resolution from the read-back mtime was buggy:
61869         it had a "!=" where it should have had an "==".  This bug has been
61870         in the code ever since it was introduced to gnulib.
61871         Problem reported by Dan Jacobson in
61872         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
61874 2010-11-30  Bruno Haible  <bruno@clisp.org>
61876         strerror_r-posix: Fix autoconf test.
61877         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
61879 2010-11-28  Bruno Haible  <bruno@clisp.org>
61880             Paul Eggert  <eggert@cs.ucla.edu>
61882         Tests for module 'getdomainname'.
61883         * modules/getdomainname-tests: New file.
61884         * tests/test-getdomainname.c: New file, based on
61885         tests/test-gethostname.c.
61887 2010-11-28  Bruno Haible  <bruno@clisp.org>
61888             Paul Eggert  <eggert@cs.ucla.edu>
61890         getdomainname: Use the system function when possible.
61891         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
61892         (getdomainname): Replace if needed. Provide the declaration if it is
61893         missing. Don't use _GL_CXXALIAS_SYS_CAST.
61894         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
61895         (getdomainname): When the system has getdomainname, call the system
61896         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
61897         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
61898         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
61899         found in libnsl. Look for the declaration also in <netdb.h>. Replace
61900         the function if its second argument is of type 'int' or if it is found
61901         in libnsl.
61902         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
61903         <sys/systeminfo.h> and sysinfo().
61904         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
61905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61906         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
61907         HAVE_GETDOMAINNAME.
61908         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
61909         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
61910         * doc/glibc-functions/getdomainname.texi: Document the problems with
61911         the getdomainname declaration.
61913 2010-11-28  Bruno Haible  <bruno@clisp.org>
61915         sys_socket: Ensure ss_family field on AIX.
61916         * lib/sys_socket.in.h (ss_family): New macro definition.
61917         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
61918         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
61919         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
61920         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
61921         * modules/sys_socket (Makefile.am): Substitute
61922         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
61923         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
61925 2010-11-27  Bruno Haible  <bruno@clisp.org>
61927         readline: Improve configure output.
61928         * m4/readline.m4 (gl_FUNC_READLINE): Make the
61929         "checking for readline..." result understandable.
61931 2010-11-27  Bruno Haible  <bruno@clisp.org>
61933         *printf-posix: Detect a bug on Solaris 10/x86.
61934         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
61935         for floating-point output.
61936         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
61937         directive.
61938         * tests/test-snprintf-posix.h (test_function): Likewise.
61939         * tests/test-sprintf-posix.h (test_function): Likewise.
61940         * tests/test-vasprintf-posix.c (test_function): Likewise.
61941         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
61942         * doc/posix-functions/printf.texi: Likewise.
61943         * doc/posix-functions/snprintf.texi: Likewise.
61944         * doc/posix-functions/sprintf.texi: Likewise.
61945         * doc/posix-functions/vfprintf.texi: Likewise.
61946         * doc/posix-functions/vprintf.texi: Likewise.
61947         * doc/posix-functions/vsnprintf.texi: Likewise.
61948         * doc/posix-functions/vsprintf.texi: Likewise.
61949         * doc/glibc-functions/obstack_printf.texi: Likewise.
61950         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
61952 2010-11-27  Bruno Haible  <bruno@clisp.org>
61954         Fix link error when module libunistring-optional is in use.
61955         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
61956         * modules/striconveha-tests (Makefile.am): Likewise.
61958 2010-11-27  Bruno Haible  <bruno@clisp.org>
61960         regex: Mention link dependencies.
61961         * modules/regex (Link): New section.
61962         * modules/rpmatch (Link): Likewise.
61963         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
61965 2010-11-27  Bruno Haible  <bruno@clisp.org>
61967         ftoastr: Fix compilation error on Solaris.
61968         * lib/ftoastr.c: Include <config.h>.
61970 2010-11-27  Bruno Haible  <bruno@clisp.org>
61972         getloadavg: Update documentation.
61973         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
61975 2010-11-27  Bruno Haible  <bruno@clisp.org>
61977         sys_socket: Fix test whether the functions are declared.
61978         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
61979         not <sys/select.h>.
61981 2010-11-27  Bruno Haible  <bruno@clisp.org>
61983         getpass: Make sure to get system declaration on some platforms.
61984         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
61985         gl_USE_SYSTEM_EXTENSIONS.
61986         * modules/getpass (Depends-on): Add extensions.
61988 2010-11-26  Bruno Haible  <bruno@clisp.org>
61990         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
61991         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
61992         'iconv' module is present.
61993         (ICONV_CONST): New macro.
61994         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
61995         ICONV_CONST.
61996         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
61997         set ICONV_CONST.
61998         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
61999         here.
62000         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62001         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62002         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62003         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62004         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62005         present.
62007 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62009         ftoastr: comment fix
62010         * lib/ftoastr.c: "little" -> "little or no" in comment
62012 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62014         stdint: port to GCC 4.3 + OSX + Octave
62015         On this platform, stdint.h is buggy and defines int64_t to long
62016         long int.  The replacement defined it to long int, causing
62017         problems with C++ style name mangling.  Instead, trust the system
62018         definition if INT64_MAX is defined, and likewise for the unsigned
62019         variant.   Problem reported by Jarno Rajahalme in
62020         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62021         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62022         and don't mess with int64_t and INT64_MAX in this case.
62023         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62025 2010-11-24  Bruno Haible  <bruno@clisp.org>
62027         doc: Corrections regarding MacOS X 10.4 and 10.5.
62028         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62029         MacOS X.
62030         Reported by Simon Josefsson.
62032 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62034         Uninstall ".bin" files installed by relocwrapper.
62035         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62036         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62037         unless it is already there.
62039 2010-11-21  Bruno Haible  <bruno@clisp.org>
62041         Update for NetBSD 5.0.
62042         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62043         NetBSD; the test fails on NetBSD 5.0.
62044         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62045         about NetBSD.
62047 2010-11-21  Bruno Haible  <bruno@clisp.org>
62049         Update for HP-UX 11.23 and HP-UX 11.31.
62050         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62051         HP-UX.
62053 2010-11-21  Bruno Haible  <bruno@clisp.org>
62055         Update for MacOS X 10.5.
62056         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62057         MacOS X; the test fails on MacOS X 10.5.8.
62058         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62059         about MacOS X.
62061 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62063         bootstrap: add bootstrap_sync option.
62064         See discussion at
62065         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62066         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62067         * build-aux/bootstrap: Accept --bootstrap-sync to update
62068         bootstrap if it is not identical to the local gnulib's
62069         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62070         enable this by default.  Accept --no-bootstrap-sync to disable
62071         it.
62073 2010-11-20  Bruno Haible  <bruno@clisp.org>
62075         Ensure that <features.h> is included before __GLIBC__ is tested.
62076         * lib/printf-parse.h: Include <features.h>.
62077         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62078         Reported by Mike Frysinger <vapier@gentoo.org>.
62080         Ensure that <features.h> is included before __GLIBC__ is tested.
62081         * lib/wchar.in.h: Include <features.h>.
62082         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62083         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62084         Reported by Mike Frysinger <vapier@gentoo.org>.
62086         Ensure that <features.h> is included before __GLIBC__ is tested.
62087         * lib/arpa_inet.in.h: Include <features.h>.
62088         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62089         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62090         Reported by Mike Frysinger <vapier@gentoo.org>.
62092         Ensure that <features.h> is included before __GLIBC__ is tested.
62093         * build-aux/link-warning.h: Include <features.h>.
62094         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62095         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62096         Reported by Mike Frysinger <vapier@gentoo.org>.
62098         Ensure that <features.h> is included before __GLIBC__ is tested.
62099         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62100         Reported by Mike Frysinger <vapier@gentoo.org>.
62102 2010-11-20  Bruno Haible  <bruno@clisp.org>
62104         memmem: Fix autoconf test.
62105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62107 2010-11-20  Bruno Haible  <bruno@clisp.org>
62109         Port to uClibc.
62110         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62111         * lib/fcntl.in.h: Likewise.
62112         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62113         * lib/mbrtowc.c (mbrtowc): Likewise.
62114         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62115         * lib/strerror_r.c: Likewise.
62116         * lib/unistr/u8-strnlen.c: Likewise.
62117         * lib/vasnprintf.c (decimal_point_char): Likewise.
62118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62119         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62121         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62122         * tests/test-sigaction.c (handler, main): Likewise.
62123         * lib/freading.h: Treat uClibc like a non-glibc platform.
62124         * lib/freading.c: Likewise.
62125         * lib/gettext.h: Likewise.
62126         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62127         Likewise.
62128         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62129         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62130         * lib/propername.c (proper_name_utf8): Likewise.
62131         * lib/spawn.in.h: Likewise.
62132         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62133         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62134         mem_cd_iconveh_internal): Likewise.
62135         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62136         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62137         strstr, strcasestr): Likewise.
62138         * lib/unicodeio.c (unicode_to_mb): Likewise.
62139         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62140         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62141         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62142         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62143         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62144         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62145         * lib/unistr/u8-stpncpy.c: Likewise.
62146         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62147         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62148         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62149         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62150         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62151         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62152         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62155         Likewise.
62156         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62157         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62158         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62161         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62162         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62163         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62164         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62165         * tests/test-striconveha.c (main): Likewise.
62166         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62167         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62168         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62169         * doc/posix-functions/getline.texi: Likewise.
62170         Reported by Mike Frysinger <vapier@gentoo.org>.
62172 2010-11-20  Bruno Haible  <bruno@clisp.org>
62174         nproc: Fix condition.
62175         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62176         HAVE_PTHREAD_AFFINITY_NP.
62178 2010-11-20  Bruno Haible  <bruno@clisp.org>
62180         Fix a comment.
62181         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62183 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62185         ftoastr: don't assume snprintf
62186         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62187         Implement a subset of snprintf here, by using sprintf safely.
62188         * modules/ftoastr (Depends-on): Remove snprintf.
62190 2010-11-19  Jim Meyering  <meyering@redhat.com>
62192         test-rename.h: fix compilation failure
62193         * tests/test-rename.h (test_rename): Add omitted "}".
62195 2010-11-17  Jim Meyering  <meyering@redhat.com>
62197         maint.mk: add a URL discussing the no-@acronym policy
62198         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62200 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62202         ftoastr: depend on snprintf, improve comments
62203         * lib/ftoastr.c: Also mention Loitsch's draft.
62204         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62205         needed in the current implementation, but it might simplify
62206         speeding up the code later.
62207         * modules/ftoastr: Depend on snprintf; this improves portability.
62208         Suggested by Bruno Haible in the same email.
62210         ftoastr: port to hosts lacking strtof and strtold
62211         Problem reported by Bruno Haible in
62212         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
62213         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
62214         environment and strtold (and presumably strtof) are not available.
62215         * modules/ftoastr (Files): Add m4/c-strtod.m4.
62216         (configure.ac): Require gl_C99_STRTOLD.
62218 2010-11-18  Bruno Haible  <bruno@clisp.org>
62220         c-strtold: Avoid link error on AIX 7.
62221         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
62222         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
62223         (gl_C_STRTOLD): Test whether strtold_l exists.
62224         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62226 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62228         intprops: new macro INT_BITS_STRLEN_BOUND
62229         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
62230         ftoastr.h.  This exposes an internal of intprops.h that was formerly
62231         not exposed.  Also, it uses a slightly tighter bound than before;
62232         though this makes no practical difference, we might as well be as
62233         tight as we easily can.
62235         ftoastr: new module, for lossless conversion of floats to short strings
62236         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
62237         * modules/ftoastr: New files.
62239 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62241         bootstrap: port to Solaris sed
62242         * build-aux/bootstrap (get_version): Port to Solaris sed.
62243         See Ralf Wildenhues's note in
62244         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
62246 2010-11-14  Jim Meyering  <meyering@redhat.com>
62248         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62249         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62250         and move definition closer to sole use.
62252 2010-11-13  Jim Meyering  <meyering@redhat.com>
62254         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62255         Now we require at least autoconf-2.59, which means the work-around
62256         is no longer needed.
62257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62258         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62259         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62260         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62261         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62263 2010-11-13  Bruno Haible  <bruno@clisp.org>
62265         rename, renameat: Avoid test failures at NFS mounted locations.
62266         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62267         functions.
62268         (test_rename): Use assert_nonexistent.
62269         * tests/test-rename.c: Include <dirent.h>.
62270         * tests/test-renameat.c: Likewise.
62271         Reported by Gary V. Vaughan <gary@gnu.org>.
62273         rename, renameat: Document Linux bug with NFS
62274         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62275         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62276         * doc/posix-functions/renameat.texi: Likewise.
62277         Suggested by Eric Blake.
62279 2010-11-13  Bruno Haible  <bruno@clisp.org>
62281         rename test: Add comments.
62282         * tests/test-rename.h (test_rename): Add structure and comments.
62284 2010-11-13  Eric Blake  <eblake@redhat.com>
62286         maintainer-makefile: cover a few more files
62287         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62288         scripts generated within C files, for libvirt.
62290 2010-11-13  Bruno Haible  <bruno@clisp.org>
62292         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62293         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62294         character, return the number of bytes that belong together, not always
62295         1.
62296         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62297         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62298         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62299         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62300         number of bytes of an invalid character.
62301         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62302         (main): Invoke it.
62303         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62304         results.
62305         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62306         malformed byte sequences.
62307         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62308         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62309         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62310         Reported by Ben Pfaff and Paolo Bonzini.
62312 2010-11-13  Bruno Haible  <bruno@clisp.org>
62314         openat: Work around glibc bug with fchownat() and empty file names.
62315         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62316         (gl_FUNC_FCHOWNAT): Invoke it.
62317         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62318         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62319         Reported by Gary V. Vaughan <gary@gnu.org>.
62321 2010-11-13  Bruno Haible  <bruno@clisp.org>
62323         openat: Ensure autoconf macro ordering.
62324         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62325         gl_USE_SYSTEM_EXTENSIONS.
62326         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62328 2010-11-13  Bruno Haible  <bruno@clisp.org>
62330         Update comments.
62331         * lib/unistr/u8-check.c: Update file name in comments.
62332         * lib/unistr/u8-mblen.c: Likewise.
62333         * lib/unistr/u8-prev.c: Likewise.
62334         * lib/unistr/u8-strmblen.c: Likewise.
62335         * lib/unistr/u8-strmbtouc.c: Likewise.
62337 2010-11-13  Jim Meyering  <meyering@redhat.com>
62339         tests: avoid test failure on Solaris 10 due to lack of PATH export
62340         * tests/test-update-copyright.sh: Don't forget to export PATH.
62342         init.sh: ensure that IFS is defined, just in case...
62343         * tests/init.sh (setup_): Ensure that IFS is defined,
62344         so that saving and restoring it works as expected.  This
62345         appears to be useful at least for an old version of dash
62346         from a long time ago (RH 6).  See here for details:
62347         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62349         maint.mk: tighten "test a == b" check
62350         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62351         test to files that contain something like #!/bin/sh.
62352         Without this, coreutils would get two false positives in
62353         the comments of C source files.
62355 2010-11-12  Eric Blake  <eblake@redhat.com>
62357         bootstrap: fix typo in previous attempt
62358         * build-aux/bootstrap (buildreq): Correct the grouping.
62359         Reported by Paul Eggert.
62361         maintainer-makefile: prohibit test x == x
62362         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62363         Based on a report by Matthias Bolte.
62365         bootstrap: allow FreeBSD gzip
62366         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62367         which has no '.' and goes to stderr.
62368         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62369         Reported by Matthias Bolte.
62371         maintainer-makefile: check for i18n setup
62372         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62373         will likely work.
62375 2010-11-12  Bruno Haible  <bruno@clisp.org>
62377         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62378         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62379         * lib/nanosleep.c (nanosleep): Likewise.
62381 2010-11-11  Bruno Haible  <bruno@clisp.org>
62383         fcntl-h: Fix for use of C++ on glibc systems.
62384         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62385         also on glibc systems in C++ mode.
62386         Reported by Gary V. Vaughan <gary@gnu.org>.
62388 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62390         mknod: avoid false failure with dash
62391         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
62393 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62395         unlink: Fix "is it should" typo in diagnostic.
62396         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
62397         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
62399 2010-11-11  Bruno Haible  <bruno@clisp.org>
62401         Tests for module 'strerror_r-posix'.
62402         * modules/strerror_r-posix-tests: New file.
62403         * tests/test-strerror_r.c: New file.
62404         * tests/test-string-c++.cc: Check the signature of strerror_r.
62406         New module 'strerror_r-posix'.
62407         * lib/string.in.h (strerror_r): New declaration.
62408         * lib/strerror_r.c: New file.
62409         * m4/strerror_r.m4: New file.
62410         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
62411         of strerror_r.
62412         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
62413         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62414         * modules/strerror_r-posix: New file.
62415         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
62416         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62417         * doc/posix-functions/strerror_r.texi: Mention the new module and the
62418         portability problems.
62420 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
62422         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
62423         line is also considered for output. Quoted function name in shell
62424         command, so temporary files for functions like MyClass::operator()
62425         are removed correctly without errors.
62427 2010-11-09  Bruno Haible  <bruno@clisp.org>
62429         * doc/posix-functions/strerror.texi: List more failing platforms.
62431         * doc/posix-functions/strerror.texi: Add a comment.
62433 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62435         fdopendir: fix bug on MacOS X when low on file descriptors
62437         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
62438         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
62439         All callers changed.
62440         (fdopendir): Invoke save_cwd at the top level, not after using
62441         multiple dup() calls to use up file descriptors.  Then retry
62442         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
62443         less than the maximum number of open file descriptors, because
62444         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
62445         on Mac OS X 10.6.4 for tar 1.24
62446         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
62447         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
62448         and for tar 1.25
62449         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
62451 2010-11-07  Bruno Haible  <bruno@clisp.org>
62453         vasnprintf: Support I flag on glibc systems.
62454         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
62455         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
62456         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
62457         snprintf function.
62458         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
62459         glibc systems.
62460         * tests/test-vasnprintf-posix3.c: New file.
62461         * modules/vasnprintf-posix-tests (Files): Add it.
62462         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
62464 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62466         [html] Fix copy/paste bug: Use unique name for compiler warnings.
62467         * MODULES.html.sh: For compiler warnings, use name
62468         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
62470 2010-11-05  Eric Blake  <eblake@redhat.com>
62472         ceil, floor: avoid spurious failure with icc
62473         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
62474         [denormals-as-zero] when optimizing without -mieee-fp option.
62475         * tests/test-floorf2.c (floorf_reference): Likewise.
62476         * tests/test-ceilf1.c (dummy): New function.
62477         (main): Use it to outsmart icc's optimization.
62478         * tests/test-floorf1.c (dummy, main): Likewise.
62480         tests: require working signbit
62481         * modules/ceilf-tests (Depends-on): Add signbit.
62482         * modules/ceill-tests (Depends-on): Likewise.
62483         * modules/floorf-tests (Depends-on): Likewise.
62484         * modules/floorl-tests (Depends-on): Likewise.
62485         * modules/round-tests (Depends-on): Likewise.
62486         * modules/roundf-tests (Depends-on): Likewise.
62487         * modules/roundl-tests (Depends-on): Likewise.
62488         * modules/trunc-tests (Depends-on): Likewise.
62489         * modules/truncf-tests (Depends-on): Likewise.
62490         * modules/truncl-tests (Depends-on): Likewise.
62492         strtod: work around icc bug
62493         * lib/strtod.c (minus_zero): Define to working value.
62494         (strtod): Use it to avoid icc bug.
62496         copysign: enhance tests
62497         * modules/copysign-tests (Files): Add minus-zero.h.
62498         * tests/test-copysign.c (main): Also test zeros.
62500 2010-11-04  Eric Blake  <eblake@redhat.com>
62502         ceil, floor, round, trunc: enhance tests of -0
62503         * tests/test-ceilf1.c (main): Ensure correct sign of result.
62504         * tests/test-ceill.c (main): Likewise.
62505         * tests/test-floorf1.c (main): Likewise.
62506         * tests/test-floorl.c (main): Likewise.
62507         * tests/test-round1.c (main): Likewise.
62508         * tests/test-roundf1.c (main): Likewise.
62509         * tests/test-roundl.c (main): Likewise.
62510         * tests/test-trunc1.c (main): Likewise.
62511         * tests/test-truncf1.c (main): Likewise.
62512         * tests/test-truncl.c (main): Likewise.
62514 2010-11-04  Eric Blake  <eblake@redhat.com>
62516         frexp, tests: work around ICC bug with -zero
62517         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
62518         works with more compilers.
62519         * tests/minus-zero.h: New file.
62520         * modules/ceilf-tests (Files): Include it.
62521         * modules/ceill-tests (Files): Likewise.
62522         * modules/floorf-tests (Files): Likewise.
62523         * modules/floorl-tests (Files): Likewise.
62524         * modules/frexp-nolibm-tests (Files): Likewise.
62525         * modules/frexp-tests (Files): Likewise.
62526         * modules/frexpl-nolibm-tests (Files): Likewise.
62527         * modules/frexpl-tests (Files): Likewise.
62528         * modules/isnan-tests (Files): Likewise.
62529         * modules/isnand-nolibm-tests (Files): Likewise.
62530         * modules/isnand-tests (Files): Likewise.
62531         * modules/isnanf-nolibm-tests (Files): Likewise.
62532         * modules/isnanf-tests (Files): Likewise.
62533         * modules/isnanl-nolibm-tests (Files): Likewise.
62534         * modules/isnanl-tests (Files): Likewise.
62535         * modules/round-tests (Files): Likewise.
62536         * modules/roundf-tests (Files): Likewise.
62537         * modules/roundl-tests (Files): Likewise.
62538         * modules/ldexpl-tests (Files): Likewise.
62539         * modules/signbit-tests (Files): Likewise.
62540         * modules/snprintf-posix-tests (Files): Likewise.
62541         * modules/sprintf-posix-tests (Files): Likewise.
62542         * modules/strtod-tests (Files): Likewise.
62543         * modules/trunc-tests (Files): Likewise.
62544         * modules/truncf-tests (Files): Likewise.
62545         * modules/truncl-tests (Files): Likewise.
62546         * modules/vsnprintf-posix-tests (Files): Likewise.
62547         * modules/vsprintf-posix-tests (Files): Likewise.
62548         * modules/vasnprintf-posix-tests (Files): Likewise.
62549         * modules/vasprintf-posix-tests (Files): Likewise.
62550         * tests/test-ceilf1.c (main): Use it.
62551         * tests/test-ceill.c (main): Likewise.
62552         * tests/test-floorf1.c (main): Likewise.
62553         * tests/test-floorl.c (main): Likewise.
62554         * tests/test-frexp.c (main): Likewise.
62555         * tests/test-frexpl.c (main): Likewise.
62556         * tests/test-isnan.c (main): Likewise.
62557         * tests/test-isnand.h (main): Likewise.
62558         * tests/test-isnanf.h (main): Likewise.
62559         * tests/test-isnanl.h (main): Likewise.
62560         * tests/test-ldexpl.c (main): Likewise.
62561         * tests/test-round.c (main): Likewise.
62562         * tests/test-roundf.c (main): Likewise.
62563         * tests/test-roundl.c (main): Likewise.
62564         * tests/test-signbit.c (test_signbitf, test_signbitd)
62565         (test_signbitl): Likewise.
62566         * tests/test-snprintf-posix.h (test_function): Likewise.
62567         * tests/test-sprintf-posix.h (test_function): Likewise.
62568         * tests/test-strtod.c (main): Likewise.
62569         * tests/test-trunc1.c (main): Likewise.
62570         * tests/test-truncf1.c (main): Likewise.
62571         * tests/test-truncl.c (main): Likewise.
62573         isnanl: work around icc bug
62574         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
62576 2010-11-03  Eric Blake  <eblake@redhat.com>
62578         tests: fix compiler warnings
62579         * tests/test-getopt.h (test_getopt): Fix condition.
62580         * tests/test-getopt_long.h (test_getopt_long): Likewise.
62581         * tests/test-pipe2.c (main): Likewise.
62582         * tests/test-quotearg-simple.c (main): Avoid icc warning.
62584         utimens: fix broken m4 test
62585         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
62587 2010-10-28  Bruno Haible  <bruno@clisp.org>
62589         posix_spawn*, getdtablesize: Relax license.
62590         * modules/posix_spawn (License): Change to LGPLv2+.
62591         * modules/posix_spawnp (License): Likewise.
62592         * modules/posix_spawn-internal (License): Likewise.
62593         * modules/posix_spawnattr_init (License): Likewise.
62594         * modules/posix_spawnattr_getflags (License): Likewise.
62595         * modules/posix_spawnattr_setflags (License): Likewise.
62596         * modules/posix_spawnattr_getpgroup (License): Likewise.
62597         * modules/posix_spawnattr_setpgroup (License): Likewise.
62598         * modules/posix_spawnattr_getschedparam (License): Likewise.
62599         * modules/posix_spawnattr_setschedparam (License): Likewise.
62600         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
62601         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
62602         * modules/posix_spawnattr_getsigdefault (License): Likewise.
62603         * modules/posix_spawnattr_setsigdefault (License): Likewise.
62604         * modules/posix_spawnattr_getsigmask (License): Likewise.
62605         * modules/posix_spawnattr_setsigmask (License): Likewise.
62606         * modules/posix_spawnattr_destroy (License): Likewise.
62607         * modules/posix_spawn_file_actions_init (License): Likewise.
62608         * modules/posix_spawn_file_actions_addclose (License): Likewise.
62609         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
62610         * modules/posix_spawn_file_actions_addopen (License): Likewise.
62611         * modules/posix_spawn_file_actions_destroy (License): Likewise.
62612         * modules/getdtablesize (License): Likewise.
62613         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
62615 2010-10-26  Bruno Haible  <bruno@clisp.org>
62617         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
62618         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
62619         Cygwin and mingw.
62620         Suggested by Eric Blake.
62622 2010-10-26  Bruno Haible  <bruno@clisp.org>
62624         stdio: Work around compilation error due to renameat() on Solaris 10.
62625         * lib/stdio.in.h: Include <unistd.h> on Solaris.
62626         * lib/renameat.c: Don't include <unistd.h> here.
62627         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
62628         Reported by Paul Eggert and Eric Blake.
62630 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62632         renameat: port to Solaris 10, which declares renameat in unistd.h
62634         * lib/renameat.c: Include unistd.h before stdio.h, because
62635         Solaris 10 declares renameat in unistd.h.  Problem encountered
62636         when building GNU tar 1.24 on Solaris 10.
62638 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62640         fdopendir: fix C89 compilation
62641         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
62642         compilers.
62644 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
62646         inttostr: simplify by removing unnecessary redundancy
62647         * lib/anytostr.c: Don't include verify.h.
62648         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
62649         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
62650         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
62651         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
62652         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
62653         Likewise.
62654         * modules/inttostr (Depends-on): Remove 'verify'.
62656 2010-10-23  Bruno Haible  <bruno@clisp.org>
62658         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
62659         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
62660         Reported by Eric Blake.
62662 2010-10-23  Bruno Haible  <bruno@clisp.org>
62664         Tests: Fix LOCALE_JA on MirBSD 10.
62665         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
62666         to an UTF-8 locale.
62667         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
62668         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62669         Reported by Eric Blake.
62671 2010-10-21  Bruno Haible  <bruno@clisp.org>
62673         nl_langinfo test: Avoid test failure on NetBSD 5.
62674         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
62675         Reported by Eric Blake.
62677 2010-10-21  Eric Blake  <eblake@redhat.com>
62679         c-stack: work around libsigsegv 2.8 bug
62680         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
62681         overflow on at least PowerPC64.
62683 2010-10-17  Bruno Haible  <bruno@clisp.org>
62685         userspec: Drop redundant file.
62686         * modules/userspec (Files): Remove lib/inttostr.h.
62688 2010-10-17  Bruno Haible  <bruno@clisp.org>
62690         nl_langinfo tests: Silence some warnings.
62691         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
62692         Reported by Jim Meyering.
62694 2010-10-17  Bruno Haible  <bruno@clisp.org>
62696         Make use of GCC's attribute __alloc_size__.
62697         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
62698         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
62699         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
62700         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
62701         __alloc_size__.
62702         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
62703         Suggested by Jim Meyering.
62705 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
62707         bootstrap: anchor .gitignore entries.
62708         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
62709         with...
62710         (insert_vc_ignore): ... this new function, which prepends `/' to
62711         all .gitignore entries before passing them to
62712         insert_sorted_if_absent.
62714 2010-10-16  Bruno Haible  <bruno@clisp.org>
62716         nextafter: Fix configure check.
62717         * modules/nextafter (configure.ac): Correct expected prototype.
62719 2010-10-16  Bruno Haible  <bruno@clisp.org>
62721         termios: Update documentation.
62722         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
62724 2010-10-16  Bruno Haible  <bruno@clisp.org>
62726         tests: Make them compile with TinyCC.
62727         * tests/test-strstr.c (main): Remove parentheses around array
62728         initializer.
62730 2010-10-15  Eric Blake  <eblake@redhat.com>
62732         ignore-value: make header idempotent
62733         * lib/ignore-value.h: Add double-inclusion guards.
62734         Reported by Stefan Berger.
62736 2010-10-15  Jim Meyering  <meyering@redhat.com>
62738         GNUmakefile: handle "stable" target, not "major"
62739         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
62740         lists in maint.mk and announce-gen.  Without this, "make stable"
62741         would fail to ensure that $(VERSION) is up to date.
62743 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
62745         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
62746         & co.
62748 2010-10-14  Bruno Haible  <bruno@clisp.org>
62750         vasnprintf: Don't set errno to 0.
62751         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
62752         block that sets it to 0.
62753         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
62755 2010-10-14  Bruno Haible  <bruno@clisp.org>
62757         socketlib: Fix.
62758         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
62759         gl_PREREQ_SYS_H_WINSOCK2.
62760         Reported by Ian Beckwith <ianb@erislabs.net>.
62762 2010-10-13  Jim Meyering  <meyering@redhat.com>
62764         test-select-stdin.c: avoid warn_unused_result warnings
62765         * tests/test-select-stdin.c: Include "macros.h".
62766         ASSERT that read and fflush succeed.
62768 2010-10-13  Jim Meyering  <meyering@redhat.com>
62770         git-version-gen: do require git-VC'd files in cwd
62771         * build-aux/git-version-gen: Reject a git version string
62772         if there are no commits associated with the current directory.
62773         This avoids an unlikely false-positive (unrelated dir whose parent
62774         repository also contains a tag matching v*), as pointed out
62775         by Giuseppe Scrivano in
62776         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
62778 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62780         argv-iter: omit nonconforming declaration
62781         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
62782         enum arg_iter_err declaration, which doesn't conform to C99.
62783         Solaris 10 cc warns about this.
62785 2010-10-13  Eric Blake  <eblake@redhat.com>
62787         termios: fix compilation on mingw
62788         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
62789         (gl_TERMIOS_H): Adjust it on mingw.
62790         * modules/termios (Makefile.am): Substitute new key.
62791         * lib/termios.in.h (includes): Make include_next conditional.
62792         * doc/posix-headers/termios.texi (termios.h): Update
62793         documentation.
62794         Reported by Daniel P. Berrange.
62796 2010-10-13  Jim Meyering  <meyering@redhat.com>
62798         git-version-gen: don't require that .git/ be in the current dir
62799         * build-aux/git-version-gen: Adjust this script so that it works
62800         when run from any working directory beneath the top-level .git/-
62801         containing directory.  Inspired by a patch from Giuseppe Scrivano,
62802         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
62804         test-select: avoid warn_unused_result warnings
62805         * tests/test-select.c: Include "macros.h".
62806         ASSERT that each call to read, write, and pipe succeeds.
62807         While not technically required, also check each "close".
62808         * modules/select-tests (Files): Add tests/macros.h.
62810         test-symlinkat: remove declaration of unused local
62811         * tests/test-symlinkat.c (main): Remove unused local, "buf".
62813         test-inttostr: avoid shadowing warnings
62814         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
62815         and use malloc rather than the stack for the same reason as
62816         mentioned in the comment justifying the other allocation.
62818 2010-10-11  Bruno Haible  <bruno@clisp.org>
62820         stdlib: Allow multiple gnulib generated replacements to coexist.
62821         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
62822         Reported by Sam Steingold <sds@gnu.org>.
62824 2010-10-11  Jim Meyering  <meyering@redhat.com>
62826         fix a documentation typo
62827         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
62829 2010-10-11  Eric Blake  <eblake@redhat.com>
62831         futimens: work around Solaris 11 bug
62832         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
62833         * tests/test-futimens.h (test_futimens): Enhance, rather than
62834         weaken test.
62835         * doc/posix-functions/futimens.texi (futimens): Document the bug.
62837 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62839         Indentation.
62840         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
62841         higher-level operators more to the left.
62843 2010-10-11  Jim Meyering  <meyering@redhat.com>
62845         test-futimens: avoid unwarranted test failure on Solaris 5.11
62846         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
62847         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
62848         because it tries to dereference the NULL name argument.
62850 2010-10-11  Bruno Haible  <bruno@clisp.org>
62852         Indentation.
62853         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
62854         indentation.
62856 2010-10-11  Jim Meyering  <meyering@redhat.com>
62858         spawn.in.h: make indentation consistent with parentheses
62859         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
62860         Make indentation consistent with parentheses.
62862 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
62864         Fix mismatched parens in previous commit
62865         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
62866         parens.
62868 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62870         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
62872         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
62873         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
62874         * lib/malloca.c: Include "verify.h".
62875         (verify1): Remove, replacing with a verify call.
62876         * lib/relocwrapper.c (verify1): Likewise.
62877         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
62878         Likewise.
62879         * modules/malloca (Depends-on): Add 'verify'.
62880         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
62881         * modules/vasnprintf (Depends-on): Add 'verify'.
62882         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62883         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62884         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62885         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62886         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62887         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62888         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62890         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
62892         Formerly the style was sometimes 2*X - 1, because the C standard
62893         was wrongly thought to disallow ?: in integral constant expressions.
62894         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
62895         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
62896         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
62897         * lib/stdint.in.h (_verify_intmax_size): Likewise.
62898         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
62899         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
62900         verify that time_t cannot be floating.
62902 2010-10-08  Eric Blake  <eblake@redhat.com>
62904         time: enforce recent POSIX ruling that time_t is integral
62905         * lib/time.in.h (__time_t_must_be_integral): Detect any
62906         problematic systems, allowing the rest of gnulib to assume POSIX.
62908 2010-10-08  Jim Meyering  <meyering@redhat.com>
62910         fdopendir: fix a bug on systems lacking openat and /proc support
62911         OpenBSD 4.7 is one such system.  The most noticeable effect was
62912         failure of any application making nontrivial use of fts: rm, du,
62913         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
62914           ./rm: traversal failed: `a': Bad file descriptor
62915         Debugging that, you see that even though FD 6 was closed just
62916         prior to the opendir call in fd_clone_opendir, its resulting
62917         dir->dd_fd was 8, rather than the expected value of 6:
62919         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
62920         93                close (fd);
62921         (gdb) n
62922         94                dir = fd_clone_opendir (dupfd);
62923         (gdb) n
62924         95                saved_errno = errno;
62925         (gdb) p dir->dd_fd
62926         $11 = 8
62928         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
62929         The problem is that on OpenBSD, fd_clone_opendir has to resort
62930         to using the old-style save/restore CWD mechanism, due to its
62931         lack of openat/proc support, and *that* would steal the FD (6)
62932         that opendir was supposed to use.
62934         The fix is to squirrel away the desired FD so that save_cwd uses a
62935         different one, and then free the dest FD right before calling opendir.
62936         That guarantees opendir will use the required file descriptor.
62938         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
62940 2010-10-08  Bruno Haible  <bruno@clisp.org>
62942         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
62943         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
62945 2010-10-08  Bruno Haible  <bruno@clisp.org>
62947         nanosleep: Make replacement POSIX compliant.
62948         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
62949         is out of range.
62950         Reported by Jim Meyering.
62952 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62954         bootstrap: add hook for altering gnulib.mk, for Bison
62955         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
62956         the Bison bootstrapping process can rewrite file names and variables
62957         in this file before later parts of 'bootstrap' use the file.
62958         Bison wants to include lib/gnulib.mk from the top-level makefile,
62959         so it needs the file names in this file to be relative to the top
62960         level, not relative to lib; plus it needs variable names to be
62961         rewritten.
62962         (slurp): Use the new function.
62964         bootstrap: reformat for readability
62965         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
62967 2010-10-08  Eric Blake  <eblake@redhat.com>
62969         docs: update cygwin progress
62970         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
62971         1.7.7.
62972         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
62973         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
62974         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
62975         * doc/posix-functions/carg.texi (carg): Likewise.
62976         * doc/posix-functions/cargf.texi (cargf): Likewise.
62977         * doc/posix-functions/casin.texi (casin): Likewise.
62978         * doc/posix-functions/casinf.texi (casinf): Likewise.
62979         * doc/posix-functions/casinh.texi (casinh): Likewise.
62980         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
62981         * doc/posix-functions/catan.texi (catan): Likewise.
62982         * doc/posix-functions/catanf.texi (catanf): Likewise.
62983         * doc/posix-functions/catanh.texi (catanh): Likewise.
62984         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
62985         * doc/posix-functions/ccos.texi (ccos): Likewise.
62986         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
62987         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
62988         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
62989         * doc/posix-functions/cexp.texi (cexp): Likewise.
62990         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
62991         * doc/posix-functions/cimag.texi (cimag): Likewise.
62992         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
62993         * doc/posix-functions/clog.texi (clog): Likewise.
62994         * doc/posix-functions/clogf.texi (clogf): Likewise.
62995         * doc/posix-functions/conj.texi (conj): Likewise.
62996         * doc/posix-functions/conjf.texi (conjf): Likewise.
62997         * doc/posix-functions/cpow.texi (cpow): Likewise.
62998         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
62999         * doc/posix-functions/cproj.texi (cproj): Likewise.
63000         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63001         * doc/posix-functions/creal.texi (creal): Likewise.
63002         * doc/posix-functions/crealf.texi (crealf): Likewise.
63003         * doc/posix-functions/csin.texi (csin): Likewise.
63004         * doc/posix-functions/csinf.texi (csinf): Likewise.
63005         * doc/posix-functions/csinh.texi (csinh): Likewise.
63006         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63007         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63008         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63009         * doc/posix-functions/ctan.texi (ctan): Likewise.
63010         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63011         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63012         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63013         * doc/posix-headers/complex.texi (complex.h): Likewise.
63015 2010-10-07  Jim Meyering  <meyering@redhat.com>
63017         parse-datetime: avoid compilation failure on OpenBSD 4.7
63018         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63019         This works around a compilation failure on OpenBSD 4.7:
63020         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63022 2010-10-07  Eric Blake  <eblake@redhat.com>
63024         docs: update cygwin progress
63025         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63026         1.7.6.
63027         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63028         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63029         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63030         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63031         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63032         Likewise.
63033         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63034         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63035         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63036         Likewise.
63037         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63038         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63039         Likewise.
63040         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63041         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63042         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63043         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63044         Likewise.
63045         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63046         Likewise.
63047         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63049         docs: update parse-datetime history
63050         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63051         documentation of this function's history and alternatives.
63053         cygwin: use more robust version check
63054         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63055         exclude an eventual cygwin 1.9.1.
63056         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63058         (gl_FUNC_STRCASESTR): Likewise.
63059         Reported by Bruno Haible.
63061 2010-10-06  Bruno Haible  <bruno@clisp.org>
63063         string, sys_select: Avoid #including large headers unless necessary.
63064         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63065         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63066         OSF/1, BeOS, Haiku.
63067         Reported by Jim Meyering.
63069 2010-10-05  Eric Blake  <eblake@redhat.com>
63071         memmem, strstr, strcasestr: fix bug with long periodic needle
63072         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63073         periodic needle having false positive.
63074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63075         and cygwin 1.7.7.
63076         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63077         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63078         (gl_FUNC_STRCASESTR): Likewise.
63079         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63080         * tests/test-memmem.c (main): Expose the bug.
63081         * tests/test-strcasestr.c (main): Likewise.
63082         * tests/test-strstr.c (main): Likewise.
63083         * tests/test-c-strcasestr.c (main): Likewise.
63084         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63085         * doc/posix-functions/strstr.texi (strstr): Likewise.
63086         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63087         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63089 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63091         parse-datetime: do some more renaming
63092         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63093         parse_datetime, not get_date.  Mention the renaming.
63094         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63095         in comments.
63096         * m4/bison.m4: Likewise.
63098 2010-10-05  Eric Blake  <eblake@redhat.com>
63100         parse-datetime: better name than get_date
63101         * NEWS: Reword the deprecation notice.
63102         * modules/get_date: Rename to modules/parse-datetime.
63103         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63104         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63105         * lib/get_date.y: Rename to lib/parse-datetime.y.
63106         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63107         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63108         * doc/getdate.texi: Provide fallback wrapper.
63109         * lib/getdate.h: Move guts, and wrap...
63110         * lib/parse-datetime.h: ...new file.
63111         * lib/parse-datetime.y (get_date): Rename...
63112         (parse_datetime): ...to this.
63113         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63114         (gl_PARSE_DATETIME): ...to this.
63115         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63116         documentation.
63117         * modules/getdate (Files): Provide fallback docs and header.
63118         (Notice, Depends-on): Update references.
63119         * tests/test-parse-datetime.c: Likewise.
63120         * DEPENDENCIES: Likewise.
63121         * MODULES.html.sh (Date and time <time.h>): Likewise.
63122         * doc/parse-datetime.texi (Date input formats)
63123         (Authors of parse_datetime): Likewise.
63124         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63125         (Include): Likewise.
63126         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63127         * gnulib-tool: Likewise.
63128         * m4/bison.m4 (gl_BISON): Likewise.
63129         Suggested by Bruno Haible.
63131 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63133         more ports to Solaris tr, which needs [] around ranges
63134         * gnulib-tool: Solaris tr needs [] around ranges.
63135         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63136         * tests/test-pipe-filter-gi1.c (main): Likewise.
63137         * tests/test-pipe-filter-ii1.c (main): Likewise.
63139 2010-10-05  Eric Blake  <eblake@redhat.com>
63141         bootstrap: fix Solaris regression
63142         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63143         around ranges.
63144         Reported by Pádraig Brady.
63146         bootstrap: work with pkg-config
63147         * build-aux/bootstrap (check_versions): Also transliterate - in
63148         prerequisite name.
63149         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63150         prerequisites that were already found, to avoid confusion.
63151         Reported by Justin Clift.
63153         faccessat: remove unused wrappers
63154         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63155         presence of these wrappers dragged in -lgen on Solaris.
63156         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63158 2010-10-05  Jim Meyering  <meyering@redhat.com>
63160         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63161         * Makefile (sc_pragma_columns): New syntax-check rule.
63163 2010-10-04  Bruno Haible  <bruno@clisp.org>
63165         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63166         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63167         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63168         Reported by Bruce Korb and Eric Blake.
63170 2010-10-04  Bruno Haible  <bruno@clisp.org>
63172         threadlib: Make option --with-libpth-prefix work.
63173         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63174         use $LIBPTH, not just -lpth.
63176 2010-10-04  Bruno Haible  <bruno@clisp.org>
63178         Avoid line length limitation from HP NonStop system header files.
63179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63180         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63181         * lib/ctype.in.h: Likewise.
63182         * lib/dirent.in.h: Likewise.
63183         * lib/errno.in.h: Likewise.
63184         * lib/fcntl.in.h: Likewise.
63185         * lib/float.in.h: Likewise.
63186         * lib/getopt.in.h: Likewise.
63187         * lib/iconv.in.h: Likewise.
63188         * lib/inttypes.in.h: Likewise.
63189         * lib/langinfo.in.h: Likewise.
63190         * lib/locale.in.h: Likewise.
63191         * lib/math.in.h: Likewise.
63192         * lib/netdb.in.h: Likewise.
63193         * lib/netinet_in.in.h: Likewise.
63194         * lib/poll.in.h: Likewise.
63195         * lib/pthread.in.h: Likewise.
63196         * lib/pty.in.h: Likewise.
63197         * lib/sched.in.h: Likewise.
63198         * lib/se-selinux.in.h: Likewise.
63199         * lib/search.in.h: Likewise.
63200         * lib/signal.in.h: Likewise.
63201         * lib/spawn.in.h: Likewise.
63202         * lib/stdarg.in.h: Likewise.
63203         * lib/stddef.in.h: Likewise.
63204         * lib/stdint.in.h: Likewise.
63205         * lib/stdio.in.h: Likewise.
63206         * lib/stdlib.in.h: Likewise.
63207         * lib/string.in.h: Likewise.
63208         * lib/strings.in.h: Likewise.
63209         * lib/sys_file.in.h: Likewise.
63210         * lib/sys_ioctl.in.h: Likewise.
63211         * lib/sys_select.in.h: Likewise.
63212         * lib/sys_socket.in.h: Likewise.
63213         * lib/sys_stat.in.h: Likewise.
63214         * lib/sys_time.in.h: Likewise.
63215         * lib/sys_times.in.h: Likewise.
63216         * lib/sys_utsname.in.h: Likewise.
63217         * lib/sys_wait.in.h: Likewise.
63218         * lib/sysexits.in.h: Likewise.
63219         * lib/termios.in.h: Likewise.
63220         * lib/time.in.h: Likewise.
63221         * lib/unistd.in.h: Likewise.
63222         * lib/wchar.in.h: Likewise.
63223         * lib/wctype.in.h: Likewise.
63224         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
63225         * modules/ctype (Makefile.am): Likewise.
63226         * modules/dirent (Makefile.am): Likewise.
63227         * modules/errno (Makefile.am): Likewise.
63228         * modules/fcntl-h (Makefile.am): Likewise.
63229         * modules/float (Makefile.am): Likewise.
63230         * modules/getopt-posix (Makefile.am): Likewise.
63231         * modules/iconv-h (Makefile.am): Likewise.
63232         * modules/inttypes (Makefile.am): Likewise.
63233         * modules/langinfo (Makefile.am): Likewise.
63234         * modules/locale (Makefile.am): Likewise.
63235         * modules/math (Makefile.am): Likewise.
63236         * modules/netdb (Makefile.am): Likewise.
63237         * modules/netinet_in (Makefile.am): Likewise.
63238         * modules/poll-h (Makefile.am): Likewise.
63239         * modules/pthread (Makefile.am): Likewise.
63240         * modules/pty (Makefile.am): Likewise.
63241         * modules/sched (Makefile.am): Likewise.
63242         * modules/search (Makefile.am): Likewise.
63243         * modules/selinux-h (Makefile.am): Likewise.
63244         * modules/signal (Makefile.am): Likewise.
63245         * modules/spawn (Makefile.am): Likewise.
63246         * modules/stdarg (Makefile.am): Likewise.
63247         * modules/stddef (Makefile.am): Likewise.
63248         * modules/stdint (Makefile.am): Likewise.
63249         * modules/stdio (Makefile.am): Likewise.
63250         * modules/stdlib (Makefile.am): Likewise.
63251         * modules/string (Makefile.am): Likewise.
63252         * modules/strings (Makefile.am): Likewise.
63253         * modules/sys_file (Makefile.am): Likewise.
63254         * modules/sys_ioctl (Makefile.am): Likewise.
63255         * modules/sys_select (Makefile.am): Likewise.
63256         * modules/sys_socket (Makefile.am): Likewise.
63257         * modules/sys_stat (Makefile.am): Likewise.
63258         * modules/sys_time (Makefile.am): Likewise.
63259         * modules/sys_times (Makefile.am): Likewise.
63260         * modules/sys_utsname (Makefile.am): Likewise.
63261         * modules/sys_wait (Makefile.am): Likewise.
63262         * modules/sysexits (Makefile.am): Likewise.
63263         * modules/termios (Makefile.am): Likewise.
63264         * modules/time (Makefile.am): Likewise.
63265         * modules/unistd (Makefile.am): Likewise.
63266         * modules/wchar (Makefile.am): Likewise.
63267         * modules/wctype (Makefile.am): Likewise.
63269 2010-10-04  Bruno Haible  <bruno@clisp.org>
63271         read-file tests: Avoid a test failure on NonStop Kernel.
63272         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63273         a regular file.
63274         Reported by Joachim Schmitz <schmitz@hp.com>.
63276 2010-10-03  Bruno Haible  <bruno@clisp.org>
63278         gnulib-tool: Fixes for --create-testdir with --libtool.
63279         * gnulib-tool (func_get_automake_snippet): Don't augment
63280         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63281         an executable.
63282         (func_create_testdir): Handle module 'alloca' like func_import.
63283         Reported by Bruce Korb <bruce.korb@gmail.com>.
63285 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63287         Avoid some lines longer than 80 characters.
63288         * lib/stdint.in.h: Break long comment lines.
63289         * lib/math.in.h: Likewise.
63290         (_GL_NUM_UINT_WORDS): New macro, for readability.
63291         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63292         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63293         * lib/stdlib.in.h: Likewise.
63294         * lib/spawn.in.h: Likewise.
63295         * lib/sys_socket.in.h: Update an URL.
63296         * lib/sys_stat.in.h: Break long line.
63298 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63300         Improve pmccabe2html.
63301         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63302         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63303         when the sources change. Remove the line in the HTML about "Used
63304         ranges" (which implied that there might be other unused ranges),
63305         rename "Resume" to "Summary" (easier to understand for more users).
63306         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63307         styles, and some unnecessary blank lines.
63309 2010-10-03  Bruno Haible  <bruno@clisp.org>
63310             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63312         acl: Add support for ACLs on NonStop Kernel.
63313         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63314         Check whether the function aclsort() exists.
63315         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63316         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63317         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63318         (acl_nontrivial [HAVE_ACLSORT]: New function.
63319         (file_has_acl): Implement for NonStop Kernel.
63320         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63321         (qset_acl): Implement for NonStop Kernel.
63322         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63323         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63324         (main): Implement for NonStop Kernel.
63325         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63326         Kernel. Handle this flavor.
63327         * tests/test-set-mode-acl.sh: Likewise.
63328         * tests/test-copy-acl.sh: Likewise.
63329         * tests/test-copy-file.sh: Likewise.
63331 2010-10-03  Bruno Haible  <bruno@clisp.org>
63333         Info about ACLs on NonStop Kernel.
63334         * doc/acl-resources.txt: Add info about NonStop Kernel.
63335         References by Joachim Schmitz <schmitz@hp.com>.
63337 2010-10-02  Bruno Haible  <bruno@clisp.org>
63339         Define missing EDQUOT on NonStop Kernel.
63340         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63341         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63342         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63343         missing.
63344         * doc/posix-headers/errno.texi: Mention the NSK bug.
63345         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63346         Reported by Joachim Schmitz <schmitz@hp.com>.
63348 2010-10-02  Bruno Haible  <bruno@clisp.org>
63350         Update doc for POSIX:2008.
63351         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63352         Update URL of POSIX specification.
63354 2010-10-02  Bruno Haible  <bruno@clisp.org>
63356         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63357         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63358         from gnulib, not from Automake.
63360 2010-10-02  Bruno Haible  <bruno@clisp.org>
63362         New module 'system-posix'.
63363         * modules/system-posix: New file.
63364         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63365         module is present.
63366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63367         GNULIB_SYSTEM_POSIX.
63368         * modules/stdlib (Depends-on): Remove sys_wait.
63369         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63370         * doc/posix-functions/system.texi: Mention the new module.
63371         * doc/posix-headers/stdlib.texi: Likewise.
63372         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63373         define test_sys_wait_macros to a no-op.
63374         Reported by Sam Steingold <sds@gnu.org>.
63376 2010-09-30  Bruno Haible  <bruno@clisp.org>
63378         More renaming from 'getdate' to 'get_date'.
63379         * doc/get_date.texi: Renamed from doc/getdate.texi.
63380         * modules/get_date (Files): Update.
63381         * MODULES.html.sh (Date and time <time.h>): Update.
63382         * DEPENDENCIES: Update.
63383         * gnulib-tool: Update comment.
63384         * m4/bison.m4 (gl_BISON): Likewise.
63385         * m4/get_date.m4 (gl_GET_DATE): Likewise.
63387 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
63389         bootstrap: support ACLOCAL_FLAGS during aclocal
63390         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
63391         can add additional -I dir for third-party .m4 files.
63393 2010-09-30  Eric Blake  <eblake@redhat.com>
63395         bootstrap: use glibtoolize on MacOS
63396         * build-aux/bootstrap (check_versions): Convert libtool into
63397         libtoolize.
63398         (tool search): Move libtool check earlier, and look for
63399         glibtoolize for MacOS.
63400         (gnulib_tool_options): Auto-add --libtool when appropriate.
63401         Reported by Justin Clift.
63403         poll: fix typo that broke test on MacOS
63404         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
63405         Reported by Justin Clift.
63407         getdate: rename to get_date
63408         Note: getdate.h is not renamed, to minimize client impact.
63409         * modules/getdate: Mark obsolete.  Move old contents...
63410         * modules/get_date: ...to new module name.
63411         * modules/getdate-tests: Move...
63412         * modules/get_date-tests: ...here.
63413         * m4/getdate.m4: Move...
63414         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
63415         * lib/getdate.y: Move...
63416         * lib/get_date.y: ...here.
63417         * tests/test-getdate.c: Move...
63418         * tests/test-get_date.c: ...here.
63419         * doc/posix-functions/getdate.texi (getdate): Update name.
63420         * NEWS: Mention the change.
63422 2010-09-29  Bruno Haible  <bruno@clisp.org>
63424         Separate the module 'waitpid' from the module 'sys_wait'.
63425         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
63426         present.
63427         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
63428         gl_MODULE_INDICATOR_FOR_TESTS.
63429         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
63430         * modules/sys_wait (Depends-on): Remove waitpid.
63431         (Makefile.am): Substitute GNULIB_WAITPID.
63432         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
63433         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
63434         signature only if the 'waitpid' module is present.
63435         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
63436         * NEWS: Mention the change.
63437         * modules/grantpt (Depends-on): Add waitpid.
63438         * modules/wait-process (Depends-on): Likewise.
63440 2010-09-29  Bruno Haible  <bruno@clisp.org>
63442         More tests for module 'sys_wait'.
63443         * modules/sys_wait-c++-tests: New file.
63444         * tests/test-sys_wait-c++.cc: New file.
63445         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
63446         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63448 2010-09-29  Bruno Haible  <bruno@clisp.org>
63450         New module 'waitpid'.
63451         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
63452         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
63453         Don't include <process.h>.
63454         (waitpid): Declare only, using modern idiom.
63455         * m4/waitpid.m4: New file.
63456         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
63457         * modules/waitpid: New file.
63458         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
63459         (Makefile.am): Update.
63460         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63462 2010-09-28  Bruno Haible  <bruno@clisp.org>
63464         poll: Assume ANSI C.
63465         * lib/poll.c (poll): Use an ANSI C declaration.
63467 2010-09-28  Bruno Haible  <bruno@clisp.org>
63469         poll-h: Create poll.h on all platforms.
63470         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
63471         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
63472         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
63473         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
63474         (gl_REPLACE_POLL_H): Don't set POLL_H.
63475         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
63476         * modules/poll-h (Depends-on): Add include_next.
63477         (Makefile.am): Create poll.h unconditionally. Substitute also
63478         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
63480 2010-09-28  Bruno Haible  <bruno@clisp.org>
63482         Tests for module 'poll-h'.
63483         * modules/poll-h-c++-tests: New file.
63484         * tests/test-poll-h-c++.cc: New file.
63486         Tests for module 'poll-h'.
63487         * modules/poll-h-tests: New file.
63488         * tests/test-poll-h.c: New file.
63490 2010-09-28  Bruno Haible  <bruno@clisp.org>
63492         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
63493         * modules/poll-h (Depends-on): Add 'extensions'.
63495 2010-09-28  Bruno Haible  <bruno@clisp.org>
63497         New module 'poll-h'.
63498         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
63499         (poll): Use modern idiom.
63500         * modules/poll-h: New file.
63501         * modules/poll (Files): Remove lib/poll.in.h.
63502         (Depends-on): Add poll-h.
63503         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
63504         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
63505         * m4/poll_h.m4: New file.
63506         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
63507         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
63508         and invoke gl_REPLACE_POLL_H.
63509         * lib/poll.c: Use common idiom.
63510         * tests/test-poll.c: Likewise.
63511         * doc/posix-headers/poll.texi: Mention the poll-h module.
63512         Suggested by Eric Blake.
63514 2010-09-26  Bruno Haible  <bruno@clisp.org>
63516         sys_wait: Implement WSTOPSIG.
63517         * lib/sys_wait.in.h (WSTOPSIG): New macro.
63518         Reported by Simon Josefsson.
63520 2010-09-26  Simon Josefsson  <simon@josefsson.org>
63522         stdlib, sys_wait: Avoid compilation error on mingw.
63523         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
63525 2010-09-26  Bruno Haible  <bruno@clisp.org>
63527         stdlib tests: Avoid code duplication.
63528         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
63529         * modules/sys_wait-tests (Files): Likewise.
63530         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
63531         * tests/test-stdlib.c: Include test-sys_wait.h.
63532         (main): Invoke test_sys_wait_macros.
63533         * tests/test-sys_wait.c: Include test-sys_wait.h.
63534         (main): Invoke test_sys_wait_macros.
63536 2010-09-25  Simon Josefsson  <simon@josefsson.org>
63538         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
63539         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
63540         sure Windows sockets are working before calling getaddrinfo.
63541         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63542         * doc/gnulib.texi (Windows sockets): Fix typo.
63544 2010-09-25  Bruno Haible  <bruno@clisp.org>
63546         Tests for module 'regex-quote'.
63547         * modules/regex-quote-tests: New file.
63548         * tests/test-regex-quote.c: New file.
63550         New module 'regex-quote'.
63551         * lib/regex-quote.h: New file.
63552         * lib/regex-quote.c: New file.
63553         * modules/regex-quote: New file.
63554         Suggested by Reuben Thomas <rrt@sc3d.org>.
63556 2010-09-24  Bruno Haible  <bruno@clisp.org>
63558         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
63559         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
63561 2010-09-23  Bruno Haible  <bruno@clisp.org>
63563         setenv: Relax license.
63564         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
63565         Blake.
63566         Requested by Eric Blake.
63568 2010-09-22  Bruno Haible  <bruno@clisp.org>
63570         termios: Relax license.
63571         * modules/termios (License): Change to LGPLv2+.
63572         Requested by Eric Blake.
63574 2010-09-22  Bruno Haible  <bruno@clisp.org>
63576         threadlib: Allow the package to change the default to 'no'.
63577         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
63578         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
63579         Reported by Paul Eggert.
63581 2010-09-22  Pádraig Brady  <P@draigbrady.com>
63582             Bruno Haible  <bruno@clisp.org>
63584         Fix endless loop in mbmemcasecoll.
63585         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
63586         byte.
63587         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
63589 2010-09-22  Bruno Haible  <bruno@clisp.org>
63591         Tests for module 'memcoll'.
63592         * modules/memcoll-tests: New file.
63593         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
63595         memcoll, xmemcoll: Clarify size vs. length.
63596         * modules/memcoll.c (memcoll0): Clarify specification.
63597         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
63598         passed to collate_error.
63600 2010-09-22  Bruno Haible  <bruno@clisp.org>
63602         Tests for module 'memcasecmp'.
63603         * modules/memcasecmp-tests: New file.
63604         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
63606 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63608         * lib/pthread.in.h: Add split double-inclusion guard, and include
63609         system <pthread.h> if there is one.  Use @@-style as in other
63610         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
63611         pthread.h doesn't.
63612         (pthread_mutexattr_destroy, pthread_mutexattr_init):
63613         (pthread_mutexattr_settype, pthread_mutex_trylock):
63614         New static inline functions, if there's no system <pthread.h>.
63615         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
63616         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
63617         Approximate with mutexes if the system lacks spinlocks, as in
63618         MacOS.
63619         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
63620         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
63621         @@-style.  Check for spinlocks separately.
63622         (gl_PTHREAD_DEFAULTS): New macro.
63623         * modules/pthread: Redo to use a more typical style for in.h files.
63625 2010-09-21  Eric Blake  <eblake@redhat.com>
63627         net_if: enhance tests
63628         * tests/test-net_if.c (main): Move signature checks earlier.
63629         Print failures to stderr.
63630         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
63631         Document the bug that we do not yet fix.
63633 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63635         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
63636         about gnulib, not GSS.
63638 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63640         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
63641         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
63642         for Emacs.
63643         * build-aux/pmccabe2html: Make Makefile.am example code more
63644         cut-and-paste friendly.
63646 2010-09-21  Simon Josefsson  <simon@josefsson.org>
63648         * tests/test-net_if.c: New file.
63649         * modules/net_if-tests: New file.
63651 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63653         pthread: add pthread_spin_destroy
63654         * lib/pthread.in.h (pthread_spin_destroy): New function.
63656 2010-09-19  Bruno Haible  <bruno@clisp.org>
63658         gnulib-tool: Fix --help output.
63659         * gnulib-tool (func_usage): Fix help message.
63660         Reported by Reuben Thomas <rrt@sc3d.org>.
63662 2010-09-18  Jim Meyering  <meyering@redhat.com>
63664         maint.mk: avoid unexpanded \n in two diagnostics
63665         * top/maint.mk (sc_prohibit_always_true_header_tests):
63666         Don't use a literal \n in a halt=... assignment.  It would not be
63667         expanded, and the two \n bytes would appear in the diagnostic output
63668         rather than the desired newline.  Use halt=$$(printf ... instead.
63669         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
63671 2010-09-18  Bruno Haible  <bruno@clisp.org>
63673         netinet_in: Doc tweak.
63674         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
63675         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63677 2010-09-18  Jim Meyering  <meyering@redhat.com>
63679         init.sh: correct an outdated comment
63680         * tests/init.sh (create_exe_shims_):  s/function/alias/
63682         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
63683         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
63684         a file named "*.exe" is removed between the glob expansion and the
63685         processing of that oddly named file.
63687 2010-09-17  Eric Blake  <eblake@redhat.com>
63689         mirbsd: add some more support
63690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
63691         in BSD family.
63692         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
63693         devices as OpenBSD.
63694         * m4/host-os.m4 (mirbsd): Add MirBSD.
63696         tests: fix unportable assumption on sys/wait.h
63697         * tests/test-sys_wait.c (main): Relax test.
63698         * tests/test-stdlib.c (main): Likewise.
63700         init.sh: accommodate directory with no .exes
63701         * tests/init.sh: Accomodate directory containing only scripts.
63703         tests: avoid compiler warning
63704         * tests/test-stdlib.c (main): Use the variable.
63706         fdutimens, fdutimensat: update signature, again
63707         * lib/utimens.h (gl_futimens): Delete, and move signature...
63708         (fdutimens): ...here.
63709         (fdutimensat): Rearrange signature.
63710         (lutimensat): Rename variable for clarity.
63711         * lib/fdutimensat.c (fdutimensat): Update signature.
63712         * lib/utimens.c (fdutimens): Likewise.
63713         (gl_futimens): Delete.
63714         (utimens, lutimens): Update callers.
63715         * lib/futimens.c (futimens): Likewise.
63716         * tests/test-fdutimensat.c: Likewise.
63717         * tests/test-utimens.c: Likewise.
63718         * tests/test-futimens.h: Update comment.
63719         * NEWS: Mention this.
63720         Suggested by Paul Eggert.
63722 2010-09-17  Bruno Haible  <bruno@clisp.org>
63724         Take over the maintenance of some older macros from Autoconf.
63725         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
63726         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
63727         GNU Autoconf.
63728         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
63729         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
63731 2010-09-17  Eric Blake  <eblake@redhat.com>
63733         fdutimensat: drop atflag validation
63734         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
63735         with valid fd, to close a race scenario where futimens is
63736         unsupported and FILE was replaced by a symlink.
63737         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
63738         accordingly.
63739         Suggested by Paul Eggert.
63741 2010-09-16  Bruno Haible  <bruno@clisp.org>
63743         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
63744         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
63746 2010-09-16  Bruno Haible  <bruno@clisp.org>
63748         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
63749         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
63750         login_tty exists.
63751         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63753 2010-09-16  Bruno Haible  <bruno@clisp.org>
63755         login_tty: Make the replacement code work on BSD systems.
63756         * lib/login_tty.c: Include <sys/ioctl.h>.
63757         (login_tty): Use ioctl TIOCSCTTY when available.
63758         * modules/login_tty (Depends-on): Add sys_ioctl.
63759         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63761 2010-09-16  Bruno Haible  <bruno@clisp.org>
63763         login_tty: Stricter unit test.
63764         * modules/login_tty-tests (Depends-on): Add tcgetsid.
63765         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
63766         and tcgetsid() after login_tty.
63767         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63769 2010-09-16  Bruno Haible  <bruno@clisp.org>
63771         New module 'tcgetsid'.
63772         * lib/tcgetsid.c: New file.
63773         * m4/tcgetsid.m4: New file.
63774         * modules/tcgetsid: New file.
63775         * modules/termios (Depends-on): Add c++defs, warn-on-use.
63776         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
63777         GNULIB_TCGETSID, HAVE_TCGETSID.
63778         * lib/termios.in.h: Include <sys/types.h>.
63779         (tcgetsid): New declaration.
63780         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
63781         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
63782         * doc/posix-functions/tcgetsid.texi: Mention the new module.
63783         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
63785 2010-09-16  Bruno Haible  <bruno@clisp.org>
63787         Tests for module 'termios'.
63788         * modules/termios-c++-tests: New file.
63789         * modules/termios-tests: New file.
63790         * tests/test-termios-c++.cc: New file.
63791         * tests/test-termios.c: New file.
63793         New module 'termios'.
63794         * modules/termios: New file.
63795         * lib/termios.in.h: New file.
63796         * m4/termios_h.m4: New file.
63797         * doc/posix-headers/termios.texi: Mention the new module.
63799 2010-09-16  Eric Blake  <eblake@redhat.com>
63801         fdutimensat: add an atflag parameter
63802         * lib/fdutimensat.c (fdutimensat): Add new parameter.
63803         * lib/utimens.h (fdutimensat): Update prototype.
63804         * tests/test-fdutimensat.c: Adjust test to match.
63805         * NEWS: Document the change.
63806         Suggested by Paul Eggert.
63808 2010-09-16  Bruno Haible  <bruno@clisp.org>
63810         Fix typos in comments.
63811         * lib/striconveh.h: Fix typo in comment.
63812         * lib/login_tty.c (login_tty): Likewise.
63814 2010-09-15  Bruno Haible  <bruno@clisp.org>
63816         stdlib: clarify MirBSD WEXITSTATUS bug
63817         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
63818         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63820 2010-09-15  Eric Blake  <eblake@redhat.com>
63822         stdlib: work around MirBSD WEXITSTATUS bug
63823         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
63824         * modules/stdlib (Depends-on): Add sys_wait.
63825         * tests/test-sys_wait.c (main): Enhance test.
63826         * tests/test-stdlib.c (main): Likewise.
63827         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
63829         docs: mention MacOS issue with WEXITSTATUS(constant)
63830         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
63831         issue.
63832         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63834         strnlen: add tests
63835         * modules/strnlen-tests: New file.
63836         * tests/test-strnlen.c: Likewise.
63838 2010-09-14  Bruno Haible  <bruno@clisp.org>
63840         unistr/base: Avoid link errors when module 'libunistring' is also used.
63841         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
63842         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
63843         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
63844         Declare also when HAVE_LIBUNISTRING is set.
63845         Reported by Pádraig Brady <P@draigbrady.com>.
63847 2010-09-14  Eric Blake  <eblake@redhat.com>
63849         test-rawmemchr: make more robust
63850         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
63851         (Depends-on, configure.ac): Add needed prerequisites to use it.
63852         * modules/memchr-tests (Files, Depends-on, configure.ac):
63853         Likewise, to avoid implicit reliance on memchr module prereqs.
63854         * tests/test-memchr.c (main): Ensure proper masking.
63855         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
63856         reads.
63858         memchr: detect glibc Alpha bug
63859         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
63860         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
63861         Alpha.
63862         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
63863         * tests/test-memchr.c (main): Enhance test.
63864         Reported by Nelson H. F. Beebe.
63866 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63868         fts, getcwd, glob: audit for dirfd returning -1
63869         * lib/fts.c (opendir): Remove #define; no longer used.
63870         (opendirat): New arg PDIR_FD.  All callers changed.
63871         (fts_build, _opendir2): Use new opendirat to avoid the need for
63872         dirfd, or for checking whether dirfd returns a negative value.
63873         Don't use opendir; always use openat followed by fdopendir.
63874         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
63875         it.
63876         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
63877         returns -1 here.
63878         * modules/fts (Depends-on): Remove dirfd.
63879         * modules/getcwd (Depends-on): Likewise.
63881 2010-09-13  Eric Blake  <eblake@redhat.com>
63883         float: fix broken MirBSD header
63884         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
63885         * doc/posix-headers/float.texi (float.h): Document it.
63887 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63889         fts: use O_NOFOLLOW to avoid race condition when opening a directory
63890         * lib/fts.c (opendirat): New arg extra_flags.
63891         (__opendir2): Use it to avoid following symlinks when opening
63892         a directory, if symlinks are not supposed to be followed.  See
63893         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
63895         fdopendir: preserve argument fd before returning
63896         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
63897         (fdopendir_with_dup, fd_clone_opendir): New static functions.
63898         (fdopendir): Use them, arranging for FD to be open to the same
63899         directory that it was when it started.  (It might be temporarily
63900         closed while fdopendir is running, so this not thread- or
63901         signal-safe.)  Be careful to do the right thing even when file
63902         descriptors are scarce and dup fails with errno == EMFILE.  See
63903         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
63905 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
63907         regex: Pass the system regex if its only problem is 32-bit regoff_t.
63908         * NEWS: Document change.
63909         * m4/regex.m4: Disable test for regoff_t size.
63911 2010-09-13  Jim Meyering  <meyering@redhat.com>
63913         fts: don't operate on an invalid file descriptor after failed dup
63914         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
63915         negative file descriptor.
63917 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63919         savedir: add streamsavedir, deprecate fdsavedir
63920         * NEWS: Mention deprecation of fdsavedir.
63921         * lib/savedir.c (streamsavedir): New extern function, whose name
63922         ends in "savedir" to be consistent with the others.  This differs
63923         from savedirstream in that it doesn't close its argument.  The
63924         next version of GNU tar will use this instead of fdsavedir, to
63925         avoid some race conditions and conserve file descriptors.
63926         (savedirstream): Reimplement as a wrapper around streamsavedir.
63927         (fdsavedir): Add a comment deprecating this function.  As far as
63928         I know, only GNU tar used it, and GNU tar doesn't need it any more.
63929         * lib/savedir.h (streamsavedir): New decl.
63930         (fdsavedir): Add a comment deprecating this.
63932 2010-09-10  Bruno Haible  <bruno@clisp.org>
63934         langinfo: Fix last commit.
63935         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
63936         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
63937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63939 2010-09-10  Bruno Haible  <bruno@clisp.org>
63941         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
63942         * lib/progreloc.c (O_EXEC): Define fallback.
63944 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
63946         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
63947         * NEWS: Document recent changes to fcntl-h.
63948         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
63949         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
63950         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
63951         Similarly for O_SEARCH; this last was already true, but not documented.
63952         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
63953         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
63954         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
63955         Likewise.
63956         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
63957         is zero, not whether it is defined.
63958         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
63959         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
63960         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
63962 2010-09-10  Bruno Haible  <bruno@clisp.org>
63964         langinfo, nl_langinfo: Fix for IRIX 5.3.
63965         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
63966         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
63967         HAVE_LANGINFO_YESEXPR.
63968         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
63969         HAVE_LANGINFO_YESEXPR.
63970         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
63971         HAVE_LANGINFO_T_FMT_AMPM is 0.
63972         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
63973         HAVE_LANGINFO_YESEXPR is 0.
63974         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
63975         NOEXPR.
63976         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
63977         * doc/posix-functions/nl_langinfo.texi: Likewise.
63978         Reported by Eric Blake.
63980 2010-09-10  Bruno Haible  <bruno@clisp.org>
63982         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
63983         * doc/glibc-functions/login_tty.texi: Mention the include file problem
63984         on FreeBSD 8.0 and OpenBSD 4.6.
63985         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
63986         * m4/pty_h.m4 (gl_PTY_H): Likewise.
63987         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
63988         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
63989         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
63990         ac_includes_default.
63991         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63993 2010-09-09  Eric Blake  <eblake@redhat.com>
63995         strsignal: work around NetBSD bug
63996         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
63997         * lib/string.in.h (includes): Likewise.
63998         * doc/posix-functions/strsignal.texi (strsignal): Document the
63999         bug.
64000         Reported by Nelson H. F. Beebe.
64002         gnulib-tool: work with NetBSD /bin/sh
64003         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64004         (func_get_description, func_get_comment, func_get_status)
64005         (func_get_notice, func_get_applicability, func_get_filelist)
64006         (func_get_dependencies, func_get_autoconf_early_snippet)
64007         (func_get_autoconf_snippet, func_get_automake_snippet)
64008         (func_get_include_directive, func_get_link_directive)
64009         (func_get_license, func_get_maintainer, func_import): Avoid
64010         shell syntax errors from parsing syntax extensions.
64012 2010-09-09  Bruno Haible  <bruno@clisp.org>
64014         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64015         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64016         a reliable way to determine whether the 'alias' command works.
64018 2010-09-08  Jim Meyering  <meyering@redhat.com>
64020         init.sh: penalize a set-x-impaired shell; don't disqualify it
64021         * tests/init.sh: Too many shells corrupt application stderr when
64022         you set -x, so we can't afford to disqualify them, since at least
64023         on Irix-6.5, that would disqualify all bourne shells.
64024         Instead, use a two-pass approach.
64025         On the first pass, try to find a shell that meets the stricter
64026         condition that set -x does not corrupt stderr.
64027         If no shell meets the stricter condition, retest each candidate
64028         shell, but without that extra condition.  Finally, when
64029         VERBOSE=yes is requested and set -x might cause trouble, simply
64030         issue a warning and refrain from enabling debug output.
64032 2010-09-08  Eric Blake  <eblake@redhat.com>
64034         unsetenv: fix OpenBSD bug
64035         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64036         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64037         documentation.
64038         Reported by Jim Meyering.
64040         strtod: work around IRIX 6.5 bug
64041         * lib/strtod.c (strtod): Reparse number on shorter string if
64042         exponent parse was invalid.
64043         * tests/test-strtod.c (main): Add check for "0x1p 2".
64044         Reported by Tom G. Christensen.
64046         getopt: optimize previous patch
64047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64048         empty variable.  Speed up awk script.
64049         Reported by Paolo Bonzini.
64051 2010-09-08  Jim Meyering  <meyering@redhat.com>
64053         test.sh: disqualify shells for which set -x corrupts stderr
64054         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64055         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64056         appear in stderr output.  For example, this command:
64057             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64058         prints "P=1" on those two systems:
64060 2010-09-08  Bruno Haible  <bruno@clisp.org>
64062         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64063         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64064         commands, because some shells ignore redirections when there is an
64065         error in the command lookup.
64066         Reported by Eric Blake.
64068 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64070         * lib/regex.h: Fix a mention of `regex_compile' (should be
64071         `re_compile_pattern').
64072         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64073         (re_set_registers): Correct name of parameter in comment.
64075         * doc/regex.texi: Add documentation for missing syntax flags.
64076         Remove commented-out documentation of defunct syntax option
64077         RE_NO_EMPTY_ALTS.
64078         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64079         Add documentation of re_set_registers.
64080         Document trick to re-use a pattern buffer by setting fastmap manually.
64081         Update documentation of struct re_pattern_buffer per public members.
64082         Uncomment documentation of equivalence class operators and
64083         collating symbol operators, since they are now implemented,
64084         Explain leftmost-longest matching in relation to alternatives.
64085         Tidy documentation of substring matching.
64086         Remove POSIX documentation, which is done better in
64087         glibc, and refer the reader there. Keep BSD API documentation, as
64088         that is not readily available elsewhere.
64090 2010-09-07  Eric Blake  <eblake@redhat.com>
64092         getopt: handle POSIXLY_CORRECT set but not exported
64093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64094         export state of POSIXLY_CORRECT, due to bash set -o posix.
64095         Reported by Dustin J. Mitchell.
64097 2010-09-05  Bruno Haible  <bruno@clisp.org>
64099         gnulib-tool: Highlight the changed options.
64100         * gnulib-tool (func_usage): Display the --import, --add-import,
64101         --remove-import explanations in bold font.
64103 2010-09-06  Karl Berry  <karl@gnu.org>
64105         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64107 2010-09-05  Bruno Haible  <bruno@clisp.org>
64109         uniwidth/width: Update comment.
64110         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64111         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64113 2010-09-05  Bruno Haible  <bruno@clisp.org>
64115         isinf, isnan: Relax license.
64116         * modules/isinf (License): Change from GPL to LGPL, with consent from
64117         Ben Pfaff.
64118         * modules/isnan (License): Likewise.
64119         Requested by Ludovic Courtès.
64121 2010-09-04  Bruno Haible  <bruno@clisp.org>
64123         gnulib-tool: Help migration from --import to --add-import or --update.
64124         * gnulib-tool: Emit a verbose error message when --import is used
64125         without any module name.
64127 2010-09-04  Bruno Haible  <bruno@clisp.org>
64129         Update doc about gnulib-tool.
64130         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64131         'gnulib-tool --update' in more detail.
64132         Reported by Eric Blake.
64134 2010-09-04  Bruno Haible  <bruno@clisp.org>
64136         gnulib-tool: Change --import. New options --add/remove-import.
64137         * gnulib-tool: New options --add-import, --remove-import.
64138         (func_usage): Document them.
64139         (have_associative): Define always.
64140         (func_import): In import mode, don't merge the specified settings with
64141         the cached settings. Implement remove-import mode.
64142         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64143         Explain when to use them versus --import.
64144         (Simple update): Use --add-import instead of --import.
64145         * NEWS: Mention the change.
64147 2010-09-04  Bruno Haible  <bruno@clisp.org>
64149         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64150         separate gnulib.mk.
64152 2010-09-04  Bruno Haible  <bruno@clisp.org>
64154         gnulib-tool: Don't talk about CVS any more.
64155         * gnulib-tool (func_usage, func_import): Write "version control"
64156         instead of CVS.
64158 2010-09-04  Jim Meyering  <meyering@redhat.com>
64160         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64161         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64162         false positives (whose names may be ill-chosen) when searching
64163         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64164         would cause a false-positive.
64166         avoid coreutils "make distcheck" failure
64167         Coreutils tests with an absolute build directory name that contains
64168         a space.  Not quoting this directory name caused a failure.
64169         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64170         * tests/test-vc-list-files-cvs.sh: Likewise.
64172 2010-09-04  Bruno Haible  <bruno@clisp.org>
64174         gnulib-tool: Avoid error when run in a package without Makefile.am.
64175         * gnulib-tool: When collecting the m4dirs in a package that does not
64176         have a Makefile.am, eliminate those directories that contain no
64177         gnulib-cache.m4. Fix expression that counts these directories.
64179 2010-09-04  Bruno Haible  <bruno@clisp.org>
64181         update-copyright test: Improve output when perl is missing or too old.
64182         * tests/test-update-copyright.sh: Move test of Perl version down after
64183         the test whether Perl exists. Provide an explanation relating Perl's
64184         error message to Automake's SKIP: message.
64186 2010-09-04  Bruno Haible  <bruno@clisp.org>
64188         Don't augment PATH in TESTS_ENVIRONMENT.
64189         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64190         set abs_aux_dir instead of augmenting PATH.
64191         * modules/vc-list-files-tests (Makefile.am): Likewise.
64192         * tests/test-update-copyright.sh: Augment PATH here.
64193         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64194         path_prepend_.
64195         * tests/test-vc-list-files-git.sh: Likewise.
64197 2010-09-04  Jim Meyering  <meyering@redhat.com>
64199         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64200         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64202 2010-09-04  Bruno Haible  <bruno@clisp.org>
64204         strdup: Fix compilation error in C++ mode.
64205         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64206         the macro.
64208 2010-09-04  Bruno Haible  <bruno@clisp.org>
64210         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
64211         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
64212         macro into a function.
64213         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64215 2010-09-04  Bruno Haible  <bruno@clisp.org>
64217         Set PATH_SEPARATOR the same way autoconf does.
64218         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
64219         the value of PATH_SEPARATOR the same way autoconf-generated configure
64220         scripts do.
64221         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
64222         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64224 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64226         Set PATH_SEPARATOR the same way autoconf does.
64227         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
64228         the same way autoconf-generated configure scripts do.
64229         * posix-modules: Likewise.
64231 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64233         hash: fix safe_hasher const typo
64234         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
64235         const; otherwise, there is a type error later.
64237 2010-09-02  Jim Meyering  <meyering@redhat.com>
64239         test-update-copyright.sh: require perl 5.8.0
64240         * tests/test-update-copyright.sh: Require 5.8.0,
64241         which Tom G. Christensen has confirmed is adequate,
64242         while 5.6.1 is not.
64244 2010-09-02  Eric Blake  <eblake@redhat.com>
64246         tests: init.sh improvements for re-exec'ing with zsh
64247         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
64248         -vx through shell re-exec.
64249         Reported by Tom G. Christensen.
64251         wctype: fix typo in previous commit
64252         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64253         Reported by Ludovic Courtès.
64255 2010-09-02  Jim Meyering  <meyering@redhat.com>
64257         test-update-copyright.sh: skip test if Perl is too old
64258         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64259         Reported by Tom G. Christensen.
64261 2010-09-02  Bruno Haible  <bruno@clisp.org>
64263         wctype: Avoid compilation error on IRIX 6.5.30.
64264         * lib/wctype.in.h (iswblank): Declare with a replacement if
64265         REPLACE_ISWBLANK is set.
64266         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64267         declared. Set REPLACE_ISWBLANK.
64268         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64269         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64270         * doc/posix-headers/wctype.texi: Likewise.
64271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64273 2010-09-01  Bruno Haible  <bruno@clisp.org>
64275         New module 'socketlib'.
64276         * modules/socketlib: New file.
64277         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64278         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64279         * modules/sockets (Depends-on): Add socketlib.
64280         Suggested by Sam Steingold <sds@gnu.org>.
64282 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64284         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64286         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64287         when one needs search access to a directory but not read access.
64288         On systems where it is available, it works in some cases where
64289         O_RDONLY does not, namely on directories that are searchable but
64290         not readable, and which need only to be searchable.  If O_SEARCH
64291         is not available, fall back to the traditional method of using
64292         O_RDONLY.
64294         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64295         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64296         when opening a directory that needs only to be searchable.
64297         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64298         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64299         * lib/openat-proc.c (openat_proc_name): Likewise.
64300         * lib/openat.c (openat_needs_fchdir): Likewise.
64301         * lib/save-cwd.c (save_cwd): Likewise.
64302         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64304 2010-08-28  Bruno Haible  <bruno@clisp.org>
64306         New module 'host-cpu-c-abi'.
64307         * modules/host-cpu-c-abi: New file.
64308         * m4/host-cpu-c-abi.m4: New file, based on part of
64309         clisp/src/m4/general.m4.
64310         Requested by Sam Steingold <sds@gnu.org>.
64312 2010-08-31  Eric Blake  <eblake@redhat.com>
64313         and Jim Meyering  <meyering@redhat.com>
64315         hash: factor, and guard against misbehaving hasher function
64316         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64317         of table->hasher's return value.  Also protect against a hash value
64318         so large that adding it to table->bucket results in a NULL pointer.
64319         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64320         Use it in place of open-coded check-and-abort.
64322 2010-08-30  Bruno Haible  <bruno@clisp.org>
64324         hash: silence spurious clang warning
64325         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64326         Reported by Eric Blake.
64328 2010-08-30  Eric Blake  <eblake@redhat.com>
64330         strstr, memmem, strcasestr: avoid leaked shell message
64331         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64332         FreeBSD.
64333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64334         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64336         tests: silence clang warning
64337         * tests/test-malloca.c (do_allocation): Avoid dead store.
64339 2010-08-29  Bruno Haible  <bruno@clisp.org>
64341         gettext: Fix recent mistake.
64342         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64344 2010-08-29  Bruno Haible  <bruno@clisp.org>
64346         selinux-h: Offer a --without-selinux option.
64347         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64348         --without-selinux was specified, skip all tests and define
64349         HAVE_SELINUX_SELINUX_H to 0.
64350         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64351         set LIB_SELINUX to empty.
64352         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64353         gl_LIBSELINUX. If --without-selinux was specified, replace
64354         selinux/context.h.
64355         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64357 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64358             Bruno Haible  <bruno@clisp.org>
64360         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64361         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64362         of HAVE_REALLOC.
64363         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64364         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64365         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64366         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64368 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64369             Bruno Haible  <bruno@clisp.org>
64371         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64372         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64373         HAVE_CALLOC.
64374         * lib/xmalloc.c: Update accordingly.
64375         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64376         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64377         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64379 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64380             Bruno Haible  <bruno@clisp.org>
64382         Make the module 'malloc-gnu' work again on AIX and OSF/1.
64383         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
64384         HAVE_MALLOC.
64385         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
64386         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
64387         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64389 2010-08-29  Bruno Haible  <bruno@clisp.org>
64391         Update modules list.
64392         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64393         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
64394         (String handling <string.h>): Add astrxfrm.
64395         (File system functions): Add readlinkat.
64397 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64399         Tests for module 'realloc-gnu'.
64400         * modules/realloc-gnu-tests: New file.
64401         * tests/test-realloc-gnu.c: New file.
64403         Tests for module 'calloc-gnu'.
64404         * modules/calloc-gnu-tests: New file.
64405         * tests/test-calloc-gnu.c: New file.
64407         Tests for module 'malloc-gnu'.
64408         * modules/malloc-gnu-tests: New file.
64409         * tests/test-malloc-gnu.c: New file.
64411 2010-08-28  Bruno Haible  <bruno@clisp.org>
64413         Rename module 'realloc' -> 'realloc-gnu'.
64414         * modules/realloc-gnu: New file, copied from modules/realloc.
64415         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
64416         obsolete.
64417         * modules/mgetgroups (Depends-on): Update.
64418         * doc/posix-functions/realloc.texi: Update.
64419         * NEWS: Mention the change.
64421         Rename module 'calloc' -> 'calloc-gnu'.
64422         * modules/calloc-gnu: New file, copied from modules/calloc.
64423         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
64424         obsolete.
64425         * doc/posix-functions/calloc.texi: Update.
64426         * NEWS: Mention the change.
64428         Rename module 'malloc' -> 'malloc-gnu'.
64429         * modules/malloc-gnu: New file, copied from modules/malloc.
64430         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
64431         obsolete.
64432         * modules/argp (Depends-on): Update.
64433         * modules/regex (Depends-on): Update.
64434         * doc/posix-functions/malloc.texi: Update.
64435         * NEWS: Mention the change.
64437 2010-08-28  Eric Blake  <eblake@redhat.com>
64439         pread, pwrite: add missing dependency
64440         * modules/pread (Depends-on): Add extensions.
64441         * modules/pwrite (Depends-on): Likewise.
64443 2010-08-28  Bruno Haible  <bruno@clisp.org>
64445         unistr/u*-strchr: Fix tests dependencies.
64446         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
64447         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
64448         Reported by Ian Beckwith <ianb@erislabs.net>.
64450 2010-08-28  Bruno Haible  <bruno@clisp.org>
64452         read-file: Don't occupy too much unused memory.
64453         * lib/read-file.c (fread_file): Shrink the buffer at the end.
64455 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
64456             Eric Blake  <eblake@redhat.com>
64457             Bruno Haible  <bruno@clisp.org>
64459         read-file: Avoid memory reallocations with regular files.
64460         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
64461         (fread_file): With regular files, use the remaining length as the
64462         initial buffer size.  Check against overflow.
64463         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
64464         sys_stat.
64466 2010-08-28  Bruno Haible  <bruno@clisp.org>
64468         ftello: Relax license.
64469         * modules/ftello (License): Relax to LGPLv2+.
64470         Reported by Eric Blake.
64472 2010-08-28  Bruno Haible  <bruno@clisp.org>
64474         Avoid relocwrapper link errors due to gnulib replacement functions.
64475         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
64476         function.
64477         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64479 2010-08-28  Bruno Haible  <bruno@clisp.org>
64481         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
64482         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
64483         defined.
64484         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
64485         Suggested by Eric Blake.
64487 2010-08-28  Bruno Haible  <bruno@clisp.org>
64489         sys_socket, netdb: Ensure socklen_t gets defined.
64490         * modules/sys_socket (Depends-on): Add socklen.
64491         * modules/netdb (Depends-on): Likewise.
64492         * modules/getaddrinfo (Depends-on): Remove socklen.
64493         * modules/getsockopt (Depends-on): Likewise.
64494         * modules/setsockopt (Depends-on): Likewise.
64495         * tests/test-sys_socket.c: Check that socklen_t is defined.
64496         * tests/test-netdb.c: Likewise.
64497         * m4/socklen.m4: Update comments.
64498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64500 2010-08-27  Eric Blake  <eblake@redhat.com>
64502         login_tty: add missing dependency
64503         * modules/login_tty (Depends-on): Add pty.
64505 2010-08-26  Eric Blake  <eblake@redhat.com>
64507         lib-symbol-versions: fix m4 quoting
64508         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
64509         format for AC_LINK_IFELSE.
64511         glob: fix compile test
64512         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
64514         btowc: fix missing file
64515         * modules/btowc (Files): Also ship locale-fr.m4.
64517         lseek: fix link test
64518         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
64519         AC_LINK_IFELSE.
64521         include_next: silence autoconf 2.68 warning
64522         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
64523         AC_COMPILE_IFELSE as special.
64524         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
64525         autoconf < 2.68.
64527         acl: fix compilation test
64528         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
64529         AC_COMPILE_IFELSE.
64531 2010-08-26  Bruno Haible  <bruno@clisp.org>
64533         Modernize AC_TRY_RUN invocations.
64534         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
64535         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64536         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
64537         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
64538         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
64539         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64540         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
64541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64542         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64543         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64544         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
64545         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64546         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
64547         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64548         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
64549         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
64550         gl_MBRLEN_NUL_RETVAL): Likewise.
64551         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64552         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64553         Likewise.
64554         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64555         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
64556         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
64557         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
64558         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
64559         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
64560         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
64561         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
64562         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
64563         Likewise.
64564         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
64565         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
64566         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64567         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64568         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64569         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
64570         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
64571         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
64572         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64575 2010-08-26  Bruno Haible  <bruno@clisp.org>
64577         Modernize AC_TRY_LINK invocations.
64578         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
64579         AC_TRY_LINK.
64580         * m4/argp.m4 (gl_ARGP): Likewise.
64581         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
64582         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64583         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64584         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64585         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64586         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
64587         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
64588         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
64589         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64590         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
64591         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64592         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
64593         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
64594         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64595         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64596         * m4/hostent.m4 (gl_HOSTENT): Likewise.
64597         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64598         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
64599         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
64600         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
64601         Likewise.
64602         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
64603         Likewise.
64604         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
64605         Likewise.
64606         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
64607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
64608         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
64609         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
64610         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
64611         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
64612         * m4/servent.m4 (gl_SERVENT): Likewise.
64613         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
64614         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
64615         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
64616         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
64617         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64618         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
64619         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
64620         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64621         * modules/tsearch-tests (configure.ac): Likewise.
64623 2010-08-26  Bruno Haible  <bruno@clisp.org>
64625         Modernize AC_TRY_COMPILE invocations.
64626         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
64627         AC_TRY_COMPILE.
64628         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
64629         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
64630         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
64631         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64632         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
64633         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64634         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64635         * m4/lock.m4 (gl_LOCK): Likewise.
64636         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
64637         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64638         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
64639         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
64640         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
64641         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
64642         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
64643         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
64644         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
64645         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
64646         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
64647         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64648         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
64649         extraneous semicolon.
64651 2010-08-26  Jim Meyering  <meyering@redhat.com>
64653         stat-time: relax license LGPL
64654         * modules/stat-time (License): Change from GPL to LGPL,
64655         with consent from all contributors, for use in libguile.
64656         Requested by Ludovic Courtès.
64658 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
64660         poll: return immediately on POLLHUP.
64661         * lib/poll.c (poll): Always set timeout before wait_timeout is
64662         computed.
64664 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64666         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
64667         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
64668         rmdir ("dir/.//"), unlinkat.
64670 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64672         stdbool: avoid spurious failure with modern xlc
64673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64675 2010-08-24  Bruno Haible  <bruno@clisp.org>
64677         getloadavg: simplify code
64678         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
64679         gl_have_func. Update comments.
64681 2010-08-24  Eric Blake  <eblake@redhat.com>
64683         getloadavg: don't define SVR4 on cygwin
64684         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
64685         only define SVR4 when -lkvm is required.
64686         Reported by Yaakov Selkowitz.
64688 2010-08-24  Bruno Haible  <bruno@clisp.org>
64690         priv-set: fix comment
64691         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
64693 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64695         priv-set: fix comments
64696         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
64697         to match code, as suggested by David Bartley in:
64698         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
64700 2010-08-23  Eric Blake  <eblake@redhat.com>
64702         stdbool: avoid rejecting clang
64703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64704         * tests/test-stdbool.c: Enable more tests if using the system
64705         <stdbool.h> instead of the gnulib replacement.
64706         (main): Move xlc bug test to a runtime test for all compilers.
64707         Reported by Anders Kaseorg.
64709         argz: fix shell quoting issue
64710         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
64711         Reported by Charles Wilson.
64713 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
64714             Erik Faye-Lund <kusmabite@gmail.com>
64716         poll, select: handle ERROR_BROKEN_PIPE.
64717         * lib/poll.c (win32_compute_revents): Return POLLHUP when
64718         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64719         * lib/select.c (win32_compute_revents): Do not mark a pipe
64720         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64722 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
64724         fts: allow compilation with C++
64725         * lib/fts_.h: Specify extern "C" linkage with C++.
64727 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64729         Fix gnulib-tool sed script de-commentation for AIX sed.
64730         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
64731         sed.
64733 2010-08-17  Eric Blake  <eblake@redhat.com>
64735         test-stddef: test for (some) offsetof bugs
64736         * tests/test-stddef.c: Enhance test to ensure correct type of
64737         offsetof.
64738         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
64739         that we are not fixing at this time.
64741 2010-08-15  Bruno Haible  <bruno@clisp.org>
64743         stpncpy: Allow stpncpy to be defined as a macro.
64744         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
64745         if it's already correctly declared.
64746         * lib/string.in.h (stpncpy): Undefine before redefining.
64747         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
64749 2010-08-14  Bruno Haible  <bruno@clisp.org>
64751         Rename module 'memxfrm' to 'amemxfrm'.
64752         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
64753         (amemxfrm): Renamed from memxfrm.
64754         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
64755         (amemxfrm): Renamed from memxfrm.
64756         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
64757         * NEWS: Mention the change.
64758         * MODULES.html.sh (String handling <string.h>): Update.
64759         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
64760         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
64761         * lib/unicase/u16-casexfrm.c: Likewise.
64762         * lib/unicase/u32-casexfrm.c: Likewise.
64763         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
64764         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
64765         * lib/uninorm/u16-normxfrm.c: Likewise.
64766         * lib/uninorm/u32-normxfrm.c: Likewise.
64767         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
64768         memxfrm.
64769         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
64770         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
64771         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
64772         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
64773         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
64774         Suggested by Paul Eggert.
64776 2010-08-14  Bruno Haible  <bruno@clisp.org>
64778         Tests for module 'astrxfrm'.
64779         * modules/astrxfrm-tests: New file.
64780         * tests/test-astrxfrm.c: New file.
64782         New module 'astrxfrm'.
64783         * lib/astrxfrm.h: New file.
64784         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
64785         * modules/astrxfrm: New file.
64787 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
64789         regex: Tweak doc.
64790         * doc/regex.texi (Overview): Don't mention regex.c.
64791         (GNU Regular Expression Compiling): Likewise.
64792         (Match-end-of-line Operator): Mention 'not_eol'.
64794 2010-08-14  Brian Gough  <bjg@gnu.org>
64795             Bruno Haible  <bruno@clisp.org>
64797         git-merge-changelog: add doc relating to use with bzr and hg.
64798         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
64800 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
64802         pthread: fix pthread.h creation for srcdir != builddir
64803         * modules/pthread (Makefile.am): Fix the rule to work also in a
64804         non-srcdir build.
64806 2010-08-13  Karl Berry  <karl@gnu.org>
64808         * doc/regex.texi (Predefined Syntaxes): @smallexample.
64809         * doc/posix-*/*: force line break before @url of POSIX
64810         specifications.
64811         Suggested by Werner Lemberg.
64813 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64815         strtod: fix const diagnostic
64816         * lib/strtod.c (strtod): Don't assign const char * to char *,
64817         as this elicits a warning from GCC when warnings are enabled.
64819 2010-08-10  Pádraig Brady  <P@draigbrady.com>
64820         and Eric Blake  <eblake@redhat.com>
64822         copy-acl: ignore ENOTSUP on HP-UX
64823         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
64824         so that it is available for HP-UX.
64825         * lib/copy-acl.c (qcopy_acl): Use it.
64826         Reported by Patrick M. Callahan.
64828 2010-08-10  Eric Blake  <eblake@redhat.com>
64830         open, chown: relax license
64831         * modules/open (License): Change to LGPLv2+, with consent by all
64832         authors, for use in augeas.
64833         * modules/chown (License): Likewise.
64834         * modules/lchown (Likewise): Likewise.
64835         Requested by Adam Stokes.
64837 2010-08-09  Karl Berry  <karl@gnu.org>
64839         * build-aux/ar-lib: new file, import from Automake.
64840         * config/srclist.txt: autocheck for updates.
64842 2010-08-09  Eric Blake  <eblake@redhat.com>
64844         readlinkat: adjust client modules
64845         * modules/areadlinkat (Depends-on): Use readlinkat, not
64846         symlinkat.
64847         * modules/areadlinkat-with-size (Depends-on): Likewise.
64849         mknod: be more vocal about danger of running tests as root
64850         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
64851         root, since that is just asking for problems.
64852         Suggested by Bruno Haible, based on a report by Rainer Tammer.
64854         readlinkat: split into its own module
64855         * modules/symlinkat: Split readlinkat...
64856         * modules/readlinkat: ...into separate module.
64857         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
64858         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
64859         * lib/symlinkat.c (readlinkat): Move...
64860         * lib/readlinkat.c: ...into new file.
64861         * modules/symlinkat-tests: Split readlinkat test...
64862         * modules/readlinkat-tests: ...into separate module.
64863         * tests/test-symlinkat.c: Split...
64864         * tests/test-readlinkat.c: ...into new file.
64865         * NEWS: Document the split.
64866         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64867         * lib/unistd.in.h (readlinkat): Likewise.
64868         Suggested by Bruno Haible.
64870 2010-08-08  Bruno Haible  <bruno@clisp.org>
64872         memxfrm: Speed up.
64873         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
64874         that usually only one call to strxfrm is necessary for each string
64875         part.
64876         Reported by Paul Eggert <eggert@cs.ucla.edu>.
64878 2010-08-07  Karl Berry  <karl@gnu.org>
64880         * doc/posix-headers/limits.texi,
64881         * doc/posix-functions/malloc.texi,
64882         * doc/posix-functions/strsignal.texi: missing @item.
64883         * doc/ld-version-script.texi: spurious leading i.
64884         * doc/regex.texi (Interval Operators): no commas inside @var.
64886 2010-08-01  Bruno Haible  <bruno@clisp.org>
64888         Integrate the regex documentation.
64889         * doc/gnulib.texi: Define 'cn' index.
64890         (Regular expressions): New a chapter that includes regex.texi and
64891         regexprops-generic.texi.
64892         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
64893         syntax.
64895         Whitespace cleanup.
64896         * doc/regex.texi: Remove trailing spaces.
64898         Add regex documentation.
64899         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
64900         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
64901         Written by Kathy A. Hargreaves and Karl Berry.
64903 2010-08-01  Bruno Haible  <bruno@clisp.org>
64905         link: Update documentation.
64906         * doc/posix-functions/link.texi: Update regarding Solaris.
64908 2010-07-31  Bruno Haible  <bruno@clisp.org>
64910         Update modules list.
64911         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
64912         (String handling <string.h>): Add memcmp2, memxfrm.
64913         (Container data structures): Add xlist, xsublist, xoset.
64914         (Core language properties): Add alignof, unused-parameter.
64915         (Process control, Numeric conversion functions <stdlib.h>): Renamed
64916         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
64917         (Unibyte characters <ctype.h>): New section.
64918         (String handling <string.h>): New section.
64919         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
64920         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
64921         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
64922         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
64923         tan, tanh, tanl, y0, y1, yn.
64924         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
64925         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
64926         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
64927         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
64928         unlockpt, vdprintf, vdprintf-posix.
64929         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
64930         (File system functions): Add concat-filename, sys_file, sys_ioctl,
64931         xconcat-filename.
64932         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
64933         getdtablesize, pipe2, pipe2-safer.
64934         (Security): New section.
64935         (Networking functions): Add accept4.
64936         (Signal handling): Add sigpipe.
64937         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
64938         mbmemcasecoll.
64939         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
64940         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
64941         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
64942         pipe-filter-ii.
64943         (Misc): Add argp-version-etc, login_tty, parse-duration.
64945 2010-07-31  Bruno Haible  <bruno@clisp.org>
64947         Improve doc in MODULES.html.
64948         * modules/linkat (Description): Add the word "function".
64949         * modules/mkfifo (Description): Likewise.
64950         * modules/mknod (Description): Likewise.
64951         * modules/remove (Description): Likewise.
64952         * modules/renameat (Description): Likewise.
64953         * modules/stat (Description): Likewise.
64954         * modules/symlink (Description): Likewise.
64955         * modules/unlink (Description): Likewise.
64957 2010-07-31  Bruno Haible  <bruno@clisp.org>
64959         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
64960         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
64961         option --enable/disable-c++ instead of --enable/disable-cxx.
64962         * NEWS: Mention the change.
64964 2010-07-31  Bruno Haible  <bruno@clisp.org>
64966         readlink, areadlink: Relax test a bit.
64967         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
64968         alternative to ENOTDIR.
64969         * tests/test-areadlink.h (test_areadlink): Likewise.
64970         Reported by Rainer Tammer.
64972 2010-07-31  Bruno Haible  <bruno@clisp.org>
64974         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
64975         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
64976         character, perform the search using U_STRCHR.
64977         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
64978         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
64979         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
64980         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
64981         Suggested by Paolo Bonzini.
64983 2010-07-31  Bruno Haible  <bruno@clisp.org>
64985         unistr/u*-strstr: Fix dependencies.
64986         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
64987         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
64988         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
64990 2010-07-31  Bruno Haible  <bruno@clisp.org>
64992         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
64993         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
64994         the beginning of the loop.
64995         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
64996         cases in 'switch' statement.
64998         unistr/u8-strchr: Fix several bugs.
64999         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65000         the string. When not found, return NULL, not a pointer near the end.
65002         More tests for unistr/u8-strchr.
65003         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65004         that the function does not read past the first occurrence of the byte
65005         being searched.
65006         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65007         * tests/unistr/test-u16-strchr.c (main): New function.
65008         * tests/unistr/test-u32-strchr.c (main): New function.
65010 2010-07-31  Bruno Haible  <bruno@clisp.org>
65012         posix-modules: Ignore backup files of documentation files.
65013         * posix-modules: grep only through files named *.texi.
65015 2010-07-31  Bruno Haible  <bruno@clisp.org>
65017         symlinkat: Fix documentation.
65018         * doc/posix-functions/readlinkat.texi: Fix module name.
65020 2010-07-31  Bruno Haible  <bruno@clisp.org>
65022         fchownat: Replace also when chown has the trailing slash bug.
65023         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65024         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65025         introduced on 2010-04-10.
65026         Reported by Rainer Tammer.
65028 2010-07-31  Bruno Haible  <bruno@clisp.org>
65030         linkat: Work around AIX 7.1 bug.
65031         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65032         whether linkat handles trailing slash correctly. If not, replace linkat
65033         and define LINKAT_TRAILING_SLASH_BUG.
65034         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65035         check whether (fd1,file1) points to a directory if file1 or file2 ends
65036         in a slash. Code taken from lib/link.c.
65037         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65038         Reported by Rainer Tammer.
65040 2010-07-31  Bruno Haible  <bruno@clisp.org>
65042         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65043         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65044         This disables an xlc optimization that was causing wrong test results.
65045         Reported by Rainer Tammer.
65047 2010-07-31  Bruno Haible  <bruno@clisp.org>
65049         iconv: Work around AIX 6.1..7.1 bug.
65050         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65051         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65052         cross-compiling, guess no on all versions of AIX.
65053         Reported by Rainer Tammer.
65055 2010-07-31  Bruno Haible  <bruno@clisp.org>
65057         readlink: Relax test a bit.
65058         * tests/test-readlink.h (test_readlink): Allow different errno value
65059         when readlink is called with a file name that ends in / and refers to
65060         a file.
65061         Suggested by Eric Blake.
65062         Reported by Rainer Tammer.
65064 2010-07-31  Bruno Haible  <bruno@clisp.org>
65066         copysign: Does not require -lm on glibc systems.
65067         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65068         gl_COMMON_DOUBLE_MATHFUNC.
65069         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65071 2010-07-31  Bruno Haible  <bruno@clisp.org>
65073         duplocale: Work around AIX 7.1 bug.
65074         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65075         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65076         * lib/duplocale.c (rpl_duplocale): Update comment.
65077         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65078         Reported by Rainer Tammer.
65080 2010-07-30  Bruno Haible  <bruno@clisp.org>
65082         dirfd: Avoid link error on AIX 7.1.
65083         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65084         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65085         exist, set REPLACE_DIRFD.
65086         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65087         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65088         * doc/posix-functions/dirfd.texi: Update.
65089         Reported by Rainer Tammer.
65091 2010-07-30  Eric Blake  <eblake@redhat.com>
65093         strtod: next round of AIX fixes
65094         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65095         exponent.
65096         * tests/test-strtod.c (main): Enhance tests.
65097         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65098         Reported by Rainer Tammer.
65100         futimens: fix configure check
65101         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65102         Reported by Bruno Haible.
65104 2010-07-30  Bruno Haible  <bruno@clisp.org>
65106         getline: Update regarding AIX.
65107         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65108         Reported by Rainer Tammer.
65110 2010-07-30  Bruno Haible  <bruno@clisp.org>
65112         wcwidth: Drop replacement on AIX 7.
65113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65114         AIX 7.
65115         Reported by Rainer Tammer.
65117 2010-07-30  Bruno Haible  <bruno@clisp.org>
65119         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65121         a 'char *'.
65122         Reported by Rainer Tammer.
65124 2010-07-30  Bruno Haible  <bruno@clisp.org>
65126         unlink: Update regarding AIX.
65127         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65128         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65129         Reported by Rainer Tammer.
65131 2010-07-30  Bruno Haible  <bruno@clisp.org>
65133         symlink: Update regarding AIX.
65134         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65135         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65136         Reported by Rainer Tammer.
65138 2010-07-30  Bruno Haible  <bruno@clisp.org>
65140         strndup: Update regarding AIX.
65141         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65142         AIX 7.
65143         Reported by Rainer Tammer.
65145 2010-07-30  Bruno Haible  <bruno@clisp.org>
65147         stat: Update regarding AIX.
65148         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65149         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65150         Reported by Rainer Tammer.
65152 2010-07-30  Bruno Haible  <bruno@clisp.org>
65154         truncl: Fix autoconf test.
65155         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65156         whether truncl works.
65157         Reported by Rainer Tammer.
65159 2010-07-30  Bruno Haible  <bruno@clisp.org>
65161         round: Update regarding AIX.
65162         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65163         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65164         Reported by Rainer Tammer.
65166 2010-07-30  Bruno Haible  <bruno@clisp.org>
65168         rename: Update regarding AIX.
65169         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65170         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65171         Reported by Rainer Tammer.
65173 2010-07-30  Bruno Haible  <bruno@clisp.org>
65175         printf.m4: Update regarding AIX.
65176         * m4/printf.m4: Update comments regarding AIX.
65177         Reported by Rainer Tammer.
65179 2010-07-30  Bruno Haible  <bruno@clisp.org>
65181         iconv: Update regarding AIX.
65182         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65183         AIX 7.
65184         Reported by Rainer Tammer.
65186 2010-07-30  Bruno Haible  <bruno@clisp.org>
65188         getopt: Update regarding AIX.
65189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65190         no on AIX.
65191         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65192         Reported by Rainer Tammer.
65194 2010-07-30  Bruno Haible  <bruno@clisp.org>
65196         ldexpl; Update regarding AIX.
65197         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
65198         on AIX 7.
65199         Reported by Rainer Tammer.
65201 2010-07-30  Bruno Haible  <bruno@clisp.org>
65203         frexpl: Update regarding AIX.
65204         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65205         on AIX 7.
65206         Reported by Rainer Tammer.
65208 2010-07-30  Bruno Haible  <bruno@clisp.org>
65210         open, fopen: Update regarding AIX.
65211         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
65212         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65213         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
65214         * doc/posix-functions/fopen.texi: Likewise.
65215         Reported by Rainer Tammer.
65217 2010-07-30  Bruno Haible  <bruno@clisp.org>
65219         chown: Update doc regarding AIX.
65220         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
65221         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
65222         Reported by Rainer Tammer.
65224 2010-07-30  Eric Blake  <eblake@redhat.com>
65226         strtod: fix bug in replacement function on AIX
65227         * lib/strtod.c (strtod): Special case broken "0x" parse in
65228         underlying strtod.
65229         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
65230         * doc/posix-functions/strtod.texi (strtod): Likewise.
65231         Reported by Rainer Tammer.
65233 2010-07-30  Bruno Haible  <bruno@clisp.org>
65235         mbrlen: Fix cross-compilation guess for AIX.
65236         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
65237         guess. Leftover from 2008-12-22.
65239 2010-07-30  Bruno Haible  <bruno@clisp.org>
65241         mbrtowc: Fix cross-compilation guess for AIX.
65242         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
65243         guess. Leftover from 2008-12-21.
65245 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
65247         init.sh: work around trap limitation of some shells
65248         * tests/init.sh (setup_): Move exit trap outside of shell function.
65250 2010-07-29  Eric Blake  <eblake@redhat.com>
65252         strtod: aid debugging
65253         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65254         understanding why strtod is rejected.
65256 2010-07-28  Bruno Haible  <bruno@clisp.org>
65258         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65259         * lib/unistr/u8-chr.c: Include <string.h>.
65260         * tests/unistr/test-u8-chr.c: Likewise.
65261         * tests/unistr/test-u16-chr.c: Likewise.
65262         * tests/unistr/test-u32-chr.c: Likewise.
65263         * tests/unistr/test-u8-strchr.c: Likewise.
65264         * tests/unistr/test-u16-strchr.c: Likewise.
65265         * tests/unistr/test-u32-strchr.c: Likewise.
65266         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65267         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65268         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65269         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65271 2010-07-28  Bruno Haible  <bruno@clisp.org>
65273         Use spaces for indentation, not tabs.
65274         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65276 2010-07-27  Bruno Haible  <bruno@clisp.org>
65278         mbspcasecmp: Fix function specification.
65279         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65280         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65281         Reported by Eric Blake <eblake@redhat.com>.
65283 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65285         timespec: use cast and not conditional, as truncation isn't possible
65286         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65287         instead of a conditional.  Comment about the situation in more detail.
65288         This undoes most of the 2009-10-29 patch.
65290 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65292         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65293         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65294         * lib/unistr/u8-strchr.c: Likewise.
65295         * modules/unistr/u8-chr: Depend on memchr.
65297         unistr/u*-strchr: add tests
65298         * modules/unistr/u8-strchr-tests: New file.
65299         * modules/unistr/u16-strchr-tests: New file.
65300         * modules/unistr/u32-strchr-tests: New file.
65301         * tests/unistr/test-strchr.h: New file.
65302         * tests/unistr/test-u8-strchr.c: New file.
65303         * tests/unistr/test-u16-strchr.c: New file.
65304         * tests/unistr/test-u32-strchr.c: New file.
65306         unistr/u*-chr: test multibyte sequences more
65307         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65308         test vector.
65309         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65310         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65311         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65313         unistr/u*-chr: test multibyte sequences
65314         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65316         unistr/u*-chr: prepare for multibyte tests
65317         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65318         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65319         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65320         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65321         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65322         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65324 2010-07-18  Bruno Haible  <bruno@clisp.org>
65326         unistr/u8-strchr: Optimize non-ASCII argument case.
65327         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65328         because the first byte often matches anyway.
65329         Reported by Pádraig Brady <P@draigbrady.com>.
65331 2010-07-15  Karl Berry  <karl@gnu.org>
65333         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65335 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65337         getcwd: on Solaris, work better if ancestors are inaccessible
65338         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65339         buffer and size, try again with a large buffer.  This works better
65340         on Solaris, since its getcwd succeeds even if the path to the root
65341         is inaccessible, and this is helpful in common cases such as .zfs
65342         hidden directories.  Problem reported by J Chapman Flack in
65343         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65344         Use system getcwd if it's declared, not merely if it's partly
65345         working; use the partly-working test only to avoid needless effort
65346         if the system getcwd fails.
65347         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65348         comment that was already obsolete and is now even more obsolete.
65349         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65350         now might call strdup.
65352 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65354         pthread: Add enough so that coreutils/src/sort.c compiles.
65355         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65356         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65357         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65358         Include <sys/types.h>, in case it defines pthread_t.
65359         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65360         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65361         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65362         (pthread_rwlockattr_t, pthread_spinlock_t):
65363         New typedefs, if HAVE_PTHREAD_T is not defined.
65364         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65365         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65366         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65367         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65368         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65369         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65370         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65371         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65372         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65373         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65374         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65375         New macros.
65376         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65377         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65378         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65379         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65380         (pthread_spin_unlock): New dummy functions.
65381         (pthread_create): Return EAGAIN; don't set errno.
65382         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
65383         require AC_C_INLINE.
65384         * modules/pthread (Depends-on): Add sched, time.
65385         (pthread.h): Use AM_V_GEN.
65387 2010-07-13  Bruno Haible  <bruno@clisp.org>
65389         striconveh: Don't malloc memory if the result buffer is sufficient.
65390         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
65391         buffer if its size is sufficient.
65392         Reported by Ludovic Courtès <ludo@gnu.org>.
65394 2010-07-13  Bruno Haible  <bruno@clisp.org>
65396         strtod: Add safety check.
65397         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
65399 2010-07-12  Bruno Haible  <bruno@clisp.org>
65401         Unify tests that set gl_cv_func_ldexpl_no_libm.
65402         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
65403         gl_FUNC_LDEXPL.
65404         (gl_FUNC_LDEXPL): Invoke it.
65405         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65407 2010-07-12  Bruno Haible  <bruno@clisp.org>
65409         Unify tests that set gl_cv_func_ldexp_no_libm.
65410         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
65411         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
65412         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
65413         (configure.ac): Simply invoke gl_FUNC_LDEXP.
65414         * modules/strtod (Files): Add m4/ldexp.m4.
65416 2010-07-12  Bruno Haible  <bruno@clisp.org>
65418         Unify tests that set gl_cv_func_frexpl_no_libm.
65419         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
65420         gl_FUNC_FREXPL_NO_LIBM.
65421         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
65422         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65424 2010-07-12  Bruno Haible  <bruno@clisp.org>
65426         Unify tests that set gl_cv_func_frexp_no_libm.
65427         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
65428         gl_FUNC_FREXP_NO_LIBM.
65429         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
65430         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65432 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65434         memcoll: clarify sizes versus lengths, document better, and tweak perf
65435         * lib/memcoll.c (strcoll_loop, memcoll0):
65436         Improve quality of descriptive comments.  Name variables
65437         consistently as to whether they are lengths (which do not include
65438         terminating null) versus sizes (which do).
65439         * lib/xmemcoll.c (xmemcoll0): Likewise.
65440         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
65441         returned when s1size == 0; this is easier to compile and saves
65442         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
65444 2010-07-12  Bruno Haible  <bruno@clisp.org>
65446         Tests for module '_Exit'.
65447         * modules/_Exit-tests: New file.
65448         * tests/test-_Exit.sh: New file.
65449         * tests/test-_Exit.c: New file.
65451         New module '_Exit'.
65452         * lib/stdlib.in.h (__attribute__): New macro.
65453         (_Exit): New declaration.
65454         * lib/_Exit.c: New file.
65455         * m4/_Exit.m4: New file.
65456         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
65457         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
65458         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
65459         * modules/_Exit: New file.
65460         * tests/test-stdlib-c++.cc (_Exit): Check signature.
65461         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
65463 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65465         strtod: make it more-accurate typically, and don't require libm
65466         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
65467         Include limits.h.  Don't include string.h.
65468         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
65469         (locale_isspace): New function, so that no casts are needed to
65470         check whether *s is a space.
65471         (ldexp): Provide an unused dummy if not available.
65472         (scale_radix_exp, parse_number, underlying_strtod): New functions.
65473         (strtod): Use them.  This implementation prefers to use the
65474         underlying strtod if available, falling back on our own code
65475         only to fix known bugs.  This is more likely to produce an
65476         accurate result.  Also, it avoids the use of libm functions.
65477         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
65478         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
65479         was absent, but it caused a test failure with coreutils.
65480         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
65481         with libm.
65482         * modules/strtod (Makefile.am, Link): libm is no longer needed.
65483         * modules/strtod-tests (Makefile.am): Likewise.
65485 2010-07-11  Pádraig Brady  <P@draigBrady.com>
65486             Bruno Haible  <bruno@clisp.org>
65488         unistr/u8-strchr: Optimize ASCII argument case.
65489         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
65491 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65493         (x)memcoll: minor tweaks
65494         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
65495         is after the type that it qualifies.
65496         (memcoll0): Likewise.
65497         * lib/memcoll.h (memcoll0): Likewise.
65498         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
65499         * lib/xmemcoll.h (xmemcoll0): Likewise.
65500         * lib/memcoll.c (memcoll0): Correct the comment.  This function
65501         differs from memcoll in that the NUL byte is part of the argument.
65502         Omit the abort-checks, as performance is a real issue here.  Plus,
65503         the checks were wrong anyway (an off-by-one error).  Omit local
65504         variable 'diff', as it's a bit clearer that way.
65505         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
65506         no longer needed.
65508 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
65510         (x)memcoll: speedup when input is known to be NUL delimited
65511         * lib/memcoll.c: Include stdlib.
65512         (memcoll0): New function.
65513         (strcoll_loop): New function, refactored for use in both memcoll
65514         and memcoll0.
65515         * lib/memcoll.h (memcoll0): Add prototype.
65516         * lib/xmemcoll.c (xmemcoll0): New function.
65517         (collate_error): New function, refactored for use in both xmemcoll
65518         and xmemcoll0.
65519         * lib/xmemcoll.h (xmemcoll0): Add prototype.
65520         * m4/memcoll.m4: add inline invocation.
65522 2010-07-06  Pádraig Brady  <P@draigBrady.com>
65524         * build-aux/bootstrap: Remove any local translations
65525         from the translation project synchronization directory,
65526         so that local only translations are not distributed.
65528 2010-07-04  Bruno Haible  <bruno@clisp.org>
65530         fsusage: Clarify which code applies to which platforms.
65531         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
65532         platform.
65533         * lib/fsusage.c (get_fs_usage): Likewise.
65535 2010-07-04  Bruno Haible  <bruno@clisp.org>
65537         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
65538         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
65539         Reported by Martin Lambers <marlam@marlam.de>.
65541 2010-07-04  Jim Meyering  <meyering@redhat.com>
65543         hash: once again explicitly disallow insertion of NULL
65544         * lib/hash.c (hash_insert0): Reinstate just-removed test:
65545         inserting a NULL pointer cannot work with these functions.
65546         Add a comment with details.
65547         This reverts part of the 2010-07-01 commit, 5bef1a35
65548         "hash: extend module to deal with non-pointer keys".
65550 2010-07-01  Bruno Haible  <bruno@clisp.org>
65552         stdbool: Update doc.
65553         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
65554         Info from Christian Weisgerber <naddy@mips.inka.de>.
65556 2010-07-01  Jim Meyering  <meyering@redhat.com>
65558         hash: extend module to deal with non-pointer keys
65559         * lib/hash.c (hash_insert0): New interface, much like hash_insert
65560         but that allows insertion of non-pointer entries.
65561         Do not disallow an ENTRY value of NULL.
65562         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
65563         * lib/hash.h (hash_insert0): Declare.
65565 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
65567         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
65568         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
65569         not present (i.e. with autoconf 2.59 and when using gettextize, not
65570         gnulib), require AC_GNU_SOURCE instead.
65572 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
65574         idpriv-drop: Fix tests.
65575         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
65576         not to the test-idpriv-droptemp program.
65578 2010-06-29  Bruno Haible  <bruno@clisp.org>
65580         string: Fix syntax error with g++ 2.96.
65581         * lib/string.in.h (__pure__): Remove definition.
65582         (_GL_ATTRIBUTE_PURE): New macro.
65583         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
65584         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
65585         Reported by Christian Weisgerber <naddy@mips.inka.de>.
65587 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
65589         unitypes: Fix bug introduced on 2010-05-18.
65590         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
65592 2010-06-22  Eric Blake  <eblake@redhat.com>
65594         memmem: slight optimization
65595         * lib/str-two-way.h (critical_factorization): Update comments.
65596         Reduce work during factorization phase.
65597         Reported by Carlos Bueno <carlos@bueno.org>.
65599 2010-06-21  Bruno Haible  <bruno@clisp.org>
65601         Fix HAVE_CALLOC_POSIX misnomer.
65602         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
65603         !HAVE_CALLOC_POSIX.
65604         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
65605         HAVE_CALLOC_POSIX.
65606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
65607         instead of HAVE_CALLOC_POSIX.
65608         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
65609         HAVE_CALLOC_POSIX.
65611         Use modern idiom for calloc() replacement.
65612         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
65613         AC_FUNC_CALLOC.
65614         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
65615         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
65616         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65617         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
65618         (gl_REPLACE_CALLOC): New macro.
65620 2010-06-21  Bruno Haible  <bruno@clisp.org>
65622         Fix HAVE_REALLOC_POSIX misnomer.
65623         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
65624         !HAVE_REALLOC_POSIX.
65625         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
65626         HAVE_REALLOC_POSIX.
65627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
65628         instead of HAVE_REALLOC_POSIX.
65629         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
65630         HAVE_REALLOC_POSIX.
65632         Use modern idiom for realloc() replacement.
65633         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
65634         AC_FUNC_REALLOC.
65635         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
65636         Autoconf's AC_FUNC_REALLOC.
65637         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65638         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
65639         (gl_REPLACE_REALLOC): New macro.
65640         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65642 2010-06-21  Bruno Haible  <bruno@clisp.org>
65644         Fix HAVE_MALLOC_POSIX misnomer.
65645         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
65646         !HAVE_MALLOC_POSIX.
65647         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
65648         HAVE_MALLOC_POSIX.
65649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
65650         instead of HAVE_MALLOC_POSIX.
65651         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
65652         HAVE_MALLOC_POSIX.
65654         Use modern idiom for malloc() replacement.
65655         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
65656         AC_FUNC_MALLOC.
65657         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
65658         Autoconf's AC_FUNC_MALLOC.
65659         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65660         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
65661         (gl_REPLACE_MALLOC): New macro.
65662         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65664 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
65666         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
65667         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
65668         This macro takes 3 arguments, not 4.
65670 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
65672         ipv6: fix detection under mingw
65673         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
65674         in6_addr.
65676 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
65678         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
65679         that strtod() works when cross-compiling to a glibc version known
65680         to work.
65682 2010-06-15  Bruno Haible  <bruno@clisp.org>
65684         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
65686 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
65688         select: Correct timeout.
65689         * lib/select.c (rpl_select): Compute wait_timeout correctly.
65691 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65693         git-version-gen: init shell var to avoid env var influence
65694         * build-aux/git-version-gen (v): Init shell var to empty.
65696 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
65698         priv-set: Don't assume that priv.h exists merely because getppriv does.
65699         See Jan Andersen's bug report about AIX 5L in
65700         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
65701         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
65702         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
65703         * lib/priv-set.h: Likewise.
65704         * tests/test-priv-set.c: Likewise.
65706 2010-06-13  Bruno Haible  <bruno@clisp.org>
65708         relocatable: Make it easier to test whether to install wrappers.
65709         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
65710         RELOCATABLE_VIA_WRAPPER.
65712 2010-06-13  Bruno Haible  <bruno@clisp.org>
65714         gnulib-tool: Display specified modules and dependencies differently.
65715         * gnulib-tool (func_show_module_list): New function.
65716         (func_import, func_create_testdir): Invoke it.
65717         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
65719 2010-06-13  Bruno Haible  <bruno@clisp.org>
65721         gnulib-tool: Align code of func_import and func_create_testdir.
65722         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
65723         specified_modules.
65725 2010-06-12  Jim Meyering  <meyering@redhat.com>
65727         test-inttostr: avoid spurious failure on Solaris 9
65728         * tests/test-inttostr.c (main): Skip the test when snprintf fails
65729         to accept "%ju".  Reported by Bruno Haible.
65731 2010-06-11  Jim Meyering  <meyering@redhat.com>
65733         test-sys_socket: mark variables as used more readably
65734         * tests/test-sys_socket.c (main): Mark otherwise unused variables
65735         as "used" explicitly via (void) statement casts.  This is more
65736         readable than using them in an artificial return expression.
65737         Suggestion from Bruno Haible.
65739 2010-06-11  Bruno Haible  <bruno@clisp.org>
65741         Avoid some more warnings from "gcc -Wwrite-strings".
65742         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
65743         to 'const char *'.
65744         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
65745         * tests/test-c-strcasestr.c (main): Likewise.
65746         * tests/test-mbscasestr1.c (main): Likewise.
65747         * tests/test-mbscasestr2.c (main): Likewise.
65748         * tests/test-memmem.c (main): Likewise.
65749         * tests/test-strstr.c (main): Likewise.
65750         * tests/test-strcasestr.c (main): Likewise.
65752 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65754         init.sh: change framework_failure_ to fail with status 99, not 1
65755         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
65756         automake's parallel-tests rule that this is an unexpected failure,
65757         even if the test is listed in XFAIL_TESTS.
65759 2010-06-11  Jim Meyering  <meyering@redhat.com>
65761         test-inttostr: avoid warnings about 4-6KB literal strings
65762         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
65763         Include "macros.h", for its definition of ASSERT.
65764         (CK): s/assert/ASSERT/
65765         * modules/inttostr-tests (Files): Add macros.h.
65767         init.sh: don't use $ME_ or skip_ before they are defined
65768         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
65769         their first uses.  Also hoist their companions: warn_, fail_,
65770         framework_failure_, $stderr_fileno.  Prompted by a patch from
65771         Stefano Lattarini.
65773         test-sys_socket: avoid set-but-not-used warnings from gcc
65774         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
65775         avoid warning about set-but-not-used variables.
65777         test-xvasprintf: avoid 'const' discard warnings
65778         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
65779         "const" when assigning from literal strings.
65780         (test_xasprintf): Add "void" in function argument list to placate
65781         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
65783         tests: avoid compilation warnings in argmatch and exclude tests...
65784         in packages that define ARGMATCH_DIE_DECL, like coreutils.
65785         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
65786         Since it always exits, declare with the "noreturn" attribute.
65787         * tests/test-argmatch.c: Likewise.
65789         tests: avoid 'const' discard warnings in mbsstr tests
65790         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
65791         * tests/test-mbsstr2.c (main): Likewise.
65793         test-verify: avoid warning from gcc's -Wmissing-declarations
65794         * tests/test-verify.c (function): Declare to be static.
65796         test-inttostr.c: include <string.h> for use of strcmp
65797         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
65799         test-linkat: avoid failed assertion on "other" architectures
65800         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
65801         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
65802         sparc: https://bugs.launchpad.net/bugs/591968
65804 2010-06-11  Jim Meyering  <meyering@redhat.com>
65806         printf.m4: avoid autoconf's "Expanded Before Required" warning
65807         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
65808         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
65809         autoconf warning.
65811 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
65813         Replacement header templates are now named with ".in", not "_".
65814         * doc/gnulib-intro.texi: Correct.
65816 2010-06-10  Jim Meyering  <meyering@redhat.com>
65818         inttostr-tests: depend on snprintf, not snprintf-posix
65819         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
65820         snprintf-posix, to avoid this aclocal failure:
65821           missing file gnulib-tests/vasnprintf.c
65822           configure.ac:45: error: expected source file, required through \
65823           AC_LIBSOURCES, not found
65825 2010-06-10  Jim Meyering  <meyering@redhat.com>
65827         inttostr: add a new function, inttostr, and tests
65828         The namesake function was not available.  The existence of the
65829         template file, inttostr.c makes its addition nontrivial.
65830         * lib/anytostr.c: Rename from inttostr.c.
65831         (anytostr): Rename from inttostr.
65832         * lib/inttostr.c: New file.
65833         * modules/inttostr (Files): Add anytostr.c.
65834         (Makefile.am): Set lib_SOURCES instead of ...
65835         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
65836         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
65837         * lib/offtostr.c: Likewise.
65838         * lib/uinttostr.c: Likewise.
65839         * lib/umaxtostr.c: Likewise.
65840         * modules/inttostr-tests: New file.
65841         * tests/test-inttostr.c: New file.  Test these functions.
65843 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
65844             Bruno Haible  <bruno@clisp.org>
65846         Add "Extending Gnulib" chapter to manual.
65847         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
65848         chapter.
65849         (Extending Gnulib): New chapter.
65850         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
65851         chapter.
65853 2010-06-09  Bruno Haible  <bruno@clisp.org>
65855         Avoid relocwrapper link errors due to gnulib replacement functions.
65856         * lib/areadlink.c: Use the system's malloc, realloc functions.
65857         (areadlink): Set errno to ENOMEM explicitly.
65858         * modules/areadlink (Depends-on): Remove malloc-posix.
65859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65861 2010-06-09  Bruno Haible  <bruno@clisp.org>
65863         Avoid relocwrapper link errors due to gnulib replacement functions.
65864         * lib/canonicalize-lgpl.c: Use the system's malloc function.
65865         * lib/malloca.c: Likewise.
65866         * lib/relocatable.c: Likewise.
65867         * lib/progreloc.c: Use the system's malloc, sprintf functions.
65868         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
65869         * lib/setenv.c: Use the system's malloc, realloc functions.
65870         * lib/strerror.c: Use the system's sprintf function.
65871         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65873 2010-06-04  Bruno Haible  <bruno@clisp.org>
65875         Prefer documented low-level autoconf macro names.
65876         * m4/lib-link.m4: Use m4_translit instead of translit.
65877         * m4/environ.m4: Likewise.
65878         * m4/mathfunc.m4: Likewise.
65879         * m4/onceonly.m4: Likewise.
65880         * m4/stdint.m4: Likewise.
65881         Suggested by Eric Blake.
65883 2010-06-04  Martin Lambers  <marlam@marlam.de>
65884             Bruno Haible  <bruno@clisp.org>
65886         havelib: Allow library names with '+' characters.
65887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65888         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
65890 2010-06-09  Bruno Haible  <bruno@clisp.org>
65892         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
65893         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
65894         realloc failed.
65896 2010-06-08  Peter Simons  <simons@cryp.to>
65898         maint.mk: make the news-check rule more configurable
65899         * top/maint.mk (news-check-lines-spec): New variable.
65900         (news-check): Use "sed -n 1,10p" in place of "head".
65902 2010-06-07  Jim Meyering  <meyering@redhat.com>
65904         do-release-commit-and-tag: fix typo in --help
65905         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
65907         regex: avoid new dead-code warning with gcc-4.6.0
65908         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
65909         if-block containing a while-loop.  It's been unused for at least
65910         5 years.
65912 2010-06-05  Bruno Haible  <bruno@clisp.org>
65914         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
65915         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
65917 2010-06-04  Bruno Haible  <bruno@clisp.org>
65919         Update to GNU gettext 0.18.1.
65920         * modules/gettext (configure.ac): Require gettext infrastructure from
65921         version 0.18.1.
65923 2010-06-03  Bruno Haible  <bruno@clisp.org>
65925         Don't use AC_LIBOBJ with file names in subdirectories.
65926         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
65927         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
65928         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
65929         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
65930         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
65931         gl_LIBUNISTRING_LIBSOURCE.
65932         (Makefile.am): Augment lib_SOURCES here, conditionally.
65933         * NEWS: Drop requirement for Automake option 'subdir-objects'.
65935 2010-06-03  Bruno Haible  <bruno@clisp.org>
65937         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
65938         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
65939         expansion does not end with a newline.
65940         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
65941         unnecessary newline.
65943 2010-06-03  Bruno Haible  <bruno@clisp.org>
65945         Reduce dependencies.
65946         * tests/test-quotearg.h: New file, extracted from
65947         tests/test-quotearg.c.
65948         * tests/test-quotearg-simple.c: New file, extracted from
65949         tests/test-quotearg.c.
65950         * tests/test-quotearg.c: Don't include <ctype.h>.
65951         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
65952         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
65953         use_quote_double_quotes, use_quotearg_colon): Moved to
65954         tests/test-quotearg.h.
65955         (results_g, flag_results, custom_quotes, custom_results): Moved
65956         to tests/test-quotearg-simple.c.
65957         (main): Moved the part that does not depend on gettext to
65958         tests/test-quotearg-simple.c. Return 77 if the test cannot be
65959         performed.
65960         * modules/quotearg-simple: New file.
65961         * modules/quotearg-simple-tests: New file.
65962         * modules/quotearg (Depends-on): Add quotearg-simple.
65963         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
65964         (Files): Add tests/test-quotearg.h.
65965         Reported by Paolo Bonzini.
65967 2010-06-03  Bruno Haible  <bruno@clisp.org>
65969         Reduce dependencies.
65970         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
65972 2010-06-03  Bruno Haible  <bruno@clisp.org>
65974         time: Undefine more broken macros.
65975         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
65976         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
65977         Reported by Eric Blake.
65979 2010-06-03  Bruno Haible  <bruno@clisp.org>
65981         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
65982         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
65983         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
65984         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
65985         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
65986         Reported by Ludovic Courtès <ludo@gnu.org>.
65988 2010-06-02  Eric Blake  <eblake@redhat.com>
65990         time: work with mingw + pthreads-win32 library
65991         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
65992         if timespec is defined only in pthread.h.
65993         * modules/time (Makefile.am): Substitute it.
65994         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
65995         <pthread.h>, when needed.
65996         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
65997         from the library.
65999 2010-05-31  Bruno Haible  <bruno@clisp.org>
66001         Avoid expanding two macros in the wrong order.
66002         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66003         gl_LIBUNISTRING if it is defined.
66004         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66005         autoconf >= 2.64.
66006         Reported by Ludovic Courtès <ludo@gnu.org>.
66008 2010-05-27  Jim Meyering  <meyering@redhat.com>
66010         maint.mk: also prohibit "#undef" of always-defined symbols
66011         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66012         Allow more than one space before the symbol name.
66013         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66014         the regexp uses alternation.
66016 2010-05-26  Eric Blake  <eblake@redhat.com>
66018         maint.mk: avoid echo -e
66019         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66020         Convert all uses of echo -* to printf.
66021         Reported by Matthias Bolte.
66023 2010-05-25  Bruno Haible  <bruno@clisp.org>
66025         Update to GNU gettext 0.18, part 2.
66026         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66027         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66029 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66031         Add missing include in test-pwrite.c.
66032         * tests/test-pwrite.c: Include string.h, for strcmp.
66034 2010-05-24  Bruno Haible  <bruno@clisp.org>
66036         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66038 2010-05-24  Bruno Haible  <bruno@clisp.org>
66040         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66041         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66042         iconveh_error argument.
66043         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66044         U_STRCONV_TO_LOCALE.
66045         * lib/unistr/u16-strcoll.c: Likewise.
66046         * lib/unistr/u32-strcoll.c: Likewise.
66047         * modules/unistr/u8-strcoll (Depends-on): Add
66048         uniconv/u8-strconv-to-enc, localcharset. Remove
66049         uniconv/u8-strconv-to-locale.
66050         (configure.ac): Bump version number.
66051         * modules/unistr/u16-strcoll (Depends-on): Add
66052         uniconv/u16-strconv-to-enc, localcharset. Remove
66053         uniconv/u16-strconv-to-locale.
66054         (configure.ac): Bump version number.
66055         * modules/unistr/u32-strcoll (Depends-on): Add
66056         uniconv/u32-strconv-to-enc, localcharset. Remove
66057         uniconv/u32-strconv-to-locale.
66058         (configure.ac): Bump version number.
66060 2010-05-24  Bruno Haible  <bruno@clisp.org>
66062         Avoid a test failure on NetBSD 5.0.
66063         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66064         an iconv() bug.
66066 2010-05-24  Bruno Haible  <bruno@clisp.org>
66068         Adjust #include directive style.
66069         * modules/regex (Includes): Recommend to write <regex.h>.
66071 2010-05-24  Bruno Haible  <bruno@clisp.org>
66073         regex: Don't require alloca.
66074         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66075         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66076         only inside if (0).
66078 2010-05-23  Jim Meyering  <meyering@redhat.com>
66080         test-renameat.c: include <sys/stat.h>
66081         * tests/test-renameat.c: Include <sys/stat.h>; required for
66082         definition of S_IS* macros.
66084 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66086         Update maintainer documentation for 'relocatable-prog' module.
66087         * doc/relocatable-maint.texi: Update.
66088         Comments by Bruno Haible.
66090 2010-05-23  Bruno Haible  <bruno@clisp.org>
66092         git-merge-changelog: Enable --split-merged-entry by default.
66093         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66094         (usage): Don't mention this option any more.
66095         Reported by Ralf Wildenhues.
66097 2010-05-23  Jim Meyering  <meyering@redhat.com>
66099         test-pwrite: do not leave behind a test file named "out"
66100         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66101         The trivial-looking use of init.sh is really necessary.
66102         It ensures that the temporary file, "out", is created in
66103         a temporary directory, and removed upon termination.
66104         * tests/test-pwrite.sh: Re-add file.
66105         * modules/pwrite-tests: Reference it.
66107 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66109         Fix output redirection buglet in init.sh.
66110         * tests/init.sh: Fix redirection of stderr.
66112 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66114         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66116 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66118         * modules/valgrind-tests: New file.
66119         * m4/valgrind-tests.m4: New file.
66120         * doc/valgrind-tests.texi: New file.
66121         * doc/gnulib.texi (Running self-tests under valgrind): New
66122         section.
66124 2010-05-19  Bruno Haible  <bruno@clisp.org>
66126         Clean up dead code in recent commit.
66127         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66128         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66129         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66130         Suggested by Paolo Bonzini.
66132 2010-05-19  Bruno Haible  <bruno@clisp.org>
66134         Avoid valgrind error reports from libunistring.
66135         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66136         * modules/libunistring (Files): Add it.
66137         * modules/libunistring-optional (Files): Likewise.
66139 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66140             Bruno Haible  <bruno@clisp.org>
66142         New module 'libunistring-optional'.
66143         * modules/libunistring-optional: New file.
66144         * m4/libunistring-base.m4: New file.
66145         * m4/libunistring-optional.m4: New file.
66146         * lib/unicase.in.h: Renamed from lib/unicase.h.
66147         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66148         * lib/unictype.in.h: Renamed from lib/unictype.h.
66149         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66150         * lib/uniname.in.h: Renamed from lib/uniname.h.
66151         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66152         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66153         * lib/unistr.in.h: Renamed from lib/unistr.h.
66154         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66155         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66156         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66157         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66158         gl_LIBUNISTRING. If the library was found, determine the installed
66159         version and set LIBUNISTRING_VERSION.
66160         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66161         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66162         handle a configuration option --with-included-libunistring.
66163         * modules/libunistring (Files): Add m4/absolute-header.m4.
66164         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66165         Add m4/libunistring-base.m4.
66166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66167         (Makefile.am): Build unicase.h from unicase.in.h.
66168         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66169         Add m4/libunistring-base.m4.
66170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66171         (Makefile.am): Build uniconv.h from uniconv.in.h.
66172         * modules/unictype/base (Files): Use unictype.in.h instead of
66173         unictype.h. Add m4/libunistring-base.m4.
66174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66175         (Makefile.am): Build unictype.h from unictype.in.h.
66176         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66177         Add m4/libunistring-base.m4.
66178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66179         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66180         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66181         Add m4/libunistring-base.m4.
66182         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66183         (Makefile.am): Build uniname.h from uniname.in.h.
66184         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66185         Add m4/libunistring-base.m4.
66186         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66187         (Makefile.am): Build uninorm.h from uninorm.in.h.
66188         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66189         unistdio.h. Add m4/libunistring-base.m4.
66190         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66191         (Makefile.am): Build unistdio.h from unistdio.in.h.
66192         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66193         Add m4/libunistring-base.m4.
66194         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66195         (Makefile.am): Build unistr.h from unistr.in.h.
66196         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66197         Add m4/libunistring-base.m4.
66198         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66199         (Makefile.am): Build unitypes.h from unitypes.in.h.
66200         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66201         Add m4/libunistring-base.m4.
66202         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66203         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66204         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66205         uniwidth.h. Add m4/libunistring-base.m4.
66206         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66207         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66208         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
66209         instead of augmenting lib_SOURCES.
66210         * modules/unicase/empty-suffix-context: Likewise.
66211         * modules/unicase/locale-language: Likewise.
66212         * modules/unicase/tolower: Likewise.
66213         * modules/unicase/totitle: Likewise.
66214         * modules/unicase/toupper: Likewise.
66215         * modules/unicase/u8-casecmp: Likewise.
66216         * modules/unicase/u8-casecoll: Likewise.
66217         * modules/unicase/u8-casefold: Likewise.
66218         * modules/unicase/u8-casexfrm: Likewise.
66219         * modules/unicase/u8-ct-casefold: Likewise.
66220         * modules/unicase/u8-ct-tolower: Likewise.
66221         * modules/unicase/u8-ct-totitle: Likewise.
66222         * modules/unicase/u8-ct-toupper: Likewise.
66223         * modules/unicase/u8-is-cased: Likewise.
66224         * modules/unicase/u8-is-casefolded: Likewise.
66225         * modules/unicase/u8-is-lowercase: Likewise.
66226         * modules/unicase/u8-is-titlecase: Likewise.
66227         * modules/unicase/u8-is-uppercase: Likewise.
66228         * modules/unicase/u8-prefix-context: Likewise.
66229         * modules/unicase/u8-suffix-context: Likewise.
66230         * modules/unicase/u8-tolower: Likewise.
66231         * modules/unicase/u8-totitle: Likewise.
66232         * modules/unicase/u8-toupper: Likewise.
66233         * modules/unicase/u16-casecmp: Likewise.
66234         * modules/unicase/u16-casecoll: Likewise.
66235         * modules/unicase/u16-casefold: Likewise.
66236         * modules/unicase/u16-casexfrm: Likewise.
66237         * modules/unicase/u16-ct-casefold: Likewise.
66238         * modules/unicase/u16-ct-tolower: Likewise.
66239         * modules/unicase/u16-ct-totitle: Likewise.
66240         * modules/unicase/u16-ct-toupper: Likewise.
66241         * modules/unicase/u16-is-cased: Likewise.
66242         * modules/unicase/u16-is-casefolded: Likewise.
66243         * modules/unicase/u16-is-lowercase: Likewise.
66244         * modules/unicase/u16-is-titlecase: Likewise.
66245         * modules/unicase/u16-is-uppercase: Likewise.
66246         * modules/unicase/u16-prefix-context: Likewise.
66247         * modules/unicase/u16-suffix-context: Likewise.
66248         * modules/unicase/u16-tolower: Likewise.
66249         * modules/unicase/u16-totitle: Likewise.
66250         * modules/unicase/u16-toupper: Likewise.
66251         * modules/unicase/u32-casecmp: Likewise.
66252         * modules/unicase/u32-casecoll: Likewise.
66253         * modules/unicase/u32-casefold: Likewise.
66254         * modules/unicase/u32-casexfrm: Likewise.
66255         * modules/unicase/u32-ct-casefold: Likewise.
66256         * modules/unicase/u32-ct-tolower: Likewise.
66257         * modules/unicase/u32-ct-totitle: Likewise.
66258         * modules/unicase/u32-ct-toupper: Likewise.
66259         * modules/unicase/u32-is-cased: Likewise.
66260         * modules/unicase/u32-is-casefolded: Likewise.
66261         * modules/unicase/u32-is-lowercase: Likewise.
66262         * modules/unicase/u32-is-titlecase: Likewise.
66263         * modules/unicase/u32-is-uppercase: Likewise.
66264         * modules/unicase/u32-prefix-context: Likewise.
66265         * modules/unicase/u32-suffix-context: Likewise.
66266         * modules/unicase/u32-tolower: Likewise.
66267         * modules/unicase/u32-totitle: Likewise.
66268         * modules/unicase/u32-toupper: Likewise.
66269         * modules/unicase/ulc-casecmp: Likewise.
66270         * modules/unicase/ulc-casecoll: Likewise.
66271         * modules/unicase/ulc-casexfrm: Likewise.
66272         * modules/uniconv/u8-conv-from-enc: Likewise.
66273         * modules/uniconv/u8-conv-to-enc: Likewise.
66274         * modules/uniconv/u8-strconv-from-enc: Likewise.
66275         * modules/uniconv/u8-strconv-from-locale: Likewise.
66276         * modules/uniconv/u8-strconv-to-enc: Likewise.
66277         * modules/uniconv/u8-strconv-to-locale: Likewise.
66278         * modules/uniconv/u16-conv-from-enc: Likewise.
66279         * modules/uniconv/u16-conv-to-enc: Likewise.
66280         * modules/uniconv/u16-strconv-from-enc: Likewise.
66281         * modules/uniconv/u16-strconv-from-locale: Likewise.
66282         * modules/uniconv/u16-strconv-to-enc: Likewise.
66283         * modules/uniconv/u16-strconv-to-locale: Likewise.
66284         * modules/uniconv/u32-conv-from-enc: Likewise.
66285         * modules/uniconv/u32-conv-to-enc: Likewise.
66286         * modules/uniconv/u32-strconv-from-enc: Likewise.
66287         * modules/uniconv/u32-strconv-from-locale: Likewise.
66288         * modules/uniconv/u32-strconv-to-enc: Likewise.
66289         * modules/uniconv/u32-strconv-to-locale: Likewise.
66290         * modules/unictype/bidicategory-byname: Likewise.
66291         * modules/unictype/bidicategory-name: Likewise.
66292         * modules/unictype/bidicategory-of: Likewise.
66293         * modules/unictype/bidicategory-test: Likewise.
66294         * modules/unictype/block-list: Likewise.
66295         * modules/unictype/block-test: Likewise.
66296         * modules/unictype/category-C: Likewise.
66297         * modules/unictype/category-Cc: Likewise.
66298         * modules/unictype/category-Cf: Likewise.
66299         * modules/unictype/category-Cn: Likewise.
66300         * modules/unictype/category-Co: Likewise.
66301         * modules/unictype/category-Cs: Likewise.
66302         * modules/unictype/category-L: Likewise.
66303         * modules/unictype/category-Ll: Likewise.
66304         * modules/unictype/category-Lm: Likewise.
66305         * modules/unictype/category-Lo: Likewise.
66306         * modules/unictype/category-Lt: Likewise.
66307         * modules/unictype/category-Lu: Likewise.
66308         * modules/unictype/category-M: Likewise.
66309         * modules/unictype/category-Mc: Likewise.
66310         * modules/unictype/category-Me: Likewise.
66311         * modules/unictype/category-Mn: Likewise.
66312         * modules/unictype/category-N: Likewise.
66313         * modules/unictype/category-Nd: Likewise.
66314         * modules/unictype/category-Nl: Likewise.
66315         * modules/unictype/category-No: Likewise.
66316         * modules/unictype/category-P: Likewise.
66317         * modules/unictype/category-Pc: Likewise.
66318         * modules/unictype/category-Pd: Likewise.
66319         * modules/unictype/category-Pe: Likewise.
66320         * modules/unictype/category-Pf: Likewise.
66321         * modules/unictype/category-Pi: Likewise.
66322         * modules/unictype/category-Po: Likewise.
66323         * modules/unictype/category-Ps: Likewise.
66324         * modules/unictype/category-S: Likewise.
66325         * modules/unictype/category-Sc: Likewise.
66326         * modules/unictype/category-Sk: Likewise.
66327         * modules/unictype/category-Sm: Likewise.
66328         * modules/unictype/category-So: Likewise.
66329         * modules/unictype/category-Z: Likewise.
66330         * modules/unictype/category-Zl: Likewise.
66331         * modules/unictype/category-Zp: Likewise.
66332         * modules/unictype/category-Zs: Likewise.
66333         * modules/unictype/category-and: Likewise.
66334         * modules/unictype/category-and-not: Likewise.
66335         * modules/unictype/category-byname: Likewise.
66336         * modules/unictype/category-name: Likewise.
66337         * modules/unictype/category-none: Likewise.
66338         * modules/unictype/category-of: Likewise.
66339         * modules/unictype/category-or: Likewise.
66340         * modules/unictype/category-test: Likewise.
66341         * modules/unictype/combining-class: Likewise.
66342         * modules/unictype/ctype-alnum: Likewise.
66343         * modules/unictype/ctype-alpha: Likewise.
66344         * modules/unictype/ctype-blank: Likewise.
66345         * modules/unictype/ctype-cntrl: Likewise.
66346         * modules/unictype/ctype-digit: Likewise.
66347         * modules/unictype/ctype-graph: Likewise.
66348         * modules/unictype/ctype-lower: Likewise.
66349         * modules/unictype/ctype-print: Likewise.
66350         * modules/unictype/ctype-punct: Likewise.
66351         * modules/unictype/ctype-space: Likewise.
66352         * modules/unictype/ctype-upper: Likewise.
66353         * modules/unictype/ctype-xdigit: Likewise.
66354         * modules/unictype/decimal-digit: Likewise.
66355         * modules/unictype/digit: Likewise.
66356         * modules/unictype/mirror: Likewise.
66357         * modules/unictype/numeric: Likewise.
66358         * modules/unictype/property-alphabetic: Likewise.
66359         * modules/unictype/property-ascii-hex-digit: Likewise.
66360         * modules/unictype/property-bidi-arabic-digit: Likewise.
66361         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66362         * modules/unictype/property-bidi-block-separator: Likewise.
66363         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66364         * modules/unictype/property-bidi-common-separator: Likewise.
66365         * modules/unictype/property-bidi-control: Likewise.
66366         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66367         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66368         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66369         * modules/unictype/property-bidi-european-digit: Likewise.
66370         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66371         * modules/unictype/property-bidi-left-to-right: Likewise.
66372         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66373         * modules/unictype/property-bidi-other-neutral: Likewise.
66374         * modules/unictype/property-bidi-pdf: Likewise.
66375         * modules/unictype/property-bidi-segment-separator: Likewise.
66376         * modules/unictype/property-bidi-whitespace: Likewise.
66377         * modules/unictype/property-byname: Likewise.
66378         * modules/unictype/property-combining: Likewise.
66379         * modules/unictype/property-composite: Likewise.
66380         * modules/unictype/property-currency-symbol: Likewise.
66381         * modules/unictype/property-dash: Likewise.
66382         * modules/unictype/property-decimal-digit: Likewise.
66383         * modules/unictype/property-default-ignorable-code-point: Likewise.
66384         * modules/unictype/property-deprecated: Likewise.
66385         * modules/unictype/property-diacritic: Likewise.
66386         * modules/unictype/property-extender: Likewise.
66387         * modules/unictype/property-format-control: Likewise.
66388         * modules/unictype/property-grapheme-base: Likewise.
66389         * modules/unictype/property-grapheme-extend: Likewise.
66390         * modules/unictype/property-grapheme-link: Likewise.
66391         * modules/unictype/property-hex-digit: Likewise.
66392         * modules/unictype/property-hyphen: Likewise.
66393         * modules/unictype/property-id-continue: Likewise.
66394         * modules/unictype/property-id-start: Likewise.
66395         * modules/unictype/property-ideographic: Likewise.
66396         * modules/unictype/property-ids-binary-operator: Likewise.
66397         * modules/unictype/property-ids-trinary-operator: Likewise.
66398         * modules/unictype/property-ignorable-control: Likewise.
66399         * modules/unictype/property-iso-control: Likewise.
66400         * modules/unictype/property-join-control: Likewise.
66401         * modules/unictype/property-left-of-pair: Likewise.
66402         * modules/unictype/property-line-separator: Likewise.
66403         * modules/unictype/property-logical-order-exception: Likewise.
66404         * modules/unictype/property-lowercase: Likewise.
66405         * modules/unictype/property-math: Likewise.
66406         * modules/unictype/property-non-break: Likewise.
66407         * modules/unictype/property-not-a-character: Likewise.
66408         * modules/unictype/property-numeric: Likewise.
66409         * modules/unictype/property-other-alphabetic: Likewise.
66410         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
66411         * modules/unictype/property-other-grapheme-extend: Likewise.
66412         * modules/unictype/property-other-id-continue: Likewise.
66413         * modules/unictype/property-other-id-start: Likewise.
66414         * modules/unictype/property-other-lowercase: Likewise.
66415         * modules/unictype/property-other-math: Likewise.
66416         * modules/unictype/property-other-uppercase: Likewise.
66417         * modules/unictype/property-paired-punctuation: Likewise.
66418         * modules/unictype/property-paragraph-separator: Likewise.
66419         * modules/unictype/property-pattern-syntax: Likewise.
66420         * modules/unictype/property-pattern-white-space: Likewise.
66421         * modules/unictype/property-private-use: Likewise.
66422         * modules/unictype/property-punctuation: Likewise.
66423         * modules/unictype/property-quotation-mark: Likewise.
66424         * modules/unictype/property-radical: Likewise.
66425         * modules/unictype/property-sentence-terminal: Likewise.
66426         * modules/unictype/property-soft-dotted: Likewise.
66427         * modules/unictype/property-space: Likewise.
66428         * modules/unictype/property-terminal-punctuation: Likewise.
66429         * modules/unictype/property-test: Likewise.
66430         * modules/unictype/property-titlecase: Likewise.
66431         * modules/unictype/property-unassigned-code-value: Likewise.
66432         * modules/unictype/property-unified-ideograph: Likewise.
66433         * modules/unictype/property-uppercase: Likewise.
66434         * modules/unictype/property-variation-selector: Likewise.
66435         * modules/unictype/property-white-space: Likewise.
66436         * modules/unictype/property-xid-continue: Likewise.
66437         * modules/unictype/property-xid-start: Likewise.
66438         * modules/unictype/property-zero-width: Likewise.
66439         * modules/unictype/scripts: Likewise.
66440         * modules/unictype/syntax-c-ident: Likewise.
66441         * modules/unictype/syntax-c-whitespace: Likewise.
66442         * modules/unictype/syntax-java-ident: Likewise.
66443         * modules/unictype/syntax-java-whitespace: Likewise.
66444         * modules/unilbrk/u8-possible-linebreaks: Likewise.
66445         * modules/unilbrk/u8-width-linebreaks: Likewise.
66446         * modules/unilbrk/u16-possible-linebreaks: Likewise.
66447         * modules/unilbrk/u16-width-linebreaks: Likewise.
66448         * modules/unilbrk/u32-possible-linebreaks: Likewise.
66449         * modules/unilbrk/u32-width-linebreaks: Likewise.
66450         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
66451         * modules/unilbrk/ulc-width-linebreaks: Likewise.
66452         * modules/uniname/uniname: Likewise.
66453         * modules/uninorm/canonical-decomposition: Likewise.
66454         * modules/uninorm/composition: Likewise.
66455         * modules/uninorm/decomposing-form: Likewise.
66456         * modules/uninorm/decomposition: Likewise.
66457         * modules/uninorm/filter: Likewise.
66458         * modules/uninorm/nfc: Likewise.
66459         * modules/uninorm/nfd: Likewise.
66460         * modules/uninorm/nfkc: Likewise.
66461         * modules/uninorm/nfkd: Likewise.
66462         * modules/uninorm/u8-normalize: Likewise.
66463         * modules/uninorm/u8-normcmp: Likewise.
66464         * modules/uninorm/u8-normcoll: Likewise.
66465         * modules/uninorm/u8-normxfrm: Likewise.
66466         * modules/uninorm/u16-normalize: Likewise.
66467         * modules/uninorm/u16-normcmp: Likewise.
66468         * modules/uninorm/u16-normcoll: Likewise.
66469         * modules/uninorm/u16-normxfrm: Likewise.
66470         * modules/uninorm/u32-normalize: Likewise.
66471         * modules/uninorm/u32-normcmp: Likewise.
66472         * modules/uninorm/u32-normcoll: Likewise.
66473         * modules/uninorm/u32-normxfrm: Likewise.
66474         * modules/unistdio/u8-asnprintf: Likewise.
66475         * modules/unistdio/u8-asprintf: Likewise.
66476         * modules/unistdio/u8-snprintf: Likewise.
66477         * modules/unistdio/u8-sprintf: Likewise.
66478         * modules/unistdio/u8-u8-asnprintf: Likewise.
66479         * modules/unistdio/u8-u8-asprintf: Likewise.
66480         * modules/unistdio/u8-u8-snprintf: Likewise.
66481         * modules/unistdio/u8-u8-sprintf: Likewise.
66482         * modules/unistdio/u8-u8-vasnprintf: Likewise.
66483         * modules/unistdio/u8-u8-vasprintf: Likewise.
66484         * modules/unistdio/u8-u8-vsnprintf: Likewise.
66485         * modules/unistdio/u8-u8-vsprintf: Likewise.
66486         * modules/unistdio/u8-vasnprintf: Likewise.
66487         * modules/unistdio/u8-vasprintf: Likewise.
66488         * modules/unistdio/u8-vsnprintf: Likewise.
66489         * modules/unistdio/u8-vsprintf: Likewise.
66490         * modules/unistdio/u16-asnprintf: Likewise.
66491         * modules/unistdio/u16-asprintf: Likewise.
66492         * modules/unistdio/u16-snprintf: Likewise.
66493         * modules/unistdio/u16-sprintf: Likewise.
66494         * modules/unistdio/u16-u16-asnprintf: Likewise.
66495         * modules/unistdio/u16-u16-asprintf: Likewise.
66496         * modules/unistdio/u16-u16-snprintf: Likewise.
66497         * modules/unistdio/u16-u16-sprintf: Likewise.
66498         * modules/unistdio/u16-u16-vasnprintf: Likewise.
66499         * modules/unistdio/u16-u16-vasprintf: Likewise.
66500         * modules/unistdio/u16-u16-vsnprintf: Likewise.
66501         * modules/unistdio/u16-u16-vsprintf: Likewise.
66502         * modules/unistdio/u16-vasnprintf: Likewise.
66503         * modules/unistdio/u16-vasprintf: Likewise.
66504         * modules/unistdio/u16-vsnprintf: Likewise.
66505         * modules/unistdio/u16-vsprintf: Likewise.
66506         * modules/unistdio/u32-asnprintf: Likewise.
66507         * modules/unistdio/u32-asprintf: Likewise.
66508         * modules/unistdio/u32-snprintf: Likewise.
66509         * modules/unistdio/u32-sprintf: Likewise.
66510         * modules/unistdio/u32-u32-asnprintf: Likewise.
66511         * modules/unistdio/u32-u32-asprintf: Likewise.
66512         * modules/unistdio/u32-u32-snprintf: Likewise.
66513         * modules/unistdio/u32-u32-sprintf: Likewise.
66514         * modules/unistdio/u32-u32-vasnprintf: Likewise.
66515         * modules/unistdio/u32-u32-vasprintf: Likewise.
66516         * modules/unistdio/u32-u32-vsnprintf: Likewise.
66517         * modules/unistdio/u32-u32-vsprintf: Likewise.
66518         * modules/unistdio/u32-vasnprintf: Likewise.
66519         * modules/unistdio/u32-vasprintf: Likewise.
66520         * modules/unistdio/u32-vsnprintf: Likewise.
66521         * modules/unistdio/u32-vsprintf: Likewise.
66522         * modules/unistdio/ulc-asnprintf: Likewise.
66523         * modules/unistdio/ulc-asprintf: Likewise.
66524         * modules/unistdio/ulc-fprintf: Likewise.
66525         * modules/unistdio/ulc-snprintf: Likewise.
66526         * modules/unistdio/ulc-sprintf: Likewise.
66527         * modules/unistdio/ulc-vasnprintf: Likewise.
66528         * modules/unistdio/ulc-vasprintf: Likewise.
66529         * modules/unistdio/ulc-vfprintf: Likewise.
66530         * modules/unistdio/ulc-vsnprintf: Likewise.
66531         * modules/unistdio/ulc-vsprintf: Likewise.
66532         * modules/unistr/u8-check: Likewise.
66533         * modules/unistr/u8-chr: Likewise.
66534         * modules/unistr/u8-cmp: Likewise.
66535         * modules/unistr/u8-cmp2: Likewise.
66536         * modules/unistr/u8-cpy: Likewise.
66537         * modules/unistr/u8-cpy-alloc: Likewise.
66538         * modules/unistr/u8-endswith: Likewise.
66539         * modules/unistr/u8-mblen: Likewise.
66540         * modules/unistr/u8-mbsnlen: Likewise.
66541         * modules/unistr/u8-mbtouc: Likewise.
66542         * modules/unistr/u8-mbtouc-unsafe: Likewise.
66543         * modules/unistr/u8-mbtoucr: Likewise.
66544         * modules/unistr/u8-move: Likewise.
66545         * modules/unistr/u8-next: Likewise.
66546         * modules/unistr/u8-prev: Likewise.
66547         * modules/unistr/u8-set: Likewise.
66548         * modules/unistr/u8-startswith: Likewise.
66549         * modules/unistr/u8-stpcpy: Likewise.
66550         * modules/unistr/u8-stpncpy: Likewise.
66551         * modules/unistr/u8-strcat: Likewise.
66552         * modules/unistr/u8-strchr: Likewise.
66553         * modules/unistr/u8-strcmp: Likewise.
66554         * modules/unistr/u8-strcoll: Likewise.
66555         * modules/unistr/u8-strcpy: Likewise.
66556         * modules/unistr/u8-strcspn: Likewise.
66557         * modules/unistr/u8-strdup: Likewise.
66558         * modules/unistr/u8-strlen: Likewise.
66559         * modules/unistr/u8-strmblen: Likewise.
66560         * modules/unistr/u8-strmbtouc: Likewise.
66561         * modules/unistr/u8-strncat: Likewise.
66562         * modules/unistr/u8-strncmp: Likewise.
66563         * modules/unistr/u8-strncpy: Likewise.
66564         * modules/unistr/u8-strnlen: Likewise.
66565         * modules/unistr/u8-strpbrk: Likewise.
66566         * modules/unistr/u8-strrchr: Likewise.
66567         * modules/unistr/u8-strspn: Likewise.
66568         * modules/unistr/u8-strstr: Likewise.
66569         * modules/unistr/u8-strtok: Likewise.
66570         * modules/unistr/u8-to-u16: Likewise.
66571         * modules/unistr/u8-to-u32: Likewise.
66572         * modules/unistr/u8-uctomb: Likewise.
66573         * modules/unistr/u16-check: Likewise.
66574         * modules/unistr/u16-chr: Likewise.
66575         * modules/unistr/u16-cmp: Likewise.
66576         * modules/unistr/u16-cmp2: Likewise.
66577         * modules/unistr/u16-cpy: Likewise.
66578         * modules/unistr/u16-cpy-alloc: Likewise.
66579         * modules/unistr/u16-endswith: Likewise.
66580         * modules/unistr/u16-mblen: Likewise.
66581         * modules/unistr/u16-mbsnlen: Likewise.
66582         * modules/unistr/u16-mbtouc: Likewise.
66583         * modules/unistr/u16-mbtouc-unsafe: Likewise.
66584         * modules/unistr/u16-mbtoucr: Likewise.
66585         * modules/unistr/u16-move: Likewise.
66586         * modules/unistr/u16-next: Likewise.
66587         * modules/unistr/u16-prev: Likewise.
66588         * modules/unistr/u16-set: Likewise.
66589         * modules/unistr/u16-startswith: Likewise.
66590         * modules/unistr/u16-stpcpy: Likewise.
66591         * modules/unistr/u16-stpncpy: Likewise.
66592         * modules/unistr/u16-strcat: Likewise.
66593         * modules/unistr/u16-strchr: Likewise.
66594         * modules/unistr/u16-strcmp: Likewise.
66595         * modules/unistr/u16-strcoll: Likewise.
66596         * modules/unistr/u16-strcpy: Likewise.
66597         * modules/unistr/u16-strcspn: Likewise.
66598         * modules/unistr/u16-strdup: Likewise.
66599         * modules/unistr/u16-strlen: Likewise.
66600         * modules/unistr/u16-strmblen: Likewise.
66601         * modules/unistr/u16-strmbtouc: Likewise.
66602         * modules/unistr/u16-strncat: Likewise.
66603         * modules/unistr/u16-strncmp: Likewise.
66604         * modules/unistr/u16-strncpy: Likewise.
66605         * modules/unistr/u16-strnlen: Likewise.
66606         * modules/unistr/u16-strpbrk: Likewise.
66607         * modules/unistr/u16-strrchr: Likewise.
66608         * modules/unistr/u16-strspn: Likewise.
66609         * modules/unistr/u16-strstr: Likewise.
66610         * modules/unistr/u16-strtok: Likewise.
66611         * modules/unistr/u16-to-u32: Likewise.
66612         * modules/unistr/u16-to-u8: Likewise.
66613         * modules/unistr/u16-uctomb: Likewise.
66614         * modules/unistr/u32-check: Likewise.
66615         * modules/unistr/u32-chr: Likewise.
66616         * modules/unistr/u32-cmp: Likewise.
66617         * modules/unistr/u32-cmp2: Likewise.
66618         * modules/unistr/u32-cpy: Likewise.
66619         * modules/unistr/u32-cpy-alloc: Likewise.
66620         * modules/unistr/u32-endswith: Likewise.
66621         * modules/unistr/u32-mblen: Likewise.
66622         * modules/unistr/u32-mbsnlen: Likewise.
66623         * modules/unistr/u32-mbtouc: Likewise.
66624         * modules/unistr/u32-mbtouc-unsafe: Likewise.
66625         * modules/unistr/u32-mbtoucr: Likewise.
66626         * modules/unistr/u32-move: Likewise.
66627         * modules/unistr/u32-next: Likewise.
66628         * modules/unistr/u32-prev: Likewise.
66629         * modules/unistr/u32-set: Likewise.
66630         * modules/unistr/u32-startswith: Likewise.
66631         * modules/unistr/u32-stpcpy: Likewise.
66632         * modules/unistr/u32-stpncpy: Likewise.
66633         * modules/unistr/u32-strcat: Likewise.
66634         * modules/unistr/u32-strchr: Likewise.
66635         * modules/unistr/u32-strcmp: Likewise.
66636         * modules/unistr/u32-strcoll: Likewise.
66637         * modules/unistr/u32-strcpy: Likewise.
66638         * modules/unistr/u32-strcspn: Likewise.
66639         * modules/unistr/u32-strdup: Likewise.
66640         * modules/unistr/u32-strlen: Likewise.
66641         * modules/unistr/u32-strmblen: Likewise.
66642         * modules/unistr/u32-strmbtouc: Likewise.
66643         * modules/unistr/u32-strncat: Likewise.
66644         * modules/unistr/u32-strncmp: Likewise.
66645         * modules/unistr/u32-strncpy: Likewise.
66646         * modules/unistr/u32-strnlen: Likewise.
66647         * modules/unistr/u32-strpbrk: Likewise.
66648         * modules/unistr/u32-strrchr: Likewise.
66649         * modules/unistr/u32-strspn: Likewise.
66650         * modules/unistr/u32-strstr: Likewise.
66651         * modules/unistr/u32-strtok: Likewise.
66652         * modules/unistr/u32-to-u16: Likewise.
66653         * modules/unistr/u32-to-u8: Likewise.
66654         * modules/unistr/u32-uctomb: Likewise.
66655         * modules/uniwbrk/u8-wordbreaks: Likewise.
66656         * modules/uniwbrk/u16-wordbreaks: Likewise.
66657         * modules/uniwbrk/u32-wordbreaks: Likewise.
66658         * modules/uniwbrk/ulc-wordbreaks: Likewise.
66659         * modules/uniwbrk/wordbreak-property: Likewise.
66660         * modules/uniwidth/u8-strwidth: Likewise.
66661         * modules/uniwidth/u8-width: Likewise.
66662         * modules/uniwidth/u16-strwidth: Likewise.
66663         * modules/uniwidth/u16-width: Likewise.
66664         * modules/uniwidth/u32-strwidth: Likewise.
66665         * modules/uniwidth/u32-width: Likewise.
66666         * modules/uniwidth/width: Likewise.
66667         * modules/unicase/cased-tests (Makefile.am): Link all test programs
66668         with $(LIBUNISTRING).
66669         * modules/unicase/ignorable-tests: Likewise.
66670         * modules/unicase/locale-language-tests: Likewise.
66671         * modules/unicase/tolower-tests: Likewise.
66672         * modules/unicase/totitle-tests: Likewise.
66673         * modules/unicase/toupper-tests: Likewise.
66674         * modules/unicase/u8-casecmp-tests: Likewise.
66675         * modules/unicase/u8-casecoll-tests: Likewise.
66676         * modules/unicase/u8-casefold-tests: Likewise.
66677         * modules/unicase/u8-is-cased-tests: Likewise.
66678         * modules/unicase/u8-is-casefolded-tests: Likewise.
66679         * modules/unicase/u8-is-lowercase-tests: Likewise.
66680         * modules/unicase/u8-is-titlecase-tests: Likewise.
66681         * modules/unicase/u8-is-uppercase-tests: Likewise.
66682         * modules/unicase/u8-tolower-tests: Likewise.
66683         * modules/unicase/u8-totitle-tests: Likewise.
66684         * modules/unicase/u8-toupper-tests: Likewise.
66685         * modules/unicase/u16-casecmp-tests: Likewise.
66686         * modules/unicase/u16-casecoll-tests: Likewise.
66687         * modules/unicase/u16-casefold-tests: Likewise.
66688         * modules/unicase/u16-is-cased-tests: Likewise.
66689         * modules/unicase/u16-is-casefolded-tests: Likewise.
66690         * modules/unicase/u16-is-lowercase-tests: Likewise.
66691         * modules/unicase/u16-is-titlecase-tests: Likewise.
66692         * modules/unicase/u16-is-uppercase-tests: Likewise.
66693         * modules/unicase/u16-tolower-tests: Likewise.
66694         * modules/unicase/u16-totitle-tests: Likewise.
66695         * modules/unicase/u16-toupper-tests: Likewise.
66696         * modules/unicase/u32-casecmp-tests: Likewise.
66697         * modules/unicase/u32-casecoll-tests: Likewise.
66698         * modules/unicase/u32-casefold-tests: Likewise.
66699         * modules/unicase/u32-is-cased-tests: Likewise.
66700         * modules/unicase/u32-is-casefolded-tests: Likewise.
66701         * modules/unicase/u32-is-lowercase-tests: Likewise.
66702         * modules/unicase/u32-is-titlecase-tests: Likewise.
66703         * modules/unicase/u32-is-uppercase-tests: Likewise.
66704         * modules/unicase/u32-tolower-tests: Likewise.
66705         * modules/unicase/u32-totitle-tests: Likewise.
66706         * modules/unicase/u32-toupper-tests: Likewise.
66707         * modules/unicase/ulc-casecmp-tests: Likewise.
66708         * modules/unicase/ulc-casecoll-tests: Likewise.
66709         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
66710         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
66711         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
66712         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
66713         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
66714         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
66715         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
66716         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
66717         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
66718         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
66719         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
66720         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
66721         * modules/unictype/bidicategory-byname-tests: Likewise.
66722         * modules/unictype/bidicategory-name-tests: Likewise.
66723         * modules/unictype/bidicategory-of-tests: Likewise.
66724         * modules/unictype/bidicategory-test-tests: Likewise.
66725         * modules/unictype/block-list-tests: Likewise.
66726         * modules/unictype/block-of-tests: Likewise.
66727         * modules/unictype/block-test-tests: Likewise.
66728         * modules/unictype/category-C-tests: Likewise.
66729         * modules/unictype/category-Cc-tests: Likewise.
66730         * modules/unictype/category-Cf-tests: Likewise.
66731         * modules/unictype/category-Cn-tests: Likewise.
66732         * modules/unictype/category-Co-tests: Likewise.
66733         * modules/unictype/category-Cs-tests: Likewise.
66734         * modules/unictype/category-L-tests: Likewise.
66735         * modules/unictype/category-Ll-tests: Likewise.
66736         * modules/unictype/category-Lm-tests: Likewise.
66737         * modules/unictype/category-Lo-tests: Likewise.
66738         * modules/unictype/category-Lt-tests: Likewise.
66739         * modules/unictype/category-Lu-tests: Likewise.
66740         * modules/unictype/category-M-tests: Likewise.
66741         * modules/unictype/category-Mc-tests: Likewise.
66742         * modules/unictype/category-Me-tests: Likewise.
66743         * modules/unictype/category-Mn-tests: Likewise.
66744         * modules/unictype/category-N-tests: Likewise.
66745         * modules/unictype/category-Nd-tests: Likewise.
66746         * modules/unictype/category-Nl-tests: Likewise.
66747         * modules/unictype/category-No-tests: Likewise.
66748         * modules/unictype/category-P-tests: Likewise.
66749         * modules/unictype/category-Pc-tests: Likewise.
66750         * modules/unictype/category-Pd-tests: Likewise.
66751         * modules/unictype/category-Pe-tests: Likewise.
66752         * modules/unictype/category-Pf-tests: Likewise.
66753         * modules/unictype/category-Pi-tests: Likewise.
66754         * modules/unictype/category-Po-tests: Likewise.
66755         * modules/unictype/category-Ps-tests: Likewise.
66756         * modules/unictype/category-S-tests: Likewise.
66757         * modules/unictype/category-Sc-tests: Likewise.
66758         * modules/unictype/category-Sk-tests: Likewise.
66759         * modules/unictype/category-Sm-tests: Likewise.
66760         * modules/unictype/category-So-tests: Likewise.
66761         * modules/unictype/category-Z-tests: Likewise.
66762         * modules/unictype/category-Zl-tests: Likewise.
66763         * modules/unictype/category-Zp-tests: Likewise.
66764         * modules/unictype/category-Zs-tests: Likewise.
66765         * modules/unictype/category-and-not-tests: Likewise.
66766         * modules/unictype/category-and-tests: Likewise.
66767         * modules/unictype/category-byname-tests: Likewise.
66768         * modules/unictype/category-name-tests: Likewise.
66769         * modules/unictype/category-none-tests: Likewise.
66770         * modules/unictype/category-of-tests: Likewise.
66771         * modules/unictype/category-or-tests: Likewise.
66772         * modules/unictype/category-test-withtable-tests: Likewise.
66773         * modules/unictype/combining-class-tests: Likewise.
66774         * modules/unictype/ctype-alnum-tests: Likewise.
66775         * modules/unictype/ctype-alpha-tests: Likewise.
66776         * modules/unictype/ctype-blank-tests: Likewise.
66777         * modules/unictype/ctype-cntrl-tests: Likewise.
66778         * modules/unictype/ctype-digit-tests: Likewise.
66779         * modules/unictype/ctype-graph-tests: Likewise.
66780         * modules/unictype/ctype-lower-tests: Likewise.
66781         * modules/unictype/ctype-print-tests: Likewise.
66782         * modules/unictype/ctype-punct-tests: Likewise.
66783         * modules/unictype/ctype-space-tests: Likewise.
66784         * modules/unictype/ctype-upper-tests: Likewise.
66785         * modules/unictype/ctype-xdigit-tests: Likewise.
66786         * modules/unictype/decimal-digit-tests: Likewise.
66787         * modules/unictype/digit-tests: Likewise.
66788         * modules/unictype/mirror-tests: Likewise.
66789         * modules/unictype/numeric-tests: Likewise.
66790         * modules/unictype/property-alphabetic-tests: Likewise.
66791         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
66792         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
66793         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
66794         * modules/unictype/property-bidi-block-separator-tests: Likewise.
66795         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
66796         * modules/unictype/property-bidi-common-separator-tests: Likewise.
66797         * modules/unictype/property-bidi-control-tests: Likewise.
66798         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
66799         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
66800         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
66801         * modules/unictype/property-bidi-european-digit-tests: Likewise.
66802         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
66803         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
66804         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
66805         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
66806         * modules/unictype/property-bidi-pdf-tests: Likewise.
66807         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
66808         * modules/unictype/property-bidi-whitespace-tests: Likewise.
66809         * modules/unictype/property-byname-tests: Likewise.
66810         * modules/unictype/property-combining-tests: Likewise.
66811         * modules/unictype/property-composite-tests: Likewise.
66812         * modules/unictype/property-currency-symbol-tests: Likewise.
66813         * modules/unictype/property-dash-tests: Likewise.
66814         * modules/unictype/property-decimal-digit-tests: Likewise.
66815         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
66816         * modules/unictype/property-deprecated-tests: Likewise.
66817         * modules/unictype/property-diacritic-tests: Likewise.
66818         * modules/unictype/property-extender-tests: Likewise.
66819         * modules/unictype/property-format-control-tests: Likewise.
66820         * modules/unictype/property-grapheme-base-tests: Likewise.
66821         * modules/unictype/property-grapheme-extend-tests: Likewise.
66822         * modules/unictype/property-grapheme-link-tests: Likewise.
66823         * modules/unictype/property-hex-digit-tests: Likewise.
66824         * modules/unictype/property-hyphen-tests: Likewise.
66825         * modules/unictype/property-id-continue-tests: Likewise.
66826         * modules/unictype/property-id-start-tests: Likewise.
66827         * modules/unictype/property-ideographic-tests: Likewise.
66828         * modules/unictype/property-ids-binary-operator-tests: Likewise.
66829         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
66830         * modules/unictype/property-ignorable-control-tests: Likewise.
66831         * modules/unictype/property-iso-control-tests: Likewise.
66832         * modules/unictype/property-join-control-tests: Likewise.
66833         * modules/unictype/property-left-of-pair-tests: Likewise.
66834         * modules/unictype/property-line-separator-tests: Likewise.
66835         * modules/unictype/property-logical-order-exception-tests: Likewise.
66836         * modules/unictype/property-lowercase-tests: Likewise.
66837         * modules/unictype/property-math-tests: Likewise.
66838         * modules/unictype/property-non-break-tests: Likewise.
66839         * modules/unictype/property-not-a-character-tests: Likewise.
66840         * modules/unictype/property-numeric-tests: Likewise.
66841         * modules/unictype/property-other-alphabetic-tests: Likewise.
66842         * modules/unictype/property-other-default-ignorable-code-point-tests:
66843         Likewise.
66844         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
66845         * modules/unictype/property-other-id-continue-tests: Likewise.
66846         * modules/unictype/property-other-id-start-tests: Likewise.
66847         * modules/unictype/property-other-lowercase-tests: Likewise.
66848         * modules/unictype/property-other-math-tests: Likewise.
66849         * modules/unictype/property-other-uppercase-tests: Likewise.
66850         * modules/unictype/property-paired-punctuation-tests: Likewise.
66851         * modules/unictype/property-paragraph-separator-tests: Likewise.
66852         * modules/unictype/property-pattern-syntax-tests: Likewise.
66853         * modules/unictype/property-pattern-white-space-tests: Likewise.
66854         * modules/unictype/property-private-use-tests: Likewise.
66855         * modules/unictype/property-punctuation-tests: Likewise.
66856         * modules/unictype/property-quotation-mark-tests: Likewise.
66857         * modules/unictype/property-radical-tests: Likewise.
66858         * modules/unictype/property-sentence-terminal-tests: Likewise.
66859         * modules/unictype/property-soft-dotted-tests: Likewise.
66860         * modules/unictype/property-space-tests: Likewise.
66861         * modules/unictype/property-terminal-punctuation-tests: Likewise.
66862         * modules/unictype/property-test-tests: Likewise.
66863         * modules/unictype/property-titlecase-tests: Likewise.
66864         * modules/unictype/property-unassigned-code-value-tests: Likewise.
66865         * modules/unictype/property-unified-ideograph-tests: Likewise.
66866         * modules/unictype/property-uppercase-tests: Likewise.
66867         * modules/unictype/property-variation-selector-tests: Likewise.
66868         * modules/unictype/property-white-space-tests: Likewise.
66869         * modules/unictype/property-xid-continue-tests: Likewise.
66870         * modules/unictype/property-xid-start-tests: Likewise.
66871         * modules/unictype/property-zero-width-tests: Likewise.
66872         * modules/unictype/scripts-tests: Likewise.
66873         * modules/unictype/syntax-c-ident-tests: Likewise.
66874         * modules/unictype/syntax-c-whitespace-tests: Likewise.
66875         * modules/unictype/syntax-java-ident-tests: Likewise.
66876         * modules/unictype/syntax-java-whitespace-tests: Likewise.
66877         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
66878         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
66879         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
66880         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
66881         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
66882         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
66883         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
66884         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
66885         * modules/uniname/uniname-tests: Likewise.
66886         * modules/uninorm/canonical-decomposition-tests: Likewise.
66887         * modules/uninorm/compat-decomposition-tests: Likewise.
66888         * modules/uninorm/composition-tests: Likewise.
66889         * modules/uninorm/decomposing-form-tests: Likewise.
66890         * modules/uninorm/decomposition-tests: Likewise.
66891         * modules/uninorm/filter-tests: Likewise.
66892         * modules/uninorm/nfc-tests: Likewise.
66893         * modules/uninorm/nfd-tests: Likewise.
66894         * modules/uninorm/nfkc-tests: Likewise.
66895         * modules/uninorm/nfkd-tests: Likewise.
66896         * modules/uninorm/u8-normcmp-tests: Likewise.
66897         * modules/uninorm/u8-normcoll-tests: Likewise.
66898         * modules/uninorm/u16-normcmp-tests: Likewise.
66899         * modules/uninorm/u16-normcoll-tests: Likewise.
66900         * modules/uninorm/u32-normcmp-tests: Likewise.
66901         * modules/uninorm/u32-normcoll-tests: Likewise.
66902         * modules/unistdio/u8-asnprintf-tests: Likewise.
66903         * modules/unistdio/u8-vasnprintf-tests: Likewise.
66904         * modules/unistdio/u8-vasprintf-tests: Likewise.
66905         * modules/unistdio/u8-vsnprintf-tests: Likewise.
66906         * modules/unistdio/u8-vsprintf-tests: Likewise.
66907         * modules/unistdio/u16-asnprintf-tests: Likewise.
66908         * modules/unistdio/u16-vasnprintf-tests: Likewise.
66909         * modules/unistdio/u16-vasprintf-tests: Likewise.
66910         * modules/unistdio/u16-vsnprintf-tests: Likewise.
66911         * modules/unistdio/u16-vsprintf-tests: Likewise.
66912         * modules/unistdio/u32-asnprintf-tests: Likewise.
66913         * modules/unistdio/u32-vasnprintf-tests: Likewise.
66914         * modules/unistdio/u32-vasprintf-tests: Likewise.
66915         * modules/unistdio/u32-vsnprintf-tests: Likewise.
66916         * modules/unistdio/u32-vsprintf-tests: Likewise.
66917         * modules/unistdio/ulc-asnprintf-tests: Likewise.
66918         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
66919         * modules/unistdio/ulc-vasprintf-tests: Likewise.
66920         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
66921         * modules/unistdio/ulc-vsprintf-tests: Likewise.
66922         * modules/unistr/u8-check-tests: Likewise.
66923         * modules/unistr/u8-chr-tests: Likewise.
66924         * modules/unistr/u8-cmp-tests: Likewise.
66925         * modules/unistr/u8-cmp2-tests: Likewise.
66926         * modules/unistr/u8-cpy-alloc-tests: Likewise.
66927         * modules/unistr/u8-cpy-tests: Likewise.
66928         * modules/unistr/u8-mblen-tests: Likewise.
66929         * modules/unistr/u8-mbsnlen-tests: Likewise.
66930         * modules/unistr/u8-mbtouc-tests: Likewise.
66931         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
66932         * modules/unistr/u8-mbtoucr-tests: Likewise.
66933         * modules/unistr/u8-move-tests: Likewise.
66934         * modules/unistr/u8-next-tests: Likewise.
66935         * modules/unistr/u8-prev-tests: Likewise.
66936         * modules/unistr/u8-set-tests: Likewise.
66937         * modules/unistr/u8-stpcpy-tests: Likewise.
66938         * modules/unistr/u8-stpncpy-tests: Likewise.
66939         * modules/unistr/u8-strcat-tests: Likewise.
66940         * modules/unistr/u8-strcmp-tests: Likewise.
66941         * modules/unistr/u8-strcoll-tests: Likewise.
66942         * modules/unistr/u8-strcpy-tests: Likewise.
66943         * modules/unistr/u8-strdup-tests: Likewise.
66944         * modules/unistr/u8-strlen-tests: Likewise.
66945         * modules/unistr/u8-strmblen-tests: Likewise.
66946         * modules/unistr/u8-strmbtouc-tests: Likewise.
66947         * modules/unistr/u8-strncat-tests: Likewise.
66948         * modules/unistr/u8-strncmp-tests: Likewise.
66949         * modules/unistr/u8-strncpy-tests: Likewise.
66950         * modules/unistr/u8-strnlen-tests: Likewise.
66951         * modules/unistr/u8-to-u16-tests: Likewise.
66952         * modules/unistr/u8-to-u32-tests: Likewise.
66953         * modules/unistr/u8-uctomb-tests: Likewise.
66954         * modules/unistr/u16-check-tests: Likewise.
66955         * modules/unistr/u16-chr-tests: Likewise.
66956         * modules/unistr/u16-cmp-tests: Likewise.
66957         * modules/unistr/u16-cmp2-tests: Likewise.
66958         * modules/unistr/u16-cpy-alloc-tests: Likewise.
66959         * modules/unistr/u16-cpy-tests: Likewise.
66960         * modules/unistr/u16-mblen-tests: Likewise.
66961         * modules/unistr/u16-mbsnlen-tests: Likewise.
66962         * modules/unistr/u16-mbtouc-tests: Likewise.
66963         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
66964         * modules/unistr/u16-mbtoucr-tests: Likewise.
66965         * modules/unistr/u16-move-tests: Likewise.
66966         * modules/unistr/u16-next-tests: Likewise.
66967         * modules/unistr/u16-prev-tests: Likewise.
66968         * modules/unistr/u16-set-tests: Likewise.
66969         * modules/unistr/u16-stpcpy-tests: Likewise.
66970         * modules/unistr/u16-stpncpy-tests: Likewise.
66971         * modules/unistr/u16-strcat-tests: Likewise.
66972         * modules/unistr/u16-strcmp-tests: Likewise.
66973         * modules/unistr/u16-strcoll-tests: Likewise.
66974         * modules/unistr/u16-strcpy-tests: Likewise.
66975         * modules/unistr/u16-strdup-tests: Likewise.
66976         * modules/unistr/u16-strlen-tests: Likewise.
66977         * modules/unistr/u16-strmblen-tests: Likewise.
66978         * modules/unistr/u16-strmbtouc-tests: Likewise.
66979         * modules/unistr/u16-strncat-tests: Likewise.
66980         * modules/unistr/u16-strncmp-tests: Likewise.
66981         * modules/unistr/u16-strncpy-tests: Likewise.
66982         * modules/unistr/u16-strnlen-tests: Likewise.
66983         * modules/unistr/u16-to-u32-tests: Likewise.
66984         * modules/unistr/u16-to-u8-tests: Likewise.
66985         * modules/unistr/u16-uctomb-tests: Likewise.
66986         * modules/unistr/u32-check-tests: Likewise.
66987         * modules/unistr/u32-chr-tests: Likewise.
66988         * modules/unistr/u32-cmp-tests: Likewise.
66989         * modules/unistr/u32-cmp2-tests: Likewise.
66990         * modules/unistr/u32-cpy-alloc-tests: Likewise.
66991         * modules/unistr/u32-cpy-tests: Likewise.
66992         * modules/unistr/u32-mblen-tests: Likewise.
66993         * modules/unistr/u32-mbsnlen-tests: Likewise.
66994         * modules/unistr/u32-mbtouc-tests: Likewise.
66995         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
66996         * modules/unistr/u32-mbtoucr-tests: Likewise.
66997         * modules/unistr/u32-move-tests: Likewise.
66998         * modules/unistr/u32-next-tests: Likewise.
66999         * modules/unistr/u32-prev-tests: Likewise.
67000         * modules/unistr/u32-set-tests: Likewise.
67001         * modules/unistr/u32-stpcpy-tests: Likewise.
67002         * modules/unistr/u32-stpncpy-tests: Likewise.
67003         * modules/unistr/u32-strcat-tests: Likewise.
67004         * modules/unistr/u32-strcmp-tests: Likewise.
67005         * modules/unistr/u32-strcoll-tests: Likewise.
67006         * modules/unistr/u32-strcpy-tests: Likewise.
67007         * modules/unistr/u32-strdup-tests: Likewise.
67008         * modules/unistr/u32-strlen-tests: Likewise.
67009         * modules/unistr/u32-strmblen-tests: Likewise.
67010         * modules/unistr/u32-strmbtouc-tests: Likewise.
67011         * modules/unistr/u32-strncat-tests: Likewise.
67012         * modules/unistr/u32-strncmp-tests: Likewise.
67013         * modules/unistr/u32-strncpy-tests: Likewise.
67014         * modules/unistr/u32-strnlen-tests: Likewise.
67015         * modules/unistr/u32-to-u16-tests: Likewise.
67016         * modules/unistr/u32-to-u8-tests: Likewise.
67017         * modules/unistr/u32-uctomb-tests: Likewise.
67018         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67019         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67020         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67021         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67022         * modules/uniwidth/u8-strwidth-tests: Likewise.
67023         * modules/uniwidth/u8-width-tests: Likewise.
67024         * modules/uniwidth/u16-strwidth-tests: Likewise.
67025         * modules/uniwidth/u16-width-tests: Likewise.
67026         * modules/uniwidth/u32-strwidth-tests: Likewise.
67027         * modules/uniwidth/u32-width-tests: Likewise.
67028         * modules/uniwidth/width-tests: Likewise.
67030 2010-05-18  Richard Jones  <rjones@redhat.com>
67032         doc: users.txt: list hivex
67033         * users.txt: Add hivex.
67035 2010-05-18  Richard Jones  <rjones@redhat.com>
67037         doc: users.txt: list febootstrap
67038         * users.txt: Add febootstrap.
67040 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67042         bootstrap: fix an error when gnulib is not used as a git submodule
67043         * build-aux/bootstrap (gnulib_path): If its length is zero then
67044         assign "gnulib" to it.
67045         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67047 2010-05-16  Bruno Haible  <bruno@clisp.org>
67049         Avoid autoconf warnings about AM_ICONV.
67050         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67051         2.64.
67053 2010-05-16  Bruno Haible  <bruno@clisp.org>
67055         absolute-header: Make the macro usable in more situations.
67056         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67057         from gl_ABSOLUTE_HEADER.
67058         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67060 2010-05-16  James Youngman  <jay@gnu.org>
67062         doc: update users.txt
67063         * users.txt: Add CSSC.
67065 2010-05-16  Jim Meyering  <meyering@redhat.com>
67067         init.sh: fix an error in the previous change; add more comments
67068         * tests/init.sh: Compare exit code in loop against 9, not 2.
67069         Patch by Bruno Haible.
67070         Make the two tests more similar by adding an empty "then" clause.
67071         Add comments.
67073         init.sh: avoid unnecessary shell re-exec
67074         * tests/init.sh: Improve the re-exec-required check to first test the
67075         current shell.  If it passes the test, do not search for a shell that
67076         does pass, and do not re-exec.  This test is particularly contorted to
67077         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67078         of $(...) evokes a syntax error and causes immediate shell exit with
67079         status 2.  Bruno Haible reported that the re-exec made it impossible
67080         to single-step through any init.sh-using script.
67082 2010-05-16  Bruno Haible  <bruno@clisp.org>
67084         Fix collision between gnulib's and libintl's printf replacements.
67085         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67086         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67087         (printf): When using GNU C, map the __printf__ function to rpl_printf
67088         via __asm__. When not using GNU C, define rpl_printf instead of
67089         __printf__.
67090         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67091         commit.
67092         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67093         commit.
67094         * m4/asm-underscore.m4: New file.
67095         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67096         * modules/stdio (Files): Add m4/asm-underscore.m4.
67097         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67098         Reported by Ben Pfaff.
67100 2010-05-16  Bruno Haible  <bruno@clisp.org>
67102         verify: Avoid skipping the test on openSUSE 11.0.
67103         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67105 2010-05-13  Bruno Haible  <bruno@clisp.org>
67107         Avoid useless warnings from G++.
67108         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67109         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67110         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67112 2010-05-11  Jim Meyering  <meyering@redhat.com>
67114         maint.mk: tweak preceding change
67115         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67116         regexps tighter by anchoring at EOL, and make the new group "shy"
67117         for slightly decreased overhead.
67119 2010-05-11  Eric Blake  <eblake@redhat.com>
67121         maint.mk: gnulib doesn't guarantee NSIG
67122         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67124 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67126         test-pwrite.c: Remove unused variable declaration.
67127         * tests/test-pwrite.c (main): Remove read_buf declaration.
67129         Remove useless test-pwrite.sh file.
67130         * tests/test-pwrite.sh: Delete file.
67131         * modules/pwrite-tests: Remove references.
67132         Reported by Bruno Haible.
67134 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67136         init.sh: fix a typo
67137         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67139 2010-05-10  Jim Meyering  <meyering@redhat.com>
67141         maint.mk: avoid using a temporary file in the always-defined-macros check
67142         * top/maint.mk (.re-defmac): Remove rule.
67143         (gl_trap_): Remove definition.
67144         (sc_prohibit_always-defined_macros): Rewrite not to create and
67145         depend on a temporary file.  Instead, depend on GNU grep's ability
67146         to read a list of regular expressions from stdin when given "-f -".
67148 2010-05-09  Bruno Haible  <bruno@clisp.org>
67150         Update to GNU gettext 0.18, part 1.
67151         * m4/gettext.m4: Update to GNU gettext 0.18.
67152         * m4/intl.m4: Likewise.
67153         * m4/po.m4: Likewise.
67154         * modules/gettext (Files): Add m4/fcntl-o.m4.
67155         (configure.ac): Require gettext infrastructure from version 0.18.
67157 2010-05-09  Jim Meyering  <meyering@redhat.com>
67159         init.sh: enable MALLOC_PERTURB_
67160         * tests/init.sh: Enable glibc's malloc-perturbing option.
67162         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67163         With my recent change in init.sh from the two-line form:
67164             -#   : ${srcdir=.}
67165             -#   . "$srcdir/init.sh"; path_prepend_ .
67166             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67167         I noticed that using the one-line form would cause this test
67168         to fail with a false-positive, or to stop working altogether,
67169         depending on whether help-version changed or all the tests did.
67170         * top/maint.mk (_hv_regex): Remove this definition.
67171         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67172         (_hv_regex_strong): Use a stronger regex to check for conformance.
67173         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67174         Give a separate diagnostic for lack of conforming use.
67176         maint.mk: prohibit definition of symbols defined by gnulib
67177         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67178         definition of symbols defined by gnulib.
67180 2010-05-09  Bruno Haible  <bruno@clisp.org>
67182         acl: Avoid test failure on Cygwin-hosted mingw.
67183         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67185 2010-05-09  Bruno Haible  <bruno@clisp.org>
67187         error: Use system's fcntl function.
67188         * lib/error.c (fcntl): Undefine.
67190 2010-05-09  Jim Meyering  <meyering@redhat.com>
67192         verify: adjust formatting to be more consistent
67193         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67194         argument-list '('s, and after one comma.
67196 2010-05-09  Bruno Haible  <bruno@clisp.org>
67198         error: More reliable output on mingw.
67199         * lib/error.c: Include <windows.h>.
67200         (is_open): New function.
67201         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67202         defined.
67204 2010-05-09  Bruno Haible  <bruno@clisp.org>
67206         vasnprintf: Fix syntax errors in libintl build on mingw.
67207         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67208         pad_ourselves and prec_ourselves after use.
67210 2010-05-08  Bruno Haible  <bruno@clisp.org>
67212         * lib/config.charset: Update comments for Cygwin 1.7.
67213         * lib/localcharset.c: Likewise.
67215 2010-05-07  Jim Meyering  <meyering@redhat.com>
67217         init.sh: improve comments
67218         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
67219         . "${srcdir=.}/init.sh"; path_prepend_ .
67220         Add a note about path_prepend_ and the alternative of using
67221         TESTS_ENVIRONMENT.
67223 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
67225         exclude: Unescape hashed patterns in wildcard mode.
67226         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
67227         to the hash list.
67228         * tests/test-exclude8.sh: New test case.
67229         * modules/exclude-tests: Add new test.
67231 2010-05-05  Eric Blake  <eblake@redhat.com>
67233         verify: automate tests
67234         * modules/verify-tests: New module.
67235         * tests/test-verify.sh: New file.
67236         * tests/test-verify.c: Guard each negative test with a unique id.
67237         Also avoid warning about unused left hand of comma expressions.
67239 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67241         Further improvements to verify.h, suggested by Eric Blake.
67242         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
67243         the GL_* versions, to avoid collision with OpenGL.
67244         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
67245         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
67246         than testing merely whether it's defined.
67248         Modify verify.h to pacify gcc -Wredundant_decls.
67249         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67250         These use the prefix "GL_" since they're likely to be useful elsewhere.
67251         We may need to break them out into a different .h file.
67252         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67253         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67254         of verify_function__.
67256 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67258         Tests for module pwrite.
67259         * modules/pwrite-tests: New file.
67260         * tests/test-pwrite.sh: New file.
67261         * tests/test-pwrite.c: New file.
67263         New module pwrite.
67264         * lib/unistd.in.h (pwrite): New declaration.
67265         * lib/pwrite.c: New file, from glibc with modifications.
67266         * m4/pwrite.m4: New file.
67267         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67268         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67269         REPLACE_PWRITE.
67270         * modules/pwrite: New file.
67271         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67272         REPLACE_PWRITE.
67273         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67274         * doc/posix-functions/pwrite.texi: Mention the new module.
67276 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67278         pread: Update documentation.
67279         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67281 2010-05-04  Eric Blake  <eblake@redhat.com>
67283         docs: update cygwin progress
67284         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67285         this bug.
67286         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67287         Added in cygwin 1.7.2.
67288         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67289         Likewise.
67290         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67291         Likewise.
67292         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67293         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67294         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67295         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67296         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67297         Mention nproc module.
67298         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67299         bug in cygwin 1.7.5 addition.
67300         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67301         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67302         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67303         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67304         1.7.5.
67305         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67306         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67307         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67308         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67309         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67310         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67311         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67312         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67313         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67314         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67315         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67316         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67317         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67318         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67319         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67320         Likewise.
67321         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67322         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67323         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67324         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67325         Likewise.
67326         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67327         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67328         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67329         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67330         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67331         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67332         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67333         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67334         Likewise.
67335         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67336         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67337         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67338         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67339         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67340         Likewise.
67341         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67342         Likewise.
67343         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67344         Likewise.
67345         * doc/glibc-functions/xdrrec_endofrecord.texi
67346         (xdrrec_endofrecord): Likewise.
67347         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67348         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67349         Likewise.
67350         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67351         Likewise.
67353 2010-05-04  Jim Meyering  <meyering@redhat.com>
67355         gendocs.sh: make its "-s FILE" option more useful
67356         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67357         $PACKAGE to reflect the probably-different basename of "FILE".
67359 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67361         bootstrap: don't ignore download_po_files failure
67362         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67363         failure.
67365 2010-05-03  Jim Meyering  <meyering@redhat.com>
67367         maint.mk: allow to pass options to gendocs.sh
67368         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67369         (gendocs_options_): New overridable variable.
67371         gnu-web-doc-update: don't ignore configure or build failure
67372         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67374         announce-gen: backslash-escape '@'s in --help output
67375         * build-aux/announce-gen: Fix syntax errors.
67377         maint.mk, announce-gen: allow project-specific announcement mail headers
67378         * top/maint.mk (translation_project_): Define default.
67379         (announcement_Cc_, announcement_mail_headers_): Likewise.
67380         (announcement): Invoke announce-gen with new --mail-headers option.
67381         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
67383         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
67384         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
67385         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
67386         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
67387         line in the "err2" output file when running "make check" in verbose
67388         mode (i.e., with set -x enabled).
67390 2010-05-03  Bruno Haible  <bruno@clisp.org>
67392         wctob: Fix for weird platforms.
67393         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
67394         argument value.
67396 2010-05-03  Jim Meyering  <meyering@redhat.com>
67398         maint.mk: prohibit unwarranted use of <strings.h>
67399         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
67400         strings.h in a file that does not also use strcasecmp, strncasecmp,
67401         ffs or ffsll.
67403         maint.mk: remove obsolete comments
67404         * top/maint.mk: Remove stale, commented-out rules.
67406 2010-05-02  Bruno Haible  <bruno@clisp.org>
67408         wcwidth: Declare also when it's aliased.
67409         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
67410         macro.
67412 2010-05-02  Bruno Haible  <bruno@clisp.org>
67414         Fix regression from 2010-04-25.
67415         * gnulib-tool (func_modules_transitive_closure): Check the status of
67416         all modules, not only of the tests that are of the form foo-tests where
67417         foo is a module.
67419 2010-05-02  Bruno Haible  <bruno@clisp.org>
67421         wctob: Work around nasty Cygwin 1.7.2 bug.
67422         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
67423         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
67425 2010-05-01  Bruno Haible  <bruno@clisp.org>
67427         fpurge: Sharper test.
67428         * tests/test-fpurge.c (main): Add one more ftell check.
67429         * modules/fpurge-tests (Depends-on): Add ftell.
67430         Suggested by Eric Blake.
67432 2010-05-01  Bruno Haible  <bruno@clisp.org>
67434         ftello: Another test.
67435         * tests/test-ftello3.c: New file.
67436         * modules/ftello-tests (Files): Add it.
67437         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67438         MOSTLYCLEANFILES.
67440         ftell: Another test.
67441         * tests/test-ftell3.c: New file.
67442         * modules/ftell-tests (Files): Add it.
67443         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67444         MOSTLYCLEANFILES.
67446 2010-05-01  Bruno Haible  <bruno@clisp.org>
67448         ftell, ftello: Work around Solaris bug.
67449         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
67450         * lib/ftello.c: Include stdio-impl.h.
67451         (ftello): On Solaris, when _IOWRT is set, compute the result without
67452         looking at _IOREAD.
67453         * modules/ftello (Files): Add lib/stdio-impl.h.
67454         * doc/posix-functions/ftell.texi: Mention Solaris bug.
67455         * doc/posix-functions/ftello.texi: Likewise.
67456         Reported by Eric Blake.
67458 2010-05-01  Bruno Haible  <bruno@clisp.org>
67460         freading: Adapt to special meaning of _IOREAD flag on Solaris.
67461         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
67462         the _IOWRT flag is also set.
67464 2010-05-01  Bruno Haible  <bruno@clisp.org>
67466         Fix doc about a HP-UX stdio bug.
67467         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
67468         * doc/posix-functions/ftello.texi: Likewise.
67470 2010-05-01  Bruno Haible  <bruno@clisp.org>
67472         lseek test: Fix failure on Solaris.
67473         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
67474         output.
67476 2010-04-30  Jim Meyering  <meyering@redhat.com>
67478         bootstrap: don't ignore failure to generate po*/Makevars
67479         * build-aux/bootstrap (with_gettext): Don't ignore failure
67480         to create po/Makevars or runtime-po/Makevars.
67482 2010-04-29  Eric Blake  <eblake@redhat.com>
67484         headers: relax license to LGPLv2+
67485         * modules/fcntl-h (License): Relax license.
67486         * modules/getopt-posix (License): Likewise.
67487         * modules/locale (License): Likewise.
67488         * modules/math (License): Likewise.
67489         * modules/pty (License): Likewise.
67490         * modules/sched (License): Likewise.
67491         * modules/search (License): Likewise.
67492         * modules/spawn (License): Likewise.
67493         * modules/stdarg (License): Likewise.
67494         * modules/sysexits (License): Likewise.
67496 2010-04-29  Jim Meyering  <meyering@redhat.com>
67498         inttypes: relax license to LGPLv2+
67499         * modules/inttypes (License): Relax license.
67501 2010-04-29  Simon Josefsson  <simon@josefsson.org>
67503         * top/maint.mk (indent): Run twice to produce idempotent results.
67505 2010-04-28  Bruno Haible  <bruno@clisp.org>
67507         getdate: Generate getdate.c in the source directory.
67508         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
67509         MOSTLYCLEANFILES.
67510         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
67512 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
67514         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
67515         is not declared as a const *; avoid warnings in that case.
67517 2010-04-28  Eric Blake  <eblake@redhat.com>
67519         canonicalize-lgpl: avoid compiler warning
67520         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
67521         declaration' / 'extraneous semicolon' warning with some compilers.
67522         Reported by Andreas Gruenbacher.
67524 2010-04-28  Jim Meyering  <meyering@redhat.com>
67526         init.sh: ensure a more reliable exit status when exiting via trap
67527         * tests/init.sh (setup_): Don't rely on $? in signal handler.
67528         Inspired by patches from Dmitry V. Levin.
67529         Also trap on signal 3 (SIGQUIT).
67531 2010-04-27  Bruno Haible  <bruno@clisp.org>
67533         Update doc about utimes().
67534         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
67535         'utimens' module.
67536         Reported by Andreas Gruenbacher <agruen@suse.de>.
67538 2010-04-27  Eric Blake  <eblake@redhat.com>
67540         full-read, full-write: relax license
67541         * modules/full-read (License): Drop to LGPLv2+.
67542         * modules/full-write (License): Likewise.
67543         * modules/safe-read (License): Likewise.
67544         * modules/safe-write (License): Likewise.
67546         pthread: mention library for linking
67547         * modules/pthread (Link): Mention $(LIB_PTHREAD).
67549 2010-04-27  Jim Meyering  <meyering@redhat.com>
67551         maint.mk: fix a bug introduced in last change
67552         * top/maint.mk (gl_assured_headers_): Now that all names are on
67553         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
67554         is not anchored to end of word, it should be adequate.
67556         maint.mk: avoid side-effect in latest syntax-check
67557         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
67558         to run commands via $(shell...), and hence to incur cost only when
67559         the new rule is actually run.
67561         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
67562         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
67563         and use that to create a regexp used to detect all #if HAVE_..._H uses.
67564         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
67565         (gl_assured_headers_, az_, AZ_): Define.
67566         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
67568 2010-04-26  Jim Meyering  <jim@meyering.net>
67569             Bruno Haible  <bruno@clisp.org>
67571         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
67572         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
67573         Prompted by an exchange with Gilles Espinasse.
67575 2010-04-26  Jim Meyering  <meyering@redhat.com>
67577         git-version-gen: aesthetic tweak
67578         * build-aux/git-version-gen: Use "$nl" rather than a literal,
67579         so that the command remains on a single line.
67581 2010-04-26  Eric Blake  <eblake@redhat.com>
67583         git-version-gen: allow use on EBCDIC hosts
67584         * build-aux/git-version-gen (dirty): Use literal rather than tying
67585         ourselves to ascii.
67586         Reported by Steve Goetze.
67588 2010-04-25  Bruno Haible  <bruno@clisp.org>
67590         netdb: Add support for GNULIB_POSIXCHECK.
67591         * lib/netdb.in.h: Include warn-on-use.h.
67592         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
67593         functions are used when GNULIB_POSIXCHECK is defined and the
67594         getaddrinfo module is not in use.
67595         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
67596         freeaddrinfo, gai_strerror, getnameinfo are declared.
67597         * modules/netdb (Depends-on): Add warn-on-use.
67598         (Makefile.am): Include warn-on-use.h in netdb.h.
67600 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
67602         build: avoid "make check" failure without .git/ directory
67603         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
67604         there is no .git/ directory.
67606 2010-04-25  Bruno Haible  <bruno@clisp.org>
67608         ptsname: Fix misuse of ttyname_r.
67609         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
67610         of errno.
67612 2010-04-25  Bruno Haible  <bruno@clisp.org>
67614         ttyname_r: Make it work on Solaris 10.
67615         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
67616         if the system function has the POSIX declaration. Test whether the
67617         function fails if the buffer is less than 128 bytes large.
67618         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
67619         system's ttyname_r function. Provide a reasonably large buffer.
67620         * modules/ttyname_r (Depends-on): Add extensions.
67621         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
67623 2010-04-25  Bruno Haible  <bruno@clisp.org>
67625         Use the 'extensions' module for some more functions on Solaris.
67626         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
67627         module.
67628         * doc/posix-functions/ctime_r.texi: Likewise.
67629         * doc/posix-functions/getgrgid_r.texi: Likewise.
67630         * doc/posix-functions/getgrnam_r.texi: Likewise.
67631         * doc/posix-functions/getpwnam_r.texi: Likewise.
67632         * doc/posix-functions/getpwuid_r.texi: Likewise.
67633         * doc/posix-functions/readdir_r.texi: Likewise.
67634         * doc/posix-functions/sigwait.texi: Likewise.
67635         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
67636         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
67638 2010-04-25  Bruno Haible  <bruno@clisp.org>
67640         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
67641         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
67642         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
67643         * lib/ttyname_r.c: Include <limits.h>.
67644         (ttyname_r): Define using the system's ttyname_r function, if it exists
67645         and not on Solaris.
67646         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
67647         set.
67648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
67649         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
67650         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
67651         Reported by Simon Josefsson.
67653 2010-04-25  Bruno Haible  <bruno@clisp.org>
67655         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
67656         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
67657         * doc/posix-functions/ctime_r.texi: Likewise.
67658         * doc/posix-functions/getgrgid_r.texi: Likewise.
67659         * doc/posix-functions/getgrnam_r.texi: Likewise.
67660         * doc/posix-functions/getlogin_r.texi: Likewise.
67661         * doc/posix-functions/getpwnam_r.texi: Likewise.
67662         * doc/posix-functions/getpwuid_r.texi: Likewise.
67663         * doc/posix-functions/readdir_r.texi: Likewise.
67664         * doc/posix-functions/sigwait.texi: Likewise.
67665         * doc/posix-functions/ttyname_r.texi: Likewise.
67666         Reported by Simon Josefsson.
67668 2010-04-25  Bruno Haible  <bruno@clisp.org>
67670         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
67671         * gnulib-tool (func_usage): Document that --with-*-tests options apply
67672         also to --create-testdir.
67673         (func_acceptable): Don't consider the status of *-tests modules here.
67674         (func_modules_transitive_closure): Consider it here, before including a
67675         test module.
67676         (func_import, func_create_testdir): Set inc_all_direct_tests,
67677         inc_all_indirect_tests.
67678         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
67679         --create-testdir and --create-megatestdir.
67681 2010-04-25  Bruno Haible  <bruno@clisp.org>
67683         gnulib-tool: Add --without-*-tests options.
67684         * gnulib-tool (func_usage): Document the --without-*-tests options.
67685         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
67686         excl_unportable_tests): New variables.
67687         Fail if they are specified with --import or --update.
67688         (func_acceptable): Respect the excl_*_tests variables.
67689         (func_import): Set the excl_*_tests variables to empty.
67691 2010-04-25  Simon Josefsson  <simon@josefsson.org>
67692             Bruno Haible  <bruno@clisp.org>
67694         Work around a MacOS X 10.4 bug with openpty.
67695         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
67696         * tests/test-openpty.c (main): Close the master side explicitly.
67698 2010-04-25  Bruno Haible  <bruno@clisp.org>
67700         strnlen: Fix a C++ test error on MacOS X and Solaris.
67701         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
67702         the function is not declared.
67703         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
67704         Simon Josefsson.
67706 2010-04-24  Bruno Haible  <bruno@clisp.org>
67708         Avoid a gcc warning.
67709         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
67710         of correct type for %08lx directive.
67711         Reported by Eric Blake.
67713 2010-04-24  Bruno Haible  <bruno@clisp.org>
67715         vasnprintf: Correct errno value in case of out-of-memory.
67716         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
67717         or sprintf. Use the errno value from SNPRINTF or sprintf.
67718         Reported by Ian Beckwith <ianb@erislabs.net>.
67720 2010-04-24  Bruno Haible  <bruno@clisp.org>
67722         ansi-c++-opt: Find correct compiler when cross-compiling.
67723         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
67724         AC_CHECK_PROGS.
67725         Reported by Simon Josefsson.
67727 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
67729         vc-list-files: Add support for subversion
67730         * build-aux/vc-list-files: Use "svn list" to generate the list of
67731         files controlled by subversion.
67733 2010-04-23  Jim Meyering  <meyering@redhat.com>
67735         vc-list-files tests: convert to use init.sh
67736         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
67737         path_prepend_.
67738         Use Exit, not exit.
67739         Use skip_ rather than open coding it.
67740         Remove trap set-up and compare definitions.
67741         * tests/test-vc-list-files-git.sh: Likewise.
67742         * modules/vc-list-files-tests (Files): Add tests/init.sh.
67744 2010-04-22  Simon Josefsson  <simon@josefsson.org>
67746         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
67747         backup files.
67749 2010-04-21  Simon Josefsson  <simon@josefsson.org>
67751         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
67753 2010-04-20  Eric Blake  <eblake@redhat.com>
67755         tests: be robust to ignored SIGPIPE
67756         * tests/test-select-in.sh: Consume all output.
67757         * tests/test-lseek.sh: Check correct exit status, while avoiding
67758         EPIPE.
67760 2010-04-20  Simon Josefsson  <simon@josefsson.org>
67761             Bruno Haible  <bruno@clisp.org>
67763         visibility: Don't use -fvisibility if it leads to a warning.
67764         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
67765         yes, don't pretend that visibility works if it leads to a warning.
67766         Reported by Mike Gran <spk121@yahoo.com>.
67768 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
67770         * build-aux/bootstrap: Use "git -h" for testing for supported options
67771         instead of "git --help".  The short-form option only shows a summary,
67772         and doesn't layout the full man page.  Grep for the full option name
67773         in the summary, too.
67775 2010-04-19  Bruno Haible  <bruno@clisp.org>
67777         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
67778         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
67779         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
67780         mention of RELOCATABLE_STRIP.
67781         Reported by Sylvain Beucler <beuc@beuc.net>.
67783 2010-04-19  Bruno Haible  <bruno@clisp.org>
67785         * lib/diffseq.h: Fix typo in comment.
67786         Reported by Eric Blake.
67788 2010-04-19  Bruno Haible  <bruno@clisp.org>
67790         ioctl: Move autoconf macro to a .m4 file.
67791         * m4/ioctl.m4: New file, extracted from modules/ioctl.
67792         * modules/ioctl (Files): Add it.
67793         (configure.ac): Simply invoke gl_FUNC_IOCTL.
67794         Reported by Ian Beckwith <ianb@erislabs.net>.
67796 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
67797             Bruno Haible  <bruno@clisp.org>
67799         diffseq: Accommodate use-case with abstract arrays.
67800         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
67801         is not defined.
67802         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
67803         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
67805 2010-04-18  Bruno Haible  <bruno@clisp.org>
67807         * doc/posix-headers/stdbool.texi: More precise wording.
67809 2010-04-17  Jim Meyering  <meyering@redhat.com>
67811         maint.mk: use gnu-style indentation in an embedded perl script
67812         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
67813         Rename variable: s/two/last_two_bytes/
67815 2010-04-16  Eric Blake  <eblake@redhat.com>
67817         test-stdbool: skip test that fails with Solaris CC
67818         * tests/test-stdbool.c (f): Skip test that causes compilation
67819         error under buggy C++ compiler.
67820         * lib/stdbool.in.h: Document the limitation.
67821         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
67823         setenv: allow compilation with C++
67824         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
67825         register keyword.
67827         stdint: allow test to pass with C++
67828         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
67830         getopt: allow compilation with C++
67831         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
67832         struct.
67833         * lib/getopt.c (_getopt_internal_r): Use correct type.
67834         Reported by Dagobert Michelson, via Joel E. Denny.
67836 2010-04-16  Bruno Haible  <bruno@clisp.org>
67838         Override netdb.h always.
67839         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
67840         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
67841         Reported by Ludovic Courtès <ludo@gnu.org>.
67843 2010-04-15  Bruno Haible  <bruno@clisp.org>
67845         openpty: Fix mistake from 2010-03-21.
67846         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
67847         Reported by Simon Josefsson.
67849 2010-04-15  Eric Blake  <eblake@redhat.com>
67851         test-forkpty: fix expected signature
67852         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
67853         Reported by Simon Josefsson.
67855 2010-04-15  Jim Meyering  <meyering@redhat.com>
67857         maint.mk: texinfo_suffix_re_: correct the default regexp
67858         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
67860         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
67861         make it configurable via texinfo_suffix_re_.
67863 2010-04-14  Eric Blake  <eblake@redhat.com>
67865         strtok_r: relax license to LGPLv2+
67866         * modules/strtok_r (License): Relax license.
67867         Reported by Matthias Bolte.
67869 2010-04-14  Simon Josefsson  <simon@josefsson.org>
67871         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
67872         version 1.4.4 by default instead of requiring the libgcrypt
67873         version used during build.  This makes it possible to use the
67874         application with older but still binary compatible libgcrypt
67875         versions.
67877 2010-04-13  Eric Blake  <eblake@redhat.com>
67879         getopt-gnu: match recent glibc fixes and posix ruling
67880         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
67881         '+' handling, when requesting extensions.
67882         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
67883         'W;' handling.
67884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
67885         * doc/posix-functions/getopt.texi (getopt): Document this.
67886         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
67887         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67888         Likewise.
67890         getopt: merge bug fixes from glibc
67891         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
67892         diagnostics.  Honor '+:' correctly.  Reject ';'.
67894         getopt-posix: detect MacOS bug
67895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
67896         optind when missing a required argument.
67897         * doc/posix-functions/getopt.texi (getopt): Document the bug.
67898         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
67899         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67900         Likewise.
67902         getopt-posix: avoid spurious failure on Solaris
67903         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
67904         an indicator that setting optind=1 is sufficient for reset.
67906         getopt-posix: avoid spurious failure on FreeBSD
67907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
67908         in POSIX mode, since the m4 test uses it.
67910         gnulib-tool: silence warning on BSD sh
67911         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
67913 2010-04-13  Jim Meyering  <meyering@redhat.com>
67915         doc: users.txt: GNU patch now uses gnulib
67916         * users.txt: Add patch.
67918 2010-04-12  Jim Meyering  <meyering@redhat.com>
67920         maint.mk: generate more concise timing data for syntax-check rules
67921         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
67922         " done" from each line that reports a syntax-check test duration.
67924 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
67926         git-version-gen: use "git update-index..." rather than "git status"
67927         * build-aux/git-version-gen: Use git update-index --refresh, not
67928         "git status".  With some versions of git, "git status" would fail
67929         to update the index and result in an unwarranted "-dirty" suffix.
67931 2010-04-11  Jim Meyering  <meyering@redhat.com>
67933         openat: correct formatting (no semantic change)
67934         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
67935         Suggested by Bruno Haible.
67937 2010-04-11  Bruno Haible  <bruno@clisp.org>
67939         Stricter declaration checking in testdirs.
67940         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67941         If for_tests is true, augment AM_CPPFLAGS to define
67942         GNULIB_STRICT_CHECKING.
67943         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
67944         GNULIB_STRICT_CHECKING is defined, verify that the function is
67945         declared.
67947 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
67948             Bruno Haible  <bruno@clisp.org>
67950         libunistring: Improve configure output.
67951         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
67952         Don't say "consider installing GNU libunistring" when checking again
67953         with libiconv.
67955 2010-04-11  Bruno Haible  <bruno@clisp.org>
67957         libunistring: Correct value of $LTLIBUNISTRING.
67958         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
67959         correct the value of $LTLIBUNISTRING.
67961 2010-04-11  Bruno Haible  <bruno@clisp.org>
67963         havelib: Add static libraries to LIBS in the right order.
67964         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
67965         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
67967 2010-04-11  Bruno Haible  <bruno@clisp.org>
67969         libunistring: Detect libunistring also when it depends on libiconv.
67970         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
67971         the second AC_LIB_HAVE_LINKFLAGS invocation.
67973 2010-04-11  James Youngman  <jay@gnu.org>
67975         close-stream: declare local scalars to be "const"
67976         * lib/close-stream.c (close_stream): Make boolean variables const
67977         to document the fact that we set but do not change them.
67979 2010-04-11  Bruno Haible  <bruno@clisp.org>
67981         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
67983 2010-04-11  Jim Meyering  <meyering@redhat.com>
67985         maint.mk: don't include dist-check.mk
67986         * top/maint.mk: Remove bogus include directive.
67988         maint.mk: improve empty-line-at-EOF check
67989         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
67990         solution, rather than tail+Perl-based one.  The latter would read
67991         a few kilobytes from the end of each file, and did not handle empty
67992         files properly.
67994         maint.mk: print the elapsed time for each syntax-check rule
67995         * top/maint.mk (sc_m_rules_): Save start time in a file.
67996         (sc_z_rules_): New rules: remove temp file and print elapsed time.
67997         (local-check): Interpose the .z rules
67999 2010-04-11  Jim Meyering  <meyering@redhat.com>
68001         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68002         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68003         empty file with one that ends in an empty line.
68005 2010-04-10  Bruno Haible  <bruno@clisp.org>
68007         mkdir: Make it work on mingw64.
68008         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68009         * lib/mkdir.c: Update comment.
68010         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68012 2010-04-10  Bruno Haible  <bruno@clisp.org>
68014         Don't override improved macro from newer autoconf.
68015         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68016         autoconf >= 2.62.
68017         Reported by Joel E. Denny <jdenny@clemson.edu>.
68019 2010-04-10  Jim Meyering  <meyering@redhat.com>
68021         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68022         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68024         maint.mk: correct a diagnostic
68025         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68026         in diagnostic; now use $prohibit.
68028 2010-04-10  Bruno Haible  <address@hidden>
68030         fchownat: Fix a C++ test error on Solaris 8.
68031         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68032         the function does not exist.
68034 2010-04-10  Bruno Haible  <bruno@clisp.org>
68036         vasnprintf: Add more tests.
68037         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68038         (test_function): Test converting an invalid wide string.
68040         vasnprintf: Correct handling of unconvertible wide string arguments.
68041         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68042         VASNPRINTF.
68043         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68044         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68045         smaller than the expected maximum need for the directive. Set errno to
68046         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68047         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68049         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68050         * modules/vasnprintf (Files): Add m4/printf.m4.
68051         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68053 2010-04-10  Bruno Haible  <bruno@clisp.org>
68055         vasnprintf: Fix crash in %ls directive.
68056         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68057         string is passed as argument to %ls, with no precision and no width.
68058         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68060 2010-04-10  Bruno Haible  <bruno@clisp.org>
68062         vasnprintf: Fix multiple test failures on mingw.
68063         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68064         _snprintf, or snwprintf, not _snwprintf.
68066 2010-04-10  Bruno Haible  <bruno@clisp.org>
68068         write: Fix a C++ test error on mingw.
68069         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68071 2010-04-10  Bruno Haible  <bruno@clisp.org>
68073         vasnprintf test: Reduce code duplication.
68074         * tests/test-vasnprintf.c (test_function): New function, extracted from
68075         test_vasnprintf.
68076         (test_vasnprintf, test_asnprintf): Invoke it.
68078 2010-04-10  Bruno Haible  <bruno@clisp.org>
68080         strnlen: Fix warning in C++ mode on MacOS X.
68081         * lib/string.in.h (strnlen): Use the modern idiom.
68082         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68083         defining strnlen as a macro already in <config.h>.
68084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68085         REPLACE_STRNLEN.
68086         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68087         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68089 2010-04-08  James Youngman  <jay@gnu.org>
68091         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68092         the example.
68094 2010-04-09  Jim Meyering  <meyering@redhat.com>
68096         maint.mk: print better diagnostic when there is no $(_hv_file)
68097         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68098         announce that when $(_hv_file) (aka help-version) does not exist.
68100         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68101         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68102         not try to interpret its random input bytes.  Jarno Rajahalme reported
68103         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68104         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68105         (mktempd_): Likewise, just in case.
68107         ftruncate: add two years to projected module removal date: 2012
68108         * m4/ftruncate.m4: Adjust comments.
68110         ftruncate: mark module as obsolete; even MinGW provides it, now
68111         * modules/ftruncate (Status): Obsolete.
68112         (Notice): Say that.
68113         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68114         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68116 2010-04-08  Bruno Haible  <bruno@clisp.org>
68118         Fix side effects from tests-related modules.
68119         * modules/dprintf-posix (Comment): New section.
68120         * modules/fprintf-posix (Comment): Likewise.
68121         * modules/obstack-printf-posix (Comment): Likewise.
68122         * modules/printf-posix (Comment): Likewise.
68123         * modules/snprintf-posix (Comment): Likewise.
68124         * modules/sprintf-posix (Comment): Likewise.
68125         * modules/vasnprintf-posix (Comment): Likewise.
68126         * modules/vasprintf-posix (Comment): Likewise.
68127         * modules/vdprintf-posix (Comment): Likewise.
68128         * modules/vfprintf-posix (Comment): Likewise.
68129         * modules/vprintf-posix (Comment): Likewise.
68130         * modules/vsnprintf-posix (Comment): Likewise.
68131         * modules/vsprintf-posix (Comment): Likewise.
68132         * modules/xprintf-posix (Comment): Likewise.
68133         * modules/xvasprintf-posix (Comment): Likewise.
68134         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68135         * modules/floorf-tests (Depends-on): Likewise.
68136         * modules/round-tests (Depends-on): Likewise.
68137         * modules/roundf-tests (Depends-on): Likewise.
68138         * modules/trunc-tests (Depends-on): Likewise.
68139         * modules/truncf-tests (Depends-on): Likewise.
68140         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68141         'fprintf-posix' module is not present.
68142         * tests/test-floorf2.c (check): Likewise.
68143         * tests/test-trunc2.c (check): Likewise.
68144         * tests/test-truncf2.c (check): Likewise.
68145         * tests/test-round2.c (equal): Likewise.
68146         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68148 2010-04-07  Karl Berry  <karl@gnu.org>
68150         * config/srclist.txt,
68151         * config/srclistvars.sh,
68152         * config/srclist-update: doc fixes.
68154 2010-04-07  Jim Meyering  <meyering@redhat.com>
68156         maint.mk: add a PATH crosschecking syntax-check rule
68157         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68158         Useful if you use a test like the one in help-version (coreutils,
68159         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68160         printed by prog --version.
68162 2010-04-06  Bruno Haible  <bruno@clisp.org>
68164         Fix link error on mingw.
68165         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68166         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68168 2010-04-06  Bruno Haible  <bruno@clisp.org>
68170         Assume rmdir exists.
68171         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68173 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68175         doc: update users.txt
68176         * users.txt: Add gcal.
68178 2010-04-06  Jim Meyering  <meyering@redhat.com>
68180         init.sh: simply unset TMPDIR rather than risking env -i
68181         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68182         although it probably works fine on all Unix-based systems, some
68183         systems (Cygwin?) cannot tolerate a totally cleared environment.
68184         Suggestion from Eric Blake.
68186 2010-04-06  Jim Meyering  <meyering@redhat.com>
68188         init.sh: portability fix: use env's POSIX-specified -i option not -u
68189         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68190         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68192 2010-04-05  Bruno Haible  <bruno@clisp.org>
68194         btowc: Work around Cygwin 1.7.2 bug.
68195         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68196         does not map NUL to 0.
68197         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68199 2010-04-05  Bruno Haible  <bruno@clisp.org>
68201         Make the multithread modules work on Cygwin 1.7.2.
68202         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68203         imported symbols can be declared weak, so that it returns "no" on
68204         Cygwin 1.7.2.
68206 2010-04-05  Bruno Haible  <bruno@clisp.org>
68208         Use the module 'strncat'.
68209         * modules/unistr/u8-strncat (Depends-on): Add strncat.
68211         Tests for module 'strncat'.
68212         * modules/strncat-tests: New file.
68213         * tests/test-strncat.c: New file.
68215         New module 'strncat'.
68216         * lib/string.in.h (strncat): New declaration.
68217         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
68218         * m4/strncat.m4: New file, based on m4/memchr.m4.
68219         * modules/strncat: New file.
68220         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
68221         is declared.
68222         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
68223         REPLACE_STRNCAT.
68224         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
68225         REPLACE_STRNCAT.
68226         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
68227         module.
68228         * tests/test-string-c++.cc: Check signature of strncat.
68230 2010-04-05  Jim Meyering  <meyering@redhat.com>
68232         xstrtoumax-tests: convert to use init.sh
68233         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
68234         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68235         Use Exit, not exit.
68236         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68238         xstrtoimax-tests: convert to use init.sh
68239         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
68240         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68241         Use Exit, not exit.
68242         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68244 2010-04-05  Bruno Haible  <bruno@clisp.org>
68246         sys_socket: Avoid #define replacements in C++ mode.
68247         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
68248         warning to the function if possible, rather than #defining the symbol
68249         to a dysfunctional alias.
68251 2010-04-05  Bruno Haible  <bruno@clisp.org>
68253         fseeko: Fix C++ test error on mingw.
68254         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68255         gl_FUNC_FSEEKO.
68256         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68257         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68258         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68259         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68261 2010-04-05  Bruno Haible  <bruno@clisp.org>
68263         duplocale: Improve test output.
68264         * tests/test-duplocale.c (main): Print reason for skipped test.
68266 2010-04-05  Bruno Haible  <bruno@clisp.org>
68268         Assume rmdir exists.
68269         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68270         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68272 2010-04-05  Bruno Haible  <bruno@clisp.org>
68274         Fix link error on Solaris 8 with cc.
68275         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68277 2010-04-05  Bruno Haible  <bruno@clisp.org>
68279         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68280         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68282 2010-04-05  Bruno Haible  <bruno@clisp.org>
68284         vasprintf: Update documentation.
68285         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68287 2010-04-05  Bruno Haible  <bruno@clisp.org>
68289         ptsname: Improve test.
68290         * tests/test-ptsname.c (main): Also try the various master names of BSD
68291         systems.
68293 2010-04-05  Bruno Haible  <bruno@clisp.org>
68295         memchr: Avoid a possible C++ test error.
68296         * lib/string.in.h (memchr): Provide declaration if function is missing.
68297         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68298         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68300         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68302 2010-04-05  Bruno Haible  <bruno@clisp.org>
68304         strtok_r: Improve idiom.
68305         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68306         AC_LIBOBJ is used.
68308 2010-04-05  Bruno Haible  <bruno@clisp.org>
68310         strdup: Improve idiom.
68311         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68312         AC_LIBOBJ is used.
68313         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68314         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68315         when AC_LIBOBJ is used.
68317 2010-04-05  Bruno Haible  <bruno@clisp.org>
68319         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68320         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68321         don't set REPLACE_MBSINIT to 1.
68322         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68323         don't set REPLACE_MBRTOWC to 1.
68324         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68325         exist, don't set REPLACE_MBSRTOWCS to 1.
68326         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68327         exist, don't set REPLACE_MBSNRTOWCS to 1.
68328         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68329         don't set REPLACE_WCRTOMB to 1.
68330         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68331         exist, don't set REPLACE_WCSRTOMBS to 1.
68332         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68333         exist, don't set REPLACE_WCSNRTOMBS to 1.
68335 2010-04-05  Bruno Haible  <bruno@clisp.org>
68337         ldexpl: Improve idiom.
68338         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68339         make sure to set HAVE_DECL_LDEXPL to 0.
68341 2010-04-05  Jim Meyering  <meyering@redhat.com>
68343         xstrtol-tests: convert to use init.sh
68344         * modules/xstrtol-tests (Files): Add tests/init.sh.
68345         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68346         Use Exit, not exit.
68347         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68349         atexit-tests: convert to use init.sh
68350         * modules/atexit-tests (Files): Add tests/init.sh.
68351         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68352         Use Exit, not exit.
68353         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68355         init.sh: fix typo
68356         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68358         init.sh: make it easier for a test script to write to the tty, ...
68359         when using automake's parallel-tests mode.
68360         * tests/init.sh (stderr_fileno_): Define overridable variable.
68361         (warn_): New function, to use it.
68362         (fail_, skip_, framework_failure_): Use warn_.
68364 2010-04-04  Bruno Haible  <bruno@clisp.org>
68366         btowc: Avoid warning.
68367         * lib/btowc.c: Include <stdlib.h>.
68368         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68370 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68371             Bruno Haible  <bruno@clisp.org>
68373         wchar: Port to NetBSD 1.5.
68374         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68375         * lib/wctype.in.h (WEOF): Likewise.
68377 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68378             Bruno Haible  <bruno@clisp.org>
68380         Port extended stdio to NetBSD 1.5.
68381         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
68382         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
68383         older.
68385 2010-04-04  Bruno Haible  <bruno@clisp.org>
68387         string: Remove unused substitution.
68388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68389         HAVE_DECL_STRERROR.
68390         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
68392 2010-04-04  Bruno Haible  <bruno@clisp.org>
68394         strtod: Avoid a possible C++ test error.
68395         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
68396         set REPLACE_STRTOD.
68398 2010-04-04  Bruno Haible  <bruno@clisp.org>
68400         strerror: Update documentation.
68401         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
68403 2010-04-04  Bruno Haible  <bruno@clisp.org>
68405         stdio: Fix some C++ test errors on Solaris 8 with GCC.
68406         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
68407         _GL_CXXALIAS_SYS_CAST.
68409 2010-04-04  Bruno Haible  <bruno@clisp.org>
68411         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68412         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
68413         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
68414         REPLACE_FREXPL to 1.
68415         * doc/posix-functions/frexpl.texi: Update documentation.
68417 2010-04-04  Bruno Haible  <bruno@clisp.org>
68419         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68420         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
68422 2010-04-04  Bruno Haible  <bruno@clisp.org>
68424         Implement nanosleep for native Windows.
68425         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
68427 2010-04-04  Bruno Haible  <bruno@clisp.org>
68429         math: Fix some C++ test errors on Solaris 8.
68430         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68432 2010-04-04  Bruno Haible  <bruno@clisp.org>
68434         math: Fix some C++ test errors on Cygwin.
68435         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
68436         truncl): Provide declaration if the system does not have it.
68437         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
68438         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
68439         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
68440         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
68441         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
68442         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
68443         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
68444         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
68445         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
68446         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
68447         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
68448         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
68449         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
68450         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
68451         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
68452         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
68453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
68454         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68455         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68456         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
68457         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68458         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68460 2010-04-04  Bruno Haible  <bruno@clisp.org>
68462         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
68463         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
68464         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
68465         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
68466         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68467         * m4/isinf.m4 (gl_ISINF): Likewise.
68468         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
68470 2010-04-04  Bruno Haible  <bruno@clisp.org>
68472         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
68473         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
68475 2010-04-04  Bruno Haible  <bruno@clisp.org>
68477         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
68478         * modules/tmpfile (configure.ac): Update.
68480         tmpfile: Fix C++ test error on mingw.
68481         * lib/stdio.in.h (tmpfile): New declaration.
68482         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
68483         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
68484         * modules/tmpfile (Depends-on): Add stdio.
68485         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68486         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
68487         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
68488         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
68489         REPLACE_TMPFILE.
68490         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
68492 2010-04-04  Bruno Haible  <bruno@clisp.org>
68494         ioctl: Fix C++ test error on mingw.
68495         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
68496         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
68497         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
68499 2010-04-03  Bruno Haible  <bruno@clisp.org>
68501         wcwidth: Fix C++ test error on mingw.
68502         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
68503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
68504         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
68506 2010-04-03  Bruno Haible  <bruno@clisp.org>
68508         nanosleep: Fix C++ test error on mingw.
68509         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
68510         * lib/time.in.h (nanosleep): Use modern idiom.
68511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
68512         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
68513         REPLACE_NANOSLEEP to 1.
68514         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
68515         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
68517 2010-04-03  Bruno Haible  <bruno@clisp.org>
68519         strptime: Fix C++ test error on mingw.
68520         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
68521         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
68522         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
68523         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
68524         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
68525         not REPLACE_STRPTIME.
68526         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
68527         REPLACE_STRPTIME.
68529 2010-04-03  Bruno Haible  <bruno@clisp.org>
68531         timegm: Fix C++ test error on mingw.
68532         * lib/time.in.h (timegm): Use modern idiom.
68533         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
68534         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
68535         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
68536         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
68538 2010-04-03  Bruno Haible  <bruno@clisp.org>
68540         timegm: Assume declaration if function exists.
68541         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
68542         if it exists. Don't clobber ac_cv_func_timegm.
68544 2010-04-03  Bruno Haible  <bruno@clisp.org>
68546         time_r: Fix C++ test error on mingw.
68547         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
68548         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
68549         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
68550         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
68551         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
68553 2010-04-03  Bruno Haible  <bruno@clisp.org>
68555         time_r: Minor updates.
68556         * modules/time_r (Description): Mention the provided functions.
68557         * lib/time_r.c: Don't include <string.h>.
68558         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
68559         * doc/posix-functions/localtime_r.texi: Likewise.
68561 2010-04-03  Bruno Haible  <bruno@clisp.org>
68563         time: Fix regression introduced on 2010-03-08.
68564         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
68565         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
68567 2010-04-03  Jim Meyering  <meyering@redhat.com>
68569         maint.mk: don't silently disable project-specific syntax-check rules
68570         * top/maint.mk (_prohibit_regexp): Define, to help people realize
68571         that they need to convert their project-specific syntax-check rules
68572         to use the new _sc_search_regexp.
68574 2010-04-03  Bruno Haible  <bruno@clisp.org>
68576         fchdir: Fix regression introduced on 2010-03-08.
68577         * lib/unistd.in.h (fchdir): Fix declaration.
68578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
68579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
68580         REPLACE_FCHDIR.
68581         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
68582         REPLACE_FCHDIR.
68584 2010-04-03  Bruno Haible  <bruno@clisp.org>
68586         getpagesize: Fix C++ test error on mingw.
68587         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
68588         system does not declare the function.
68589         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
68590         declared.
68591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68592         HAVE_DECL_GETPAGESIZE.
68593         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
68595 2010-04-03  Bruno Haible  <bruno@clisp.org>
68597         stdio: Make C++ tests work on mingw.
68598         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
68599         does not declare the function.
68601 2010-04-03  Bruno Haible  <bruno@clisp.org>
68603         ftello: Fix C++ test error on mingw.
68604         * lib/stdio.in.h (ftello): Use modern idiom.
68605         * lib/ftello.c (ftello): Renamed from rpl_ftello.
68606         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
68607         is missing and that it needs to be replaced.
68608         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
68609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
68610         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
68612 2010-04-03  Bruno Haible  <bruno@clisp.org>
68614         fseeko: Fix C++ test error on mingw.
68615         * lib/stdio.in.h (fseeko): Use modern idiom.
68616         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
68617         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
68618         is missing and that it needs to be replaced.
68619         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
68620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
68621         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
68623 2010-04-03  Bruno Haible  <bruno@clisp.org>
68625         mkstemp: Fix C++ test error on mingw.
68626         * lib/stdlib.in.h (mkstemp): Use modern idiom.
68627         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
68628         function is missing and that it needs to be replaced.
68629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
68630         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
68632 2010-04-03  Bruno Haible  <bruno@clisp.org>
68634         stpncpy: Fix C++ test error on mingw.
68635         * lib/string.in.h (stpncpy): Use modern idiom.
68636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
68637         function is missing and that it needs to be replaced.
68638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68639         REPLACE_STPNCPY.
68640         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
68642 2010-04-03  Bruno Haible  <bruno@clisp.org>
68644         sys_stat: Fix C++ test error on mingw.
68645         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
68646         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
68648 2010-04-03  Bruno Haible  <bruno@clisp.org>
68650         pty: Update doc.
68651         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
68653 2010-04-03  Bruno Haible  <bruno@clisp.org>
68655         unistd: Fix C++ test error on mingw.
68656         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
68658 2010-04-03  Bruno Haible  <bruno@clisp.org>
68660         Update doc regarding mingw.
68661         * doc/glibc-functions/openpty.texi: Update regarding mingw.
68662         * doc/glibc-functions/login_tty.texi: Likewise.
68663         * doc/glibc-functions/forkpty.texi: Likewise.
68665 2010-04-03  Bruno Haible  <bruno@clisp.org>
68667         stdlib: Avoid compilation failure of c-strtold on mingw.
68668         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
68670 2010-04-03  Bruno Haible  <bruno@clisp.org>
68672         locale: Make C++ tests work on Cygwin and mingw.
68673         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
68674         cannot provide the function.
68675         Reported by Simon Josefsson.
68677 2010-04-03  Bruno Haible  <bruno@clisp.org>
68679         localename: Port to MacOS X 10.6.
68680         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
68681         memory layout of the locales in MacOS X 10.6 as well.
68682         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
68684 2010-04-02  Bruno Haible  <bruno@clisp.org>
68686         gnulib-tool: Ensure that long-running tests are executed last.
68687         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
68688         running tests after the one for the other tests.
68690 2010-04-02  Bruno Haible  <bruno@clisp.org>
68692         gnulib-tool: Ensure the tests in the main directory are executed first.
68693         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
68694         start with the current directory.
68696 2010-04-02  Bruno Haible  <bruno@clisp.org>
68698         Tests for module 'havelib', moved here from GNU gettext.
68699         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
68700         modifications.
68701         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
68702         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
68703         with modifications.
68704         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
68705         modifications.
68706         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
68707         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
68708         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
68709         with modifications.
68710         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
68711         with modifications.
68712         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
68713         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
68714         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
68715         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
68716         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
68717         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
68718         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
68719         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
68720         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
68721         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
68722         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
68723         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
68724         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
68725         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
68726         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
68727         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
68728         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
68729         with modifications.
68730         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
68731         with modifications.
68732         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
68733         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
68734         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
68735         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
68736         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
68737         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
68738         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
68739         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
68740         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
68741         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
68742         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
68743         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
68744         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
68745         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
68746         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
68747         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
68748         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
68749         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
68750         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
68751         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
68752         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
68753         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
68754         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
68755         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
68756         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
68757         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
68758         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
68759         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
68760         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
68761         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
68762         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
68763         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
68764         * tests/havelib/rpathx/rpathx.c: New file, from
68765         gettext/autoconf-lib-link.
68766         * tests/havelib/rpathx/Makefile.am: New file, from
68767         gettext/autoconf-lib-link.
68768         * tests/havelib/rpathx/configure.ac: New file, from
68769         gettext/autoconf-lib-link with modifications.
68770         * tests/havelib/rpathy/rpathy.c: New file, from
68771         gettext/autoconf-lib-link.
68772         * tests/havelib/rpathy/Makefile.am: New file, from
68773         gettext/autoconf-lib-link.
68774         * tests/havelib/rpathy/configure.ac: New file, from
68775         gettext/autoconf-lib-link with modifications.
68776         * tests/havelib/rpathz/rpathz.c: New file, from
68777         gettext/autoconf-lib-link.
68778         * tests/havelib/rpathz/Makefile.am: New file, from
68779         gettext/autoconf-lib-link.
68780         * tests/havelib/rpathz/configure.ac: New file, from
68781         gettext/autoconf-lib-link with modifications.
68782         * tests/havelib/rpathlx/usex.c: New file, from
68783         gettext/autoconf-lib-link.
68784         * tests/havelib/rpathlx/Makefile.am: New file, from
68785         gettext/autoconf-lib-link.
68786         * tests/havelib/rpathlx/configure.ac: New file, from
68787         gettext/autoconf-lib-link with modifications.
68788         * tests/havelib/rpathly/usey.c: New file, from
68789         gettext/autoconf-lib-link.
68790         * tests/havelib/rpathly/Makefile.am: New file, from
68791         gettext/autoconf-lib-link.
68792         * tests/havelib/rpathly/configure.ac: New file, from
68793         gettext/autoconf-lib-link with modifications.
68794         * tests/havelib/rpathlz/usez.c: New file, from
68795         gettext/autoconf-lib-link.
68796         * tests/havelib/rpathlz/Makefile.am: New file, from
68797         gettext/autoconf-lib-link.
68798         * tests/havelib/rpathlz/configure.ac: New file, from
68799         gettext/autoconf-lib-link with modifications.
68800         * tests/havelib/rpathlyx/usey.c: New file, from
68801         gettext/autoconf-lib-link.
68802         * tests/havelib/rpathlyx/Makefile.am: New file, from
68803         gettext/autoconf-lib-link.
68804         * tests/havelib/rpathlyx/configure.ac: New file, from
68805         gettext/autoconf-lib-link with modifications.
68806         * tests/havelib/rpathlzyx/usez.c: New file, from
68807         gettext/autoconf-lib-link.
68808         * tests/havelib/rpathlzyx/Makefile.am: New file, from
68809         gettext/autoconf-lib-link.
68810         * tests/havelib/rpathlzyx/configure.ac: New file, from
68811         gettext/autoconf-lib-link with modifications.
68812         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
68813         with modifications.
68815 2010-04-02  Bruno Haible  <bruno@clisp.org>
68817         gnulib-tool: Create distributed built sources also for the tests.
68818         * gnulib-tool (func_create_testdir): Also generate distributed built
68819         sources in the tests directory.
68821 2010-04-02  Bruno Haible  <bruno@clisp.org>
68823         gnulib-tool: Obey user's environment variables.
68824         * gnulib-tool (func_create_testdir): When creating built sources,
68825         respect the environment variables for autoconf, automake, etc. given by
68826         the user.
68828 2010-04-02  Bruno Haible  <bruno@clisp.org>
68830         gnulib-tool: Provide the value of --m4-base to modules.
68831         * gnulib-tool (func_import, func_create_testdir): Emit a definition
68832         of gl_m4_base.
68834 2010-04-02  Eric Blake  <eblake@redhat.com>
68836         maint.mk: fix some fallout
68837         * NEWS: Document the incompatible change, and its effect on cfg.mk.
68838         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
68840 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
68842         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
68843         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
68844         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
68845         (sc_cast_of_x_alloc_return_value): Likewise.
68846         (sc_cast_of_alloca_return_value): Likewise.
68847         (sc_space_tab): Likewise.
68848         (sc_prohibit_atoi_atof): Likewise.
68849         (sc_prohibit_magic_number_exit): Likewise.
68850         (sc_error_exit_success): Likewise.
68851         (sc_file_system): Likewise.
68852         (sc_prohibit_have_config_h): Likewise.
68853         (sc_require_config_h): Likewise.
68854         (sc_prohibit_HAVE_MBRTOWC): Likewise.
68855         (sc_obsolete_symbols): Likewise.
68856         (sc_changelog): Likewise.
68857         (sc_program_name): Likewise.
68858         (sc_the_the): Likewise.
68859         (sc_trailing_blank): Likewise.
68860         (sc_two_space_separator_in_usage): Likewise.
68861         (sc_useless_cpp_parens): Likewise.
68862         (sc_GPL_version): Likewise.
68863         (sc_GFDL_version): Likewise.
68864         (sc_texinfo_acronym): Likewise.
68865         (sc_prohibit_cvs_keyword): Likewise.
68866         (sc_prohibit_stat_st_blocks): Likewise.
68867         (sc_prohibit_S_IS_definition): Likewise.
68868         (sc_redundant_const): Likewise.
68869         (sc_makefile_TAB_only_indentation): Likewise.
68870         (sc_m4_quote_check): Likewise.
68871         (sc_makefile_path_separator_check): Likewise.
68872         (sc_copyright_check): Likewise.
68873         (sc_Wundef_boolean): Likewise.
68874         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
68876         maint.mk: match 0 or more whitespace-before-function-call '('
68877         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
68878         that have zero or two-and-more spaces between the function name
68879         and the open parenthesis.
68880         (sc_error_message_warn_fatal): Likewise.
68881         (sc_error_message_uppercase): Likewise.
68882         (sc_error_message_period): Likewise.
68884 2010-03-31  Eric Blake  <eblake@redhat.com>
68886         maint.mk: check for [ as well as test
68887         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
68888         Based on a libvirt report by Matthias Bolte.
68890         gnumakefile: don't squelch _version output
68891         * top/GNUmakefile (_version): Create one-shot dependency rather
68892         than using $(shell) when version must be regenerated.
68893         (_autoreconf): Run verbosely, by default.
68895         sys_time: avoid compiler warnings
68896         * lib/sys_time.in.h (includes): Ensure gcc pragma is
68897         unconditional, fixing regression from 2010-03-29.
68898         Reported by Simon Josefsson.
68900 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
68902         maint.mk: s/_header_without_use/_sc_header_without_use/
68903         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
68904         (sc_prohibit_assert_without_use): Use the new name.
68905         (sc_prohibit_close_stream_without_use): Likewise.
68906         (sc_prohibit_getopt_without_use): Likewise.
68907         (sc_prohibit_quotearg_without_use): Likewise.
68908         (sc_prohibit_quote_without_use): Likewise.
68909         (sc_prohibit_long_options_without_use): Likewise.
68910         (sc_prohibit_inttostr_without_use): Likewise.
68911         (sc_prohibit_ignore_value_without_use): Likewise.
68912         (sc_prohibit_error_without_use): Likewise.
68913         (sc_prohibit_xalloc_without_use): Likewise.
68914         (sc_prohibit_hash_without_use): Likewise.
68915         (sc_prohibit_hash_pjw_without_use): Likewise.
68916         (sc_prohibit_safe_read_without_use): Likewise.
68917         (sc_prohibit_argmatch_without_use): Likewise.
68918         (sc_prohibit_canonicalize_without_use): Likewise.
68919         (sc_prohibit_root_dev_ino_without_use): Likewise.
68920         (sc_prohibit_openat_without_use): Likewise.
68921         (sc_prohibit_c_ctype_without_use): Likewise.
68922         (sc_prohibit_signal_without_use): Likewise.
68923         (sc_prohibit_intprops_without_use): Likewise.
68925 2010-03-30  Eric Blake  <eblake@redhat.com>
68927         maint: improve module indicators
68928         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
68929         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
68930         columns, and avoid extra macro expansion.
68932         fdopendir: work around FreeBSD bug
68933         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
68934         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
68935         * modules/dirent (Makefile.am): Substitute it.
68936         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
68937         declaration.
68938         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
68939         fix.
68940         Reported by Christian Weisgerber <naddy@mips.inka.de>.
68942 2010-03-29  Bruno Haible  <bruno@clisp.org>
68944         Emit #pragma system_header after the inclusion guard, not before.
68945         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
68946         guard that spans the entire file, not before. This enables an
68947         optimization in GCC's preprocessor.
68948         * lib/ctype.in.h: Likewise.
68949         * lib/dirent.in.h: Likewise.
68950         * lib/errno.in.h: Likewise.
68951         * lib/float.in.h: Likewise.
68952         * lib/getopt.in.h: Likewise.
68953         * lib/iconv.in.h: Likewise.
68954         * lib/langinfo.in.h: Likewise.
68955         * lib/locale.in.h: Likewise.
68956         * lib/math.in.h: Likewise.
68957         * lib/netdb.in.h: Likewise.
68958         * lib/netinet_in.in.h: Likewise.
68959         * lib/pty.in.h: Likewise.
68960         * lib/sched.in.h: Likewise.
68961         * lib/se-selinux.in.h: Likewise.
68962         * lib/search.in.h: Likewise.
68963         * lib/spawn.in.h: Likewise.
68964         * lib/stdarg.in.h: Likewise.
68965         * lib/stdint.in.h: Likewise.
68966         * lib/string.in.h: Likewise.
68967         * lib/strings.in.h: Likewise.
68968         * lib/sys_file.in.h: Likewise.
68969         * lib/sys_ioctl.in.h: Likewise.
68970         * lib/sys_time.in.h: Likewise.
68971         * lib/sys_times.in.h: Likewise.
68972         * lib/sys_utsname.in.h: Likewise.
68973         * lib/sys_wait.in.h: Likewise.
68974         * lib/sysexits.in.h: Likewise.
68975         * lib/wctype.in.h: Likewise.
68977 2010-03-28  James Youngman  <jay@gnu.org>
68979         save-cwd: don't leak a file descriptor when the caller execs.
68980         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
68981         saved file descriptor.
68982         * modules/save-cwd (Depends-on): Depend on cloexec.
68984 2010-03-29  Bruno Haible  <bruno@clisp.org>
68986         Remove vestiges of fts-lgpl module.
68987         * lib/fts_.h: Assume GNULIB_FTS is 1.
68988         * lib/fts.c: Likewise.
68989         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
68991 2010-03-28  Bruno Haible  <bruno@clisp.org>
68993         Fix definition of tests witness macro.
68994         * gnulib-tool (func_import): Fix definition of witness macro.
68996 2010-03-28  Bruno Haible  <bruno@clisp.org>
68998         Fix ioctl's protoype on glibc systems.
68999         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69000         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69001         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69002         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69003         signature. If not, arrange to replace the ioctl function.
69004         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69005         REPLACE_IOCTL.
69006         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69007         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69008         Reported by Ludovic Courtès <ludo@gnu.org>.
69010 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69012         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69013         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69014         made it so grep -r --include=GLOB* ... did not work.
69016 2010-03-26  Jim Meyering  <meyering@redhat.com>
69017             Eric Blake  <eblake@redhat.com>
69019         maint.mk: prohibit use of test's -o and -a operators
69020         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69022 2010-03-28  Bruno Haible  <bruno@clisp.org>
69024         Remove unused GNULIB_XYZ macro definitions.
69025         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69026         invocation.
69028 2010-03-28  Bruno Haible  <bruno@clisp.org>
69030         Mark privileged tests modules.
69031         * modules/idpriv-drop-tests (Status): New section.
69032         * modules/idpriv-droptemp-tests (Status): New section.
69034 2010-03-28  Bruno Haible  <bruno@clisp.org>
69036         Split C++ tests into separate tests modules.
69037         * modules/dirent-c++-tests: New file, extracted from
69038         modules/dirent-tests.
69039         * modules/dirent-tests: Depend on it.
69040         * modules/fcntl-h-c++-tests: New file, extracted from
69041         modules/fcntl-h-tests.
69042         * modules/fcntl-h-tests: Depend on it.
69043         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69044         * modules/glob-tests: Depend on it.
69045         * modules/iconv-h-c++-tests: New file, extracted from
69046         modules/iconv-h-tests.
69047         * modules/iconv-h-tests: Depend on it.
69048         * modules/langinfo-c++-tests: New file, extracted from
69049         modules/langinfo-tests.
69050         * modules/langinfo-tests: Depend on it.
69051         * modules/locale-c++-tests: New file, extracted from
69052         modules/locale-tests.
69053         * modules/locale-tests: Depend on it.
69054         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69055         * modules/math-tests: Depend on it.
69056         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69057         * modules/pty-tests: Depend on it.
69058         * modules/search-c++-tests: New file, extracted from
69059         modules/search-tests.
69060         * modules/search-tests: Depend on it.
69061         * modules/signal-c++-tests: New file, extracted from
69062         modules/signal-tests.
69063         * modules/signal-tests: Depend on it.
69064         * modules/spawn-c++-tests: New file, extracted from
69065         modules/spawn-tests.
69066         * modules/spawn-tests: Depend on it.
69067         * modules/stdio-c++-tests: New file, extracted from
69068         modules/stdio-tests.
69069         * modules/stdio-tests: Depend on it.
69070         * modules/stdlib-c++-tests: New file, extracted from
69071         modules/stdlib-tests.
69072         * modules/stdlib-tests: Depend on it.
69073         * modules/string-c++-tests: New file, extracted from
69074         modules/string-tests.
69075         * modules/string-tests: Depend on it.
69076         * modules/sys_ioctl-c++-tests: New file, extracted from
69077         modules/sys_ioctl-tests.
69078         * modules/sys_ioctl-tests: Depend on it.
69079         * modules/sys_select-c++-tests: New file, extracted from
69080         modules/sys_select-tests.
69081         * modules/sys_select-tests: Depend on it.
69082         * modules/sys_socket-c++-tests: New file, extracted from
69083         modules/sys_socket-tests.
69084         * modules/sys_socket-tests: Depend on it.
69085         * modules/sys_stat-c++-tests: New file, extracted from
69086         modules/sys_stat-tests.
69087         * modules/sys_stat-tests: Depend on it.
69088         * modules/sys_time-c++-tests: New file, extracted from
69089         modules/sys_time-tests.
69090         * modules/sys_time-tests: Depend on it.
69091         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69092         * modules/time-tests: Depend on it.
69093         * modules/unistd-c++-tests: New file, extracted from
69094         modules/unistd-tests.
69095         * modules/unistd-tests: Depend on it.
69096         * modules/wchar-c++-tests: New file, extracted from
69097         modules/wchar-tests.
69098         * modules/wchar-tests: Depend on it.
69099         * modules/wctype-c++-tests: New file, extracted from
69100         modules/wctype-tests.
69101         * modules/wctype-tests: Depend on it.
69102         Reported by Simon Josefsson.
69104 2010-03-28  Bruno Haible  <bruno@clisp.org>
69106         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69107         * gnulib-tool (func_exists_module): New function, extracted from
69108         func_verify_module.
69109         (func_verify_module): Use it.
69110         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69111         'foo' only if 'foo' exists.
69112         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69113         module.
69115 2010-03-28  Bruno Haible  <bruno@clisp.org>
69117         gnulib-tool: Add support for special categories of tests.
69118         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69119         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69120         (func_usage): Document them.
69121         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69122         inc_unportable_tests, inc_all_tests): New variables.
69123         (func_acceptable): Consider these variables.
69124         (func_modules_transitive_closure): Make it work when the 'Status' field
69125         consists of multiple words.
69126         (func_import): Store and restore the values of inc_cxx_tests,
69127         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69128         inc_all_tests in gnulib-comp.m4.
69129         (func_create_testdir): Set inc_all_tests to true.
69130         * doc/gnulib.texi (Extra tests modules): New section.
69131         Suggested by Jim Meyering.
69133 2010-03-28  Bruno Haible  <bruno@clisp.org>
69135         ansi-c++-opt: Allow turning off the C++ build by default.
69136         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69137         gl_CXX_CHOICE_DEFAULT_NO is defined.
69138         Requested by Eric Blake.
69140 2010-03-28  Bruno Haible  <bruno@clisp.org>
69142         unistd: Avoid #define replacements in C++ mode.
69143         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69144         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69145         setsockopt, shutdown, select): In C++, attach a warning to the function
69146         if possible, rather than #defining the symbol to a dysfunctional alias.
69147         Reported by John W. Eaton <jwe@gnu.org>.
69149 2010-03-28  Bruno Haible  <bruno@clisp.org>
69151         Fix link errors on mingw.
69152         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69153         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69154         $(LIBSOCKET).
69155         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69156         $(LIBSOCKET).
69158 2010-03-28  Bruno Haible  <bruno@clisp.org>
69159             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69161         lib-ignore: Determine different options for different compilers.
69162         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69163         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69164         Add comments.
69165         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69166         * NEWS: Mention the change.
69168 2010-03-27  Bruno Haible  <bruno@clisp.org>
69170         Remove unused GNULIB_XYZ macro definitions.
69171         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69172         * modules/fseek (configure.ac): Likewise.
69173         * modules/ioctl (configure.ac): Likewise.
69174         * modules/open (configure.ac): Likewise.
69175         * modules/stdlib-safer (configure.ac): Likewise.
69177 2010-03-27  Bruno Haible  <bruno@clisp.org>
69179         Add a remark about certain modules.
69180         * modules/malloc (Comment): New section.
69181         * modules/realloc (Comment): Likewise.
69182         * modules/sigpipe (Comment): Likewise.
69184 2010-03-27  Bruno Haible  <bruno@clisp.org>
69186         Resolve conflict between the two kinds of module indicators.
69187         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69188         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69189         * modules/canonicalize (configure.ac): Invoke
69190         gl_MODULE_INDICATOR_FOR_TESTS.
69191         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69192         GNULIB_XYZ.
69193         * tests/test-dirent-c++.cc: Likewise.
69194         * tests/test-dirent-safer.c: Likewise.
69195         * tests/test-dup2.c: Likewise.
69196         * tests/test-fchdir.c: Likewise.
69197         * tests/test-fcntl-h-c++.cc: Likewise.
69198         * tests/test-getopt.c: Likewise.
69199         * tests/test-getopt.h: Likewise.
69200         * tests/test-langinfo-c++.cc: Likewise.
69201         * tests/test-locale-c++.cc: Likewise.
69202         * tests/test-math-c++.cc: Likewise.
69203         * tests/test-pty-c++.cc: Likewise.
69204         * tests/test-search-c++.cc: Likewise.
69205         * tests/test-signal-c++.cc: Likewise.
69206         * tests/test-spawn-c++.cc: Likewise.
69207         * tests/test-stdio-c++.cc: Likewise.
69208         * tests/test-stdlib-c++.cc: Likewise.
69209         * tests/test-string-c++.cc: Likewise.
69210         * tests/test-sys_ioctl-c++.cc: Likewise.
69211         * tests/test-sys_select-c++.cc: Likewise.
69212         * tests/test-sys_socket-c++.cc: Likewise.
69213         * tests/test-sys_stat-c++.cc: Likewise.
69214         * tests/test-sys_time-c++.cc: Likewise.
69215         * tests/test-time-c++.cc: Likewise.
69216         * tests/test-unistd-c++.cc: Likewise.
69217         * tests/test-wchar-c++.cc: Likewise.
69218         * tests/uninorm/test-u8-nfc.c: Likewise.
69219         * tests/uninorm/test-u8-nfd.c: Likewise.
69220         * tests/uninorm/test-u8-nfkc.c: Likewise.
69221         * tests/uninorm/test-u8-nfkd.c: Likewise.
69222         * tests/uninorm/test-u16-nfc.c: Likewise.
69223         * tests/uninorm/test-u16-nfd.c: Likewise.
69224         * tests/uninorm/test-u16-nfkc.c: Likewise.
69225         * tests/uninorm/test-u16-nfkd.c: Likewise.
69226         * tests/uninorm/test-u32-nfc.c: Likewise.
69227         * tests/uninorm/test-u32-nfc-big.c: Likewise.
69228         * tests/uninorm/test-u32-nfd.c: Likewise.
69229         * tests/uninorm/test-u32-nfd-big.c: Likewise.
69230         * tests/uninorm/test-u32-nfkc.c: Likewise.
69231         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
69232         * tests/uninorm/test-u32-nfkd.c: Likewise.
69233         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
69234         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69236 2010-03-27  Bruno Haible  <bruno@clisp.org>
69238         Distinguish two kinds of module indicators.
69239         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
69240         gl_MODULE_INDICATOR.
69241         (gl_MODULE_INDICATOR): New macro.
69242         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69243         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
69244         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69245         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69246         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69247         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69248         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69249         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69250         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69251         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69252         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69253         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69254         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69255         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69256         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69257         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69258         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69259         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69260         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69261         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69262         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69263         * modules/cloexec (configure.ac): Likewise.
69264         * modules/getopt-gnu (configure.ac): Likewise.
69265         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69266         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69267         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69268         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69270 2010-03-27  Bruno Haible  <bruno@clisp.org>
69272         New module description field 'Comment'.
69273         * gnulib-tool: New option --extract-comment.
69274         (func_usage): Document it.
69275         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69276         (func_get_comment): New function.
69277         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69279 2010-03-27  Bruno Haible  <bruno@clisp.org>
69281         Addendum to 2010-02-07 commit.
69282         * gnulib-tool (func_usage): Document --extract-applicability option.
69284 2010-03-27  Bruno Haible  <bruno@clisp.org>
69286         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69287         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69288         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69289         rather than link errors.
69291 2010-03-27  Bruno Haible  <bruno@clisp.org>
69293         Avoid side effects from tests-related modules on the compilation of lib.
69294         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69295         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69296         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69297         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69298         macro.
69299         (func_import): Define a witness macro. Assign it a value that depends
69300         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69301         tests-related modules.
69302         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69303         Reported by Jim Meyering.
69305 2010-03-27  Bruno Haible  <bruno@clisp.org>
69307         Factorize common .m4 code.
69308         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69309         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69310         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69311         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69312         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69313         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69314         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69315         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69316         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69317         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69318         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69319         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69320         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69321         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69322         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69323         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69324         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69325         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69326         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69327         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69328         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69329         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69330         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69331         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69332         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69333         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69334         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69335         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69336         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69337         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69338         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69339         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69341 2010-03-27  Bruno Haible  <bruno@clisp.org>
69343         Fix a compilation error on Cygwin with g++ >= 4.3.
69344         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69345         if it is undefined or if we alias it to chmod.
69346         (lstat): Don't warn about the use of this function if it is undefined
69347         or if we alias it to stat.
69348         Reported by Simon Josefsson.
69350 2010-03-27  Bruno Haible  <bruno@clisp.org>
69352         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69353         * modules/getlogin (configure.ac): Update.
69355         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69356         * modules/getlogin_r (configure.ac): Update.
69358         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69360         * modules/inet_ntop (configure.ac): Update.
69362         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69363         * modules/inet_pton (configure.ac): Update.
69365         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69366         * modules/mbslen (configure.ac): Update.
69368         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69369         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69370         * modules/forkpty (configure.ac): Update.
69371         * modules/openpty (configure.ac): Update.
69373 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69375         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69376         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69378 2010-03-25  Eric Blake  <eblake@redhat.com>
69380         maint: use pragma consistently across replacement headers
69381         * lib/ctype.in.h (system_header): Hoist for consistent placement.
69382         * lib/dirent.in.h (system_header): Likewise.
69383         * lib/errno.in.h (system_header): Likewise.
69384         * lib/float.in.h (system_header): Likewise.
69385         * lib/getopt.in.h (system_header): Likewise.
69386         * lib/iconv.in.h (system_header): Likewise.
69387         * lib/inttypes.in.h (system_header): Likewise.
69388         * lib/langinfo.in.h (system_header): Likewise.
69389         * lib/locale.in.h (system_header): Likewise.
69390         * lib/math.in.h (system_header): Likewise.
69391         * lib/netdb.in.h (system_header): Likewise.
69392         * lib/netinet_in.in.h (system_header): Likewise.
69393         * lib/pty.in.h (system_header): Likewise.
69394         * lib/sched.in.h (system_header): Likewise.
69395         * lib/se-selinux.in.h (system_header): Likewise.
69396         * lib/search.in.h (system_header): Likewise.
69397         * lib/spawn.in.h (system_header): Likewise.
69398         * lib/stdarg.in.h (system_header): Likewise.
69399         * lib/stdint.in.h (system_header): Likewise.
69400         * lib/string.in.h (system_header): Likewise.
69401         * lib/strings.in.h (system_header): Likewise.
69402         * lib/sys_file.in.h (system_header): Likewise.
69403         * lib/sys_ioctl.in.h (system_header): Likewise.
69404         * lib/sys_socket.in.h (system_header): Likewise.
69405         * lib/sys_times.in.h (system_header): Likewise.
69406         * lib/sys_utsname.in.h (system_header): Likewise.
69407         * lib/sys_wait.in.h (system_header): Likewise.
69408         * lib/sysexits.in.h (system_header): Likewise.
69409         * lib/unistd.in.h (system_header): Likewise.
69410         * lib/wctype.in.h (system_header): Likewise.
69412         arpa/inet: fix mingw compilation warning
69413         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
69414         Reported by Matthew Bolte.
69416 2010-03-25  Bruno Haible  <bruno@clisp.org>
69418         Avoid collision between gnulib wrapper and libintl wrapper.
69419         * lib/printf.c (printf): Don't define if a printf wrapper is already
69420         defined in intl/printf.c.
69421         Reported by Michel Boaventura <michel@michelboaventura.com>.
69423 2010-03-25  Bruno Haible  <bruno@clisp.org>
69425         Use ANSI C.
69426         * lib/readutmp.h (getutent): Provide ANSI C prototype.
69428 2010-03-25  Bruno Haible  <bruno@clisp.org>
69430         Minor formatting changes.
69431         * lib/acosl.c: Insert space before function argument list.
69432         * lib/argz.c: Likewise.
69433         * lib/asinl.c: Likewise.
69434         * lib/expl.c: Likewise.
69435         * lib/gen-uni-tables.c: Likewise.
69436         * lib/gettext.h: Likewise.
69437         * lib/glthread/lock.h: Likewise.
69438         * lib/tanl.c: Likewise.
69439         * lib/uniname/uniname.c: Likewise.
69440         * tests/test-idpriv-drop.c: Likewise.
69441         * tests/test-idpriv-droptemp.c: Likewise.
69442         * tests/test-lock.c: Likewise.
69443         * tests/test-tls.c: Likewise.
69444         * lib/argp-help.c: Insert space before function-like macro argument
69445         list.
69446         * lib/memcmp.c: Likewise.
69447         * tests/test-base64.c: Likewise.
69448         * lib/localename.c: Insert space before sizeof's argument list.
69449         * lib/safe-alloc.h: Likewise.
69450         * lib/file-set.h: Insert space before macro argument list.
69451         * tests/test-argp.c: Likewise.
69452         * lib/argp-namefrob.h: Insert space before function parameter list.
69453         * lib/getaddrinfo.c: Likewise.
69454         * lib/netdb.in.h: Likewise.
69455         * lib/parse-duration.h: Likewise.
69456         * lib/parse-duration.c: Likewise.
69457         * lib/poll.c: Likewise.
69458         * lib/select.c: Likewise.
69459         * lib/trim.h: Likewise.
69460         * tests/test-usleep.c: Likewise.
69461         * lib/ldexpl.c: Insert space before function parameter list and before
69462         function argument list.
69463         * lib/logl.c: Likewise.
69464         * lib/sqrtl.c: Likewise.
69465         * lib/trim.c: Likewise.
69466         * lib/cosl.c: Use GNU style indentation. Insert space before function
69467         argument list.
69468         * lib/sinl.c: Likewise.
69469         * lib/tsearch.c: Insert space after 'for'.
69470         Reported by Jim Meyering.
69472 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
69474         * maint.mk (sc_Wundef_boolean): Check for the presence of the
69475         config header before grepping, as it's not present before
69476         autoreconf/configure are run.  Reported by Simon Josefsson.
69478 2010-03-23  Bruno Haible  <bruno@clisp.org>
69480         pt_chown: Make it work with automake < 1.11.
69481         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
69482         Reported by Simon Josefsson.
69484 2010-03-23  Bruno Haible  <bruno@clisp.org>
69486         pt_chown: Don't depend on GPLed modules.
69487         * lib/pt_chown.c: Don't include idpriv.h.
69488         (main): Don't drop privileges.
69489         * modules/pt_chown (Depends-on): Remove idpriv-drop.
69490         Reported by Simon Josefsson.
69492 2010-03-24  Simon Josefsson  <simon@josefsson.org>
69494         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
69495         suggestions from karl@freefriends.org (Karl Berry).
69497 2010-03-22  Eric Blake  <eblake@redhat.com>
69499         gethostname: further tweaks
69500         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
69501         are overriding gethostname.
69502         Suggested by Bruno Haible.
69504 2010-03-21  Bruno Haible  <bruno@clisp.org>
69506         Fix comments.
69507         * lib/forkpty.c (rpl_forkpty): Fix comment.
69508         * lib/openpty.c (rpl_openpty): Likewise.
69509         Reported by Eric Blake.
69511 2010-03-22  Eric Blake  <eblake@redhat.com>
69513         gethostname: fix build on mingw
69514         * lib/unistd.in.h (includes): Work around fact that mingw
69515         <winsock2.h> re-includes <unistd.h>, by avoiding any
69516         redeclarations if we are being included by <winsock2.h>.
69517         Reported by Matthias Bolte.
69519 2010-03-21  Bruno Haible  <bruno@clisp.org>
69521         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69522         * lib/forkpty.c (forkpty): New replacement function, from glibc with
69523         modifications.
69524         * lib/pty.in.h (forkpty): Update declaration. Add comments.
69525         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
69526         provide the replacement.
69527         * modules/forkpty (Depends-on): Add openpty, login_tty.
69528         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
69529         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
69530         * doc/glibc-functions/forkpty.texi: More supported platforms.
69531         * config/srclist.txt: Add forkpty.c (commented).
69533 2010-03-21  Bruno Haible  <bruno@clisp.org>
69535         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
69536         (Makefile.am): Verify that PTY_LIB is defined.
69538         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69540 2010-03-21  Bruno Haible  <bruno@clisp.org>
69542         Tests for module 'login_tty'.
69543         * modules/login_tty-tests: New file.
69544         * tests/test-login_tty.c: New file.
69546         New module 'login_tty'.
69547         * lib/login_tty.c: New file.
69548         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
69549         * modules/login_tty: New file.
69550         * doc/glibc-functions/login_tty.texi: Mention the new module.
69552 2010-03-21  Bruno Haible  <bruno@clisp.org>
69554         login_tty: Documentation.
69555         * doc/glibc-functions/login_tty.texi: New file.
69556         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
69558 2010-03-21  Bruno Haible  <bruno@clisp.org>
69560         pty: Consistent macro naming.
69561         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
69562         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
69563         * modules/pty (configure.ac): Update.
69565 2010-03-21  Bruno Haible  <bruno@clisp.org>
69567         Tests for openpty: Make stricter.
69568         * tests/test-openpty.c (main): Add test of canonical processing and
69569         erase.
69570         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
69572         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69573         * lib/openpty.c (openpty): New replacement function.
69574         * lib/pty.in.h: Include <termios.h>.
69575         (openpty): Update declaration. Add comments.
69576         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
69577         is not declared, arrange to provide the replacement. Check for _getpty
69578         and posix_openpt.
69579         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
69580         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
69581         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
69582         * modules/pty-tests (test_pty_c___LDADD): New variable.
69583         * doc/glibc-functions/openpty.texi: More supported platforms.
69585 2010-03-21  Bruno Haible  <bruno@clisp.org>
69587         setenv: Tweaks.
69588         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
69589         the test program.
69590         * doc/posix-functions/setenv.texi: Update platforms list.
69592 2010-03-21  Bruno Haible  <bruno@clisp.org>
69594         New module 'unlockpt'.
69595         * lib/unlockpt.c: New file, from glibc with modifications.
69596         * m4/unlockpt.m4: New file.
69597         * modules/unlockpt: New file.
69598         * lib/stdlib.in.h (unlockpt): New declaration.
69599         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
69600         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
69601         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
69602         HAVE_UNLOCKPT.
69603         * doc/posix-functions/unlockpt.texi: Mention the new module.
69604         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
69605         * config/srclist.txt: Add unlockpt.c (commented).
69607 2010-03-21  Jim Meyering  <meyering@redhat.com>
69609         maint.mk: prohibit inclusion of "intprops.h" without use
69610         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
69612 2010-03-21  Bruno Haible  <bruno@clisp.org>
69614         New module 'grantpt'.
69615         * lib/grantpt.c: New file, from glibc with modifications.
69616         * m4/grantpt.m4: New file.
69617         * modules/grantpt: New file.
69618         * lib/stdlib.in.h (grantpt): New declaration.
69619         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
69620         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
69621         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
69622         HAVE_GRANTPT.
69623         * doc/posix-functions/grantpt.texi: Mention the new module.
69624         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
69625         * config/srclist.txt: Add grantpt.c (commented).
69627 2010-03-21  Bruno Haible  <bruno@clisp.org>
69629         New module 'pt_chown'.
69630         * lib/pt_chown.c: New file, from glibc with modifications.
69631         * lib/pty-private.h: New file, from glibc with modifications.
69632         * modules/pt_chown: New file.
69633         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
69635 2010-03-21  Bruno Haible  <bruno@clisp.org>
69637         Tests for module 'ptsname'.
69638         * modules/ptsname-tests: New file.
69639         * tests/test-ptsname.c: New file.
69641         New module 'ptsname'.
69642         * lib/ptsname.c: New file, from glibc with modifications.
69643         * m4/ptsname.m4: New file.
69644         * modules/ptsname: New file.
69645         * lib/stdlib.in.h (ptsname): New declaration.
69646         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
69647         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
69648         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
69649         HAVE_PTSNAME.
69650         * doc/posix-functions/ptsname.texi: Mention the new module.
69651         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
69652         * config/srclist.txt: Add ptsname.c (commented).
69654 2010-03-21  Bruno Haible  <bruno@clisp.org>
69656         Tests for module 'ttyname_r'.
69657         * modules/ttyname_r-tests: New file.
69658         * tests/test-ttyname_r.c: New file.
69660         New module 'ttyname_r'.
69661         * lib/ttyname_r.c: New file.
69662         * m4/ttyname_r.m4: New file.
69663         * modules/ttyname_r: New file.
69664         * lib/unistd.in.h (ttyname_r): New declaration.
69665         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
69666         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
69667         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
69668         HAVE_TTYNAME_R.
69669         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
69670         * doc/posix-functions/ttyname_r.texi: Mention the new module.
69672 2010-03-20  Bruno Haible  <bruno@clisp.org>
69674         signal: Undefine macro definitions in C++ mode.
69675         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
69676         sigfillset): Undefine macro definitions from the system header in C++
69677         mode.
69678         Reported by John W. Eaton <jwe@gnu.org>.
69680 2010-03-20  Bruno Haible  <bruno@clisp.org>
69682         Ensure no #include statements inside extern "C" { ... }.
69683         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
69684         contain #include statements.
69685         * lib/time.in.h: Likewise.
69687 2010-03-20  Bruno Haible  <bruno@clisp.org>
69689         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
69690         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
69691         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
69692         Reported by John W. Eaton <jwe@gnu.org>.
69694 2010-03-20  Bruno Haible  <bruno@clisp.org>
69696         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
69697         Reported by Jim Meyering.
69699 2010-03-20  Bruno Haible  <bruno@clisp.org>
69701         pipe: Set errno upon failure.
69702         * lib/pipe.h: Specify that when -1 is returned, errno is set.
69703         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
69704         errno value in error message.
69706 2010-03-20  Bruno Haible  <bruno@clisp.org>
69707             Jim Meyering  <meyering@redhat.com>
69709         lchown: Avoid "unused variable" warning.
69710         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
69712 2010-03-20  Bruno Haible  <bruno@clisp.org>
69714         Work around unlink() bug on MacOS X 10.5.6.
69715         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
69716         attempting to unlink a parent directory.
69717         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
69718         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
69719         activate for the replacement function.
69720         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
69722 2010-03-20  Bruno Haible  <bruno@clisp.org>
69724         Fix link errors on Solaris 8.
69725         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
69726         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
69728 2010-03-19  Jim Meyering  <meyering@redhat.com>
69730         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
69731         The _LIBC implementation of build_range_exp correctly honors the
69732         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
69733         However, the non-_LIBC implementation would ignore that syntax-bit
69734         flag and return REG_ERANGE unconditionally.
69735         This change makes it honor that flag.
69736         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
69737         Make two pointer parameters "const".
69738         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
69739         (parse_bracket_exp): Update caller.
69741         regex.m4: correct the reversed range endpoint ([b-a]) test
69742         * m4/regex.m4: When requiring that [b-a] evoke failure,
69743         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
69744         test pass once again for x86-based systems.
69746 2010-03-19  Bruno Haible  <bruno@clisp.org>
69748         scandir: Fix link error on Solaris 8.
69749         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
69750         macros.
69752 2010-03-19  Bruno Haible  <bruno@clisp.org>
69754         getusershell: Fix documentation.
69755         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
69756         module.
69757         * doc/glibc-functions/setusershell.texi: Likewise.
69759         getusershell: Provide declaration, missing on Solaris 9.
69760         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
69761         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
69762         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
69763         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
69764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69765         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
69766         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
69767         HAVE_GETUSERSHELL.
69768         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
69770 2010-03-19  Bruno Haible  <bruno@clisp.org>
69772         wctype: Provide iswblank function.
69773         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
69774         exists and is fine.
69775         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
69776         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
69777         * tests/test-wctype.c (main): Re-enable the iswblank tests.
69778         * doc/posix-functions/iswblank.texi: Update.
69780 2010-03-19  Bruno Haible  <bruno@clisp.org>
69782         Tests of module 'pty' in C++ mode.
69783         * modules/pty-tests: New file.
69784         * tests/test-pty-c++.cc: New file.
69785         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69787 2010-03-19  Eric Blake  <eblake@redhat.com>
69789         logb: fix documentation
69790         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
69791         1.5 declaration bug.
69793         forkpty, openpty: prefer glibc's const-safe prototype
69794         * lib/forkpty.c (rpl_forkpty): New file.
69795         * lib/openpty.c (rpl_openpty): Likewise.
69796         * modules/forkpty (Files): Distribute it.
69797         * modules/openpty (Files): Likewise.
69798         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
69799         check...
69800         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
69801         replacement for non-const BSD signature.
69802         * modules/pty (Makefile.am): Substitute witnesses.
69803         * lib/pty.in.h (forkpty, openpty): Declare replacements.
69804         * tests/test-forkpty.c: Update signature check.
69805         * tests/test-openpty.c: Likewise.
69806         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
69807         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69809         forkpty, openpty: split functions into new modules
69810         * modules/pty (Makefile.am): Substitute new witnesses.
69811         (Libraries): Move library detection...
69812         * modules/forkpty: ...into new module.
69813         * modules/openpty: Another new module.
69814         * modules/pty-tests: Rename and split...
69815         * modules/forkpty-tests: ...to this...
69816         * modules/openpty-tests: ...and this.
69817         * tests/test-pty.c: Rename and split...
69818         * tests/test-forkpty.c: ...to this...
69819         * tests/test-openpty.c: ...and this.
69820         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
69821         (gl_PTY): Split library searching...
69822         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
69823         (gl_FORKPTY, gl_OPENPTY): New macros.
69824         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
69825         * NEWS: Mention the split.
69826         * MODULES.html.sh (Misc): Document the modules.
69827         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
69828         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69830         pty: improve replacement header
69831         * lib/pty.in.h: New file.
69832         * modules/pty (Files): Ship it.
69833         (Makefile.am): Always build replacement.
69834         * m4/pty.m4: Rename...
69835         * m4/pty_h.m4: ...to this.
69836         (gl_PTY): Modernize setting of witness macros; update check of
69837         forkpty to take proper advantage of cache.
69838         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
69840         getopt: avoid compiler warning
69841         * lib/getopt.c (attribute_hidden): Remove unused macro.
69843 2010-03-18  Bruno Haible  <bruno@clisp.org>
69845         Fix link errors on Solaris 8.
69846         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
69847         * modules/search-tests (test_search_c___LDADD): Likewise.
69848         * modules/signal-tests (test_signal_c___LDADD): Likewise.
69849         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
69850         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
69851         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
69852         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
69853         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
69854         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
69856 2010-03-18  Bruno Haible  <bruno@clisp.org>
69858         Fix bug introduced on 2010-03-14.
69859         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
69860         (gl_SPAWN_H): Require it.
69861         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
69862         Reported by Simon Josefsson.
69864 2010-03-18  Bruno Haible  <bruno@clisp.org>
69866         Fix typo introduced on 2009-12-31.
69867         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
69868         posix_spawn_file_actions_adddup2.
69870 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
69871         and Eric Blake  <eblake@redhat.com>
69873         test-vc-list-files-git: make more robust
69874         * tests/test-vc-list-files-git.sh: Unset problematic environment
69875         variables.  Chain commands together.
69877 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
69879         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
69880         `AC_CHECK_DECL' invocation.
69882 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
69884         * lib/inttostr.c (inttostr): Make sure the invocation of verify
69885         appears before executable statements. Suggested by Petr Sumbera
69886         <Petr.Sumbera@Sun.COM>.
69888 2010-03-14  Bruno Haible  <bruno@clisp.org>
69890         * tests/test-flock.c (test_exclusive): Comment out a test that causes
69891         portability problems. Instead use a simpler test.
69892         (main): Check that invalid arguments are rejected only on Linux.
69894 2010-03-14  Bruno Haible  <bruno@clisp.org>
69896         Fix bug introduced on 2009-12-31.
69897         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
69898         gl_PREREQ_SYS_H_WINSOCK2 always.
69899         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
69900         SYS_SOCKET_H variable.
69901         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
69902         Update comments.
69903         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
69904         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69905         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69906         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69907         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
69909 2010-03-14  Bruno Haible  <bruno@clisp.org>
69911         Fix values returned by sinl, cosl.
69912         * lib/trigl.h: Add specification comments.
69913         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
69914         that combines the values from the precomputed table with the values of
69915         the Chebyshev polynomials.
69917 2010-03-14  Bruno Haible  <bruno@clisp.org>
69919         Fix compilation error when modules 'posix_spawn[p]' are not used.
69920         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
69921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
69923 2010-03-14  Bruno Haible  <bruno@clisp.org>
69925         Fix compilation error on mingw when module 'time_r' is not used.
69926         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
69927         is 1.
69928         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
69929         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
69930         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
69931         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
69933 2010-03-14  Bruno Haible  <bruno@clisp.org>
69935         Fix compilation error with Sun C.
69936         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
69937         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
69938         instead of GCC specific ULONG_LONG_MAX.
69939         * lib/xstrtoll.c: Likewise.
69940         * lib/xstrtoull.c: Likewise.
69942 2010-03-13  Bruno Haible  <bruno@clisp.org>
69944         Allow the user to disable C++ code and tests.
69945         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
69946         (gl_PROG_ANSI_CXX): Require it.
69948 2010-03-13  Bruno Haible  <bruno@clisp.org>
69950         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
69951         cases.
69953 2010-03-13  Bruno Haible  <bruno@clisp.org>
69955         Test that gnulib does not break the standard C++ headers.
69956         * tests/test-locale-c++2.cc: New file.
69957         * modules/locale-tests (Files): Add it.
69958         (Makefile.am): Compile it for test-locale-c++.
69959         * tests/test-math-c++2.cc: New file.
69960         * modules/math-tests (Files): Add it.
69961         (Makefile.am): Compile it for test-math-c++.
69962         * tests/test-signal-c++2.cc: New file.
69963         * modules/signal-tests (Files): Add it.
69964         (Makefile.am): Compile it for test-signal-c++.
69965         * tests/test-stdio-c++2.cc: New file.
69966         * modules/stdio-tests (Files): Add it.
69967         (Makefile.am): Compile it for test-stdio-c++.
69968         * tests/test-stdlib-c++2.cc: New file.
69969         * modules/stdlib-tests (Files): Add it.
69970         (Makefile.am): Compile it for test-stdlib-c++.
69971         * tests/test-string-c++2.cc: New file.
69972         * modules/string-tests (Files): Add it.
69973         (Makefile.am): Compile it for test-string-c++.
69974         * tests/test-time-c++2.cc: New file.
69975         * modules/time-tests (Files): Add it.
69976         (Makefile.am): Compile it for test-time-c++.
69977         Reported by John W. Eaton <jwe@gnu.org>.
69979 2010-03-13  Bruno Haible  <bruno@clisp.org>
69981         * gnulib-tool (func_usage): Clarify which options are available for
69982         --create-testdir and --create-megatestdir.
69984 2010-03-13  Bruno Haible  <bruno@clisp.org>
69986         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
69987         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
69988         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
69989         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
69990         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
69991         when appropriate.
69992         Reported by Jim Meyering.
69994 2010-03-12  Simon Josefsson  <simon@josefsson.org>
69996         * gnulib-tool (func_import): Explain origin of code.
69998 2010-03-12  Bruno Haible  <bruno@clisp.org>
70000         Fix problem with automake's definition of CXXLINK.
70001         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70002         Reported by Simon Josefsson and Ludovic Courtès.
70004 2010-03-12  Bruno Haible  <bruno@clisp.org>
70006         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70007         stable releases.
70009 2010-03-11  Bruno Haible  <bruno@clisp.org>
70011         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70012         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70013         whether the system provides one variant or multiple variants of the
70014         function.
70015         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70016         C++ compilers.
70017         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70018         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70019         Reported by Jim Meyering.
70021 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70023         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70025 2010-03-08  Bruno Haible  <bruno@clisp.org>
70027         gnulib-tool: Add support for --libtool in --create-testdir.
70028         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70029         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70031 2010-03-08  Eric Blake  <eblake@redhat.com>
70033         gnulib-tool.texi: mention possibility of git submodule
70034         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70035         submodules.
70036         * doc/.gitignore: Ignore another generated file.
70038 2010-03-08  Karl Berry  <karl@gnu.org>
70040         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70041         of committing gnulib files while skipping others.
70043 2010-03-07  Bruno Haible  <bruno@clisp.org>
70045         Tests of module 'wctype' in C++ mode.
70046         * tests/test-wctype-c++.cc: New file.
70047         * modules/wctype-tests (Files): Add it and tests/signature.h.
70048         (Depends-on): Add ansi-c++-opt.
70049         (Makefile.am): Arrange to compile and run test-wctype-c++.
70051         Tests of module 'wchar' in C++ mode.
70052         * tests/test-wchar-c++.cc: New file.
70053         * modules/wchar-tests (Files): Add it and tests/signature.h.
70054         (Depends-on): Add ansi-c++-opt.
70055         (Makefile.am): Arrange to compile and run test-wchar-c++.
70056         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70057         gl_MODULE_INDICATOR.
70059         Tests of module 'unistd' in C++ mode.
70060         * tests/test-unistd-c++.cc: New file.
70061         * modules/unistd-tests (Files): Add it and tests/signature.h.
70062         (Depends-on): Add ansi-c++-opt.
70063         (Makefile.am): Arrange to compile and run test-unistd-c++.
70064         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70065         gl_MODULE_INDICATOR.
70067         Tests of module 'time' in C++ mode.
70068         * tests/test-time-c++.cc: New file.
70069         * modules/time-tests (Files): Add it and tests/signature.h.
70070         (Depends-on): Add ansi-c++-opt.
70071         (Makefile.am): Arrange to compile and run test-time-c++.
70072         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70074         Tests of module 'sys_time' in C++ mode.
70075         * tests/test-sys_time-c++.cc: New file.
70076         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70077         (Depends-on): Add ansi-c++-opt.
70078         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70079         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70080         gl_MODULE_INDICATOR.
70082         Tests of module 'sys_stat' in C++ mode.
70083         * tests/test-sys_stat-c++.cc: New file.
70084         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70085         (Depends-on): Add ansi-c++-opt.
70086         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70087         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70088         gl_MODULE_INDICATOR.
70090         Tests of module 'sys_socket' in C++ mode.
70091         * tests/test-sys_socket-c++.cc: New file.
70092         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70093         (Depends-on): Add ansi-c++-opt.
70094         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70095         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70096         gl_MODULE_INDICATOR.
70098         Tests of module 'sys_select' in C++ mode.
70099         * tests/test-sys_select-c++.cc: New file.
70100         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70101         (Depends-on): Add ansi-c++-opt.
70102         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70103         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70104         gl_MODULE_INDICATOR.
70106         Tests of module 'sys_ioctl' in C++ mode.
70107         * tests/test-sys_ioctl-c++.cc: New file.
70108         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70109         (Depends-on): Add ansi-c++-opt.
70110         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70111         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70112         gl_MODULE_INDICATOR.
70114         Tests of module 'string' in C++ mode.
70115         * tests/test-string-c++.cc: New file.
70116         * modules/string-tests (Files): Add it and tests/signature.h.
70117         (Depends-on): Add ansi-c++-opt.
70118         (Makefile.am): Arrange to compile and run test-string-c++.
70119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70120         gl_MODULE_INDICATOR.
70122         Tests of module 'stdlib' in C++ mode.
70123         * tests/test-stdlib-c++.cc: New file.
70124         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70125         (Depends-on): Add ansi-c++-opt.
70126         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70127         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70128         gl_MODULE_INDICATOR.
70130         Tests of module 'stdio' in C++ mode.
70131         * tests/test-stdio-c++.cc: New file.
70132         * modules/stdio-tests (Files): Add it and tests/signature.h.
70133         (Depends-on): Add ansi-c++-opt.
70134         (Makefile.am): Arrange to compile and run test-stdio-c++.
70135         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70136         gl_MODULE_INDICATOR.
70138         Tests of module 'spawn' in C++ mode.
70139         * tests/test-spawn-c++.cc: New file.
70140         * modules/spawn-tests (Files): Add it and tests/signature.h.
70141         (Depends-on): Add ansi-c++-opt.
70142         (Makefile.am): Arrange to compile and run test-spawn-c++.
70143         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70144         gl_MODULE_INDICATOR.
70146         Tests of module 'signal' in C++ mode.
70147         * tests/test-signal-c++.cc: New file.
70148         * modules/signal-tests (Files): Add it and tests/signature.h.
70149         (Depends-on): Add ansi-c++-opt.
70150         (Makefile.am): Arrange to compile and run test-signal-c++.
70151         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70152         gl_MODULE_INDICATOR.
70154         Tests of module 'search' in C++ mode.
70155         * tests/test-search-c++.cc: New file.
70156         * modules/search-tests (Files): Add it and tests/signature.h.
70157         (Depends-on): Add ansi-c++-opt.
70158         (Makefile.am): Arrange to compile and run test-search-c++.
70159         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70160         gl_MODULE_INDICATOR.
70162         Tests of module 'math' in C++ mode.
70163         * tests/test-math-c++.cc: New file.
70164         * modules/math-tests (Files): Add it and tests/signature.h.
70165         (Depends-on): Add ansi-c++-opt.
70166         (Makefile.am): Arrange to compile and run test-math-c++.
70167         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70169         Tests of module 'locale' in C++ mode.
70170         * tests/test-locale-c++.cc: New file.
70171         * modules/locale-tests (Files): Add it and tests/signature.h.
70172         (Depends-on): Add ansi-c++-opt.
70173         (Makefile.am): Arrange to compile and run test-locale-c++.
70174         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70175         gl_MODULE_INDICATOR.
70177         Tests of module 'langinfo' in C++ mode.
70178         * tests/test-langinfo-c++.cc: New file.
70179         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70180         (Depends-on): Add ansi-c++-opt.
70181         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70182         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70183         gl_MODULE_INDICATOR.
70185         Tests of module 'iconv-h' in C++ mode.
70186         * tests/test-iconv-h-c++.cc: New file.
70187         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70188         (Depends-on): Add ansi-c++-opt.
70189         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70191         Tests of module 'glob' in C++ mode.
70192         * tests/test-glob-c++.cc: New file.
70193         * modules/glob-tests (Files): Add it.
70194         (Depends-on): Add ansi-c++-opt.
70195         (Makefile.am): Arrange to compile and run test-glob-c++.
70197         Tests of module 'fcntl-h' in C++ mode.
70198         * tests/test-fcntl-h-c++.cc: New file.
70199         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70200         (Depends-on): Add ansi-c++-opt.
70201         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70202         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70203         gl_MODULE_INDICATOR.
70205         Tests of module 'dirent' in C++ mode.
70206         * tests/test-dirent-c++.cc: New file.
70207         * modules/dirent-tests (Files): Add it and tests/signature.h.
70208         (Depends-on): Add ansi-c++-opt.
70209         (Makefile.am): Arrange to compile and run test-dirent-c++.
70210         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70211         gl_MODULE_INDICATOR.
70213         New module 'ansi-c++-opt'.
70214         * modules/ansi-c++-opt: New file.
70215         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
70217         Document C++ namespace mode.
70218         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
70220         wctype: Avoid #define replacements in C++ mode.
70221         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
70222         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
70223         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
70224         In C++, define a namespaced alias symbol.
70225         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
70226         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
70227         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
70228         rule.
70230         wchar: Avoid #define replacements in C++ mode.
70231         * lib/wchar.in.h: Include c++defs.h.
70232         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
70233         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
70234         symbol.
70235         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
70236         * modules/wchar (Depends-on): Add c++defs.
70237         (Makefile.am): Update wchar.h rule.
70239         unistd: Avoid #define replacements in C++ mode.
70240         * lib/unistd.in.h: Include c++defs.h.
70241         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
70242         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
70243         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
70244         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
70245         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
70246         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
70247         symbol.
70248         (environ): Update.
70249         * modules/unistd (Depends-on): Add c++defs.
70250         (Makefile.am): Update unistd.h rule.
70252         time: Avoid #define replacements in C++ mode.
70253         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70254         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70255         define a namespaced alias symbol.
70256         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70257         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70258         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70259         * modules/time (Depends-on): Add c++defs, warn-on-use.
70260         (Makefile.am): Update time.h rule.
70261         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70262         * modules/nanosleep (configure.ac): Likewise.
70263         * modules/strptime (configure.ac): Likewise.
70264         * modules/timegm (configure.ac): Likewise.
70266         sys_time: Avoid #define replacements in C++ mode.
70267         * lib/sys_time.in.h: Include c++defs.h.
70268         (gettimeofday): In C++, define a namespaced alias symbol.
70269         * modules/sys_time (Depends-on): Add c++defs.
70270         (Makefile.am): Update sys/time.h rule.
70272         sys_stat: Avoid #define replacements in C++ mode.
70273         * lib/sys_stat.in.h: Include c++defs.h.
70274         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70275         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70276         namespaced alias symbol.
70277         In C++, define a namespaced alias symbol.
70278         * modules/sys_stat (Depends-on): Add c++defs.
70279         (Makefile.am): Update sys/stat.h rule.
70281         sys_socket: Avoid #define replacements in C++ mode.
70282         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70283         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70284         definitions also when the system has a <sys/socket.h>.
70285         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70286         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70287         In C++, define a namespaced alias symbol.
70288         * modules/sys_socket (Depends-on): Add c++defs.
70289         (Makefile.am): Update sys/socket.h rule.
70291         sys_select: Avoid #define replacements in C++ mode.
70292         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70293         definitions also when the system has a <sys/select.h>.
70294         (select): In C++, define a namespaced alias symbol.
70295         * modules/sys_select (Depends-on): Add c++defs.
70296         (Makefile.am): Update sys/select.h rule.
70298         sys_ioctl: Avoid #define replacements in C++ mode.
70299         * lib/sys_ioctl.in.h: Include c++defs.h.
70300         (ioctl): In C++, define a namespaced alias symbol.
70301         * modules/sys_ioctl (Depends-on): Add c++defs.
70302         (Makefile.am): Update sys/ioctl.h rule.
70304         string: Avoid #define replacements in C++ mode.
70305         * lib/string.in.h: Include c++defs.h.
70306         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70307         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70308         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70309         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70310         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70311         * modules/string (Depends-on): Add c++defs.
70312         (Makefile.am): Update string.h rule.
70314         stdlib: Avoid #define replacements in C++ mode.
70315         * lib/stdlib.in.h: Include c++defs.h.
70316         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70317         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70318         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70319         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70320         symbol.
70321         * modules/stdlib (Depends-on): Add c++defs.
70322         (Makefile.am): Update stdlib.h rule.
70324         stdio: Avoid #define replacements in C++ mode.
70325         * lib/stdio.in.h: Include c++defs.h.
70326         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70327         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70328         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70329         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70330         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70331         namespaced alias symbol.
70332         * modules/stdio (Depends-on): Add c++defs.
70333         (Makefile.am): Update stdio.h rule.
70335         spawn: Avoid #define replacements in C++ mode.
70336         * lib/spawn.in.h: Include c++defs.h.
70337         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70338         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70339         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70340         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70341         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70342         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70343         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70344         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70345         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70346         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70347         In C++, define a namespaced alias symbol.
70348         * modules/spawn (Depends-on): Add c++defs.
70349         (Makefile.am): Update spawn.h rule.
70351         signal: Avoid #define replacements in C++ mode.
70352         * lib/signal.in.h: Include c++defs.h.
70353         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70354         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70355         namespaced alias symbol.
70356         * modules/signal (Depends-on): Add c++defs.
70357         (Makefile.am): Update signal.h rule.
70359         search: Avoid #define replacements in C++ mode.
70360         * lib/search.in.h: Include c++defs.h.
70361         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70362         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70363         symbol.
70364         * modules/search (Depends-on): Add c++defs.
70365         (Makefile.am): Update search.h rule.
70367         math: Avoid #define replacements in C++ mode.
70368         * lib/math.in.h: Include c++defs.h.
70369         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70370         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70371         trunc, truncl): In C++, define a namespaced alias symbol.
70372         * modules/math (Depends-on): Add c++defs.
70373         (Makefile.am): Update math.h rule.
70375         locale: Avoid #define replacements in C++ mode.
70376         * lib/locale.in.h: Include c++defs.h.
70377         (duplocale): In C++, define a namespaced alias symbol.
70378         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70379         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70380         * modules/locale (Depends-on): Add c++defs.
70381         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
70383         langinfo: Avoid #define replacements in C++ mode.
70384         * lib/langinfo.in.h: Include c++defs.h.
70385         (nl_langinfo): In C++, define a namespaced alias symbol.
70386         * modules/langinfo (Depends-on): Add c++defs.
70387         (Makefile.am): Update langinfo.h rule.
70389         iconv-h: Avoid #define replacements in C++ mode.
70390         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
70391         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
70392         symbol.
70393         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70394         whenever iconv is present.
70395         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
70396         (Makefile.am): Update iconv.h rule.
70398         glob: Avoid #define replacements in C++ mode.
70399         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
70400         (_gl_glob_errfunc_fn): New type.
70401         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
70402         symbol.
70403         * modules/glob (Depends-on): Add c++defs, warn-on-use.
70404         (Makefile.am): Update glob.h rule.
70406         fcntl-h: Avoid #define replacements in C++ mode.
70407         * lib/fcntl.in.h: Include c++defs.h.
70408         (fcntl, open, openat): In C++, define a namespaced alias symbol.
70409         * modules/fcntl-h (Depends-on): Add c++defs.
70410         (Makefile.am): Update fcntl.h rule.
70412         dirent: Avoid #define replacements in C++ mode.
70413         * lib/dirent.in.h: Include c++defs.h.
70414         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
70415         namespaced alias symbol.
70416         (dirfd): Update declaration.
70417         * modules/dirent (Depends-on): Add c++defs.
70418         (Makefile.am): Update dirent.h rule.
70420         ctype: Make it usable in C++ code.
70421         * lib/ctype.in.h: Include c++defs.h.
70422         (isblank): Declare as extern "C".
70423         * modules/ctype (Depends-on): Add c++defs.
70424         (Makefile.am): Update ctype.h rule.
70426         New module 'c++defs'.
70427         * modules/c++defs: New file.
70428         * build-aux/c++defs.h: New file.
70429         Reported by John W. Eaton <jwe@gnu.org>.
70431 2010-03-07  Bruno Haible  <bruno@clisp.org>
70433         logb: Provide missing declaration for Cygwin.
70434         * lib/math.in.h (logb): New declaration.
70435         * m4/logb.m4: New file.
70436         * modules/logb (Files): Add m4/logb.m4.
70437         (Depends-on): Add math.
70438         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
70439         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
70440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
70441         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
70442         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
70444 2010-03-07  Bruno Haible  <bruno@clisp.org>
70446         Fix test-cond link error.
70447         * tests/test-cond.c: Include <stdio.h>.
70449 2010-03-07  Bruno Haible  <bruno@clisp.org>
70451         Fix test-dirent-safer link error.
70452         * modules/dirent-safer-tests (Makefile.am): Define
70453         test_dirent_safer_LDADD.
70455 2010-03-07  Bruno Haible  <bruno@clisp.org>
70457         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
70458         among default module list.
70460 2010-03-07  Bruno Haible  <bruno@clisp.org>
70462         Fix link error on platforms with GNU libiconv.
70463         * modules/unistr/u8-strcoll-tests (Makefile): Define
70464         test_u8_strcoll_LDADD.
70465         * modules/unistr/u16-strcoll-tests (Makefile): Define
70466         test_u16_strcoll_LDADD.
70467         * modules/unistr/u32-strcoll-tests (Makefile): Define
70468         test_u32_strcoll_LDADD.
70470 2010-03-07  Bruno Haible  <bruno@clisp.org>
70472         Use POSIX declarations for socket functions.
70473         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
70474         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
70475         rpl_sendto): Change declaration to match POSIX.
70476         * lib/connect.c (rpl_connect): Likewise.
70477         * lib/accept.c (rpl_accept): Likewise.
70478         * lib/bind.c (rpl_bind): Likewise.
70479         * lib/getpeername.c (rpl_getpeername): Likewise.
70480         * lib/getsockname.c (rpl_getsockname): Likewise.
70481         * lib/recv.c (rpl_recv): Likewise.
70482         * lib/send.c (rpl_send): Likewise.
70483         * lib/recvfrom.c (rpl_recvfrom): Likewise.
70484         * lib/sendto.c (rpl_sendto): Likewise.
70486 2010-03-06  Bruno Haible  <bruno@clisp.org>
70488         Clarify access, euidaccess, faccessat.
70489         * doc/posix-functions/faccessat.texi: Mention security problem under
70490         "Other problems", not "Portability problems".
70491         * doc/posix-functions/access.texi: Likewise. Mention a related security
70492         problem.
70493         * doc/glibc-functions/euidaccess.texi: Mention security problems.
70494         * lib/euidaccess.c: Add comments about platforms.
70495         * lib/unistd.in.h (access, euidaccess): Add warnings.
70497 2010-03-07  Bruno Haible  <bruno@clisp.org>
70499         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
70500         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
70501         (POSIX_SPAWN_SETSCHEDULER): Likewise.
70502         (POSIX_SPAWN_USEVFORK): Define in a way that works when
70503         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70504         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
70505         declare when POSIX_SPAWN_SETSCHEDULER is zero.
70506         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
70507         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
70508         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
70509         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
70510         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
70511         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
70512         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
70513         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
70514         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
70515         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
70516         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
70517         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
70518         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70519         Likewise.
70520         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
70521         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
70522         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
70523         Likewise.
70524         * tests/test-spawn.c (main): Make it work when
70525         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70527 2010-03-07  Bruno Haible  <bruno@clisp.org>
70529         Fix incorrect Makefile.am generation in German locale.
70530         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70531         Execute sed command with character range in C locale.
70533 2010-03-06  Bruno Haible  <bruno@clisp.org>
70535         Tests for module 'iconv-h'.
70536         * modules/iconv-h-tests: New file.
70537         * tests/test-iconv-h.c: New file.
70539         New module 'iconv-h'.
70540         * modules/iconv-h: New file.
70541         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
70542         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
70543         (configure.ac): Remove gl_ICONV_H.
70544         (Makefile.am): Remove rule for iconv.h.
70546 2010-03-06  Bruno Haible  <bruno@clisp.org>
70548         More consistent naming of *.m4 files.
70549         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
70550         * modules/wctype (Files): Update.
70552         More consistent naming of *.m4 files.
70553         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
70554         * modules/wchar (Files): Update.
70556 2010-03-06  Jim Meyering  <meyering@redhat.com>
70558         euidaccess: relax license to LGPLv2+
70559         * modules/euidaccess (License): Relax to LGPLv2+.
70561 2010-03-06  Bruno Haible  <bruno@clisp.org>
70563         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
70564         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
70565         (Makefile.am): Augment lib_SOURCES instead.
70567 2010-03-04  Jim Meyering  <meyering@redhat.com>
70569         utime: remove obsolete module
70570         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
70571         unnecessary for years, and has been marked as obsolete for 10 months.
70572         * modules/utime: Remove file.
70573         * lib/utime.c: Remove file.
70574         * m4/utime.m4: Remove file.
70575         * m4/utimes-null.m4: Remove file.
70576         * doc/posix-functions/utime.texi (utime): Remove reference to
70577         the module.  Move the sole "fixed by gnulib" item into the
70578         "problems not fixed by Gnulib" list.
70579         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
70581 2010-03-05  Simon Josefsson  <simon@josefsson.org>
70583         * modules/exit (License): Relax license to LGPLv2+.
70584         (Status): Mark as obsolete.
70585         * NEWS: Mention deprecated 'exit' module.
70586         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
70587         of now obsolete 'exit'.
70589 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70591         fts-lgpl: remove unused module
70592         * modules/fts-lgpl: Remove.
70593         * MODULES.html.sh (func_all_modules): Adjust.
70594         * check-module (find_included_lib_files): Adjust.
70595         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
70597 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
70599         copy-acl: enhance Solaris ACL error handling
70600         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
70601         * lib/set-mode-acl.c (qset_acl): Likewise.
70603 2010-03-02  Bruno Haible  <bruno@clisp.org>
70605         spawn: Don't override the system defined values on FreeBSD 8.
70606         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
70607         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
70608         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
70609         if HAVE_POSIX_SPAWN is 1.
70610         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
70612 2010-03-01  Bruno Haible  <bruno@clisp.org>
70614         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
70615         regarding Automake.
70617 2010-02-25  Bruno Haible  <bruno@clisp.org>
70619         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
70620         * gnulib-tool: Define 'echo' as a function only before the ksh alias
70621         setting, not afterwards.
70622         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
70624 2010-02-24  Eric Blake  <eblake@redhat.com>
70626         bootstrap, git-version-gen: use timestamp
70627         * build-aux/git-version-gen (scriptversion): Force UTC.
70628         * build-aux/bootstrap (scriptversion): New variable.
70630         bootstrap: allow older git
70631         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
70632         older than 1.6.4.  Requested by the libvirt project.
70634 2010-02-23  Eric Blake  <eblake@redhat.com>
70636         warn-on-use: work with old autoconf
70637         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
70638         AS_VAR semantics of autoconf 2.60.
70639         Reported by Bruno Haible.
70641         bootstrap: improve some comments
70642         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
70643         clarification comments.
70645         gettimeofday: provide correct function
70646         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
70647         when replacement is declared, otherwise provide gettimeofday.
70648         Reported by Michael Goffioul.
70650 2010-02-23  Jim Meyering  <meyering@redhat.com>
70652         lib-ignore: relax license to "unlimited", not LGPLv2+
70653         * modules/lib-ignore (License): Relax to "unlimited".
70655 2010-02-23  Jim Meyering  <meyering@redhat.com>
70657         lib-ignore: relax license to LGPLv2+
70658         * modules/lib-ignore (License): Relax to LGPLv2+.
70660 2010-02-22  Eric Blake  <eblake@redhat.com>
70662         lseek: avoid bash 3.2 broken pipe bug
70663         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
70664         warning from bash 3.2.
70665         Reported by Ben Pfaff, with analysis from Bruno Haible.
70667         bootstrap: support non-FSF copyright holder
70668         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
70669         bootstrap.conf override of COPYRIGHT_HOLDER.
70670         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
70672         bootstrap: interoperate with gettext 0.14.1
70673         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
70675         bootstrap: allow for alternate submodule location
70676         * build-aux/bootstrap (gnulib_path): New variable; use instead of
70677         hardcoding submodule location.
70678         (gnulib_mk): Allow direct use of Makefile.am.
70680         bootstrap: use GNULIB_SRCDIR to reduce disk usage
70681         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
70682         rather than reconfiguring where the submodule points.
70684         gettimeofday: restore support for platforms that lack function
70685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
70686         replacement if function is missing.
70687         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
70688         * modules/sys_time (Makefile.am): Substitute it.
70689         * lib/sys_time.in.h (gettimeofday): Check it.
70690         Reported by Michael Goffioul.
70692 2010-02-21  Bruno Haible  <bruno@clisp.org>
70694         * lib/stdio.in.h (obstack_printf): Fix typo.
70696 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
70698         vc-list-files: use bzr ls's -R option
70699         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
70700         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
70702 2010-02-21  Jim Meyering  <meyering@redhat.com>
70704         init.sh: fix EXEEXT shims to work also for names like test-prog
70705         * tests/init.sh: Re-exec a better shell, when needed.
70706         If the current shell lacks support for posix $(...), an init.sh-using
70707         test will now try to find a shell that supports that.  If EXEEXT is
70708         nonempty, we also require support for hyphen-in-alias-name and shell
70709         substitutions like ${var#glob}.  Failure to find such a shell results
70710         in a skipped test.
70712 2010-02-21  Bruno Haible  <bruno@clisp.org>
70714         Really work around "broken pipe" error message from bash 3.2.
70715         * gnulib-tool (func_reset_sigpipe): Remove function.
70716         (echo): In bash 3.2, define to a function that uses printf.
70717         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
70719 2010-02-20  Bruno Haible  <bruno@clisp.org>
70721         Restore support for automake 1.9.6 with autoconf 2.61.
70722         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
70723         Reported by James Youngman <jay@gnu.org>.
70725 2010-02-20  Bruno Haible  <bruno@clisp.org>
70727         Improve *printf warning condition.
70728         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
70729         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
70730         and the function is overridden due to SIGPIPE emulation.
70732 2010-02-20  Bruno Haible  <bruno@clisp.org>
70734         * lib/stdio.in.h: Tweak comments.
70736 2010-02-19  Bruno Haible  <bruno@clisp.org>
70738         Make it easier to find modules. New gnulib-tool option '--find'.
70739         * gnulib-tool: New option --find.
70740         (func_usage): Document it.
70741         (func_sanitize_modulelist): New function, extracted from
70742         func_all_modules.
70743         (func_all_modules): Invoke it.
70744         * doc/gnulib-tool.texi (Which modules?): New node.
70746 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
70748         * lib/sys_select.in.h: Provide select replacement even if
70749         sys/select.h exists on a system, for Interix.
70751 2010-02-18  Jim Meyering  <meyering@redhat.com>
70753         init.sh: don't use $(...) just yet
70754         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
70755         to accommodate e.g., Solaris' /bin/sh.
70757 2010-02-17  Bruno Haible  <bruno@clisp.org>
70759         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
70760         Reported by Ludovic Courtès <ludo@gnu.org>.
70762 2010-02-16  Simon Josefsson  <simon@josefsson.org>
70764         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
70765         linking with -lintl.
70767 2010-02-17  Simon Josefsson  <simon@josefsson.org>
70769         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
70770         if not provided by the system's netdb.h.  Reported by
70771         ludo@gnu.org (Ludovic Courtès).
70773 2010-02-15  Jim Meyering  <meyering@redhat.com>
70775         init.sh: improve portability and efficiency
70776         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
70777         "dummy" in a for loop.
70778         Use '!', not '^' to select the complement of a character set used
70779         in a "case" statement.
70780         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
70781         Suggestions from Eric Blake.
70783         init.sh: automatically accommodate programs with the .exe suffix
70784         Automatically arrange for an invocation of "prog" to execute the
70785         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
70786         may use the simpler "prog", yet still work when built on a system
70787         that requires specifying the added suffix.
70788         Do this by constructing a function named "prog" that invokes
70789         "prog.exe" for each .exe file in selected directories.
70790         * tests/init.sh (find_exe_basenames_): New function.
70791         (create_exe_shim_functions_): New function.
70792         (path_prepend_): Use it.
70794         maint.mk: mark syntax-check sc_*.m rules as .PHONY
70795         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
70796         "make -t syntax-check" doesn't create a ton of sc_*.m files.
70798 2010-02-14  Jim Meyering  <meyering@redhat.com>
70800         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
70801         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
70802         (sc_prohibit_hash_pjw_without_use): New rule.
70804         maint.mk: allow the default upload destination dir to be overridden
70805         * top/maint.mk (upload_dest_dir_): Define with a default that
70806         preserves the status quo.
70807         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
70808         Reported by Peter Simons.
70810         maint.mk: prohibit inclusion of "hash.h" without_use
70811         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
70813 2010-02-10  Jim Meyering  <meyering@redhat.com>
70815         maint.mk: prohibit inclusion of "ignore-value.h" without_use
70816         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
70818 2010-02-09  Eric Blake  <ebb9@byu.net>
70819         and Bruno Haible  <bruno@clisp.org>
70821         obstack-printf-posix: ensure declaration
70822         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
70823         extracted from gl_FUNC_OBSTACK_PRINTF.
70824         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
70825         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
70826         Likewise.
70827         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
70828         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
70829         0.
70831 2010-02-08  Bruno Haible  <bruno@clisp.org>
70833         gnulib-tool: Fix typo in 2010-02-07 commit.
70834         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
70835         Reported by Eric Blake.
70837 2010-02-07  Bruno Haible  <bruno@clisp.org>
70839         gnulib-tool: Fix up caching patches.
70840         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
70841         option --no-cache. Use associative arrays when supported by the shell.
70842         (sed_comments): New variable.
70843         (modcache): Renamed from do_cache.
70844         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
70845         abbreviate unnecessarily.
70846         (have_associative): New variable.
70847         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
70848         way also for ksh and zsh.
70849         (func_init_sed_convert_to_cache_statements): New function, extracted
70850         from func_cache_lookup_module. Add support for associative arrays.
70851         Don't set the c_MODULE_cached variable here. Ignore all lines before
70852         the first field header. Remove only the final newline, not all trailing
70853         newlines. Support empty fields correctly. Limit the use of 'eval' to
70854         assignments.
70855         (func_get_description, func_get_status, func_get_notice,
70856         func_get_applicability, func_get_filelist, func_get_dependencies,
70857         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
70858         func_get_automake_snippet, func_get_include_directive,
70859         func_get_link_directive, func_get_license, func_get_maintainer):
70860         Update documentation. List the unoptimized code first. Add support for
70861         associative arrays. Limit the use of 'eval' to assignments.
70862         (func_get_applicability): Undo stylistic pessimisations.
70863         (func_get_automake_snippet, func_get_include_directive): Reduce code
70864         duplication.
70865         (func_modules_transitive_closure, func_modules_add_dummy,
70866         func_modules_notice, func_modules_to_filelist, func_add_file,
70867         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
70868         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
70869         func_create_testdir, func_create_megatestdir): Update documentation.
70871 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70873         * gnulib-tool (func_cache_lookup_module): Store the module name
70874         belonging to the cache variable; error out if two different
70875         module names map to the same cache variable name.
70877 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70879         gnulib-tool: Make caching optional.
70880         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
70881         Update matching short versions of --no-changelog.
70882         (func_usage): Update.
70883         (sed_extract_cache_prog): Renamed from ...
70884         (sed_extract_prog): ... this; revert to old extraction script.
70885         (func_get_description, func_get_status)
70886         (func_get_notice, func_get_applicability, func_get_filelist)
70887         (func_get_dependencies, func_get_autoconf_early_snippet)
70888         (func_get_autoconf_snippet, func_get_automake_snippet)
70889         (func_get_include_directive, func_get_link_directive)
70890         (func_get_license, func_get_maintainer): If $do_cache is false,
70891         use old, non-caching extraction scripts.
70892         Suggestion by Bruno Haible.
70894 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70896         gnulib-tool: cache module metainformation.
70897         * gnulib-tool (sed_extract_prog): Match newline before each
70898         header, and rewrite header to a shell variable suffix.
70899         (func_cache_var, func_cache_lookup_module): New functions,
70900         to turn a module name into a cache variable prefix, and to
70901         look up and cache module metainformation.
70902         (func_get_description, func_get_status)
70903         (func_get_notice, func_get_applicability, func_get_filelist)
70904         (func_get_dependencies, func_get_autoconf_early_snippet)
70905         (func_get_autoconf_snippet, func_get_automake_snippet)
70906         (func_get_include_directive, func_get_link_directive)
70907         (func_get_license, func_get_maintainer): Use
70908         func_cache_lookup_module.
70910 2010-02-07  Bruno Haible  <bruno@clisp.org>
70912         fnctl: Fix missing dependency.
70913         * modules/fcntl (Depends-on): Add getdtablesize.
70914         Reported by John W. Eaton <jwe@gnu.org>.
70916 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
70918         Argp: fix recognition of short alias options.
70920         * lib/argp-parse.c (convert_options): Fix improper use of
70921         `|' between character values.
70922         * tests/test-argp.c (group1_option): New alias option
70923         --read (-r).
70924         (group1_parser): Special handling for 'r'.
70925         (test15): New test case.
70926         (test_fun): Add test15.
70927         * tests/test-argp-2.sh: Update expected --help and --usage
70928         outputs.
70930 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
70932         * tests/test-argp.c: Fix indentation.
70934 2010-02-04  Eric Blake  <ebb9@byu.net>
70936         gettimeofday: expose type of second argument
70937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
70938         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
70939         * tests/test-gettimeofday.c: Use it to silence warning.
70940         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
70941         the issue.
70943 2010-02-03  Jim Meyering  <meyering@redhat.com>
70945         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
70946         * lib/regcomp.c (TYPE_SIGNED): Define.
70947         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
70949         regcomp.c: avoid a new -Wshadow warning
70950         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
70952 2010-02-01  Jim Meyering  <meyering@redhat.com>
70954         removing useless parentheses in cpp #define directives
70955         For motivation, see commit c0221df4, "define STREQ(a,b)
70956         consistently, removing useless parentheses"
70957         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
70958         * lib/mountlist.c (MNT_IGNORE): Likewise.
70959         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
70961 2010-02-01  Eric Blake  <ebb9@byu.net>
70963         sys_time: use link-warning
70964         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
70965         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
70966         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
70967         * modules/sys_time (Depends-on): Add warn-on-use.
70968         (Makefile.am): Always build replacement.
70969         (configure.ac): Update substitutions.
70970         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
70971         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
70972         bother with SYS_TIME_H.
70973         * modules/gettimeofday (configure.ac): Declare indicator.
70974         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
70975         in use.
70977         closein-tests: silence compiler warning
70978         * tests/test-closein.c (main): Ignore fread result.
70979         * modules/closein-tests (Depends-on): Add ignore-value.
70981         tests: silence warning about system return
70982         * tests/test-areadlink-with-size.c (main): Ignore system result.
70983         * tests/test-areadlink.c (main): Likewise.
70984         * tests/test-areadlinkat-with-size.c (main): Likewise.
70985         * tests/test-areadlinkat.c (main): Likewise.
70986         * tests/test-canonicalize-lgpl.c (main): Likewise.
70987         * tests/test-canonicalize.c (main): Likewise.
70988         * tests/test-chown.c (main): Likewise.
70989         * tests/test-fchownat.c (main): Likewise.
70990         * tests/test-fdutimensat.c (main): Likewise.
70991         * tests/test-fstatat.c (main): Likewise.
70992         * tests/test-futimens.c (main): Likewise.
70993         * tests/test-lchown.c (main): Likewise.
70994         * tests/test-link.c (main): Likewise.
70995         * tests/test-linkat.c (main): Likewise.
70996         * tests/test-lstat.c (main): Likewise.
70997         * tests/test-mkdir.c (main): Likewise.
70998         * tests/test-mkdirat.c (main): Likewise.
70999         * tests/test-mkfifo.c (main): Likewise.
71000         * tests/test-mkfifoat.c (main): Likewise.
71001         * tests/test-mknod.c (main): Likewise.
71002         * tests/test-readlink.c (main): Likewise.
71003         * tests/test-remove.c (main): Likewise.
71004         * tests/test-rename.c (main): Likewise.
71005         * tests/test-renameat.c (main): Likewise.
71006         * tests/test-rmdir.c (main): Likewise.
71007         * tests/test-symlink.c (main): Likewise.
71008         * tests/test-symlinkat.c (main): Likewise.
71009         * tests/test-unlink.c (main): Likewise.
71010         * tests/test-unlinkat.c (main): Likewise.
71011         * tests/test-utimens.c (main): Likewise.
71012         * tests/test-utimensat.c (main): Likewise.
71013         * modules/areadlink-tests (Depends-on): Add ignore-value.
71014         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71015         * modules/areadlinkat-tests (Depends-on): Likewise.
71016         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71017         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71018         * modules/canonicalize-tests (Depends-on): Likewise.
71019         * modules/chown-tests (Depends-on): Likewise.
71020         * modules/fdutimensat-tests (Depends-on): Likewise.
71021         * modules/futimens-tests (Depends-on): Likewise.
71022         * modules/lchown-tests (Depends-on): Likewise.
71023         * modules/link-tests (Depends-on): Likewise.
71024         * modules/linkat-tests (Depends-on): Likewise.
71025         * modules/lstat-tests (Depends-on): Likewise.
71026         * modules/mkdir-tests (Depends-on): Likewise.
71027         * modules/mkfifo-tests (Depends-on): Likewise.
71028         * modules/mkfifoat-tests (Depends-on): Likewise.
71029         * modules/mknod-tests (Depends-on): Likewise.
71030         * modules/openat-tests (Depends-on): Likewise.
71031         * modules/readlink-tests (Depends-on): Likewise.
71032         * modules/remove-tests (Depends-on): Likewise.
71033         * modules/rename-tests (Depends-on): Likewise.
71034         * modules/renameat-tests (Depends-on): Likewise.
71035         * modules/rmdir-tests (Depends-on): Likewise.
71036         * modules/symlink-tests (Depends-on): Likewise.
71037         * modules/symlinkat-tests (Depends-on): Likewise.
71038         * modules/unlink-tests (Depends-on): Likewise.
71039         * modules/utimens-tests (Depends-on): Likewise.
71040         * modules/utimensat-tests (Depends-on): Likewise.
71042 2010-01-31  Bruno Haible  <bruno@clisp.org>
71044         Perform the same test for many <math.h> functions.
71045         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71046         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71047         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71048         of gl_MATHFUNC.
71049         * modules/acos (configure.ac): Likewise.
71050         * modules/asin (configure.ac): Likewise.
71051         * modules/atan (configure.ac): Likewise.
71052         * modules/atan2 (configure.ac): Likewise.
71053         * modules/cbrt (configure.ac): Likewise.
71054         * modules/copysign (configure.ac): Likewise.
71055         * modules/cos (configure.ac): Likewise.
71056         * modules/cosh (configure.ac): Likewise.
71057         * modules/erf (configure.ac): Likewise.
71058         * modules/erfc (configure.ac): Likewise.
71059         * modules/exp (configure.ac): Likewise.
71060         * modules/fmod (configure.ac): Likewise.
71061         * modules/hypot (configure.ac): Likewise.
71062         * modules/j0 (configure.ac): Likewise.
71063         * modules/j1 (configure.ac): Likewise.
71064         * modules/jn (configure.ac): Likewise.
71065         * modules/lgamma (configure.ac): Likewise.
71066         * modules/log (configure.ac): Likewise.
71067         * modules/log10 (configure.ac): Likewise.
71068         * modules/log1p (configure.ac): Likewise.
71069         * modules/pow (configure.ac): Likewise.
71070         * modules/remainder (configure.ac): Likewise.
71071         * modules/sin (configure.ac): Likewise.
71072         * modules/sinh (configure.ac): Likewise.
71073         * modules/tan (configure.ac): Likewise.
71074         * modules/tanh (configure.ac): Likewise.
71075         * modules/y0 (configure.ac): Likewise.
71076         * modules/y1 (configure.ac): Likewise.
71077         * modules/yn (configure.ac): Likewise.
71078         Suggested by Paolo Bonzini.
71080 2010-01-31  Bruno Haible  <bruno@clisp.org>
71082         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71084 2010-01-31  Bruno Haible  <bruno@clisp.org>
71086         Work around getdelim() bug on FreeBSD 8.0.
71087         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71088         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71089         not work.
71090         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71091         is 1.
71092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71093         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71094         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71095         a non-zero size.
71096         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71098 2010-01-31  Bruno Haible  <bruno@clisp.org>
71100         Work around getline() bug on FreeBSD 8.0.
71101         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71102         and a non-zero size.
71103         * tests/test-getline.c (main): Likewise.
71104         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71105         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71107 2010-01-28  Eric Blake  <ebb9@byu.net>
71109         regex: fix build failure
71110         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71111         platforms.
71113 2010-01-28  Jim Meyering  <meyering@redhat.com>
71115         regex: do not ignore memory allocation failure
71116         * lib/regex_internal.c (create_cd_newstate): Detect
71117         re_node_set_init_copy failure.   Extracted from glibc commit
71118         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71120         regex: sync more white-space changes from libc
71121         * lib/regex_internal.c: White-space only changes.
71122         * lib/regexec.c: Likewise.
71124         regex: add many uses of __attribute_warn_unused_result__
71125         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71126         * lib/regexec.c: Likewise.
71127         Extracted from a messy glibc commit.
71129         regcomp.c: spelling and merge-artifact from glibc
71130         * lib/regcomp.c: Merge remainder of glibc's
71131         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71133         regcomp.c: sync white-space changes from glibc
71134         * lib/regcomp.c: Merge to accommodate white space
71135         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71137         regcomp.c: do not ignore internal return values
71138         * lib/regcomp.c: Do not ignore internal return values.
71139         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71140         but without its white-space changes and spelling fixes.
71142         regex_internal.h: define __attribute_warn_unused_result__
71143         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71145         maint: add a syntax-check rule to check for vulnerable Makefile.in
71146         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71148 2010-01-27  Jim Meyering  <meyering@redhat.com>
71150         ncftpput-ftp: clean up spaces
71151         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71152         Remove trailing blanks.
71154 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71156         * build-aux/git-version-gen: Fix copyright statement.
71157         * build-aux/gnupload: Likewise.
71158         * tests/test-arcfour.c: Likewise.
71159         * tests/test-arctwo.c: Likewise.
71160         * tests/test-count-one-bits.c: Likewise.
71161         * tests/test-crc.c: Likewise.
71162         * tests/test-des.c: Likewise.
71163         * tests/test-gc-arcfour.c: Likewise.
71164         * tests/test-gc-arctwo.c: Likewise.
71165         * tests/test-gc-des.c: Likewise.
71166         * tests/test-gc-hmac-md5.c: Likewise.
71167         * tests/test-gc-hmac-sha1.c: Likewise.
71168         * tests/test-gc-md2.c: Likewise.
71169         * tests/test-gc-md4.c: Likewise.
71170         * tests/test-gc-md5.c: Likewise.
71171         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71172         * tests/test-gc-rijndael.c: Likewise.
71173         * tests/test-gc-sha1.c: Likewise.
71174         * tests/test-gc.c: Likewise.
71175         * tests/test-gethostname.c: Likewise.
71176         * tests/test-gettimeofday.c: Likewise.
71177         * tests/test-hash.c: Likewise.
71178         * tests/test-hmac-md5.c: Likewise.
71179         * tests/test-hmac-sha1.c: Likewise.
71180         * tests/test-md2.c: Likewise.
71181         * tests/test-md4.c: Likewise.
71182         * tests/test-md5.c: Likewise.
71183         * tests/test-memchr.c: Likewise.
71184         * tests/test-memchr2.c: Likewise.
71185         * tests/test-memcmp.c: Likewise.
71186         * tests/test-memmem.c: Likewise.
71187         * tests/test-memrchr.c: Likewise.
71188         * tests/test-rawmemchr.c: Likewise.
71189         * tests/test-read-file.c: Likewise.
71190         * tests/test-rijndael.c: Likewise.
71191         * tests/test-sockets.c: Likewise.
71192         * tests/test-strchrnul.c: Likewise.
71193         * tests/test-strstr.c: Likewise.
71194         * tests/test-strtod.c: Likewise.
71195         * build-aux/ncftpput-ftp: Likewise.
71197 2010-01-26  Eric Blake  <ebb9@byu.net>
71199         ignore-value: update recommended header name
71200         * modules/ignore-value (Include): Only use <> for headers that
71201         exist in glibc.
71203 2010-01-26  Jim Meyering  <meyering@redhat.com>
71205         test-userspec.c: avoid compiler warnings
71206         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71207         and "initialization discards qualifiers..." warnings.
71208         Put the first "uid" in its own scope, and make char* members "const".
71210 2010-01-25  Bruno Haible  <bruno@clisp.org>
71212         gnulib-tool: Make warning diagnostics consistent.
71213         * gnulib-tool (func_warning): New function.
71214         Use it everywhere where gnulib-tool produces output to stderr and it is
71215         not a fatal error.
71217 2010-01-25  Bruno Haible  <bruno@clisp.org>
71219         Fix test dependencies.
71220         * modules/xstrtol-tests (Depends-on): Add inttypes.
71221         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
71223 2010-01-25  Pádraig Brady  <P@draigBrady.com>
71225         syntax-check: detect incorrect boolean macro values in config.h
71226         * modules/maintainer-makefile (configure.ac): Parameterize the location
71227         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
71228         The logic is from Eric Blake and the location indicated by Jim Meyering.
71229         Note the more natural CONFIG_HEADER name is prohibited by automake
71230         for backwards compatibility reasons.
71231         * top/maint.mk (sc_Wundef_boolean): New rule.
71233 2010-01-25  Jim Meyering  <meyering@redhat.com>
71235         bootstrap: detect MacOS 10.6's shasum, too
71236         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
71237         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
71239 2010-01-23  Jim Meyering  <meyering@redhat.com>
71241         xstrtoll: new module
71242         * modules/xstrtoll: New file.
71243         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
71244         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
71245         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
71246         ./configure fails if you use this module and lack "long long".
71247         * modules/xstrtoll-tests: New module.
71248         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71249         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71250         new init.sh-based test framework.
71252 2010-01-24  Bruno Haible  <bruno@clisp.org>
71254         Tests for module 'yn'.
71255         * modules/yn-tests: New file.
71256         * tests/test-yn.c: New file.
71258         Tests for module 'y1'.
71259         * modules/y1-tests: New file.
71260         * tests/test-y1.c: New file.
71262         Tests for module 'y0'.
71263         * modules/y0-tests: New file.
71264         * tests/test-y0.c: New file.
71266         Tests for module 'tanh'.
71267         * modules/tanh-tests: New file.
71268         * tests/test-tanh.c: New file.
71270         Tests for module 'tan'.
71271         * modules/tan-tests: New file.
71272         * tests/test-tan.c: New file.
71274         Tests for module 'sqrt'.
71275         * modules/sqrt-tests: New file.
71276         * tests/test-sqrt.c: New file.
71278         Tests for module 'sinh'.
71279         * modules/sinh-tests: New file.
71280         * tests/test-sinh.c: New file.
71282         Tests for module 'sin'.
71283         * modules/sin-tests: New file.
71284         * tests/test-sin.c: New file.
71286         Tests for module 'rint'.
71287         * modules/rint-tests: New file.
71288         * tests/test-rint.c: New file.
71290         Tests for module 'remainder'.
71291         * modules/remainder-tests: New file.
71292         * tests/test-remainder.c: New file.
71294         Tests for module 'pow'.
71295         * modules/pow-tests: New file.
71296         * tests/test-pow.c: New file.
71298         Tests for module 'nextafter'.
71299         * modules/nextafter-tests: New file.
71300         * tests/test-nextafter.c: New file.
71302         Tests for module 'modf'.
71303         * modules/modf-tests: New file.
71304         * tests/test-modf.c: New file.
71306         Tests for module 'logb'.
71307         * modules/logb-tests: New file.
71308         * tests/test-logb.c: New file.
71310         Tests for module 'log1p'.
71311         * modules/log1p-tests: New file.
71312         * tests/test-log1p.c: New file.
71314         Tests for module 'log10'.
71315         * modules/log10-tests: New file.
71316         * tests/test-log10.c: New file.
71318         Tests for module 'log'.
71319         * modules/log-tests: New file.
71320         * tests/test-log.c: New file.
71322         Tests for module 'lgamma'.
71323         * modules/lgamma-tests: New file.
71324         * tests/test-lgamma.c: New file.
71326         Tests for module 'ldexp'.
71327         * modules/ldexp-tests: New file.
71328         * tests/test-ldexp.c: New file.
71330         Tests for module 'jn'.
71331         * modules/jn-tests: New file.
71332         * tests/test-jn.c: New file.
71334         Tests for module 'j1'.
71335         * modules/j1-tests: New file.
71336         * tests/test-j1.c: New file.
71338         Tests for module 'j0'.
71339         * modules/j0-tests: New file.
71340         * tests/test-j0.c: New file.
71342         Tests for module 'hypot'.
71343         * modules/hypot-tests: New file.
71344         * tests/test-hypot.c: New file.
71346         Tests for module 'fmod'.
71347         * modules/fmod-tests: New file.
71348         * tests/test-fmod.c: New file.
71350         Tests for module 'fabs'.
71351         * modules/fabs-tests: New file.
71352         * tests/test-fabs.c: New file.
71354         Tests for module 'exp'.
71355         * modules/exp-tests: New file.
71356         * tests/test-exp.c: New file.
71358         Tests for module 'erfc'.
71359         * modules/erfc-tests: New file.
71360         * tests/test-erfc.c: New file.
71362         Tests for module 'erf'.
71363         * modules/erf-tests: New file.
71364         * tests/test-erf.c: New file.
71366         Tests for module 'cosh'.
71367         * modules/cosh-tests: New file.
71368         * tests/test-cosh.c: New file.
71370         Tests for module 'cos'.
71371         * modules/cos-tests: New file.
71372         * tests/test-cos.c: New file.
71374         Tests for module 'copysign'.
71375         * modules/copysign-tests: New file.
71376         * tests/test-copysign.c: New file.
71378         Tests for module 'cbrt'.
71379         * modules/cbrt-tests: New file.
71380         * tests/test-cbrt.c: New file.
71382         Tests for module 'atan2'.
71383         * modules/atan2-tests: New file.
71384         * tests/test-atan2.c: New file.
71386         Tests for module 'atan'.
71387         * modules/atan-tests: New file.
71388         * tests/test-atan.c: New file.
71390         Tests for module 'asin'.
71391         * modules/asin-tests: New file.
71392         * tests/test-asin.c: New file.
71394         Tests for module 'acos'.
71395         * modules/acos-tests: New file.
71396         * tests/test-acos.c: New file.
71398 2010-01-24  Bruno Haible  <bruno@clisp.org>
71400         Fix tests for common <math.h> functions.
71401         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
71402         code snippet that references the function pointer, rather than merely
71403         calling the function. Substitute the FUNC_LIBM variable.
71404         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
71405         * modules/acos (configure.ac): Likewise.
71406         * modules/asin (configure.ac): Likewise.
71407         * modules/atan (configure.ac): Likewise.
71408         * modules/atan2 (configure.ac): Likewise.
71409         * modules/cbrt (configure.ac): Likewise.
71410         * modules/copysign (configure.ac): Likewise.
71411         * modules/cos (configure.ac): Likewise.
71412         * modules/cosh (configure.ac): Likewise.
71413         * modules/erf (configure.ac): Likewise.
71414         * modules/erfc (configure.ac): Likewise.
71415         * modules/exp (configure.ac): Likewise.
71416         * modules/fabs (configure.ac): Likewise.
71417         * modules/fmod (configure.ac): Likewise.
71418         * modules/hypot (configure.ac): Likewise.
71419         * modules/j0 (configure.ac): Likewise.
71420         * modules/j1 (configure.ac): Likewise.
71421         * modules/jn (configure.ac): Likewise.
71422         * modules/ldexp (configure.ac): Likewise.
71423         * modules/lgamma (configure.ac): Likewise.
71424         * modules/log (configure.ac): Likewise.
71425         * modules/log10 (configure.ac): Likewise.
71426         * modules/log1p (configure.ac): Likewise.
71427         * modules/logb (configure.ac): Likewise.
71428         * modules/modf (configure.ac): Likewise.
71429         * modules/nextafter (configure.ac): Likewise.
71430         * modules/pow (configure.ac): Likewise.
71431         * modules/remainder (configure.ac): Likewise.
71432         * modules/rint (configure.ac): Likewise.
71433         * modules/sin (configure.ac): Likewise.
71434         * modules/sinh (configure.ac): Likewise.
71435         * modules/tan (configure.ac): Likewise.
71436         * modules/tanh (configure.ac): Likewise.
71437         * modules/y0 (configure.ac): Likewise.
71438         * modules/y1 (configure.ac): Likewise.
71439         * modules/yn (configure.ac): Likewise.
71441 2010-01-24  Bruno Haible  <bruno@clisp.org>
71443         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
71444         * tests/test-acosl.c (x): New variable.
71445         (main): Store argument in x and fetch it from x.
71446         * tests/test-asinl.c (x): New variable.
71447         (main): Store argument in x and fetch it from x.
71448         * tests/test-atanl.c (x): New variable.
71449         (main): Store argument in x and fetch it from x.
71450         * tests/test-cosl.c (x): New variable.
71451         (main): Store argument in x and fetch it from x.
71452         * tests/test-expl.c (x): New variable.
71453         (main): Store argument in x and fetch it from x.
71454         * tests/test-logl.c (x): New variable.
71455         (main): Store argument in x and fetch it from x.
71456         * tests/test-sinl.c (x): New variable.
71457         (main): Store argument in x and fetch it from x.
71458         * tests/test-sqrtl.c (x): New variable.
71459         (main): Store argument in x and fetch it from x.
71460         * tests/test-tanl.c (x): New variable.
71461         (main): Store argument in x and fetch it from x.
71463 2010-01-24  Bruno Haible  <bruno@clisp.org>
71465         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
71466         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
71467         assignments to the initial TESTS_ENVIRONMENT.
71468         * doc/gnulib.texi (Unit test modules): Document it.
71469         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
71470         TESTS_ENVIRONMENT.
71471         * modules/btowc-tests (Makefile.am): Likewise.
71472         * modules/c-stack-tests (Makefile.am): Likewise.
71473         * modules/c-strcase-tests (Makefile.am): Likewise.
71474         * modules/copy-file-tests (Makefile.am): Likewise.
71475         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
71476         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
71477         * modules/mbrtowc-tests (Makefile.am): Likewise.
71478         * modules/mbscasecmp-tests (Makefile.am): Likewise.
71479         * modules/mbscasestr-tests (Makefile.am): Likewise.
71480         * modules/mbschr-tests (Makefile.am): Likewise.
71481         * modules/mbscspn-tests (Makefile.am): Likewise.
71482         * modules/mbsinit-tests (Makefile.am): Likewise.
71483         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
71484         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
71485         * modules/mbspbrk-tests (Makefile.am): Likewise.
71486         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
71487         * modules/mbsrchr-tests (Makefile.am): Likewise.
71488         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
71489         * modules/mbsspn-tests (Makefile.am): Likewise.
71490         * modules/mbsstr-tests (Makefile.am): Likewise.
71491         * modules/nl_langinfo-tests (Makefile.am): Likewise.
71492         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
71493         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
71494         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
71495         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
71496         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
71497         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
71498         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
71499         * modules/wcrtomb-tests (Makefile.am): Likewise.
71500         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
71501         * modules/wcsrtombs-tests (Makefile.am): Likewise.
71502         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
71503         assignments from TESTS_ENVIRONMENT.
71504         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
71505         augmentation.
71506         * modules/argp-version-etc-tests (Makefile.am): Likewise.
71507         * modules/atexit-tests (Makefile.am): Likewise.
71508         * modules/binary-io-tests (Makefile.am): Likewise.
71509         * modules/closein-tests (Makefile.am): Likewise.
71510         * modules/dprintf-posix-tests (Makefile.am): Likewise.
71511         * modules/exclude-tests (Makefile.am): Likewise.
71512         * modules/fflush-tests (Makefile.am): Likewise.
71513         * modules/fpending-tests (Makefile.am): Likewise.
71514         * modules/fprintf-posix-tests (Makefile.am): Likewise.
71515         * modules/freadahead-tests (Makefile.am): Likewise.
71516         * modules/freadptr-tests (Makefile.am): Likewise.
71517         * modules/freadseek-tests (Makefile.am): Likewise.
71518         * modules/fseek-tests (Makefile.am): Likewise.
71519         * modules/fseeko-tests (Makefile.am): Likewise.
71520         * modules/ftell-tests (Makefile.am): Likewise.
71521         * modules/ftello-tests (Makefile.am): Likewise.
71522         * modules/idpriv-drop-tests (Makefile.am): Likewise.
71523         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
71524         * modules/lseek-tests (Makefile.am): Likewise.
71525         * modules/parse-duration-tests (Makefile.am): Likewise.
71526         * modules/perror-tests (Makefile.am): Likewise.
71527         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
71528         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
71529         * modules/pipe-tests (Makefile.am): Likewise.
71530         * modules/pread-tests (Makefile.am): Likewise.
71531         * modules/printf-posix-tests (Makefile.am): Likewise.
71532         * modules/select-tests (Makefile.am): Likewise.
71533         * modules/sigpipe-tests (Makefile.am): Likewise.
71534         * modules/tsearch-tests (Makefile.am): Likewise.
71535         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
71536         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
71537         * modules/uniname/uniname-tests (Makefile.am): Likewise.
71538         * modules/uniwidth/width-tests (Makefile.am): Likewise.
71539         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
71540         * modules/version-etc-tests (Makefile.am): Likewise.
71541         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
71542         * modules/vprintf-posix-tests (Makefile.am): Likewise.
71543         * modules/xalloc-die-tests (Makefile.am): Likewise.
71544         * modules/xprintf-posix-tests (Makefile.am): Likewise.
71545         * modules/xstrtoimax-tests (Makefile.am): Likewise.
71546         * modules/xstrtol-tests (Makefile.am): Likewise.
71547         * modules/xstrtoumax-tests (Makefile.am): Likewise.
71548         * modules/yesno-tests (Makefile.am): Likewise.
71549         Suggested by Jim Meyering.
71551 2010-01-24  Bruno Haible  <bruno@clisp.org>
71553         More documentation.
71554         * doc/gnulib.texi (Writing modules): New chapter.
71555         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
71556         the new chapter.
71558 2010-01-24  Jim Meyering  <meyering@redhat.com>
71560         maint.mk: do not prepend "./" after filtering
71561         * top/maint.mk (_prepend_srcdir_prefix): New variable
71562         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
71563         "./" when $(srcdir) is ".".
71565         define STREQ(a,b) consistently, removing useless parentheses
71566         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
71567         since the only risk is that "a" or "b" contains an unparenthesized
71568         comma, but if either did that, STREQ would have 3 or more arguments.
71569         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
71570         * lib/fts.c (STREQ): Remove unnecessary parentheses.
71571         * lib/hash-triple.c (STREQ): Likewise.
71572         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
71573         * lib/getugroups.c (STREQ): Likewise.
71575 2010-01-23  Jim Meyering  <meyering@redhat.com>
71577         maint.mk: fix syntax-check in a non-srcdir build directory
71578         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
71579         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
71581 2010-01-22  Jim Meyering  <meyering@redhat.com>
71583         userspec: add unit tests
71584         * tests/test-userspec.c: New file.
71585         * modules/userspec-tests: Likewise.
71587 2010-01-21  Jim Meyering  <meyering@redhat.com>
71589         maint.mk: handle source file names containing "." robustly
71590         * top/maint.mk (_dot_escaped_srcdir): Define.
71591         (VC_LIST): Use it in LHS of sed substitution.
71593 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
71595         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
71596         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
71597         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
71598         from a non-srcdir build.
71600 2010-01-20  Eric Blake  <ebb9@byu.net>
71602         warn-on-use: use instead of link-warning
71603         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
71604         * modules/unistd (Depends-on, Makefile.am): Likewise.
71605         * modules/arpa_inet (Depends-on): Replace link-warning with
71606         warn-on-use.
71607         (Makefile.am): Update rules accordingly.
71608         * modules/ctype (Depends-on, Makefile.am): Likewise.
71609         * modules/dirent (Depends-on, Makefile.am): Likewise.
71610         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
71611         * modules/inttypes (Depends-on, Makefile.am): Likewise.
71612         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71613         * modules/locale (Depends-on, Makefile.am): Likewise.
71614         * modules/math (Depends-on, Makefile.am): Likewise.
71615         * modules/search (Depends-on, Makefile.am): Likewise.
71616         * modules/signal (Depends-on, Makefile.am): Likewise.
71617         * modules/spawn (Depends-on, Makefile.am): Likewise.
71618         * modules/stdlib (Depends-on, Makefile.am): Likewise.
71619         * modules/string (Depends-on, Makefile.am): Likewise.
71620         * modules/strings (Depends-on, Makefile.am): Likewise.
71621         * modules/sys_file (Depends-on, Makefile.am): Likewise.
71622         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
71623         * modules/sys_select (Depends-on, Makefile.am): Likewise.
71624         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
71625         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
71626         * modules/sys_times (Depends-on, Makefile.am): Likewise.
71627         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71628         * modules/wchar (Depends-on, Makefile.am): Likewise.
71629         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
71630         should be poisoned.
71631         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
71632         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
71633         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
71634         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71635         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71636         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
71637         * m4/math_h.m4 (gl_MATH_H): Likewise.
71638         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
71639         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
71640         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
71641         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
71642         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
71643         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
71644         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
71645         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
71646         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
71647         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71648         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
71649         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
71650         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71651         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71652         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
71653         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71654         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
71655         GL_LINK_WARNING.
71656         * lib/ctype.in.h: Likewise.
71657         * lib/dirent.in.h: Likewise.
71658         * lib/fcntl.in.h: Likewise.
71659         * lib/inttypes.in.h: Likewise.
71660         * lib/langinfo.in.h: Likewise.
71661         * lib/locale.in.h: Likewise.
71662         * lib/math.in.h: Likewise.
71663         * lib/search.in.h: Likewise.
71664         * lib/signal.in.h: Likewise.
71665         * lib/spawn.in.h: Likewise.
71666         * lib/stdio.in.h: Likewise.
71667         * lib/stdlib.in.h: Likewise.
71668         * lib/string.in.h: Likewise.
71669         * lib/strings.in.h: Likewise.
71670         * lib/sys_file.in.h: Likewise.
71671         * lib/sys_ioctl.in.h: Likewise.
71672         * lib/sys_select.in.h: Likewise.
71673         * lib/sys_socket.in.h: Likewise.
71674         * lib/sys_stat.in.h: Likewise.
71675         * lib/sys_times.in.h: Likewise.
71676         * lib/sys_utsname.in.h: Likewise.
71677         * lib/unistd.in.h: Likewise.
71678         * lib/wchar.in.h: Likewise.
71680 2010-01-20  Bruno Haible  <bruno@clisp.org>
71682         Avoid duplicate -lm.
71683         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
71684         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
71685         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
71686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
71687         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
71688         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
71689         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
71690         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
71691         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
71692         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
71693         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
71694         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
71695         Reported by Paolo Bonzini.
71697 2010-01-19  Bruno Haible  <bruno@clisp.org>
71699         langinfo, nl_langinfo: Relicense under LGPLv2+.
71700         * modules/langinfo (License): Change to LGPLv2+.
71701         * modules/nl_langinfo (License): Likewise.
71702         Patch by David Lutterkort <lutter@redhat.com>.
71704 2010-01-19  Bruno Haible  <bruno@clisp.org>
71706         Avoid compilation error with cc on OSF/1 5.1.
71707         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
71708         statement, not before.
71709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71711 2010-01-18  Bruno Haible  <bruno@clisp.org>
71713         Avoid a link error due to the __printf__ symbol.
71714         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
71715         and 2.6.x.
71716         (__format__, __printf__): Remove definitions.
71717         * lib/argp-fmtstream.h: Likewise.
71718         * lib/argp.h: Likewise.
71719         * lib/error.h: Likewise.
71720         * lib/vasnprintf.h: Likewise.
71721         * lib/xprintf.h: Likewise.
71722         * lib/xvasprintf.h: Likewise.
71723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71725 2010-01-18  Bruno Haible  <bruno@clisp.org>
71727         Tests for module 'tanl'.
71728         * modules/tanl-tests: New file.
71729         * tests/test-tanl.c: New file.
71731         Tests for module 'sqrtl'.
71732         * modules/sqrtl-tests: New file.
71733         * tests/test-sqrtl.c: New file.
71735         Tests for module 'sinl'.
71736         * modules/sinl-tests: New file.
71737         * tests/test-sinl.c: New file.
71739         Tests for module 'logl'.
71740         * modules/logl-tests: New file.
71741         * tests/test-logl.c: New file.
71743         Tests for module 'expl'.
71744         * modules/expl-tests: New file.
71745         * tests/test-expl.c: New file.
71747         Tests for module 'cosl'.
71748         * modules/cosl-tests: New file.
71749         * tests/test-cosl.c: New file.
71751         Tests for module 'atanl'.
71752         * modules/atanl-tests: New file.
71753         * tests/test-atanl.c: New file.
71755         Tests for module 'asinl'.
71756         * modules/asinl-tests: New file.
71757         * tests/test-asinl.c: New file.
71759         Tests for module 'acosl'.
71760         * modules/acosl-tests: New file.
71761         * tests/test-acosl.c: New file.
71763         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71764         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
71765         tanl): Use the standard gnulib idiom.
71766         * lib/cosl.c: Don't include trigl.c and sincosl.c.
71767         * lib/sinl.c: Likewise.
71768         * lib/tanl.c: Don't include trigl.c.
71769         (kernel_tanl): Make static.
71770         * lib/sincosl.c: Include trigl.h first.
71771         * lib/trigl.c: Likewise.
71772         * m4/acosl.m4: New file.
71773         * m4/asinl.m4: New file.
71774         * m4/atanl.m4: New file.
71775         * m4/cosl.m4: New file.
71776         * m4/expl.m4: New file.
71777         * m4/logl.m4: New file.
71778         * m4/sinl.m4: New file.
71779         * m4/sqrtl.m4: New file.
71780         * m4/tanl.m4: New file.
71781         * m4/mathl.m4: Remove file.
71782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
71783         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71784         Don't initialize GNULIB_MATHL.
71785         * modules/acosl: New file.
71786         * modules/asinl: New file.
71787         * modules/atanl: New file.
71788         * modules/cosl: New file.
71789         * modules/expl: New file.
71790         * modules/logl: New file.
71791         * modules/sinl: New file.
71792         * modules/sqrtl: New file.
71793         * modules/tanl: New file.
71794         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
71795         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
71796         substitute GNULIB_MATHL.
71797         * modules/mathl: Rewritten.
71798         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
71799         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
71800         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
71801         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
71802         * doc/posix-functions/expl.texi: Mention the 'expl' module.
71803         * doc/posix-functions/logl.texi: Mention the 'logl' module.
71804         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
71805         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
71806         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
71808 2010-01-18  Bruno Haible  <bruno@clisp.org>
71810         sqrt: Make gl_FUNC_SQRT requirable.
71811         * m4/sqrt.m4: New file.
71812         * modules/sqrt (Files): Add it.
71813         (configure.ac): Invoke gl_FUNC_SQRT.
71815 2010-01-18  Bruno Haible  <bruno@clisp.org>
71817         New modules for common <math.h> functions.
71818         * m4/mathfunc.m4: New file.
71819         * modules/acos: New file.
71820         * modules/asin: New file.
71821         * modules/atan: New file.
71822         * modules/atan2: New file.
71823         * modules/cbrt: New file.
71824         * modules/copysign: New file.
71825         * modules/cos: New file.
71826         * modules/cosh: New file.
71827         * modules/erf: New file.
71828         * modules/erfc: New file.
71829         * modules/exp: New file.
71830         * modules/fabs: New file.
71831         * modules/fmod: New file.
71832         * modules/hypot: New file.
71833         * modules/j0: New file.
71834         * modules/j1: New file.
71835         * modules/jn: New file.
71836         * modules/ldexp: New file.
71837         * modules/lgamma: New file.
71838         * modules/log: New file.
71839         * modules/log10: New file.
71840         * modules/log1p: New file.
71841         * modules/logb: New file.
71842         * modules/modf: New file.
71843         * modules/nextafter: New file.
71844         * modules/pow: New file.
71845         * modules/remainder: New file.
71846         * modules/rint: New file.
71847         * modules/sin: New file.
71848         * modules/sinh: New file.
71849         * modules/sqrt: New file.
71850         * modules/tan: New file.
71851         * modules/tanh: New file.
71852         * modules/y0: New file.
71853         * modules/y1: New file.
71854         * modules/yn: New file.
71855         * doc/posix-functions/acos.texi: Mention the 'acos' module.
71856         * doc/posix-functions/asin.texi: Mention the 'asin' module.
71857         * doc/posix-functions/atan.texi: Mention the 'atan' module.
71858         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
71859         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
71860         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
71861         * doc/posix-functions/cos.texi: Mention the 'cos' module.
71862         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
71863         * doc/posix-functions/erf.texi: Mention the 'erf' module.
71864         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
71865         * doc/posix-functions/exp.texi: Mention the 'exp' module.
71866         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
71867         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
71868         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
71869         * doc/posix-functions/j0.texi: Mention the 'j0' module.
71870         * doc/posix-functions/j1.texi: Mention the 'j1' module.
71871         * doc/posix-functions/jn.texi: Mention the 'jn' module.
71872         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
71873         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
71874         * doc/posix-functions/log.texi: Mention the 'log' module.
71875         * doc/posix-functions/log10.texi: Mention the 'log10' module.
71876         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
71877         * doc/posix-functions/logb.texi: Mention the 'logb' module.
71878         * doc/posix-functions/modf.texi: Mention the 'modf' module.
71879         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
71880         * doc/posix-functions/pow.texi: Mention the 'pow' module.
71881         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
71882         * doc/posix-functions/rint.texi: Mention the 'rint' module.
71883         * doc/posix-functions/sin.texi: Mention the 'sin' module.
71884         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
71885         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
71886         * doc/posix-functions/tan.texi: Mention the 'tan' module.
71887         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
71888         * doc/posix-functions/y0.texi: Mention the 'y0' module.
71889         * doc/posix-functions/y1.texi: Mention the 'y1' module.
71890         * doc/posix-functions/yn.texi: Mention the 'yn' module.
71892 2010-01-18  Jim Meyering  <meyering@redhat.com>
71894         ignore-value: relax license to LGPLv2+
71895         * modules/ignore-value (License): Relax to LGPLv2+.
71897         getdate: don't leak when TZ contains two or more '"'s
71898         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
71899         double quote in TZ after the first one.
71901         readtokens: do not leak internal token_lengths buffer
71902         * lib/readtokens.c (readtokens): Free the local, lengths,
71903         when the supplied "token_lengths" parameter is NULL.
71905 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71907         Fix a couple of missing LIBTHREAD link failures on AIX.
71908         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
71909         $(LIBTHREAD).
71910         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
71912         Link test-poll against INET_PTON_LIB.
71913         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
71914         for inet_pton on Solaris 10.
71916 2010-01-17  Bruno Haible  <bruno@clisp.org>
71918         unistdio/*-sprintf: Fix typo in module description.
71919         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
71920         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
71921         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
71922         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
71923         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
71924         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
71925         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
71926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71928 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71930         gnulib-tool: fix filelist for AIX, HP-UX ksh.
71931         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
71932         variables in shell case patterns, for AIX and HP-UX ksh.
71934         Split large sed scripts, for HP-UX sed.
71935         * modules/stdio: Split sed scripts around 50 sed commands,
71936         to avoid HP-UX limit of 99 commands, in the near future.
71937         * modules/string: Likewise.
71938         * modules/unistd: Likewise.
71940         gnulib-tool: avoid writing in the current directory.
71941         * gnulib-tool (func_emit_lib_Makefile_am)
71942         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
71943         not in the current directory, so concurrent gnulib-tool
71944         instances do not interfere.
71946 2010-01-16  Jim Meyering  <meyering@redhat.com>
71948         doc: update users.txt
71949         * users.txt: Add grep.
71950         (diffutils, gzip): Update URLs.
71952 2010-01-12  Bruno Haible  <bruno@clisp.org>
71954         posix_spawn: Avoid test failure on Cygwin.
71955         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
71956         characters.
71957         Reported by Simon Josefsson.
71959 2010-01-12  Bruno Haible  <bruno@clisp.org>
71961         * tests/test-cond.c (main): When skipping the test, show the reason.
71963 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71965         * lib/striconv.c (str_cd_iconv): Avoid if before free.
71967 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71969         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
71970         VC_LIST_ALWAYS_EXCLUDE_REGEX.
71972 2010-01-12  Eric Blake  <ebb9@byu.net>
71974         build: guarantee AS_VAR_IF
71975         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
71976         (gl_AS_VAR_IF): Move...
71977         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
71978         Reported by Simon Josefsson.
71980 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71982         * lib/stdio.in.h: Fix typo.
71984 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71986         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
71987         libgpg-error.
71989 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71991         * tests/test-xalloc-die.sh: Use $EXEEXT.
71993 2010-01-12  Simon Josefsson  <simon@josefsson.org>
71994             Bruno Haible  <bruno@clisp.org>
71996         getlogin, getlogin_r: Avoid test failure.
71997         * tests/test-getlogin.c: Include <stdio.h>.
71998         (main): Skip the test when the function fails because stdin is not a
71999         tty.
72000         * tests/test-getlogin_r.c: Include <stdio.h>.
72001         (main): Skip the test when the function fails because stdin is not a
72002         tty.
72004 2010-01-11  Eric Blake  <ebb9@byu.net>
72006         tests: avoid more large file warnings
72007         * tests/test-fflush.c: Avoid warning about ftell use.
72008         * tests/test-fseek.c: Avoid warning about fseek use.
72010 2010-01-10  Bruno Haible  <bruno@clisp.org>
72012         nproc: Work better on Linux when /proc and /sys are not mounted.
72013         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72014         as lower bound when, on glibc/Linux systems,
72015         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72016         Suggested by Pádraig Brady <P@draigbrady.com>.
72017         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72019         nproc: Refactor.
72020         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72021         extracted from num_processors.
72022         (num_processors): Call it.
72024 2010-01-11  Jim Meyering  <meyering@redhat.com>
72026         utimecmp: avoid new warning from upcoming gcc-4.5.0
72027         * lib/utimecmp.c (BILLION): Define using #define rather than an
72028         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72030 2010-01-11  Eric Blake  <ebb9@byu.net>
72032         math: add portability warnings for classification macros
72033         * modules/math (Depends-on): Add warn-on-use.
72034         (Makefile.am): Provide new substitutions.
72035         * m4/math_h.m4 (gl_MATH_H): Require inline.
72036         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72037         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72038         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72039         implement warnings.
72041         unistd: warn on use of environ without module
72042         * modules/unistd (Depends-on): Add warn-on-use.
72043         (Makefile.am): Provide new substitutions.
72044         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72045         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72047         stdio: warn on suspicious uses
72048         * modules/stdio (Depends-on): Add warn-on-use.
72049         (Makefile.am): Provide new substitutions.
72050         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72051         fseeko.
72052         * lib/stdio.in.h (gets): Always warn on use.
72053         (fseek, ftell): Adjust when warnings are issued, and honor
72054         _GL_NO_LARGE_FILES as a way to silence the warning.
72055         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72056         any warning about large file offsets.
72057         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72058         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72059         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72060         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72061         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72062         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72063         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72064         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72066         warn-on-use: new module
72067         * modules/warn-on-use: New file.
72068         * build-aux/warn-on-use.h: Likewise.
72069         * m4/warn-on-use.m4: Likewise.
72070         * MODULES.html.sh (Support for building): Mention it.
72072 2010-01-10  Bruno Haible  <bruno@clisp.org>
72074         Tests for module 'unistr/u32-strdup'.
72075         * modules/unistr/u32-strdup-tests: New file.
72076         * tests/unistr/test-u32-strdup.c: New file.
72078         Tests for module 'unistr/u16-strdup'.
72079         * modules/unistr/u16-strdup-tests: New file.
72080         * tests/unistr/test-u16-strdup.c: New file.
72082         Tests for module 'unistr/u8-strdup'.
72083         * modules/unistr/u8-strdup-tests: New file.
72084         * tests/unistr/test-u8-strdup.c: New file.
72085         * tests/unistr/test-strdup.h: New file.
72087         Tests for module 'unistr/u32-strncmp'.
72088         * modules/unistr/u32-strncmp-tests: New file.
72089         * tests/unistr/test-u32-strncmp.c: New file.
72091         Tests for module 'unistr/u16-strncmp'.
72092         * modules/unistr/u16-strncmp-tests: New file.
72093         * tests/unistr/test-u16-strncmp.c: New file.
72095         Tests for module 'unistr/u8-strncmp'.
72096         * modules/unistr/u8-strncmp-tests: New file.
72097         * tests/unistr/test-u8-strncmp.c: New file.
72098         * tests/unistr/test-strncmp.h: New file.
72100         Tests for module 'unistr/u32-strcoll'.
72101         * modules/unistr/u32-strcoll-tests: New file.
72102         * tests/unistr/test-u32-strcoll.c: New file.
72104         Tests for module 'unistr/u16-strcoll'.
72105         * modules/unistr/u16-strcoll-tests: New file.
72106         * tests/unistr/test-u16-strcoll.c: New file.
72108         Tests for module 'unistr/u8-strcoll'.
72109         * modules/unistr/u8-strcoll-tests: New file.
72110         * tests/unistr/test-u8-strcoll.c: New file.
72112         Tests for module 'unistr/u32-strcmp'.
72113         * modules/unistr/u32-strcmp-tests: New file.
72114         * tests/unistr/test-u32-strcmp.c: New file.
72115         * tests/unistr/test-u32-strcmp.h: New file.
72117         Tests for module 'unistr/u16-strcmp'.
72118         * modules/unistr/u16-strcmp-tests: New file.
72119         * tests/unistr/test-u16-strcmp.c: New file.
72120         * tests/unistr/test-u16-strcmp.h: New file.
72122         Tests for module 'unistr/u8-strcmp'.
72123         * modules/unistr/u8-strcmp-tests: New file.
72124         * tests/unistr/test-u8-strcmp.c: New file.
72125         * tests/unistr/test-u8-strcmp.h: New file.
72126         * tests/unistr/test-strcmp.h: New file.
72128         Tests for module 'unistr/u32-strncat'.
72129         * modules/unistr/u32-strncat-tests: New file.
72130         * tests/unistr/test-u32-strncat.c: New file.
72132         Tests for module 'unistr/u16-strncat'.
72133         * modules/unistr/u16-strncat-tests: New file.
72134         * tests/unistr/test-u16-strncat.c: New file.
72136         Tests for module 'unistr/u8-strncat'.
72137         * modules/unistr/u8-strncat-tests: New file.
72138         * tests/unistr/test-u8-strncat.c: New file.
72139         * tests/unistr/test-strncat.h: New file.
72141         Tests for module 'unistr/u32-strcat'.
72142         * modules/unistr/u32-strcat-tests: New file.
72143         * tests/unistr/test-u32-strcat.c: New file.
72145         Tests for module 'unistr/u16-strcat'.
72146         * modules/unistr/u16-strcat-tests: New file.
72147         * tests/unistr/test-u16-strcat.c: New file.
72149         Tests for module 'unistr/u8-strcat'.
72150         * modules/unistr/u8-strcat-tests: New file.
72151         * tests/unistr/test-u8-strcat.c: New file.
72152         * tests/unistr/test-strcat.h: New file.
72154         Tests for module 'unistr/u32-stpncpy'.
72155         * modules/unistr/u32-stpncpy-tests: New file.
72156         * tests/unistr/test-u32-stpncpy.c: New file.
72158         Tests for module 'unistr/u16-stpncpy'.
72159         * modules/unistr/u16-stpncpy-tests: New file.
72160         * tests/unistr/test-u16-stpncpy.c: New file.
72162         Tests for module 'unistr/u8-stpncpy'.
72163         * modules/unistr/u8-stpncpy-tests: New file.
72164         * tests/unistr/test-u8-stpncpy.c: New file.
72165         * tests/unistr/test-stpncpy.h: New file.
72167         Tests for module 'unistr/u32-strncpy'.
72168         * modules/unistr/u32-strncpy-tests: New file.
72169         * tests/unistr/test-u32-strncpy.c: New file.
72171         Tests for module 'unistr/u16-strncpy'.
72172         * modules/unistr/u16-strncpy-tests: New file.
72173         * tests/unistr/test-u16-strncpy.c: New file.
72175         Tests for module 'unistr/u8-strncpy'.
72176         * modules/unistr/u8-strncpy-tests: New file.
72177         * tests/unistr/test-u8-strncpy.c: New file.
72178         * tests/unistr/test-strncpy.h: New file.
72180         Tests for module 'unistr/u32-stpcpy'.
72181         * modules/unistr/u32-stpcpy-tests: New file.
72182         * tests/unistr/test-u32-stpcpy.c: New file.
72184         Tests for module 'unistr/u16-stpcpy'.
72185         * modules/unistr/u16-stpcpy-tests: New file.
72186         * tests/unistr/test-u16-stpcpy.c: New file.
72188         Tests for module 'unistr/u8-stpcpy'.
72189         * modules/unistr/u8-stpcpy-tests: New file.
72190         * tests/unistr/test-u8-stpcpy.c: New file.
72191         * tests/unistr/test-stpcpy.h: New file.
72193         Tests for module 'unistr/u32-strcpy'.
72194         * modules/unistr/u32-strcpy-tests: New file.
72195         * tests/unistr/test-u32-strcpy.c: New file.
72197         Tests for module 'unistr/u16-strcpy'.
72198         * modules/unistr/u16-strcpy-tests: New file.
72199         * tests/unistr/test-u16-strcpy.c: New file.
72201         Tests for module 'unistr/u8-strcpy'.
72202         * modules/unistr/u8-strcpy-tests: New file.
72203         * tests/unistr/test-u8-strcpy.c: New file.
72204         * tests/unistr/test-strcpy.h: New file.
72206         Tests for module 'unistr/u32-strnlen'.
72207         * modules/unistr/u32-strnlen-tests: New file.
72208         * tests/unistr/test-u32-strnlen.c: New file.
72210         Tests for module 'unistr/u16-strnlen'.
72211         * modules/unistr/u16-strnlen-tests: New file.
72212         * tests/unistr/test-u16-strnlen.c: New file.
72214         Tests for module 'unistr/u8-strnlen'.
72215         * modules/unistr/u8-strnlen-tests: New file.
72216         * tests/unistr/test-u8-strnlen.c: New file.
72217         * tests/unistr/test-strnlen.h: New file.
72219         Tests for module 'unistr/u32-strlen'.
72220         * modules/unistr/u32-strlen-tests: New file.
72221         * tests/unistr/test-u32-strlen.c: New file.
72223         Tests for module 'unistr/u16-strlen'.
72224         * modules/unistr/u16-strlen-tests: New file.
72225         * tests/unistr/test-u16-strlen.c: New file.
72227         Tests for module 'unistr/u8-strlen'.
72228         * modules/unistr/u8-strlen-tests: New file.
72229         * tests/unistr/test-u8-strlen.c: New file.
72231         Tests for module 'unistr/u32-prev'.
72232         * modules/unistr/u32-prev-tests: New file.
72233         * tests/unistr/test-u32-prev.c: New file.
72235         Tests for module 'unistr/u16-prev'.
72236         * modules/unistr/u16-prev-tests: New file.
72237         * tests/unistr/test-u16-prev.c: New file.
72239         Tests for module 'unistr/u8-prev'.
72240         * modules/unistr/u8-prev-tests: New file.
72241         * tests/unistr/test-u8-prev.c: New file.
72243         Tests for module 'unistr/u32-next'.
72244         * modules/unistr/u32-next-tests: New file.
72245         * tests/unistr/test-u32-next.c: New file.
72247         Tests for module 'unistr/u16-next'.
72248         * modules/unistr/u16-next-tests: New file.
72249         * tests/unistr/test-u16-next.c: New file.
72251         Tests for module 'unistr/u8-next'.
72252         * modules/unistr/u8-next-tests: New file.
72253         * tests/unistr/test-u8-next.c: New file.
72255         Tests for module 'unistr/u32-strmbtouc'.
72256         * modules/unistr/u32-strmbtouc-tests: New file.
72257         * tests/unistr/test-u32-strmbtouc.c: New file.
72259         Tests for module 'unistr/u16-strmbtouc'.
72260         * modules/unistr/u16-strmbtouc-tests: New file.
72261         * tests/unistr/test-u16-strmbtouc.c: New file.
72263         Tests for module 'unistr/u8-strmbtouc'.
72264         * modules/unistr/u8-strmbtouc-tests: New file.
72265         * tests/unistr/test-u8-strmbtouc.c: New file.
72267         Tests for module 'unistr/u32-strmblen'.
72268         * modules/unistr/u32-strmblen-tests: New file.
72269         * tests/unistr/test-u32-strmblen.c: New file.
72271         Tests for module 'unistr/u16-strmblen'.
72272         * modules/unistr/u16-strmblen-tests: New file.
72273         * tests/unistr/test-u16-strmblen.c: New file.
72275         Tests for module 'unistr/u8-strmblen'.
72276         * modules/unistr/u8-strmblen-tests: New file.
72277         * tests/unistr/test-u8-strmblen.c: New file.
72279         Tests for module 'unistr/u32-cpy-alloc'.
72280         * modules/unistr/u32-cpy-alloc-tests: New file.
72281         * tests/unistr/test-u32-cpy-alloc.c: New file.
72283         Tests for module 'unistr/u16-cpy-alloc'.
72284         * modules/unistr/u16-cpy-alloc-tests: New file.
72285         * tests/unistr/test-u16-cpy-alloc.c: New file.
72287         Tests for module 'unistr/u8-cpy-alloc'.
72288         * modules/unistr/u8-cpy-alloc-tests: New file.
72289         * tests/unistr/test-u8-cpy-alloc.c: New file.
72290         * tests/unistr/test-cpy-alloc.h: New file.
72292         Tests for module 'unistr/u32-mbsnlen'.
72293         * modules/unistr/u32-mbsnlen-tests: New file.
72294         * tests/unistr/test-u32-mbsnlen.c: New file.
72296         Tests for module 'unistr/u16-mbsnlen'.
72297         * modules/unistr/u16-mbsnlen-tests: New file.
72298         * tests/unistr/test-u16-mbsnlen.c: New file.
72300         Tests for module 'unistr/u8-mbsnlen'.
72301         * modules/unistr/u8-mbsnlen-tests: New file.
72302         * tests/unistr/test-u8-mbsnlen.c: New file.
72304         Tests for module 'unistr/u32-chr'.
72305         * modules/unistr/u32-chr-tests: New file.
72306         * tests/unistr/test-u32-chr.c: New file.
72308         Tests for module 'unistr/u16-chr'.
72309         * modules/unistr/u16-chr-tests: New file.
72310         * tests/unistr/test-u16-chr.c: New file.
72312         Tests for module 'unistr/u8-chr'.
72313         * modules/unistr/u8-chr-tests: New file.
72314         * tests/unistr/test-u8-chr.c: New file.
72315         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72317         Tests for module 'unistr/u32-cmp2'.
72318         * modules/unistr/u32-cmp2-tests: New file.
72319         * tests/unistr/test-u32-cmp2.c: New file.
72321         Tests for module 'unistr/u16-cmp2'.
72322         * modules/unistr/u16-cmp2-tests: New file.
72323         * tests/unistr/test-u16-cmp2.c: New file.
72325         Tests for module 'unistr/u8-cmp2'.
72326         * modules/unistr/u8-cmp2-tests: New file.
72327         * tests/unistr/test-u8-cmp2.c: New file.
72328         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72330         Tests for module 'unistr/u32-cmp'.
72331         * modules/unistr/u32-cmp-tests: New file.
72332         * tests/unistr/test-u32-cmp.c: New file.
72334         Tests for module 'unistr/u16-cmp'.
72335         * modules/unistr/u16-cmp-tests: New file.
72336         * tests/unistr/test-u16-cmp.c: New file.
72338         Tests for module 'unistr/u8-cmp'.
72339         * modules/unistr/u8-cmp-tests: New file.
72340         * tests/unistr/test-u8-cmp.c: New file.
72341         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72343         Tests for module 'unistr/u32-set'.
72344         * modules/unistr/u32-set-tests: New file.
72345         * tests/unistr/test-u32-set.c: New file.
72347         Tests for module 'unistr/u16-set'.
72348         * modules/unistr/u16-set-tests: New file.
72349         * tests/unistr/test-u16-set.c: New file.
72351         Tests for module 'unistr/u8-set'.
72352         * modules/unistr/u8-set-tests: New file.
72353         * tests/unistr/test-u8-set.c: New file.
72354         * tests/unistr/test-set.h: New file.
72356         Tests for module 'unistr/u32-move'.
72357         * modules/unistr/u32-move-tests: New file.
72358         * tests/unistr/test-u32-move.c: New file.
72360         Tests for module 'unistr/u16-move'.
72361         * modules/unistr/u16-move-tests: New file.
72362         * tests/unistr/test-u16-move.c: New file.
72364         Tests for module 'unistr/u8-move'.
72365         * modules/unistr/u8-move-tests: New file.
72366         * tests/unistr/test-u8-move.c: New file.
72367         * tests/unistr/test-move.h: New file.
72369         Tests for module 'unistr/u32-cpy'.
72370         * modules/unistr/u32-cpy-tests: New file.
72371         * tests/unistr/test-u32-cpy.c: New file.
72373         Tests for module 'unistr/u16-cpy'.
72374         * modules/unistr/u16-cpy-tests: New file.
72375         * tests/unistr/test-u16-cpy.c: New file.
72377         Tests for module 'unistr/u8-cpy'.
72378         * modules/unistr/u8-cpy-tests: New file.
72379         * tests/unistr/test-u8-cpy.c: New file.
72380         * tests/unistr/test-cpy.h: New file.
72382 2010-01-09  Bruno Haible  <bruno@clisp.org>
72384         Tests for module 'unistr/u32-uctomb'.
72385         * modules/unistr/u32-uctomb-tests: New file.
72386         * tests/unistr/test-u32-uctomb.c: New file.
72388         Tests for module 'unistr/u16-uctomb'.
72389         * modules/unistr/u16-uctomb-tests: New file.
72390         * tests/unistr/test-u16-uctomb.c: New file.
72392         Tests for module 'unistr/u8-uctomb'.
72393         * modules/unistr/u8-uctomb-tests: New file.
72394         * tests/unistr/test-u8-uctomb.c: New file.
72396         Tests for module 'unistr/u32-mbtoucr'.
72397         * modules/unistr/u32-mbtoucr-tests: New file.
72398         * tests/unistr/test-u32-mbtoucr.c: New file.
72400         Tests for module 'unistr/u16-mbtoucr'.
72401         * modules/unistr/u16-mbtoucr-tests: New file.
72402         * tests/unistr/test-u16-mbtoucr.c: New file.
72404         Tests for module 'unistr/u8-mbtoucr'.
72405         * modules/unistr/u8-mbtoucr-tests: New file.
72406         * tests/unistr/test-u8-mbtoucr.c: New file.
72408         Tests for module 'unistr/u32-mbtouc'.
72409         * modules/unistr/u32-mbtouc-tests: New file.
72410         * tests/unistr/test-u32-mbtouc.c: New file.
72412         Tests for module 'unistr/u16-mbtouc'.
72413         * modules/unistr/u16-mbtouc-tests: New file.
72414         * tests/unistr/test-u16-mbtouc.c: New file.
72416         Tests for module 'unistr/u8-mbtouc'.
72417         * modules/unistr/u8-mbtouc-tests: New file.
72418         * tests/unistr/test-u8-mbtouc.c: New file.
72420         Tests for module 'unistr/u32-mbtouc-unsafe'.
72421         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
72422         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
72423         * tests/unistr/test-u32-mbtouc.h: New file.
72425         Tests for module 'unistr/u16-mbtouc-unsafe'.
72426         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
72427         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
72428         * tests/unistr/test-u16-mbtouc.h: New file.
72430         Tests for module 'unistr/u8-mbtouc-unsafe'.
72431         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
72432         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
72433         * tests/unistr/test-u8-mbtouc.h: New file.
72435         Tests for module 'unistr/u32-mblen'.
72436         * modules/unistr/u32-mblen-tests: New file.
72437         * tests/unistr/test-u32-mblen.c: New file.
72439         Tests for module 'unistr/u16-mblen'.
72440         * modules/unistr/u16-mblen-tests: New file.
72441         * tests/unistr/test-u16-mblen.c: New file.
72443         Tests for module 'unistr/u8-mblen'.
72444         * modules/unistr/u8-mblen-tests: New file.
72445         * tests/unistr/test-u8-mblen.c: New file.
72447         Tests for module 'unistr/u32-to-u16'.
72448         * modules/unistr/u32-to-u16-tests: New file.
72449         * tests/unistr/test-u32-to-u16.c: New file.
72451         Tests for module 'unistr/u32-to-u8'.
72452         * modules/unistr/u32-to-u8-tests: New file.
72453         * tests/unistr/test-u32-to-u8.c: New file.
72455         Tests for module 'unistr/u16-to-u32'.
72456         * modules/unistr/u16-to-u32-tests: New file.
72457         * tests/unistr/test-u16-to-u32.c: New file.
72459         Tests for module 'unistr/u16-to-u8'.
72460         * modules/unistr/u16-to-u8-tests: New file.
72461         * tests/unistr/test-u16-to-u8.c: New file.
72463         Tests for module 'unistr/u8-to-u32'.
72464         * modules/unistr/u8-to-u32-tests: New file.
72465         * tests/unistr/test-u8-to-u32.c: New file.
72467         Tests for module 'unistr/u8-to-u16'.
72468         * modules/unistr/u8-to-u16-tests: New file.
72469         * tests/unistr/test-u8-to-u16.c: New file.
72471         Tests for module 'unistr/u32-check'.
72472         * modules/unistr/u32-check-tests: New file.
72473         * tests/unistr/test-u32-check.c: New file.
72475         Tests for module 'unistr/u16-check'.
72476         * modules/unistr/u16-check-tests: New file.
72477         * tests/unistr/test-u16-check.c: New file.
72479         Tests for module 'unistr/u8-check'.
72480         * modules/unistr/u8-check-tests: New file.
72481         * tests/unistr/test-u8-check.c: New file.
72483         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
72484         (category_equals): New function.
72485         (main): Add more tests.
72486         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
72488         * tests/unictype/test-bidi_byname.c (main): Add more tests.
72490 2010-01-10  Bruno Haible  <bruno@clisp.org>
72492         unistr/u*-strcoll: Try harder to distinguish different strings.
72493         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
72494         compare s1 and s2 to see if they are different.
72496 2010-01-10  Bruno Haible  <bruno@clisp.org>
72498         unistr/u*-stpncpy: Fix the return value.
72499         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
72500         description of the return value consistent with stpncpy in glibc.
72501         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
72502         written non-NUL unit.
72504 2010-01-10  Bruno Haible  <bruno@clisp.org>
72506         unistr/u*-next: Add missing dependencies.
72507         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
72508         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
72509         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
72511 2010-01-10  Bruno Haible  <bruno@clisp.org>
72513         unistr/u8-mbsnlen: Fix return value for incomplete character.
72514         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
72515         u8_mblen.
72516         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
72517         Remove unistr/u8-mblen.
72518         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
72519         u16_mblen.
72520         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
72521         Remove unistr/u16-mblen.
72523 2010-01-10  Bruno Haible  <bruno@clisp.org>
72525         wchar: Fix compilation error when <wchar.h> is used from coreutils.
72526         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
72527         Reported by Brian Gough <bjg@gnu.org> and
72528         Chris Clayton <chris2553@googlemail.com> via
72529         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
72531 2010-01-09  Bruno Haible  <bruno@clisp.org>
72533         unistr/u16-to-u32: Reject invalid input.
72534         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
72535         u16_mbtouc.
72536         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
72537         Remove unistr/u16-mbtouc.
72539         unistr/u16-to-u8: Reject invalid input.
72540         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
72541         u16_mbtouc.
72542         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
72543         Remove unistr/u16-mbtouc.
72545         unistr/u8-to-u32: Reject invalid input.
72546         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
72547         u8_mbtouc.
72548         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
72549         Remove unistr/u8-mbtouc.
72551         unistr/u8-to-u16: Reject invalid input.
72552         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
72553         u8_mbtouc.
72554         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
72555         Remove unistr/u8-mbtouc.
72557 2010-01-09  Bruno Haible  <bruno@clisp.org>
72559         Tests for module 'getlogin'.
72560         * modules/getlogin-tests: New file.
72561         * tests/test-getlogin.c: New file.
72563         New module 'getlogin'.
72564         * lib/unistd.in.h (getlogin): New declaration.
72565         * lib/getlogin.c: New file.
72566         * m4/getlogin.m4: New file.
72567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
72568         HAVE_GETLOGIN.
72569         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
72570         HAVE_GETLOGIN.
72571         * modules/getlogin: New file.
72572         * doc/posix-functions/getlogin.texi: Mention the new module.
72573         Reported by John W. Eaton <jwe@gnu.org>.
72575 2010-01-09  Bruno Haible  <bruno@clisp.org>
72577         getlogin_r: Support for native Windows.
72578         * lib/getlogin_r.c: Include <windows.h>
72579         (getlogin_r): Implement for native Windows.
72580         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
72581         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
72582         via John W. Eaton <jwe@gnu.org>.
72584 2010-01-09  Bruno Haible  <bruno@clisp.org>
72586         getlogin_r: Small fixes.
72587         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
72588         succeeds.
72589         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
72590         before testing whether getlogin_r is declared. No need to set
72591         HAVE_DECL_GETLOGIN_R to 1.
72592         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
72594 2010-01-09  Bruno Haible  <bruno@clisp.org>
72596         * lib/unistd.in.h (getlogin_r): Add comment.
72598 2010-01-09  Bruno Haible  <bruno@clisp.org>
72600         Tests for module 'getlogin_r'.
72601         * modules/getlogin_r-tests: New file.
72602         * tests/test-getlogin_r.c: New file.
72604 2010-01-09  Jim Meyering  <meyering@redhat.com>
72606         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
72607         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
72608         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
72610 2010-01-08  Simon Josefsson  <simon@josefsson.org>
72612         * lib/dup2.c (rpl_dup2): Improve comment.
72614 2010-01-08  Eric Blake  <ebb9@byu.net>
72616         maint.mk: allow packages to add makefile @@ exceptions
72617         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
72618         (sc_makefile_check): Rename...
72619         (sc_makefile_at_at_check): ...to this, and use hook.
72621         dup2: work around mingw bug
72622         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
72623         Reported by Simon Josefsson.
72625 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
72627         glob: Fix C++ compilation.
72628         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
72629         C++.
72631 2010-01-07  Bruno Haible  <bruno@clisp.org>
72633         Fix indentation of wctype.in.h, broken since 2007-01-06.
72634         * lib/wctype.in.h: Fix indentation of preprocessor directives.
72636 2010-01-07  Bruno Haible  <bruno@clisp.org>
72638         mbslen: Avoid collision with system function.
72639         * lib/string.in.h [MirBSD]: Include <wchar.h>.
72640         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
72641         * m4/mbslen.m4: New file.
72642         * modules/mbslen (Files): Add it.
72643         (configure.ac): Invoke gl_MBSLEN.
72644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
72645         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
72646         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
72647         via Ian Beckwith <ianb@erislabs.net>.
72649 2010-01-07  Bruno Haible  <bruno@clisp.org>
72651         dirent: Document the last fix.
72652         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
72654 2010-01-07  Bruno Haible  <bruno@clisp.org>
72656         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
72657         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
72658         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
72659         va_list are defined.
72660         * doc/posix-headers/stdio.texi: Document the bug of missing types.
72661         Reported by Eric Blake.
72663 2010-01-07  Bruno Haible  <bruno@clisp.org>
72665         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
72666         * modules/xlist (Depends-on): Add 'list',
72667         * modules/xoset (Depends-on): Add 'oset'.
72668         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72670 2010-01-07  Bruno Haible  <bruno@clisp.org>
72672         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
72673         * doc/posix-functions/strncasecmp.texi: Likewise.
72675 2010-01-07  Bruno Haible  <bruno@clisp.org>
72677         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
72679 2010-01-07  John W. Eaton  <jwe@octave.org>
72681         wctype: allow C++ use
72682         * lib/wctype.in.h: Add extern "C" block for C++.
72684 2010-01-06  Eric Blake  <ebb9@byu.net>
72686         maint.mk: detect incorrect GFDL usage
72687         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
72689 2010-01-06  Jim Meyering  <meyering@redhat.com>
72690         and Eric Blake  <ebb9@byu.net>
72692         maint.mk: ignore multi-line copyright in NEWS
72693         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
72695 2010-01-06  Eric Blake  <ebb9@byu.net>
72697         select: add missing dependency
72698         * modules/select-tests (Depends-on): Move sockets dependency...
72699         * modules/select (Depends-on): ...here.
72700         Reported by Ian Beckwith.
72702         doc: regenerate INSTALL
72703         * doc/INSTALL: Reflect recent autoconf update.
72704         * doc/INSTALL.ISO: Likewise.
72705         * doc/INSTALL.UTF-8: Likewise.
72707         pread: fix compilation on glibc
72708         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
72709         Reported by Ralf Wildenhues.
72711         dirent: fix test failure
72712         * lib/dirent.in.h (includes): Guarantee ino_t.
72713         Reported by Ralf Wildenhues.
72715 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
72717         linkat, renameat: avoid bad free
72718         * lib/at-func2.c (at_func2): Fix typo.
72719         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
72721 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72723         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
72724         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
72725         to avoid failure of symlink test later.
72727 2010-01-06  Eric Blake  <ebb9@byu.net>
72729         stdio, unistd: guarantee ssize_t
72730         * lib/unistd.in.h (includes): Ensure that types required by POSIX
72731         2008 are exposed when needed.
72732         * lib/stdio.in.h (includes): Likewise.
72733         Reported by Ralf Wildenhues.
72735 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
72737         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
72738         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
72739         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
72741 2010-01-06  Jim Meyering  <meyering@redhat.com>
72743         readtokens: this module *does* require xalloc.h
72744         It uses only functions that were omitted by the old syntax-check rule.
72745         * lib/readtokens.c: Include "xalloc.h" once again.
72746         * modules/readtokens (Depends-on): Add xalloc.
72747         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
72749 2010-01-05  Eric Blake  <ebb9@byu.net>
72751         maint: support 'make announcement' from a VPATH build
72752         * top/maint.mk (announcement): Look for correct NEWS file.
72754 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
72756         utimens (fdutimens): ignore a negative FD, per contract
72757         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
72758         when we have a valid file descriptor.  Otherwise, using a brand
72759         new glibc (with just-patched futimens that now fails with EBADF)
72760         would cause this function to fail with ENOSYS.
72761         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
72762         See also http://bugzilla.redhat.com/552320.
72764 2010-01-05  Eric Blake  <ebb9@byu.net>
72766         strcase: document what it provides
72767         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
72768         gnulib module.
72769         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
72770         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
72772 2010-01-05  Jim Meyering  <meyering@redhat.com>
72774         maint: remove useless inclusions of "xalloc.h"
72775         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
72776         * lib/readtokens.c: Likewise.
72777         * lib/same.c: Likewise.
72778         * modules/getloadavg (Depends-on): Remove xalloc.
72779         * modules/readtokens: Likewise.
72780         * modules/same: Likewise.
72782         maint.mk: include 4 more function names in alloca.h-checking regexp
72783         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
72784         regexp.  Before, we would give a false-positive (saying alloca.h
72785         is included unnecessarily) when the only uses involved omitted symbols.
72787         xalloc.h: use consistent formatting
72788         * lib/xalloc.h: Move declarations to start in the first column.
72790 2010-01-05  Eric Blake  <ebb9@byu.net>
72792         mkdir: avoid xalloc
72793         * lib/mkdir.c (includes): Drop unused header.
72794         Reported by John W. Eaton.
72796 2010-01-04  Jim Meyering  <meyering@redhat.com>
72798         nl_langinfo: avoid configure-time syntax error
72799         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
72800         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
72801         the empty string.  Don't let that provoke a shell syntax error.
72803         regcomp, regexec, fnmatch: avoid array bounds read error
72804         * lib/regcomp.c (build_equiv_class): From glibc:
72805         Use only the low 24 bits of a findidx return value as an index
72806         into the weights array.  Patch by Ulrich Drepper:
72807         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
72808         * lib/regexec.c (check_node_accept_bytes): Likewise.
72809         * lib/fnmatch_loop.c (FCT): Likewise.
72811         regcomp: skip collseq lookup when there are no rules
72812         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
72813         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
72815         regcomp: recognize ill-formed { } expressions
72816         * lib/regcomp.c (parse_dup_op): From glibc:
72817         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
72819         regcomp: fix typo in comment
72820         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
72821         s/satisfy/satisfies/.
72823         regcomp: sync from glibc: remove dead store
72824         * lib/regcomp.c (duplicate_node_closure): Remove useless
72825         search_duplicated_node call and dead store.
72827         regcomp: sync from glibc; always use nl_langinfo
72828         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
72829         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
72830         * modules/regex (Depends-on): Add nl_langinfo.
72832 2010-01-04  Eric Blake  <ebb9@byu.net>
72834         fdopendir: fix configure test
72835         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
72837 2010-01-01  Bruno Haible  <bruno@clisp.org>
72839         wchar: Remove unused configure check.
72840         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
72842 2010-01-01  Eric Blake  <ebb9@byu.net>
72844         headers: make check of system header explicit
72845         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
72846         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
72847         ourselves.
72848         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72849         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
72851         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
72852         internals.
72853         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
72854         missing.
72855         Suggested by Bruno Haible.
72857 2010-01-01  Jim Meyering  <meyering@redhat.com>
72859         ChangeLog: tweak to eliminate unnecessary copyright line
72860         * ChangeLog: Remove a copyright line that was mistakenly updated
72861         by today's update-copyright run.  Reported by Eric Blake.
72863         test-update-copyright: don't let envvar setting cause test failure
72864         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
72866 2010-01-01  Bruno Haible  <bruno@clisp.org>
72868         localename: Avoid gcc warning.
72869         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
72870         function if it is not used.
72872 2010-01-01  Jim Meyering  <meyering@redhat.com>
72874         update nearly all FSF copyright year lists to include 2010
72875         Use the same procedure as for 2009, outlined in
72876         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
72878         version-etc: set COPYRIGHT_YEAR to 2010
72879         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
72881 2009-12-31  Eric Blake  <ebb9@byu.net>
72883         doc: correct availability of cygwin 1.5.x getopt
72884         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
72885         variables.
72886         * doc/posix-functions/opterr.texi (opterr): Likewise.
72887         * doc/posix-functions/optind.texi (optind): Likewise.
72888         * doc/posix-functions/optopt.texi (optopt): Likewise.
72889         * doc/posix-functions/tzname.texi (tzname): Likewise.
72891         openat: update maintainer
72892         * modules/openat (Maintainer): Add myself.
72894         utimens: avoid shadowing warning
72895         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
72896         buffers into one, to avoid shadowing, as well as avoiding a
72897         redundant stat.
72898         Reported by Jim Meyering.
72900         test-dup2: avoid compiler warning
72901         * tests/test-dup2.c (is_inheritable): Only define if used.
72903 2010-01-01  Bruno Haible  <bruno@clisp.org>
72905         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
72906         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
72907         defined, use wctomb instead of wcrtomb.
72909 2010-01-01  Bruno Haible  <bruno@clisp.org>
72911         iconv: Reject native Solaris iconv.
72912         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
72913         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
72915 2009-12-31  Bruno Haible  <bruno@clisp.org>
72917         * tests/test-signal.c (main): Remove test of 'SIG'.
72919 2009-12-31  Bruno Haible  <bruno@clisp.org>
72921         spawn: Fix incomplete fix.
72922         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
72923         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
72924         warnings for GNULIB_POSIXCHECK again.
72925         Reported by Eric Blake.
72927 2009-12-31  Bruno Haible  <bruno@clisp.org>
72929         Avoid namespace pollution on glibc systems.
72930         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
72931         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
72932         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
72933         glibc systems.
72935 2009-12-31  Bruno Haible  <bruno@clisp.org>
72937         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
72938         (gl_REPLACE_WCHAR_H): Turn into a no-op.
72939         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
72940         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
72941         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
72942         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
72943         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
72945 2009-12-31  Bruno Haible  <bruno@clisp.org>
72947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
72948         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
72949         afterwards.
72951 2009-12-31  Bruno Haible  <bruno@clisp.org>
72953         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
72954         SYS_UTSNAME_H.
72956 2009-12-31  Bruno Haible  <bruno@clisp.org>
72958         spawn: Fix misapplied patch.
72959         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
72960         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
72961         warnings for GNULIB_POSIXCHECK.
72963 2009-12-31  Bruno Haible  <bruno@clisp.org>
72965         times: Update after sys_times changed.
72966         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
72967         * modules/times (Files): Add it.
72968         (configure.ac): Invoke gl_FUNC_TIMES.
72970 2009-12-31  Bruno Haible  <bruno@clisp.org>
72972         Use AC_C_INLINE where necessary.
72973         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
72974         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72975         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72976         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
72977         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72978         * m4/mbiter.m4 (gl_MBITER): Likewise.
72979         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72980         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
72981         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
72982         * modules/u64 (configure.ac): Likewise.
72984 2009-12-31  Bruno Haible  <bruno@clisp.org>
72986         Use AC_C_INLINE instead of module 'inline' where possible.
72987         * modules/inline (Description): Clarify purpose.
72988         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
72989         * modules/count-one-bits (Depends-on): Remove inline.
72990         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
72991         * modules/openat (Depends-on): Remove inline.
72992         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
72993         instead of depending on module 'inline'.
72994         * modules/filevercmp (Depends-on, configure.ac): Likewise.
72995         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
72996         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
72997         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
72998         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
72999         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73000         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73001         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73002         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73003         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73004         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73005         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73006         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73007         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73008         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73009         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73010         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73011         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73012         Likewise.
73013         * modules/unictype/property-ascii-hex-digit (Depends-on,
73014         configure.ac): Likewise.
73015         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73016         configure.ac): Likewise.
73017         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73018         configure.ac): Likewise.
73019         * modules/unictype/property-bidi-block-separator (Depends-on,
73020         configure.ac): Likewise.
73021         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73022         configure.ac): Likewise.
73023         * modules/unictype/property-bidi-common-separator (Depends-on,
73024         configure.ac): Likewise.
73025         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73026         Likewise.
73027         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73028         configure.ac): Likewise.
73029         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73030         configure.ac): Likewise.
73031         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73032         configure.ac): Likewise.
73033         * modules/unictype/property-bidi-european-digit (Depends-on,
73034         configure.ac): Likewise.
73035         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73036         configure.ac): Likewise.
73037         * modules/unictype/property-bidi-left-to-right (Depends-on,
73038         configure.ac): Likewise.
73039         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73040         configure.ac): Likewise.
73041         * modules/unictype/property-bidi-other-neutral (Depends-on,
73042         configure.ac): Likewise.
73043         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73044         Likewise.
73045         * modules/unictype/property-bidi-segment-separator (Depends-on,
73046         configure.ac): Likewise.
73047         * modules/unictype/property-bidi-whitespace (Depends-on,
73048         configure.ac): Likewise.
73049         * modules/unictype/property-combining (Depends-on, configure.ac):
73050         Likewise.
73051         * modules/unictype/property-composite (Depends-on, configure.ac):
73052         Likewise.
73053         * modules/unictype/property-currency-symbol (Depends-on,
73054         configure.ac): Likewise.
73055         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73056         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73057         Likewise.
73058         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73059         configure.ac): Likewise.
73060         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73061         Likewise.
73062         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73063         Likewise.
73064         * modules/unictype/property-extender (Depends-on, configure.ac):
73065         Likewise.
73066         * modules/unictype/property-format-control (Depends-on, configure.ac):
73067         Likewise.
73068         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73069         Likewise.
73070         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73071         Likewise.
73072         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73073         Likewise.
73074         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73075         Likewise.
73076         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73077         Likewise.
73078         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73079         Likewise.
73080         * modules/unictype/property-id-start (Depends-on, configure.ac):
73081         Likewise.
73082         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73083         Likewise.
73084         * modules/unictype/property-ids-binary-operator (Depends-on,
73085         configure.ac): Likewise.
73086         * modules/unictype/property-ids-trinary-operator (Depends-on,
73087         configure.ac): Likewise.
73088         * modules/unictype/property-ignorable-control (Depends-on,
73089         configure.ac): Likewise.
73090         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73091         Likewise.
73092         * modules/unictype/property-join-control (Depends-on, configure.ac):
73093         Likewise.
73094         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73095         Likewise.
73096         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73097         Likewise.
73098         * modules/unictype/property-logical-order-exception (Depends-on,
73099         configure.ac): Likewise.
73100         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73101         Likewise.
73102         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73103         * modules/unictype/property-non-break (Depends-on, configure.ac):
73104         Likewise.
73105         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73106         Likewise.
73107         * modules/unictype/property-numeric (Depends-on, configure.ac):
73108         Likewise.
73109         * modules/unictype/property-other-alphabetic (Depends-on,
73110         configure.ac): Likewise.
73111         * modules/unictype/property-other-default-ignorable-code-point
73112         (Depends-on, configure.ac): Likewise.
73113         * modules/unictype/property-other-grapheme-extend (Depends-on,
73114         configure.ac): Likewise.
73115         * modules/unictype/property-other-id-continue (Depends-on,
73116         configure.ac): Likewise.
73117         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73118         Likewise.
73119         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73120         Likewise.
73121         * modules/unictype/property-other-math (Depends-on, configure.ac):
73122         Likewise.
73123         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73124         Likewise.
73125         * modules/unictype/property-paired-punctuation (Depends-on,
73126         configure.ac): Likewise.
73127         * modules/unictype/property-paragraph-separator (Depends-on,
73128         configure.ac): Likewise.
73129         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73130         Likewise.
73131         * modules/unictype/property-pattern-white-space (Depends-on,
73132         configure.ac): Likewise.
73133         * modules/unictype/property-private-use (Depends-on, configure.ac):
73134         Likewise.
73135         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73136         Likewise.
73137         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73138         Likewise.
73139         * modules/unictype/property-radical (Depends-on, configure.ac):
73140         Likewise.
73141         * modules/unictype/property-sentence-terminal (Depends-on,
73142         configure.ac): Likewise.
73143         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73144         Likewise.
73145         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73146         * modules/unictype/property-terminal-punctuation (Depends-on,
73147         configure.ac): Likewise.
73148         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73149         Likewise.
73150         * modules/unictype/property-unassigned-code-value (Depends-on,
73151         configure.ac): Likewise.
73152         * modules/unictype/property-unified-ideograph (Depends-on,
73153         configure.ac): Likewise.
73154         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73155         Likewise.
73156         * modules/unictype/property-variation-selector (Depends-on,
73157         configure.ac): Likewise.
73158         * modules/unictype/property-white-space (Depends-on, configure.ac):
73159         Likewise.
73160         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73161         Likewise.
73162         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73163         Likewise.
73164         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73165         Likewise.
73166         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73167         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73168         Likewise.
73170 2009-12-31  Bruno Haible  <bruno@clisp.org>
73172         Remove unnecessary AC_C_INLINE invocation.
73173         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73174         since 2009-08-21.
73176 2009-12-31  Jim Meyering  <meyering@redhat.com>
73178         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73179         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73180         With this change, we can all remove the gpg_key_ID = ... definition
73181         from our respective cfg.mk files.
73183         maint.mk: create announcement template in ~/, not in /tmp
73184         * top/maint.mk (emit_upload_commands): Adjust.
73185         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73186         Remove temporary file, .ci-msg.
73188 2009-12-31  Eric Blake  <ebb9@byu.net>
73190         link-warning: always build headers with link warnings
73191         * modules/arpa_inet (Makefile.am): Always build replacement
73192         header.
73193         * modules/ctype (Makefile.am): Likewise.
73194         * modules/dirent (Makefile.am): Likewise.
73195         * modules/inttypes (Makefile.am): Likewise.
73196         * modules/langinfo (Makefile.am): Likewise.
73197         * modules/locale (Makefile.am): Likewise.
73198         * modules/spawn (Makefile.am): Likewise.
73199         * modules/sys_file (Makefile.am): Likewise.
73200         * modules/sys_ioctl (Makefile.am): Likewise.
73201         * modules/sys_select (Makefile.am): Likewise.
73202         * modules/sys_socket (Makefile.am): Likewise.
73203         * modules/sys_times (Makefile.am): Likewise.
73204         * modules/sys_utsname (Makefile.am): Likewise.
73205         * modules/sys_wait (Makefile.am): Likewise.
73206         * modules/wchar (Makefile.am): Likewise.
73207         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73208         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
73209         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
73210         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
73211         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
73212         Likewise.
73213         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73214         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73215         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
73216         Likewise.
73217         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
73218         Likewise.
73219         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
73220         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
73221         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
73222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73223         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73224         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73225         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73226         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
73227         (gl_WCHAR_H_DEFAULTS): Likewise.
73229 2009-12-31  Eric Blake  <ebb9@byu.net>
73231         signal, spawn: use link warnings
73232         * lib/signal.in.h (sigset_t): Make unconditional.
73233         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
73234         (sigpending, sigprocmask, sigaction): Add link warnings.
73235         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
73236         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
73237         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
73238         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
73239         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
73240         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
73241         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
73242         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
73243         (posix_spawn_file_actions_destroy)
73244         (posix_spawn_file_actions_addopen)
73245         (posix_spawn_file_actions_addclose)
73246         (posix_spawn_file_actions_adddup2): Likewise.
73247         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
73248         * tests/test-signal.c (main): Enhance test.
73250         spawn: improve wrapper support
73251         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73252         (gl_SPAWN_H_DEFAULTS): New defaults.
73253         * modules/spawn (Makefile.am): Substitute them.
73254         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73255         Only declare if missing or broken.
73257         sys_times, sys_utsname: use include_next
73258         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73259         header.
73260         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73261         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73262         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73263         * modules/sys_times (Depends-on): Add include_next.
73264         (Makefile.am): Substitute additional values.
73265         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73266         * lib/sys_times.in.h (includes): Include native header, if
73267         available.
73268         * lib/sys_utsname.in.h (includes): Likewise.
73269         * tests/test-sys_times.c (main): Enhance test.
73271         fdutimensat: revert prior patch
73272         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73273         utimens.h.
73274         Reported by Bruno Haible.
73276 2009-12-30  Eric Blake  <ebb9@byu.net>
73278         sys_wait: drop link-warning dependency
73279         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73280         link-warning efforts.
73281         * lib/sys_wait.in.h: Likewise.
73283         fdutimensat: remove bogus dependency
73284         * modules/fdutimensat (Depends-on): Drop inline.
73286         unistd: fix typo
73287         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73289 2009-12-30  Bruno Haible  <bruno@clisp.org>
73291         Fix compilation error with Solaris cc.
73292         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73293         * lib/unicase/u16-is-invariant.c: Likewise.
73294         * lib/unicase/u32-is-invariant.c: Likewise.
73295         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73297 2009-12-30  Bruno Haible  <bruno@clisp.org>
73299         Fix test crash.
73300         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73301         locales.
73302         Reported by Simon Josefsson <simon@josefsson.org>.
73304 2009-12-30  Bruno Haible  <bruno@clisp.org>
73306         Fix compilation error on most platforms.
73307         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73308         Reported by Simon Josefsson <simon@josefsson.org>
73309         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73311 2009-12-30  Eric Blake  <ebb9@byu.net>
73313         futimens, utimensat: work around ntfs-3g bug
73314         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73315         a ctime bug is present, and expand workaround to cover ntfs-3g.
73316         * lib/utimens.c (fdutimens, lutimens): Likewise.
73317         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73318         (validate_timespec): Adjust return value.
73319         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73320         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73321         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73323 2009-12-29  Eric Blake  <ebb9@byu.net>
73325         link-warning: make usage consistent
73326         * modules/ctype (Depends-on): Add link-warning.
73327         (Makefile.am): Update rules accordingly.
73328         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73329         * modules/locale (Depends-on, Makefile.am): Likewise.
73330         * modules/sys_file (Makefile.am): Likewise.
73331         * modules/getopt-posix (Makefile.am): Delete unused link warning
73332         efforts.
73333         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73334         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73335         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73336         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73338         stdio: remove unused variables
73339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73341         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73343         tests: test more substitute headers
73344         * modules/ctype-tests: New file.
73345         * modules/dirent-tests: Likewise.
73346         * modules/spawn-tests: Likewise.
73347         * modules/sys_file-tests: Likewise.
73348         * modules/sys_ioctl-tests: Likewise.
73349         * modules/sys_wait-tests: Likewise.
73350         * tests/test-ctype.c: Likewise.
73351         * tests/test-dirent.c: Likewise.
73352         * tests/test-spawn.c: Likewise.
73353         * tests/test-sys_file.c: Likewise.
73354         * tests/test-sys_ioctl.c: Likewise.
73355         * tests/test-sys_wait.c: Likewise.
73356         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73357         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73358         whether or not flock is in use.
73360         tests: remove License section from module
73361         * modules/arpa_inet-tests: Remove unneeded section.
73362         * modules/byteswap-tests: Likewise.
73363         * modules/ceilf-tests: Likewise.
73364         * modules/ceill-tests: Likewise.
73365         * modules/crypto/des-tests: Likewise.
73366         * modules/crypto/gc-arcfour-tests: Likewise.
73367         * modules/crypto/gc-arctwo-tests: Likewise.
73368         * modules/crypto/gc-des-tests: Likewise.
73369         * modules/crypto/gc-hmac-md5-tests: Likewise.
73370         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73371         * modules/crypto/gc-md2-tests: Likewise.
73372         * modules/crypto/gc-md4-tests: Likewise.
73373         * modules/crypto/gc-md5-tests: Likewise.
73374         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73375         * modules/crypto/gc-rijndael-tests: Likewise.
73376         * modules/crypto/gc-sha1-tests: Likewise.
73377         * modules/crypto/gc-tests: Likewise.
73378         * modules/crypto/md2-tests: Likewise.
73379         * modules/crypto/md4-tests: Likewise.
73380         * modules/fcntl-h-tests: Likewise.
73381         * modules/floorf-tests: Likewise.
73382         * modules/floorl-tests: Likewise.
73383         * modules/frexp-nolibm-tests: Likewise.
73384         * modules/frexp-tests: Likewise.
73385         * modules/frexpl-nolibm-tests: Likewise.
73386         * modules/frexpl-tests: Likewise.
73387         * modules/getaddrinfo-tests: Likewise.
73388         * modules/inttypes-tests: Likewise.
73389         * modules/isfinite-tests: Likewise.
73390         * modules/isinf-tests: Likewise.
73391         * modules/ldexpl-tests: Likewise.
73392         * modules/locale-tests: Likewise.
73393         * modules/math-tests: Likewise.
73394         * modules/netdb-tests: Likewise.
73395         * modules/netinet_in-tests: Likewise.
73396         * modules/printf-frexp-tests: Likewise.
73397         * modules/printf-frexpl-tests: Likewise.
73398         * modules/priv-set-tests: Likewise.
73399         * modules/random_r-tests: Likewise.
73400         * modules/round-tests: Likewise.
73401         * modules/roundf-tests: Likewise.
73402         * modules/roundl-tests: Likewise.
73403         * modules/search-tests: Likewise.
73404         * modules/select-tests: Likewise.
73405         * modules/signal-tests: Likewise.
73406         * modules/stdbool-tests: Likewise.
73407         * modules/stddef-tests: Likewise.
73408         * modules/stdint-tests: Likewise.
73409         * modules/stdio-tests: Likewise.
73410         * modules/stdlib-tests: Likewise.
73411         * modules/string-tests: Likewise.
73412         * modules/strings-tests: Likewise.
73413         * modules/sys_select-tests: Likewise.
73414         * modules/sys_socket-tests: Likewise.
73415         * modules/sys_stat-tests: Likewise.
73416         * modules/sys_time-tests: Likewise.
73417         * modules/sys_utsname-tests: Likewise.
73418         * modules/sysexits-tests: Likewise.
73419         * modules/time-tests: Likewise.
73420         * modules/trunc-tests: Likewise.
73421         * modules/truncf-tests: Likewise.
73422         * modules/truncl-tests: Likewise.
73423         * modules/tsearch-tests: Likewise.
73424         * modules/unistd-tests: Likewise.
73425         * modules/wchar-tests: Likewise.
73426         * modules/wctype-tests: Likewise.
73428         tests: fix license on several tests
73429         * tests/test-des.c: Update to GPLv3+.
73430         * tests/test-flock.c: Likewise.
73431         * tests/test-fsync.c: Likewise.
73432         * tests/test-futimens.h: Likewise.
73433         * tests/test-gc-arcfour.c: Likewise.
73434         * tests/test-gc-arctwo.c: Likewise.
73435         * tests/test-gc-des.c: Likewise.
73436         * tests/test-gc-hmac-md5.c: Likewise.
73437         * tests/test-gc-hmac-sha1.c: Likewise.
73438         * tests/test-gc-md2.c: Likewise.
73439         * tests/test-gc-md4.c: Likewise.
73440         * tests/test-gc-md5.c: Likewise.
73441         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73442         * tests/test-gc-rijndael.c: Likewise.
73443         * tests/test-gc-sha1.c: Likewise.
73444         * tests/test-gc.c: Likewise.
73445         * tests/test-getcwd.c: Likewise.
73446         * tests/test-link.c: Likewise.
73447         * tests/test-link.h: Likewise.
73448         * tests/test-lutimens.h: Likewise.
73449         * tests/test-md2.c: Likewise.
73450         * tests/test-md4.c: Likewise.
73451         * tests/test-mkdir.h: Likewise.
73452         * tests/test-rename.c: Likewise.
73453         * tests/test-rename.h: Likewise.
73454         * tests/test-safe-alloc.c: Likewise.
73455         * tests/test-utimens-common.h: Likewise.
73456         * tests/test-utimens.h: Likewise.
73458         maint: sync license texts
73459         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
73460         * doc/gpl-3.0.texi: Revert copyright year update.
73461         * doc/lgpl-3.0.texi: Likewise.
73463 2009-12-29  Jim Meyering  <meyering@redhat.com>
73465         update nearly all FSF copyright year lists to include 2009
73466         The files named by the following are exempted:
73467             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
73468               test -f "$dst" && { echo "$dst"; continue; }
73469               test -d "$dst" || continue
73470               echo "$dst"/$(basename "$src")
73471             done > exempt
73472             git ls-files tests/unictype >> exempt
73473         In the remaining files, convert to all-interval notation if
73474         - there is already at least one year interval like 2000-2003
73475         - the file is maintained by me
73476         - the file is in lib/uni*/, where that style already prevails
73477         Otherwise, use update-copyright's default.
73479 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73480         and Eric Blake  <ebb9@byu.net>
73482         tests: don't require debug system() to pass
73483         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
73484         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73485         * tests/test-unlink.h (test_unlink_func): Likewise.
73486         * tests/test-fstatat.c (main): ...into callers.
73487         * tests/test-lstat.c (main): Likewise.
73488         * tests/test-rmdir.c (main): Likewise.
73489         * tests/test-unlink.c (main): Likewise.
73490         * tests/test-unlinkat.c (main): Likewise.
73491         * tests/test-areadlink-with-size.c (main): Don't require a
73492         debug-only system call to pass, aiding cross-testing to mingw.
73493         * tests/test-areadlink.c (main): Likewise.
73494         * tests/test-areadlinkat-with-size.c (main): Likewise.
73495         * tests/test-areadlinkat.c (main): Likewise.
73496         * tests/test-canonicalize-lgpl.c (main): Likewise.
73497         * tests/test-canonicalize.c (main): Likewise.
73498         * tests/test-chown.c (main): Likewise.
73499         * tests/test-fchownat.c (main): Likewise.
73500         * tests/test-lchown.c (main): Likewise.
73501         * tests/test-fdutimensat.c (main): Likewise.
73502         * tests/test-futimens.c (main): Likewise.
73503         * tests/test-link.c (main): Likewise.
73504         * tests/test-linkat.c (main): Likewise.
73505         * tests/test-mkdir.c (main): Likewise.
73506         * tests/test-mkdirat.c (main): Likewise.
73507         * tests/test-mkfifo.c (main): Likewise.
73508         * tests/test-mkfifoat.c (main): Likewise.
73509         * tests/test-mknod.c (main): Likewise.
73510         * tests/test-readlink.c (main): Likewise.
73511         * tests/test-remove.c (main): Likewise.
73512         * tests/test-rename.c (main): Likewise.
73513         * tests/test-renameat.c (main): Likewise.
73514         * tests/test-symlink.c (main): Likewise.
73515         * tests/test-symlinkat.c (main): Likewise.
73516         * tests/test-utimens.c (main): Likewise.
73517         * tests/test-utimensat.c (main): Likewise.
73519 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73521         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
73522         on $(UNUSED_PARAMETER_H) to avoid build failure.
73524 2009-12-28  Jim Meyering  <meyering@redhat.com>
73526         update-copyright: you may specify a max. line length other than 72
73527         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73529         maint: use consistent FSF copyright line syntax
73530         * lib/posixtm.c: Add missing comma in FSF copyright line.
73531         * lib/posixtm.h: Likewise.
73532         * lib/getugroups.c: Add missing ", Inc.".
73534         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
73535         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
73536         FSF copyright line.  Remove trailing blanks.
73538 2009-12-28  Eric Blake  <ebb9@byu.net>
73540         test-dup2: reduce dependencies
73541         * modules/cloexec (Configure.ac): Set witness.
73542         * modules/dup2-tests (Depends-on): Drop cloexec.
73543         * tests/test-dup2.c (main): Skip portion of test if cloexec module
73544         not present.
73545         Suggested by Bruno Haible.
73547 2009-12-26  Bruno Haible  <bruno@clisp.org>
73549         Remove an unneeded dependency.
73550         * modules/fseterr (Depends-on): Remove dup2.
73552 2009-12-26  Eric Blake  <ebb9@byu.net>
73554         tests: use macros.h in more places
73555         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
73556         (ASSERT_STREAM): Provide default of stderr.
73557         * tests/test-dirent-safer.c: Include macros.h, using alternate
73558         stream for assertions.
73559         * tests/test-dup-safer.c: Likewise.
73560         * tests/test-freopen-safer.c: Likewise.
73561         * tests/test-getopt.c: Likewise.
73562         * tests/test-openat-safer.c: Likewise.
73563         * tests/test-pipe.c: Likewise.
73564         * tests/test-popen-safer.c: Likewise.
73565         * modules/dirent-safer-tests (Files): Include macros.h.
73566         * modules/unistd-safer-tests (Files): Likewise.
73567         * modules/freopen-safer-tests (Files): Likewise.
73568         * modules/getopt-posix-tests (Files): Likewise.
73569         * modules/openat-safer-tests (Files): Likewise.
73570         * modules/pipe-tests (Files): Likewise.
73572 2009-12-26  Bruno Haible  <bruno@clisp.org>
73574         javacomp-script: Portability fix.
73575         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
73576         that it also works on Solaris.
73578 2009-12-26  Bruno Haible  <bruno@clisp.org>
73580         localename: Fix storage allocation of gl_locale_name_thread's result.
73581         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
73582         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
73583         all platforms that have 'uselocale'.
73584         (gl_locale_name_thread_unsafe): New function, extracted from
73585         gl_locale_name_thread.
73586         (gl_locale_name_thread): Call struniq on all platforms that have
73587         'uselocale'.
73588         * tests/test-localename.c (test_locale_name_thread): Check that the
73589         resulting strings are permanently allocated.
73590         * modules/localename-tests (Depends-on): Add strdup.
73592 2009-12-26  Bruno Haible  <bruno@clisp.org>
73594         * tests/test-localename.c (categories): Fill in the strings.
73596 2009-12-26  Jim Meyering  <meyering@redhat.com>
73598         isdir: complete the removal of m4/isdir.m4
73599         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
73601         isdir: clean up, since at least grep still uses it
73602         * lib/isdir.c: Include "isdir.h".
73603         (S_ISDIR): Remove now-unneeded definition.
73604         * modules/isdir (Files): Add lib/isdir.h.
73605         * lib/isdir.h: New file, with declaration.
73606         * m4/isdir.m4: Remove file -- unneeded.
73608 2009-12-25  Bruno Haible  <bruno@clisp.org>
73610         selinux-h: Make generated .h files standalone.
73611         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
73612         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
73613         * lib/se-selinux.in.h: Likewise.
73614         * modules/selinux-h (Depends-on): Add unused-parameter.
73615         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
73616         selinux/selinux.h and selinux/context.h.
73617         Suggested by Eric Blake.
73619 2009-12-25  Bruno Haible  <bruno@clisp.org>
73621         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
73622         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
73623         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
73624         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
73625         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
73627 2009-12-24  Bruno Haible  <bruno@clisp.org>
73629         openat: Fix warning.
73630         * lib/openat-proc.c: Include <unistd.h>.
73632 2009-12-24  Bruno Haible  <bruno@clisp.org>
73634         New module 'unused-parameter'.
73635         * build-aux/unused-parameter.h: New file, extracted from earlier
73636         gnulib-common.m4.
73637         * modules/unused-parameter: New file.
73638         * lib/unistr.h: Include unused-parameter.h.
73639         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
73640         _GL_UNUSED.
73641         * modules/unistr/base (Depends-on): Add unused-parameter.
73643 2009-12-24  Bruno Haible  <bruno@clisp.org>
73645         Add missing dependencies to 'extensions' module.
73646         * m4/extensions.m4: Add comment.
73647         * modules/accept4 (Depends-on): Add extensions.
73648         * modules/dup3 (Depends-on): Likewise.
73649         * modules/fcntl (Depends-on): Likewise.
73650         * modules/futimens (Depends-on): Likewise.
73651         * modules/mknod (Depends-on): Likewise.
73652         * modules/pipe2 (Depends-on): Likewise.
73653         * modules/stat-time (Depends-on): Likewise.
73654         * modules/strcasestr-simple (Depends-on): Likewise.
73655         * modules/strsignal (Depends-on): Likewise.
73656         * modules/utimensat (Depends-on): Likewise.
73657         * modules/localcharset (Depends-on): Likewise. Needed because of
73658         gl_FCNTL_O_FLAGS.
73659         * modules/wcrtomb (Depends-on): Likewise. Needed because of
73660         AC_TYPE_MBSTATE_T.
73661         * modules/wcsnrtombs (Depends-on): Likewise.
73662         * modules/wcsrtombs (Depends-on): Likewise.
73664 2009-12-24  Bruno Haible  <bruno@clisp.org>
73666         binary-io: Avoid gcc warning due to SET_BINARY.
73667         * lib/binary-io.h (SET_BINARY): Cast the result to void.
73668         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
73670 2009-12-24  Bruno Haible  <bruno@clisp.org>
73672         Avoid future namespace pollution on glibc systems.
73673         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
73674         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
73675         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
73676         glibc systems.
73678 2009-12-24  Bruno Haible  <bruno@clisp.org>
73680         Refactor common macros used in tests.
73681         * tests/macros.h: New file.
73682         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
73683         and/or <stdlib.h>, if appropriate.
73684         (ASSERT, SIZEOF): Remove macros.
73685         * tests/test-areadlink-with-size.c: Likewise.
73686         * tests/test-areadlinkat.c: Likewise.
73687         * tests/test-areadlinkat-with-size.c: Likewise.
73688         * tests/test-argmatch.c: Likewise.
73689         * tests/test-argv-iter.c: Likewise.
73690         * tests/test-array-mergesort.c: Likewise.
73691         * tests/test-array_list.c: Likewise.
73692         * tests/test-array_oset.c: Likewise.
73693         * tests/test-avltree_list.c: Likewise.
73694         * tests/test-avltree_oset.c: Likewise.
73695         * tests/test-avltreehash_list.c: Likewise.
73696         * tests/test-base64.c: Likewise.
73697         * tests/test-binary-io.c: Likewise.
73698         * tests/test-bitrotate.c: Likewise.
73699         * tests/test-btowc.c: Likewise.
73700         * tests/test-byteswap.c: Likewise.
73701         * tests/test-c-ctype.c: Likewise.
73702         * tests/test-c-stack.c: Likewise.
73703         * tests/test-c-strcasecmp.c: Likewise.
73704         * tests/test-c-strcasestr.c: Likewise.
73705         * tests/test-c-strncasecmp.c: Likewise.
73706         * tests/test-c-strstr.c: Likewise.
73707         * tests/test-canonicalize-lgpl.c: Likewise.
73708         * tests/test-canonicalize.c: Likewise.
73709         * tests/test-carray_list.c: Likewise.
73710         * tests/test-ceilf1.c: Likewise.
73711         * tests/test-ceilf2.c: Likewise.
73712         * tests/test-ceill.c: Likewise.
73713         * tests/test-chown.c: Likewise.
73714         * tests/test-cloexec.c: Likewise.
73715         * tests/test-copy-acl.c: Likewise.
73716         * tests/test-copy-file.c: Likewise.
73717         * tests/test-count-one-bits.c: Likewise.
73718         * tests/test-dprintf-posix.c: Likewise.
73719         * tests/test-dup2.c: Likewise.
73720         * tests/test-dup3.c: Likewise.
73721         * tests/test-duplocale.c: Likewise.
73722         * tests/test-fbufmode.c: Likewise.
73723         * tests/test-fchdir.c: Likewise.
73724         * tests/test-fchownat.c: Likewise.
73725         * tests/test-fcntl-safer.c: Likewise.
73726         * tests/test-fcntl.c: Likewise.
73727         * tests/test-fdopendir.c: Likewise.
73728         * tests/test-fdutimensat.c: Likewise.
73729         * tests/test-fflush2.c: Likewise.
73730         * tests/test-file-has-acl.c: Likewise.
73731         * tests/test-filevercmp.c: Likewise.
73732         * tests/test-flock.c: Likewise.
73733         * tests/test-floorf1.c: Likewise.
73734         * tests/test-floorf2.c: Likewise.
73735         * tests/test-floorl.c: Likewise.
73736         * tests/test-fnmatch.c: Likewise.
73737         * tests/test-fopen.h: Likewise.
73738         * tests/test-fpending.c: Likewise.
73739         * tests/test-fprintf-posix.c: Likewise.
73740         * tests/test-fpurge.c: Likewise.
73741         * tests/test-freadable.c: Likewise.
73742         * tests/test-freadahead.c: Likewise.
73743         * tests/test-freading.c: Likewise.
73744         * tests/test-freadptr.c: Likewise.
73745         * tests/test-freadptr2.c: Likewise.
73746         * tests/test-freadseek.c: Likewise.
73747         * tests/test-freopen.c: Likewise.
73748         * tests/test-frexp.c: Likewise.
73749         * tests/test-frexpl.c: Likewise.
73750         * tests/test-fseek.c: Likewise.
73751         * tests/test-fseeko.c: Likewise.
73752         * tests/test-fstatat.c: Likewise.
73753         * tests/test-fstrcmp.c: Likewise.
73754         * tests/test-fsync.c: Likewise.
73755         * tests/test-ftell.c: Likewise.
73756         * tests/test-ftello.c: Likewise.
73757         * tests/test-func.c: Likewise.
73758         * tests/test-futimens.c: Likewise.
73759         * tests/test-fwritable.c: Likewise.
73760         * tests/test-fwriting.c: Likewise.
73761         * tests/test-getcwd.c: Likewise.
73762         * tests/test-getdate.c: Likewise.
73763         * tests/test-getdelim.c: Likewise.
73764         * tests/test-getdtablesize.c: Likewise.
73765         * tests/test-getgroups.c: Likewise.
73766         * tests/test-getline.c: Likewise.
73767         * tests/test-getndelim2.c: Likewise.
73768         * tests/test-glob.c: Likewise.
73769         * tests/test-hash.c: Likewise.
73770         * tests/test-i-ring.c: Likewise.
73771         * tests/test-iconv-utf.c: Likewise.
73772         * tests/test-iconv.c: Likewise.
73773         * tests/test-idpriv-drop.c: Likewise.
73774         * tests/test-idpriv-droptemp.c: Likewise.
73775         * tests/test-inet_ntop.c: Likewise.
73776         * tests/test-inet_pton.c: Likewise.
73777         * tests/test-isblank.c: Likewise.
73778         * tests/test-isfinite.c: Likewise.
73779         * tests/test-isinf.c: Likewise.
73780         * tests/test-isnan.c: Likewise.
73781         * tests/test-isnand.h: Likewise.
73782         * tests/test-isnanf.h: Likewise.
73783         * tests/test-isnanl.h: Likewise.
73784         * tests/test-lchown.c: Likewise.
73785         * tests/test-ldexpl.c: Likewise.
73786         * tests/test-link.c: Likewise.
73787         * tests/test-linkat.c: Likewise.
73788         * tests/test-linked_list.c: Likewise.
73789         * tests/test-linkedhash_list.c: Likewise.
73790         * tests/test-localename.c: Likewise.
73791         * tests/test-lseek.c: Likewise.
73792         * tests/test-lstat.c: Likewise.
73793         * tests/test-mbmemcasecmp.c: Likewise.
73794         * tests/test-mbmemcasecoll.c: Likewise.
73795         * tests/test-mbrtowc.c: Likewise.
73796         * tests/test-mbscasecmp.c: Likewise.
73797         * tests/test-mbscasestr1.c: Likewise.
73798         * tests/test-mbscasestr2.c: Likewise.
73799         * tests/test-mbscasestr3.c: Likewise.
73800         * tests/test-mbscasestr4.c: Likewise.
73801         * tests/test-mbschr.c: Likewise.
73802         * tests/test-mbscspn.c: Likewise.
73803         * tests/test-mbsinit.c: Likewise.
73804         * tests/test-mbsncasecmp.c: Likewise.
73805         * tests/test-mbsnrtowcs.c: Likewise.
73806         * tests/test-mbspbrk.c: Likewise.
73807         * tests/test-mbspcasecmp.c: Likewise.
73808         * tests/test-mbsrchr.c: Likewise.
73809         * tests/test-mbsrtowcs.c: Likewise.
73810         * tests/test-mbsspn.c: Likewise.
73811         * tests/test-mbsstr1.c: Likewise.
73812         * tests/test-mbsstr2.c: Likewise.
73813         * tests/test-mbsstr3.c: Likewise.
73814         * tests/test-memchr.c: Likewise.
73815         * tests/test-memchr2.c: Likewise.
73816         * tests/test-memcmp.c: Likewise.
73817         * tests/test-memmem.c: Likewise.
73818         * tests/test-memrchr.c: Likewise.
73819         * tests/test-mkdir.c: Likewise.
73820         * tests/test-mkdirat.c: Likewise.
73821         * tests/test-mkfifo.c: Likewise.
73822         * tests/test-mkfifoat.c: Likewise.
73823         * tests/test-mknod.c: Likewise.
73824         * tests/test-nanosleep.c: Likewise.
73825         * tests/test-nl_langinfo.c: Likewise.
73826         * tests/test-obstack-printf.c: Likewise.
73827         * tests/test-open.c: Likewise.
73828         * tests/test-openat.c: Likewise.
73829         * tests/test-pipe-filter-gi1.c: Likewise.
73830         * tests/test-pipe-filter-gi2-main.c: Likewise.
73831         * tests/test-pipe-filter-ii1.c: Likewise.
73832         * tests/test-pipe-filter-ii2-main.c: Likewise.
73833         * tests/test-pipe2.c: Likewise.
73834         * tests/test-popen.h: Likewise.
73835         * tests/test-posixtm.c: Likewise.
73836         * tests/test-pread.c: Likewise.
73837         * tests/test-printf-frexp.c: Likewise.
73838         * tests/test-printf-frexpl.c: Likewise.
73839         * tests/test-printf-posix.c: Likewise.
73840         * tests/test-priv-set.c: Likewise.
73841         * tests/test-quotearg.c: Likewise.
73842         * tests/test-random_r.c: Likewise.
73843         * tests/test-rawmemchr.c: Likewise.
73844         * tests/test-rbtree_list.c: Likewise.
73845         * tests/test-rbtree_oset.c: Likewise.
73846         * tests/test-rbtreehash_list.c: Likewise.
73847         * tests/test-readlink.c: Likewise.
73848         * tests/test-remove.c: Likewise.
73849         * tests/test-rename.c: Likewise.
73850         * tests/test-renameat.c: Likewise.
73851         * tests/test-rmdir.c: Likewise.
73852         * tests/test-round1.c: Likewise.
73853         * tests/test-roundf1.c: Likewise.
73854         * tests/test-roundl.c: Likewise.
73855         * tests/test-safe-alloc.c: Likewise.
73856         * tests/test-sameacls.c: Likewise.
73857         * tests/test-set-mode-acl.c: Likewise.
73858         * tests/test-setenv.c: Likewise.
73859         * tests/test-sigaction.c: Likewise.
73860         * tests/test-signbit.c: Likewise.
73861         * tests/test-sleep.c: Likewise.
73862         * tests/test-snprintf-posix.c: Likewise.
73863         * tests/test-snprintf.c: Likewise.
73864         * tests/test-sprintf-posix.c: Likewise.
73865         * tests/test-stat-time.c: Likewise.
73866         * tests/test-stat.c: Likewise.
73867         * tests/test-strcasestr.c: Likewise.
73868         * tests/test-strchrnul.c: Likewise.
73869         * tests/test-strerror.c: Likewise.
73870         * tests/test-striconv.c: Likewise.
73871         * tests/test-striconveh.c: Likewise.
73872         * tests/test-striconveha.c: Likewise.
73873         * tests/test-strsignal.c: Likewise.
73874         * tests/test-strstr.c: Likewise.
73875         * tests/test-strtod.c: Likewise.
73876         * tests/test-strverscmp.c: Likewise.
73877         * tests/test-symlink.c: Likewise.
73878         * tests/test-symlinkat.c: Likewise.
73879         * tests/test-trunc1.c: Likewise.
73880         * tests/test-trunc2.c: Likewise.
73881         * tests/test-truncf1.c: Likewise.
73882         * tests/test-truncf2.c: Likewise.
73883         * tests/test-truncl.c: Likewise.
73884         * tests/test-uname.c: Likewise.
73885         * tests/test-unlink.c: Likewise.
73886         * tests/test-unlinkat.c: Likewise.
73887         * tests/test-unsetenv.c: Likewise.
73888         * tests/test-usleep.c: Likewise.
73889         * tests/test-utimens.c: Likewise.
73890         * tests/test-utimensat.c: Likewise.
73891         * tests/test-vasnprintf-posix.c: Likewise.
73892         * tests/test-vasnprintf-posix2.c: Likewise.
73893         * tests/test-vasnprintf.c: Likewise.
73894         * tests/test-vasprintf-posix.c: Likewise.
73895         * tests/test-vasprintf.c: Likewise.
73896         * tests/test-vdprintf-posix.c: Likewise.
73897         * tests/test-vfprintf-posix.c: Likewise.
73898         * tests/test-vprintf-posix.c: Likewise.
73899         * tests/test-vsnprintf-posix.c: Likewise.
73900         * tests/test-vsnprintf.c: Likewise.
73901         * tests/test-vsprintf-posix.c: Likewise.
73902         * tests/test-wcrtomb.c: Likewise.
73903         * tests/test-wcsnrtombs.c: Likewise.
73904         * tests/test-wcsrtombs.c: Likewise.
73905         * tests/test-wctype.c: Likewise.
73906         * tests/test-wcwidth.c: Likewise.
73907         * tests/test-xfprintf-posix.c: Likewise.
73908         * tests/test-xmemdup0.c: Likewise.
73909         * tests/test-xprintf-posix.c: Likewise.
73910         * tests/test-xvasprintf.c: Likewise.
73911         * tests/unicase/test-locale-language.c: Likewise.
73912         * tests/unicase/test-mapping-part1.h: Likewise.
73913         * tests/unicase/test-predicate-part1.h: Likewise.
73914         * tests/unicase/test-u8-casecmp.c: Likewise.
73915         * tests/unicase/test-u8-casecoll.c: Likewise.
73916         * tests/unicase/test-u8-casefold.c: Likewise.
73917         * tests/unicase/test-u8-is-cased.c: Likewise.
73918         * tests/unicase/test-u8-is-casefolded.c: Likewise.
73919         * tests/unicase/test-u8-is-lowercase.c: Likewise.
73920         * tests/unicase/test-u8-is-titlecase.c: Likewise.
73921         * tests/unicase/test-u8-is-uppercase.c: Likewise.
73922         * tests/unicase/test-u8-tolower.c: Likewise.
73923         * tests/unicase/test-u8-totitle.c: Likewise.
73924         * tests/unicase/test-u8-toupper.c: Likewise.
73925         * tests/unicase/test-u16-casecmp.c: Likewise.
73926         * tests/unicase/test-u16-casecoll.c: Likewise.
73927         * tests/unicase/test-u16-casefold.c: Likewise.
73928         * tests/unicase/test-u16-is-cased.c: Likewise.
73929         * tests/unicase/test-u16-is-casefolded.c: Likewise.
73930         * tests/unicase/test-u16-is-lowercase.c: Likewise.
73931         * tests/unicase/test-u16-is-titlecase.c: Likewise.
73932         * tests/unicase/test-u16-is-uppercase.c: Likewise.
73933         * tests/unicase/test-u16-tolower.c: Likewise.
73934         * tests/unicase/test-u16-totitle.c: Likewise.
73935         * tests/unicase/test-u16-toupper.c: Likewise.
73936         * tests/unicase/test-u32-casecmp.c: Likewise.
73937         * tests/unicase/test-u32-casecoll.c: Likewise.
73938         * tests/unicase/test-u32-casefold.c: Likewise.
73939         * tests/unicase/test-u32-is-cased.c: Likewise.
73940         * tests/unicase/test-u32-is-casefolded.c: Likewise.
73941         * tests/unicase/test-u32-is-lowercase.c: Likewise.
73942         * tests/unicase/test-u32-is-titlecase.c: Likewise.
73943         * tests/unicase/test-u32-is-uppercase.c: Likewise.
73944         * tests/unicase/test-u32-tolower.c: Likewise.
73945         * tests/unicase/test-u32-totitle.c: Likewise.
73946         * tests/unicase/test-u32-toupper.c: Likewise.
73947         * tests/unicase/test-ulc-casecmp.c: Likewise.
73948         * tests/unicase/test-ulc-casecoll.c: Likewise.
73949         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
73950         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
73951         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
73952         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
73953         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
73954         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
73955         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
73956         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
73957         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
73958         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
73959         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
73960         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
73961         * tests/unictype/test-bidi_byname.c: Likewise.
73962         * tests/unictype/test-bidi_name.c: Likewise.
73963         * tests/unictype/test-bidi_of.c: Likewise.
73964         * tests/unictype/test-bidi_test.c: Likewise.
73965         * tests/unictype/test-block_list.c: Likewise.
73966         * tests/unictype/test-block_of.c: Likewise.
73967         * tests/unictype/test-block_test.c: Likewise.
73968         * tests/unictype/test-categ_and.c: Likewise.
73969         * tests/unictype/test-categ_and_not.c: Likewise.
73970         * tests/unictype/test-categ_byname.c: Likewise.
73971         * tests/unictype/test-categ_name.c: Likewise.
73972         * tests/unictype/test-categ_none.c: Likewise.
73973         * tests/unictype/test-categ_of.c: Likewise.
73974         * tests/unictype/test-categ_or.c: Likewise.
73975         * tests/unictype/test-categ_test_withtable.c: Likewise.
73976         * tests/unictype/test-combining.c: Likewise.
73977         * tests/unictype/test-decdigit.c: Likewise.
73978         * tests/unictype/test-digit.c: Likewise.
73979         * tests/unictype/test-mirror.c: Likewise.
73980         * tests/unictype/test-numeric.c: Likewise.
73981         * tests/unictype/test-pr_byname.c: Likewise.
73982         * tests/unictype/test-pr_test.c: Likewise.
73983         * tests/unictype/test-predicate-part1.h: Likewise.
73984         * tests/unictype/test-scripts.c: Likewise.
73985         * tests/unictype/test-sy_c_ident.c: Likewise.
73986         * tests/unictype/test-sy_java_ident.c: Likewise.
73987         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
73988         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
73989         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
73990         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
73991         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
73992         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
73993         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
73994         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
73995         * tests/uninorm/test-canonical-decomposition.c: Likewise.
73996         * tests/uninorm/test-compat-decomposition.c: Likewise.
73997         * tests/uninorm/test-composition.c: Likewise.
73998         * tests/uninorm/test-decomposing-form.c: Likewise.
73999         * tests/uninorm/test-decomposition.c: Likewise.
74000         * tests/uninorm/test-u8-nfc.c: Likewise.
74001         * tests/uninorm/test-u8-nfd.c: Likewise.
74002         * tests/uninorm/test-u8-nfkc.c: Likewise.
74003         * tests/uninorm/test-u8-nfkd.c: Likewise.
74004         * tests/uninorm/test-u8-normcmp.c: Likewise.
74005         * tests/uninorm/test-u8-normcoll.c: Likewise.
74006         * tests/uninorm/test-u16-nfc.c: Likewise.
74007         * tests/uninorm/test-u16-nfd.c: Likewise.
74008         * tests/uninorm/test-u16-nfkc.c: Likewise.
74009         * tests/uninorm/test-u16-nfkd.c: Likewise.
74010         * tests/uninorm/test-u16-normcmp.c: Likewise.
74011         * tests/uninorm/test-u16-normcoll.c: Likewise.
74012         * tests/uninorm/test-u32-nfc.c: Likewise.
74013         * tests/uninorm/test-u32-nfd.c: Likewise.
74014         * tests/uninorm/test-u32-nfkc.c: Likewise.
74015         * tests/uninorm/test-u32-nfkd.c: Likewise.
74016         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74017         * tests/uninorm/test-u32-normcmp.c: Likewise.
74018         * tests/uninorm/test-u32-normcoll.c: Likewise.
74019         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74020         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74021         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74022         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74023         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74024         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74025         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74026         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74027         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74028         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74029         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74030         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74031         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74032         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74033         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74034         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74035         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74036         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74037         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74038         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74039         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74040         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74041         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74042         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74043         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74044         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74045         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74046         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74047         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74048         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74049         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74050         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74051         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74052         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74053         * tests/uniwidth/test-u8-width.c: Likewise.
74054         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74055         * tests/uniwidth/test-u16-width.c: Likewise.
74056         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74057         * tests/uniwidth/test-u32-width.c: Likewise.
74058         * tests/uniwidth/test-uc_width.c: Likewise.
74059         * tests/uniwidth/test-uc_width2.c: Likewise.
74060         * modules/acl-tests (Files): Add tests/macros.h.
74061         * modules/areadlink-tests (Files): Likewise.
74062         * modules/areadlink-with-size-tests (Files): Likewise.
74063         * modules/areadlinkat-tests (Files): Likewise.
74064         * modules/areadlinkat-with-size-tests (Files): Likewise.
74065         * modules/argmatch-tests (Files): Likewise.
74066         * modules/argv-iter-tests (Files): Likewise.
74067         * modules/array-list-tests (Files): Likewise.
74068         * modules/array-mergesort-tests (Files): Likewise.
74069         * modules/array-oset-tests (Files): Likewise.
74070         * modules/avltree-list-tests (Files): Likewise.
74071         * modules/avltree-oset-tests (Files): Likewise.
74072         * modules/avltreehash-list-tests (Files): Likewise.
74073         * modules/base64-tests (Files): Likewise.
74074         * modules/binary-io-tests (Files): Likewise.
74075         * modules/bitrotate-tests (Files): Likewise.
74076         * modules/btowc-tests (Files): Likewise.
74077         * modules/byteswap-tests (Files): Likewise.
74078         * modules/c-ctype-tests (Files): Likewise.
74079         * modules/c-stack-tests (Files): Likewise.
74080         * modules/c-strcase-tests (Files): Likewise.
74081         * modules/c-strcasestr-tests (Files): Likewise.
74082         * modules/c-strstr-tests (Files): Likewise.
74083         * modules/canonicalize-lgpl-tests (Files): Likewise.
74084         * modules/canonicalize-tests (Files): Likewise.
74085         * modules/carray-list-tests (Files): Likewise.
74086         * modules/ceilf-tests (Files): Likewise.
74087         * modules/ceill-tests (Files): Likewise.
74088         * modules/chown-tests (Files): Likewise.
74089         * modules/cloexec-tests (Files): Likewise.
74090         * modules/copy-file-tests (Files): Likewise.
74091         * modules/count-one-bits-tests (Files): Likewise.
74092         * modules/dprintf-posix-tests (Files): Likewise.
74093         * modules/dup2-tests (Files): Likewise.
74094         * modules/dup3-tests (Files): Likewise.
74095         * modules/duplocale-tests (Files): Likewise.
74096         * modules/fbufmode-tests (Files): Likewise.
74097         * modules/fchdir-tests (Files): Likewise.
74098         * modules/fcntl-safer-tests (Files): Likewise.
74099         * modules/fcntl-tests (Files): Likewise.
74100         * modules/fdopendir-tests (Files): Likewise.
74101         * modules/fdutimensat-tests (Files): Likewise.
74102         * modules/fflush-tests (Files): Likewise.
74103         * modules/filevercmp-tests (Files): Likewise.
74104         * modules/flock-tests (Files): Likewise.
74105         * modules/floorf-tests (Files): Likewise.
74106         * modules/floorl-tests (Files): Likewise.
74107         * modules/fnmatch-tests (Files): Likewise.
74108         * modules/fopen-safer-tests (Files): Likewise.
74109         * modules/fopen-tests (Files): Likewise.
74110         * modules/fpending-tests (Files): Likewise.
74111         * modules/fprintf-posix-tests (Files): Likewise.
74112         * modules/fpurge-tests (Files): Likewise.
74113         * modules/freadable-tests (Files): Likewise.
74114         * modules/freadahead-tests (Files): Likewise.
74115         * modules/freading-tests (Files): Likewise.
74116         * modules/freadptr-tests (Files): Likewise.
74117         * modules/freadseek-tests (Files): Likewise.
74118         * modules/freopen-tests (Files): Likewise.
74119         * modules/frexp-nolibm-tests (Files): Likewise.
74120         * modules/frexp-tests (Files): Likewise.
74121         * modules/frexpl-nolibm-tests (Files): Likewise.
74122         * modules/frexpl-tests (Files): Likewise.
74123         * modules/fseek-tests (Files): Likewise.
74124         * modules/fseeko-tests (Files): Likewise.
74125         * modules/fstrcmp-tests (Files): Likewise.
74126         * modules/fsync-tests (Files): Likewise.
74127         * modules/ftell-tests (Files): Likewise.
74128         * modules/ftello-tests (Files): Likewise.
74129         * modules/func-tests (Files): Likewise.
74130         * modules/futimens-tests (Files): Likewise.
74131         * modules/fwritable-tests (Files): Likewise.
74132         * modules/fwriting-tests (Files): Likewise.
74133         * modules/getcwd-tests (Files): Likewise.
74134         * modules/getdate-tests (Files): Likewise.
74135         * modules/getdelim-tests (Files): Likewise.
74136         * modules/getdtablesize-tests (Files): Likewise.
74137         * modules/getgroups-tests (Files): Likewise.
74138         * modules/getline-tests (Files): Likewise.
74139         * modules/getndelim2-tests (Files): Likewise.
74140         * modules/glob-tests (Files): Likewise.
74141         * modules/hash-tests (Files): Likewise.
74142         * modules/i-ring-tests (Files): Likewise.
74143         * modules/iconv-tests (Files): Likewise.
74144         * modules/iconv_open-utf-tests (Files): Likewise.
74145         * modules/idpriv-drop-tests (Files): Likewise.
74146         * modules/idpriv-droptemp-tests (Files): Likewise.
74147         * modules/inet_ntop-tests (Files): Likewise.
74148         * modules/inet_pton-tests (Files): Likewise.
74149         * modules/isblank-tests (Files): Likewise.
74150         * modules/isfinite-tests (Files): Likewise.
74151         * modules/isinf-tests (Files): Likewise.
74152         * modules/isnan-tests (Files): Likewise.
74153         * modules/isnand-nolibm-tests (Files): Likewise.
74154         * modules/isnand-tests (Files): Likewise.
74155         * modules/isnanf-nolibm-tests (Files): Likewise.
74156         * modules/isnanf-tests (Files): Likewise.
74157         * modules/isnanl-nolibm-tests (Files): Likewise.
74158         * modules/isnanl-tests (Files): Likewise.
74159         * modules/lchown-tests (Files): Likewise.
74160         * modules/ldexpl-tests (Files): Likewise.
74161         * modules/link-tests (Files): Likewise.
74162         * modules/linkat-tests (Files): Likewise.
74163         * modules/linked-list-tests (Files): Likewise.
74164         * modules/linkedhash-list-tests (Files): Likewise.
74165         * modules/localename-tests (Files): Likewise.
74166         * modules/lseek-tests (Files): Likewise.
74167         * modules/lstat-tests (Files): Likewise.
74168         * modules/mbmemcasecmp-tests (Files): Likewise.
74169         * modules/mbmemcasecoll-tests (Files): Likewise.
74170         * modules/mbrtowc-tests (Files): Likewise.
74171         * modules/mbscasecmp-tests (Files): Likewise.
74172         * modules/mbscasestr-tests (Files): Likewise.
74173         * modules/mbschr-tests (Files): Likewise.
74174         * modules/mbscspn-tests (Files): Likewise.
74175         * modules/mbsinit-tests (Files): Likewise.
74176         * modules/mbsncasecmp-tests (Files): Likewise.
74177         * modules/mbsnrtowcs-tests (Files): Likewise.
74178         * modules/mbspbrk-tests (Files): Likewise.
74179         * modules/mbspcasecmp-tests (Files): Likewise.
74180         * modules/mbsrchr-tests (Files): Likewise.
74181         * modules/mbsrtowcs-tests (Files): Likewise.
74182         * modules/mbsspn-tests (Files): Likewise.
74183         * modules/mbsstr-tests (Files): Likewise.
74184         * modules/memchr-tests (Files): Likewise.
74185         * modules/memchr2-tests (Files): Likewise.
74186         * modules/memcmp-tests (Files): Likewise.
74187         * modules/memmem-tests (Files): Likewise.
74188         * modules/memrchr-tests (Files): Likewise.
74189         * modules/mkdir-tests (Files): Likewise.
74190         * modules/mkfifo-tests (Files): Likewise.
74191         * modules/mkfifoat-tests (Files): Likewise.
74192         * modules/mknod-tests (Files): Likewise.
74193         * modules/nanosleep-tests (Files): Likewise.
74194         * modules/nl_langinfo-tests (Files): Likewise.
74195         * modules/obstack-printf-tests (Files): Likewise.
74196         * modules/open-tests (Files): Likewise.
74197         * modules/openat-tests (Files): Likewise.
74198         * modules/pipe-filter-gi-tests (Files): Likewise.
74199         * modules/pipe-filter-ii-tests (Files): Likewise.
74200         * modules/pipe2-tests (Files): Likewise.
74201         * modules/popen-safer-tests (Files): Likewise.
74202         * modules/popen-tests (Files): Likewise.
74203         * modules/posixtm-tests (Files): Likewise.
74204         * modules/pread-tests (Files): Likewise.
74205         * modules/printf-frexp-tests (Files): Likewise.
74206         * modules/printf-frexpl-tests (Files): Likewise.
74207         * modules/printf-posix-tests (Files): Likewise.
74208         * modules/priv-set-tests (Files): Likewise.
74209         * modules/quotearg-tests (Files): Likewise.
74210         * modules/random_r-tests (Files): Likewise.
74211         * modules/rawmemchr-tests (Files): Likewise.
74212         * modules/rbtree-list-tests (Files): Likewise.
74213         * modules/rbtree-oset-tests (Files): Likewise.
74214         * modules/rbtreehash-list-tests (Files): Likewise.
74215         * modules/readlink-tests (Files): Likewise.
74216         * modules/remove-tests (Files): Likewise.
74217         * modules/rename-tests (Files): Likewise.
74218         * modules/renameat-tests (Files): Likewise.
74219         * modules/rmdir-tests (Files): Likewise.
74220         * modules/round-tests (Files): Likewise.
74221         * modules/roundf-tests (Files): Likewise.
74222         * modules/roundl-tests (Files): Likewise.
74223         * modules/safe-alloc-tests (Files): Likewise.
74224         * modules/setenv-tests (Files): Likewise.
74225         * modules/sigaction-tests (Files): Likewise.
74226         * modules/signbit-tests (Files): Likewise.
74227         * modules/sleep-tests (Files): Likewise.
74228         * modules/snprintf-posix-tests (Files): Likewise.
74229         * modules/snprintf-tests (Files): Likewise.
74230         * modules/sprintf-posix-tests (Files): Likewise.
74231         * modules/stat-tests (Files): Likewise.
74232         * modules/stat-time-tests (Files): Likewise.
74233         * modules/strcasestr-tests (Files): Likewise.
74234         * modules/strchrnul-tests (Files): Likewise.
74235         * modules/strerror-tests (Files): Likewise.
74236         * modules/striconv-tests (Files): Likewise.
74237         * modules/striconveh-tests (Files): Likewise.
74238         * modules/striconveha-tests (Files): Likewise.
74239         * modules/strsignal-tests (Files): Likewise.
74240         * modules/strstr-tests (Files): Likewise.
74241         * modules/strtod-tests (Files): Likewise.
74242         * modules/strverscmp-tests (Files): Likewise.
74243         * modules/symlink-tests (Files): Likewise.
74244         * modules/symlinkat-tests (Files): Likewise.
74245         * modules/trunc-tests (Files): Likewise.
74246         * modules/truncf-tests (Files): Likewise.
74247         * modules/truncl-tests (Files): Likewise.
74248         * modules/uname-tests (Files): Likewise.
74249         * modules/unicase/cased-tests (Files): Likewise.
74250         * modules/unicase/ignorable-tests (Files): Likewise.
74251         * modules/unicase/locale-language-tests (Files): Likewise.
74252         * modules/unicase/tolower-tests (Files): Likewise.
74253         * modules/unicase/totitle-tests (Files): Likewise.
74254         * modules/unicase/toupper-tests (Files): Likewise.
74255         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74256         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74257         * modules/unicase/u8-casefold-tests (Files): Likewise.
74258         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74259         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74260         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74261         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74262         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74263         * modules/unicase/u8-tolower-tests (Files): Likewise.
74264         * modules/unicase/u8-totitle-tests (Files): Likewise.
74265         * modules/unicase/u8-toupper-tests (Files): Likewise.
74266         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74267         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74268         * modules/unicase/u16-casefold-tests (Files): Likewise.
74269         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74270         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74271         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74272         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74273         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74274         * modules/unicase/u16-tolower-tests (Files): Likewise.
74275         * modules/unicase/u16-totitle-tests (Files): Likewise.
74276         * modules/unicase/u16-toupper-tests (Files): Likewise.
74277         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74278         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74279         * modules/unicase/u32-casefold-tests (Files): Likewise.
74280         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74281         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74282         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74283         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74284         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74285         * modules/unicase/u32-tolower-tests (Files): Likewise.
74286         * modules/unicase/u32-totitle-tests (Files): Likewise.
74287         * modules/unicase/u32-toupper-tests (Files): Likewise.
74288         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74289         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74290         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74291         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74292         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74293         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74294         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74295         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74296         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74297         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74298         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74299         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74300         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74301         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74302         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74303         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74304         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74305         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74306         * modules/unictype/block-list-tests (Files): Likewise.
74307         * modules/unictype/block-of-tests (Files): Likewise.
74308         * modules/unictype/block-test-tests (Files): Likewise.
74309         * modules/unictype/category-C-tests (Files): Likewise.
74310         * modules/unictype/category-Cc-tests (Files): Likewise.
74311         * modules/unictype/category-Cf-tests (Files): Likewise.
74312         * modules/unictype/category-Cn-tests (Files): Likewise.
74313         * modules/unictype/category-Co-tests (Files): Likewise.
74314         * modules/unictype/category-Cs-tests (Files): Likewise.
74315         * modules/unictype/category-L-tests (Files): Likewise.
74316         * modules/unictype/category-Ll-tests (Files): Likewise.
74317         * modules/unictype/category-Lm-tests (Files): Likewise.
74318         * modules/unictype/category-Lo-tests (Files): Likewise.
74319         * modules/unictype/category-Lt-tests (Files): Likewise.
74320         * modules/unictype/category-Lu-tests (Files): Likewise.
74321         * modules/unictype/category-M-tests (Files): Likewise.
74322         * modules/unictype/category-Mc-tests (Files): Likewise.
74323         * modules/unictype/category-Me-tests (Files): Likewise.
74324         * modules/unictype/category-Mn-tests (Files): Likewise.
74325         * modules/unictype/category-N-tests (Files): Likewise.
74326         * modules/unictype/category-Nd-tests (Files): Likewise.
74327         * modules/unictype/category-Nl-tests (Files): Likewise.
74328         * modules/unictype/category-No-tests (Files): Likewise.
74329         * modules/unictype/category-P-tests (Files): Likewise.
74330         * modules/unictype/category-Pc-tests (Files): Likewise.
74331         * modules/unictype/category-Pd-tests (Files): Likewise.
74332         * modules/unictype/category-Pe-tests (Files): Likewise.
74333         * modules/unictype/category-Pf-tests (Files): Likewise.
74334         * modules/unictype/category-Pi-tests (Files): Likewise.
74335         * modules/unictype/category-Po-tests (Files): Likewise.
74336         * modules/unictype/category-Ps-tests (Files): Likewise.
74337         * modules/unictype/category-S-tests (Files): Likewise.
74338         * modules/unictype/category-Sc-tests (Files): Likewise.
74339         * modules/unictype/category-Sk-tests (Files): Likewise.
74340         * modules/unictype/category-Sm-tests (Files): Likewise.
74341         * modules/unictype/category-So-tests (Files): Likewise.
74342         * modules/unictype/category-Z-tests (Files): Likewise.
74343         * modules/unictype/category-Zl-tests (Files): Likewise.
74344         * modules/unictype/category-Zp-tests (Files): Likewise.
74345         * modules/unictype/category-Zs-tests (Files): Likewise.
74346         * modules/unictype/category-and-not-tests (Files): Likewise.
74347         * modules/unictype/category-and-tests (Files): Likewise.
74348         * modules/unictype/category-byname-tests (Files): Likewise.
74349         * modules/unictype/category-name-tests (Files): Likewise.
74350         * modules/unictype/category-none-tests (Files): Likewise.
74351         * modules/unictype/category-of-tests (Files): Likewise.
74352         * modules/unictype/category-or-tests (Files): Likewise.
74353         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74354         * modules/unictype/combining-class-tests (Files): Likewise.
74355         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74356         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74357         * modules/unictype/ctype-blank-tests (Files): Likewise.
74358         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74359         * modules/unictype/ctype-digit-tests (Files): Likewise.
74360         * modules/unictype/ctype-graph-tests (Files): Likewise.
74361         * modules/unictype/ctype-lower-tests (Files): Likewise.
74362         * modules/unictype/ctype-print-tests (Files): Likewise.
74363         * modules/unictype/ctype-punct-tests (Files): Likewise.
74364         * modules/unictype/ctype-space-tests (Files): Likewise.
74365         * modules/unictype/ctype-upper-tests (Files): Likewise.
74366         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74367         * modules/unictype/decimal-digit-tests (Files): Likewise.
74368         * modules/unictype/digit-tests (Files): Likewise.
74369         * modules/unictype/mirror-tests (Files): Likewise.
74370         * modules/unictype/numeric-tests (Files): Likewise.
74371         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74372         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74373         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74374         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74375         Likewise.
74376         * modules/unictype/property-bidi-block-separator-tests (Files):
74377         Likewise.
74378         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74379         Likewise.
74380         * modules/unictype/property-bidi-common-separator-tests (Files):
74381         Likewise.
74382         * modules/unictype/property-bidi-control-tests (Files): Likewise.
74383         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
74384         Likewise.
74385         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
74386         Likewise.
74387         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
74388         Likewise.
74389         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
74390         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
74391         Likewise.
74392         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
74393         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
74394         Likewise.
74395         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
74396         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
74397         * modules/unictype/property-bidi-segment-separator-tests (Files):
74398         Likewise.
74399         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
74400         * modules/unictype/property-byname-tests (Files): Likewise.
74401         * modules/unictype/property-combining-tests (Files): Likewise.
74402         * modules/unictype/property-composite-tests (Files): Likewise.
74403         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
74404         * modules/unictype/property-dash-tests (Files): Likewise.
74405         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
74406         * modules/unictype/property-default-ignorable-code-point-tests (Files):
74407         Likewise.
74408         * modules/unictype/property-deprecated-tests (Files): Likewise.
74409         * modules/unictype/property-diacritic-tests (Files): Likewise.
74410         * modules/unictype/property-extender-tests (Files): Likewise.
74411         * modules/unictype/property-format-control-tests (Files): Likewise.
74412         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
74413         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
74414         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
74415         * modules/unictype/property-hex-digit-tests (Files): Likewise.
74416         * modules/unictype/property-hyphen-tests (Files): Likewise.
74417         * modules/unictype/property-id-continue-tests (Files): Likewise.
74418         * modules/unictype/property-id-start-tests (Files): Likewise.
74419         * modules/unictype/property-ideographic-tests (Files): Likewise.
74420         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
74421         * modules/unictype/property-ids-trinary-operator-tests (Files):
74422         Likewise.
74423         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
74424         * modules/unictype/property-iso-control-tests (Files): Likewise.
74425         * modules/unictype/property-join-control-tests (Files): Likewise.
74426         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
74427         * modules/unictype/property-line-separator-tests (Files): Likewise.
74428         * modules/unictype/property-logical-order-exception-tests (Files):
74429         Likewise.
74430         * modules/unictype/property-lowercase-tests (Files): Likewise.
74431         * modules/unictype/property-math-tests (Files): Likewise.
74432         * modules/unictype/property-non-break-tests (Files): Likewise.
74433         * modules/unictype/property-not-a-character-tests (Files): Likewise.
74434         * modules/unictype/property-numeric-tests (Files): Likewise.
74435         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
74436         * modules/unictype/property-other-default-ignorable-code-point-tests
74437         (Files): Likewise.
74438         * modules/unictype/property-other-grapheme-extend-tests (Files):
74439         Likewise.
74440         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
74441         * modules/unictype/property-other-id-start-tests (Files): Likewise.
74442         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
74443         * modules/unictype/property-other-math-tests (Files): Likewise.
74444         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
74445         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
74446         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
74447         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
74448         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
74449         * modules/unictype/property-private-use-tests (Files): Likewise.
74450         * modules/unictype/property-punctuation-tests (Files): Likewise.
74451         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
74452         * modules/unictype/property-radical-tests (Files): Likewise.
74453         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
74454         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
74455         * modules/unictype/property-space-tests (Files): Likewise.
74456         * modules/unictype/property-terminal-punctuation-tests (Files):
74457         Likewise.
74458         * modules/unictype/property-test-tests (Files): Likewise.
74459         * modules/unictype/property-titlecase-tests (Files): Likewise.
74460         * modules/unictype/property-unassigned-code-value-tests (Files):
74461         Likewise.
74462         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
74463         * modules/unictype/property-uppercase-tests (Files): Likewise.
74464         * modules/unictype/property-variation-selector-tests (Files): Likewise.
74465         * modules/unictype/property-white-space-tests (Files): Likewise.
74466         * modules/unictype/property-xid-continue-tests (Files): Likewise.
74467         * modules/unictype/property-xid-start-tests (Files): Likewise.
74468         * modules/unictype/property-zero-width-tests (Files): Likewise.
74469         * modules/unictype/scripts-tests (Files): Likewise.
74470         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
74471         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
74472         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
74473         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
74474         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
74475         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
74476         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
74477         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
74478         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
74479         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
74480         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
74481         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
74482         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
74483         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
74484         * modules/uninorm/composition-tests (Files): Likewise.
74485         * modules/uninorm/decomposing-form-tests (Files): Likewise.
74486         * modules/uninorm/decomposition-tests (Files): Likewise.
74487         * modules/uninorm/filter-tests (Files): Likewise.
74488         * modules/uninorm/nfc-tests (Files): Likewise.
74489         * modules/uninorm/nfd-tests (Files): Likewise.
74490         * modules/uninorm/nfkc-tests (Files): Likewise.
74491         * modules/uninorm/nfkd-tests (Files): Likewise.
74492         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
74493         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
74494         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
74495         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
74496         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
74497         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
74498         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
74499         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
74500         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
74501         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
74502         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
74503         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
74504         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
74505         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
74506         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
74507         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
74508         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
74509         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
74510         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
74511         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
74512         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
74513         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
74514         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
74515         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
74516         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
74517         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
74518         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
74519         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
74520         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
74521         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
74522         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
74523         * modules/uniwidth/u8-width-tests (Files): Likewise.
74524         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
74525         * modules/uniwidth/u16-width-tests (Files): Likewise.
74526         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
74527         * modules/uniwidth/u32-width-tests (Files): Likewise.
74528         * modules/uniwidth/width-tests (Files): Likewise.
74529         * modules/unlink-tests (Files): Likewise.
74530         * modules/unsetenv-tests (Files): Likewise.
74531         * modules/usleep-tests (Files): Likewise.
74532         * modules/utimens-tests (Files): Likewise.
74533         * modules/utimensat-tests (Files): Likewise.
74534         * modules/vasnprintf-posix-tests (Files): Likewise.
74535         * modules/vasnprintf-tests (Files): Likewise.
74536         * modules/vasprintf-posix-tests (Files): Likewise.
74537         * modules/vasprintf-tests (Files): Likewise.
74538         * modules/vdprintf-posix-tests (Files): Likewise.
74539         * modules/vfprintf-posix-tests (Files): Likewise.
74540         * modules/vprintf-posix-tests (Files): Likewise.
74541         * modules/vsnprintf-posix-tests (Files): Likewise.
74542         * modules/vsnprintf-tests (Files): Likewise.
74543         * modules/vsprintf-posix-tests (Files): Likewise.
74544         * modules/wcrtomb-tests (Files): Likewise.
74545         * modules/wcsnrtombs-tests (Files): Likewise.
74546         * modules/wcsrtombs-tests (Files): Likewise.
74547         * modules/wctype-tests (Files): Likewise.
74548         * modules/wcwidth-tests (Files): Likewise.
74549         * modules/xmemdup0-tests (Files): Likewise.
74550         * modules/xprintf-posix-tests (Files): Likewise.
74551         * modules/xvasprintf-tests (Files): Likewise.
74553 2009-12-24  Eric Blake  <ebb9@byu.net>
74555         test-nanosleep: fix typo
74556         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
74557         patch.
74558         Reported by Bruno Haible.
74560 2009-12-24  Bruno Haible  <bruno@clisp.org>
74562         Reduce namespace pollution on glibc systems.
74563         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
74564         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
74565         systems.
74566         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
74567         <getopt.h> on glibc systems.
74568         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
74569         systems.
74570         * lib/fcntl.c: Include <unistd.h> here instead.
74572 2009-12-24  Bruno Haible  <bruno@clisp.org>
74574         * lib/stdlib.in.h (includes): Fix typo in today's commit.
74576 2009-12-24  Eric Blake  <ebb9@byu.net>
74578         tests: add signature checks
74579         * tests/signature.h (SIGNATURE_CHECK): New file.
74580         * modules/atexit-tests (Files): Use it.
74581         * modules/btowc-tests (Files): Likewise.
74582         * modules/canonicalize-lgpl-tests (Files): Likewise.
74583         * modules/ceilf-tests (Files): Likewise.
74584         * modules/ceill-tests (Files): Likewise.
74585         * modules/chown-tests (Files): Likewise.
74586         * modules/dprintf-posix-tests (Files): Likewise.
74587         * modules/dup2-tests (Files): Likewise.
74588         * modules/dup3-tests (Files): Likewise.
74589         * modules/duplocale-tests (Files): Likewise.
74590         * modules/fchdir-tests (Files): Likewise.
74591         * modules/fcntl-tests (Files): Likewise.
74592         * modules/fdopendir-tests (Files): Likewise.
74593         * modules/fflush-tests (Files): Likewise.
74594         * modules/flock-tests (Files): Likewise.
74595         * modules/floorf-tests (Files): Likewise.
74596         * modules/floorl-tests (Files): Likewise.
74597         * modules/fnmatch-tests (Files): Likewise.
74598         * modules/fopen-tests (Files): Likewise.
74599         * modules/fprintf-posix-tests (Files): Likewise.
74600         * modules/freopen-tests (Files): Likewise.
74601         * modules/frexp-nolibm-tests (Files): Likewise.
74602         * modules/frexp-tests (Files): Likewise.
74603         * modules/frexpl-nolibm-tests (Files): Likewise.
74604         * modules/frexpl-tests (Files): Likewise.
74605         * modules/fseek-tests (Files): Likewise.
74606         * modules/fseeko-tests (Files): Likewise.
74607         * modules/fsync-tests (Files): Likewise.
74608         * modules/ftell-tests (Files): Likewise.
74609         * modules/ftello-tests (Files): Likewise.
74610         * modules/futimens-tests (Files): Likewise.
74611         * modules/getaddrinfo-tests (Files): Likewise.
74612         * modules/getcwd-tests (Files): Likewise.
74613         * modules/getdelim-tests (Files): Likewise.
74614         * modules/getdtablesize-tests (Files): Likewise.
74615         * modules/getgroups-tests (Files): Likewise.
74616         * modules/gethostname-tests (Files): Likewise.
74617         * modules/getline-tests (Files): Likewise.
74618         * modules/getopt-posix-tests (Files): Likewise.
74619         * modules/gettimeofday-tests (Files): Likewise.
74620         * modules/glob-tests (Files): Likewise.
74621         * modules/iconv-tests (Files): Likewise.
74622         * modules/inet_ntop-tests (Files): Likewise.
74623         * modules/inet_pton-tests (Files): Likewise.
74624         * modules/isblank-tests (Files): Likewise.
74625         * modules/lchown-tests (Files): Likewise.
74626         * modules/ldexpl-tests (Files): Likewise.
74627         * modules/link-tests (Files): Likewise.
74628         * modules/linkat-tests (Files): Likewise.
74629         * modules/lseek-tests (Files): Likewise.
74630         * modules/lstat-tests (Files): Likewise.
74631         * modules/mbrtowc-tests (Files): Likewise.
74632         * modules/mbsinit-tests (Files): Likewise.
74633         * modules/mbsnrtowcs-tests (Files): Likewise.
74634         * modules/mbsrtowcs-tests (Files): Likewise.
74635         * modules/memchr-tests (Files): Likewise.
74636         * modules/memcmp-tests (Files): Likewise.
74637         * modules/memmem-tests (Files): Likewise.
74638         * modules/memrchr-tests (Files): Likewise.
74639         * modules/mkdir-tests (Files): Likewise.
74640         * modules/mkfifo-tests (Files): Likewise.
74641         * modules/mkfifoat-tests (Files): Likewise.
74642         * modules/mknod-tests (Files): Likewise.
74643         * modules/nanosleep-tests (Files): Likewise.
74644         * modules/nl_langinfo-tests (Files): Likewise.
74645         * modules/obstack-printf-tests (Files): Likewise.
74646         * modules/open-tests (Files): Likewise.
74647         * modules/openat-tests (Files): Likewise.
74648         * modules/perror-tests (Files): Likewise.
74649         * modules/pipe2-tests (Files): Likewise.
74650         * modules/poll-tests (Files): Likewise.
74651         * modules/popen-tests (Files): Likewise.
74652         * modules/posix_spawn-tests (Files): Likewise.
74653         * modules/posix_spawnp-tests (Files): Likewise.
74654         * modules/pread-tests (Files): Likewise.
74655         * modules/printf-posix-tests (Files): Likewise.
74656         * modules/pty-tests (Files): Likewise.
74657         * modules/random_r-tests (Files): Likewise.
74658         * modules/rawmemchr-tests (Files): Likewise.
74659         * modules/readlink-tests (Files): Likewise.
74660         * modules/remove-tests (Files): Likewise.
74661         * modules/rename-tests (Files): Likewise.
74662         * modules/renameat-tests (Files): Likewise.
74663         * modules/rmdir-tests (Files): Likewise.
74664         * modules/round-tests (Files): Likewise.
74665         * modules/roundf-tests (Files): Likewise.
74666         * modules/roundl-tests (Files): Likewise.
74667         * modules/select-tests (Files): Likewise.
74668         * modules/setenv-tests (Files): Likewise.
74669         * modules/sigaction-tests (Files): Likewise.
74670         * modules/sleep-tests (Files): Likewise.
74671         * modules/snprintf-posix-tests (Files): Likewise.
74672         * modules/snprintf-tests (Files): Likewise.
74673         * modules/sprintf-posix-tests (Files): Likewise.
74674         * modules/stat-tests (Files): Likewise.
74675         * modules/strcasestr-tests (Files): Likewise.
74676         * modules/strchrnul-tests (Files): Likewise.
74677         * modules/strerror-tests (Files): Likewise.
74678         * modules/strsignal-tests (Files): Likewise.
74679         * modules/strstr-tests (Files): Likewise.
74680         * modules/strtod-tests (Files): Likewise.
74681         * modules/strverscmp-tests (Files): Likewise.
74682         * modules/symlink-tests (Files): Likewise.
74683         * modules/symlinkat-tests (Files): Likewise.
74684         * modules/times-tests (Files): Likewise.
74685         * modules/trunc-tests (Files): Likewise.
74686         * modules/truncf-tests (Files): Likewise.
74687         * modules/truncl-tests (Files): Likewise.
74688         * modules/tsearch-tests (Files): Likewise.
74689         * modules/uname-tests (Files): Likewise.
74690         * modules/unlink-tests (Files): Likewise.
74691         * modules/unsetenv-tests (Files): Likewise.
74692         * modules/usleep-tests (Files): Likewise.
74693         * modules/utimensat-tests (Files): Likewise.
74694         * modules/vasprintf-tests (Files): Likewise.
74695         * modules/vdprintf-posix-tests (Files): Likewise.
74696         * modules/vfprintf-posix-tests (Files): Likewise.
74697         * modules/vprintf-posix-tests (Files): Likewise.
74698         * modules/vsnprintf-posix-tests (Files): Likewise.
74699         * modules/vsnprintf-tests (Files): Likewise.
74700         * modules/vsprintf-posix-tests (Files): Likewise.
74701         * modules/wcrtomb-tests (Files): Likewise.
74702         * modules/wcsnrtombs-tests (Files): Likewise.
74703         * modules/wcsrtombs-tests (Files): Likewise.
74704         * modules/wcwidth-tests (Files): Likewise.
74705         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
74706         * tests/test-isinf.c (isinf): Likewise.
74707         * tests/test-isnan.c (isnan): Likewise.
74708         * tests/test-signbit.c (signbit): Likewise.
74709         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
74710         declaration, either as macro or with correct signature.
74711         (select): Ensure function under test is declared with correct
74712         signature in correct header.
74713         * tests/test-atexit.c (atexit): Likewise.
74714         * tests/test-btowc.c (btowc): Likewise.
74715         * tests/test-canonicalize-lgpl.c (realpath)
74716         (canonicalize_file_name): Likewise.
74717         * tests/test-ceilf1.c (ceilf): Likewise.
74718         * tests/test-ceill.c (ceill): Likewise.
74719         * tests/test-chown.c (chown): Likewise.
74720         * tests/test-dprintf-posix.c (dprintf): Likewise.
74721         * tests/test-dup2.c (dup2): Likewise.
74722         * tests/test-dup3.c (dup3): Likewise.
74723         * tests/test-duplocale.c (duplocale): Likewise.
74724         * tests/test-fchdir.c (fchdir): Likewise.
74725         * tests/test-fchownat.c (fchownat): Likewise.
74726         * tests/test-fcntl.c (fcntl): Likewise.
74727         * tests/test-fdopendir.c (fdopendir): Likewise.
74728         * tests/test-fflush.c (fflush): Likewise.
74729         * tests/test-flock.c (flock): Likewise.
74730         * tests/test-floorf1.c (floorf): Likewise.
74731         * tests/test-floorl.c (floorl): Likewise.
74732         * tests/test-fnmatch.c (fnmatch): Likewise.
74733         * tests/test-fopen.c (fopen): Likewise.
74734         * tests/test-fprintf-posix.c (fprintf): Likewise.
74735         * tests/test-freopen.c (freopen): Likewise.
74736         * tests/test-frexp.c (frexp): Likewise.
74737         * tests/test-frexpl.c (frexpl): Likewise.
74738         * tests/test-fseek.c (fseek): Likewise.
74739         * tests/test-fseeko.c (fseeko): Likewise.
74740         * tests/test-fstatat.c (fstatat): Likewise.
74741         * tests/test-fsync.c (fsync): Likewise.
74742         * tests/test-ftell.c (ftell): Likewise.
74743         * tests/test-ftello.c (ftello): Likewise.
74744         * tests/test-futimens.c (futimens): Likewise.
74745         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
74746         (gai_strerror): Likewise.
74747         * tests/test-getcwd.c (getcwd): Likewise.
74748         * tests/test-getdelim.c (getdelim): Likewise.
74749         * tests/test-getdtablesize.c (getdtablesize): Likewise.
74750         * tests/test-getgroups.c (getgroups): Likewise.
74751         * tests/test-gethostname.c (gethostname): Likewise.
74752         * tests/test-getline.c (getline): Likewise.
74753         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
74754         Likewise.
74755         * tests/test-gettimeofday.c (gettimeofday): Likewise.
74756         * tests/test-glob.c (glob, globfree): Likewise.
74757         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
74758         * tests/test-inet_ntop.c (inet_ntop): Likewise.
74759         * tests/test-inet_pton.c (inet_pton): Likewise.
74760         * tests/test-isblank.c (isblank): Likewise.
74761         * tests/test-lchown.c (lchown): Likewise.
74762         * tests/test-ldexpl.c (ldexpl): Likewise.
74763         * tests/test-link.c (link): Likewise.
74764         * tests/test-linkat.c (linkat): Likewise.
74765         * tests/test-lseek.c (lseek): Likewise.
74766         * tests/test-lstat.c (lstat): Likewise.
74767         * tests/test-mbrtowc.c (mbrtowc): Likewise.
74768         * tests/test-mbsinit.c (mbsinit): Likewise.
74769         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
74770         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
74771         * tests/test-memchr.c (memchr): Likewise.
74772         * tests/test-memcmp.c (memcmp): Likewise.
74773         * tests/test-memmem.c (memmem): Likewise.
74774         * tests/test-memrchr.c (memrchr): Likewise.
74775         * tests/test-mkdir.c (mkdir): Likewise.
74776         * tests/test-mkdirat.c (mkdirat): Likewise.
74777         * tests/test-mkfifo.c (mkfifo): Likewise.
74778         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
74779         * tests/test-mknod.c (mknod): Likewise.
74780         * tests/test-nanosleep.c (nanosleep): Likewise.
74781         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
74782         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
74783         Likewise.
74784         * tests/test-open.c (open): Likewise.
74785         * tests/test-openat.c (openat): Likewise.
74786         * tests/test-perror.c (perror): Likewise.
74787         * tests/test-pipe2.c (pipe2): Likewise.
74788         * tests/test-poll.c (poll): Likewise.
74789         * tests/test-popen.c (popen, pclose): Likewise.
74790         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
74791         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
74792         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
74793         (posix_spawn_file_actions_destroy)
74794         (posix_spawn_file_actions_addclose)
74795         (posix_spawn_file_actions_addopen)
74796         (posix_spawn_file_actions_adddup2): Likewise.
74797         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
74798         * tests/test-pread.c (pread): Likewise.
74799         * tests/test-printf-posix.c (printf): Likewise.
74800         * tests/test-pty.c (openpty, forkpty): Likewise.
74801         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
74802         (random_r): Likewise.
74803         * tests/test-rawmemchr.c (rawmemchr): Likewise.
74804         * tests/test-readlink.c (readlink): Likewise.
74805         * tests/test-remove.c (remove): Likewise.
74806         * tests/test-rename.c (rename): Likewise.
74807         * tests/test-renameat.c (renameat): Likewise.
74808         * tests/test-rmdir.c (rmdir): Likewise.
74809         * tests/test-round1.c (round): Likewise.
74810         * tests/test-roundf1.c (roundf): Likewise.
74811         * tests/test-roundl.c (roundl): Likewise.
74812         * tests/test-setenv.c (setenv): Likewise.
74813         * tests/test-sigaction.c (sigaction): Likewise.
74814         * tests/test-sleep.c (sleep): Likewise.
74815         * tests/test-snprintf.c (snprintf): Likewise.
74816         * tests/test-sprintf-posix.c (sprintf): Likewise.
74817         * tests/test-stat.c (stat): Likewise.
74818         * tests/test-stpncpy.c (stpncpy): Likewise.
74819         * tests/test-strcasestr.c (strcasestr): Likewise.
74820         * tests/test-strchrnul.c (strchrnul): Likewise.
74821         * tests/test-strerror.c (strerror): Likewise.
74822         * tests/test-strsignal.c (strsignal): Likewise.
74823         * tests/test-strstr.c (strstr): Likewise.
74824         * tests/test-strtod.c (strtod): Likewise.
74825         * tests/test-strverscmp.c (strverscmp): Likewise.
74826         * tests/test-symlink.c (symlink): Likewise.
74827         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
74828         * tests/test-times.c (times): Likewise.
74829         * tests/test-trunc1.c (trunc): Likewise.
74830         * tests/test-truncf1.c (truncf): Likewise.
74831         * tests/test-truncl.c (truncl): Likewise.
74832         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
74833         Likewise.
74834         * tests/test-uname.c (uname): Likewise.
74835         * tests/test-unlink.c (unlink): Likewise.
74836         * tests/test-unlinkat.c (unlinkat): Likewise.
74837         * tests/test-unsetenv.c (unsetenv): Likewise.
74838         * tests/test-usleep.c (usleep): Likewise.
74839         * tests/test-utimensat.c (utimensat): Likewise.
74840         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
74841         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
74842         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
74843         * tests/test-vprintf-posix.c (vprintf): Likewise.
74844         * tests/test-vsnprintf.c (vsnprintf): Likewise.
74845         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
74846         * tests/test-wcrtomb.c (wcrtomb): Likewise.
74847         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
74848         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
74849         * tests/test-wcwidth.c (wcwidth): Likewise.
74851         build: pull in conditional headers during GNULIB_POSIXCHECK
74852         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
74853         definitions from any conditionally-included headers.
74854         * lib/stdlib.in.h (includes): Likewise.
74855         * lib/unistd.in.h (includes): Likewise.
74857 2009-12-24  Bruno Haible  <bruno@clisp.org>
74859         * tests/test-argv-iter.c: Include header file being tested immediately
74860         after config.h.
74861         * tests/test-base64.c: Likewise.
74862         * tests/test-flock.c: Likewise.
74863         * tests/test-fsync.c: Likewise.
74864         * tests/test-getdate.c: Likewise.
74865         * tests/test-getndelim2.c: Likewise.
74866         * tests/test-isfinite.c: Likewise.
74867         * tests/test-isinf.c: Likewise.
74868         * tests/test-strerror.c: Likewise.
74869         * tests/test-strsignal.c: Likewise.
74871 2009-12-23  Eric Blake  <ebb9@byu.net>
74873         unistd: work around cygwin bug
74874         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
74875         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
74876         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
74878 2009-12-23  Bruno Haible  <bruno@clisp.org>
74880         localename: More tests.
74881         * tests/test-localename.c (SIZEOF): New macro.
74882         (categories): New variable.
74883         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
74884         test_locale_name_default): Add test w.r.t. thread locale.
74885         (test_locale_name_thread): New function.
74886         (main): Invoke it.
74888         localename: Make aware of thread locale.
74889         * lib/localename.h (gl_locale_name_thread): New declaration.
74890         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
74891         behaviour with respect to thread locale.
74892         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
74893         <langinfo.h>, glthread/lock.h.
74894         (SIZE_BITS): New macro.
74895         (string_hash): New function.
74896         (struct hash_node): New type.
74897         (HASH_TABLE_SIZE): New macro.
74898         (struniq_hash_table, struniq_lock): New variables.
74899         (struniq): New function.
74900         (gl_locale_name_thread): New function.
74901         (gl_locale_name): Invoke it.
74902         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
74903         * modules/localename (Depends-on): Add lock.
74904         Reported by Mike Gran <spk121@yahoo.com>.
74906 2009-12-23  Eric Blake  <ebb9@byu.net>
74908         va-args: new module
74909         * modules/va-args: New file.
74910         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
74911         * MODULES.html.sh (Core language properties): Mention it.
74913         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
74914         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
74915         named alias for __attribute__((__unused__)).
74916         * lib/chown.c: Update client.
74917         * lib/fchmodat.c: Likewise.
74918         * lib/fts.c: Likewise.
74919         * lib/getdate.y: Likewise.
74920         * lib/getgroups.c: Likewise.
74921         * lib/getopt.c: Likewise.
74922         * lib/getugroups.c: Likewise.
74923         * lib/mkdir.c: Likewise.
74924         * lib/mkfifo.c: Likewise.
74925         * lib/mkfifoat.c: Likewise.
74926         * lib/mknod.c: Likewise.
74927         * lib/mknodat.c: Likewise.
74928         * lib/readlink.c: Likewise.
74929         * lib/se-context.in.h: Likewise.
74930         * lib/se-selinux.in.h: Likewise.
74931         * lib/sockets.c: Likewise.
74932         * lib/symlink.c: Likewise.
74933         * lib/symlinkat.c: Likewise.
74934         * lib/unicodeio.c: Likewise.
74935         * lib/unistr.h: Likewise.
74936         * tests/test-areadlink.c: Likewise.
74937         * tests/test-areadlinkat.c: Likewise.
74938         * tests/test-filenamecat.c: Likewise.
74939         * tests/test-fseeko.c: Likewise.
74940         * tests/test-ftello.c: Likewise.
74941         * tests/test-getdate.c: Likewise.
74942         * tests/test-getgroups.c: Likewise.
74943         * tests/test-gethostname.c: Likewise.
74944         * tests/test-quotearg.c: Likewise.
74945         * tests/test-version-etc.c: Likewise.
74946         * tests/test-xalloc-die.c: Likewise.
74947         * tests/test-xfprintf-posix.c: Likewise.
74948         * tests/test-xprintf-posix.c: Likewise.
74949         * tests/test-xvasprintf.c: Likewise.
74951         tests: avoid compiler warnings
74952         * tests/test-fcntl.c (main): Delete unused parameters.
74953         * tests/test-freopen-safer.c (main): Likewise.
74954         * tests/test-xalloc-die.c (main): Mark unused parameters.
74955         * tests/test-fseeko.c (main): Likewise.
74956         * tests/test-ftello.c (main): Likewise.
74957         * tests/test-nanosleep.c (main): Avoid declaration warning.
74958         * tests/test-sleep.c (main): Likewise.
74959         * tests/test-unsetenv.c (main): Silence warning about string
74960         literal.
74961         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
74963 2009-12-23  Bruno Haible  <bruno@clisp.org>
74965         * tests/test-localename.c (test_locale_name): New function, extracted
74966         from main. Also test mixed situations.
74967         (test_locale_name_posix, test_locale_name_environ,
74968         test_locale_name_default): New functions.
74969         (main): Invoke them all.
74970         * modules/localename-tests (configure.ac): Test for newlocale.
74972 2009-12-23  Bruno Haible  <bruno@clisp.org>
74974         unistd: Ensure getcwd gets declared before being overridden.
74975         * lib/unistd.in.h: Conditionally include <io.h>.
74977 2009-12-22  Bruno Haible  <bruno@clisp.org>
74979         wchar: Diagnose broken combination of glibc and gcc versions and flags.
74980         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
74981         (gl_WCHAR_H): Invoke it.
74982         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
74983         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
74984         Reported by Karl Berry <karl@freefriends.org>.
74986 2009-12-22  Eric Blake  <ebb9@byu.net>
74988         math, unistd: avoid redundant includes
74989         * lib/math.in.h (isnan): No need to re-include <math.h>.
74990         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
74992         getsubopt: work around cygwin bug
74993         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
74994         avoid conflicting with system getsubopt.
74995         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
74996         bug.
74998         getopt: synchronize from glibc
74999         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75000         parameter order.  Adjust all callers.
75001         (_getopt_internal_r, main): Adjust quoting in error messages.
75002         Drop considerations for outdated POSIX 1003.2 error message.
75003         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75004         callers.
75005         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75007         test-getopt: test stderr behavior
75008         * modules/getopt-posix-tests (Depends-on): Add dup2.
75009         * tests/test-getopt.c (ASSERT): Avoid stderr.
75010         (main): Move stderr to a temporary file.
75011         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75012         Instead, add parameter to inform caller if output occurred.
75013         (test_getopt): Adjust all existing tests to expect silence, and
75014         add new tests of leading ":".
75015         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75016         glibc shortcomings with leading "-:" or "+:" in optstring.
75017         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75018         Likewise.
75019         * doc/posix-functions/getopt.texi (getopt): Likewise.
75021         test-getopt: enhance test
75022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75023         supports optind=0.
75024         * tests/test-getopt.c (OPTIND_MIN): Move...
75025         * tests/test-getopt.h (OPTIND_MIN): ...here.
75026         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75027         Require that optind=0 works, since modern BSD supports it in
75028         addition to optreset, and since coreutils expects it.
75029         (test_getopt_long_only): New test.
75030         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75031         glibc shortcomings with 'W;', and enforcement of optind=0.
75032         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75033         Likewise.
75035 2009-12-21  Bruno Haible  <bruno@clisp.org>
75037         localename: Improvements for MacOS X and Cygwin.
75038         * lib/localename.h (gl_locale_name_environ): New declaration.
75039         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75040         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75041         (gl_locale_name_posix): Invoke it.
75042         (gl_locale_name_default): Add comments. Use Windows native API also on
75043         Cygwin.
75045 2009-12-21  Bruno Haible  <bruno@clisp.org>
75047         Update list of Win32 locale ids.
75048         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75049         (LANG_SAMI): Renamed from LANG_SAAMI.
75050         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75051         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75052         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75053         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75054         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75055         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75056         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75057         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75058         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75059         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75060         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75061         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75062         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75063         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75064         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75065         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75066         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75067         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75068         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75069         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75070         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75071         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75072         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75073         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75074         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75075         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75076         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75077         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75078         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75079         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75080         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75081         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75082         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75083         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75084         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75085         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75086         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75087         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75088         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75089         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75090         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75091         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75092         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75093         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75094         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75095         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75096         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75097         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75098         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75099         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75100         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75101         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75102         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75103         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75104         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75105         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75106         Add more languages and countries for Sami, Sorbian. Add more countries
75107         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75108         for Pashto. Change country for Syriac, Tswana.
75110 2009-12-21  Eric Blake  <ebb9@byu.net>
75112         test-utimens: avoid spurious failure
75113         * tests/test-chown.h (nap): Factor...
75114         * tests/nap.h: ...into new file.
75115         * tests/test-lchown.h (nap): Avoid duplication.
75116         * tests/test-utimens-common.h (nap): Use shared implementation,
75117         necessary on file systems with 1-second resolution.
75118         * modules/chown-tests (Files): Include new file.
75119         * modules/fdutimensat-tests (Files): Likewise.
75120         * modules/futimens-tests (Files): Likewise.
75121         * modules/lchown-tests (Files): Likewise.
75122         * modules/openat-tests (Files): Likewise.
75123         * modules/utimens-tests (Files): Likewise.
75124         * modules/utimensat-tests (Files): Likewise.
75126 2009-12-19  Eric Blake  <ebb9@byu.net>
75128         futimens, utimensat: work around Linux bug
75129         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75130         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75131         * lib/utimensat.c (rpl_utimensat): Work around it.
75132         * lib/futimens.c (rpl_futimens): Adjust comment.
75134         utimens: work around Linux ctime bug
75135         * lib/utimens.c (detect_ctime_bug): New helper function.
75136         (update_timespec): Differentiate between workaround needed for
75137         this bug vs. what is needed for systems that lack utimensat.
75138         (fdutimens, lutimens): Work around bug.
75140         utimens: check for ctime update
75141         * tests/test-utimens-common.h (check_ctime): Define.
75142         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75143         * tests/test-futimens.h (test_futimens): Likewise.
75144         * tests/test-lutimens.h (test_lutimens): Likewise.
75145         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75146         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75148 2009-12-19  Bruno Haible  <bruno@clisp.org>
75150         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75151         * tests/test-dprintf-posix2.sh: New file.
75152         * tests/test-dprintf-posix2.c: New file.
75153         * modules/dprintf-posix-tests (Files): Add them.
75154         (configure.ac): Check for getrlimit and setrlimit.
75155         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75157 2009-12-19  Bruno Haible  <bruno@clisp.org>
75159         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75160         * tests/test-fprintf-posix3.sh: New file.
75161         * tests/test-fprintf-posix3.c: New file.
75162         * modules/fprintf-posix-tests (Files): Add them.
75163         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75165 2009-12-19  Eric Blake  <ebb9@byu.net>
75167         dirfd: fix prototype
75168         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75169         * lib/dirfd.c (dirfd): Likewise.
75171         canonicalize: reduce memory usage
75172         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75173         allocation to size.
75174         Reported by Solar Designer <solar@openwall.com>.
75176 2009-12-19  Bruno Haible  <bruno@clisp.org>
75178         New module attribute 'Applicability'.
75179         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75180         * gnulib-tool: New option --extract-applicability.
75181         (func_usage): Document it.
75182         (sed_extract_prog): Recognize it.
75183         (func_get_applicability): New function.
75184         (func_import): Generalize handling of 'link-warning' module.
75185         * modules/link-warning (Applicability): New section.
75186         * modules/arg-nonnull (Applicability): New section.
75187         Repoted by Simon Josefsson <simon@josefsson.org>.
75189 2009-12-19  Bruno Haible  <bruno@clisp.org>
75191         fflush: tweak
75192         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75193         * lib/fseeko.c (rpl_fseeko): Likewise.
75195 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75197         * lib/gl_list.h: Fix typo in comment.
75199 2009-12-16  Eric Blake  <ebb9@byu.net>
75201         fcntl: use to simplify other modules
75202         * modules/cloexec (Depends-on): Add fcntl.
75203         * modules/fchdir (Depends-on): Likewise.
75204         * modules/fd-safer-flag (Depends-on): Likewise.
75205         * modules/unistd-safer (Depends-on): Likewise.
75206         * modules/dup3 (configure.ac): Set module indicator.
75207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75208         missing.
75209         * lib/fchdir.c (_gl_register_dup): Fix comment.
75210         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
75211         * lib/dup-safer.c (dup_safer): Likewise.
75212         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
75213         * lib/dup3.c (dup3): Likewise.
75214         * tests/test-fchdir.c (main): Enhance test.
75215         Fixes a dup_cloexec bug reported by Ondřej Vašík.
75217         fcntl: port portions of fcntl to mingw
75218         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
75219         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
75220         replacement for mingw.
75221         * modules/fcntl (Description): Update.
75222         (Depends-on): Add dup2.
75223         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
75224         * modules/fcntl-h (Makefile.am): Substitute it.
75225         * lib/fcntl.in.h (fcntl): Update declaration.
75226         (F_DUPFD, F_GETFD): New macros, when needed.
75227         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75228         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
75229         * tests/test-fcntl.c (check_flags, main): Enhance test for items
75230         we now guarantee.
75232         fcntl: work around cygwin bug in F_DUPFD
75233         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
75234         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
75235         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
75236         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
75237         * doc/posix-functions/fcntl.texi (fcntl): Document it.
75239         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
75240         * modules/fcntl (Files): List new files.
75241         (configure.ac): Run a test.
75242         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
75243         * lib/fcntl.c (rpl_fcntl): Likewise.
75244         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
75245         (gl_FCNTL_H): Always replace fcntl.h.
75246         * modules/fcntl-h (Makefile.am): Substitute witnesses.
75247         * lib/fcntl.in.h (fcntl): Declare replacement.
75248         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75249         needed, plus a witness.
75250         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75251         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75252         * tests/test-fcntl.c: New file.
75253         * modules/fcntl-tests: Likewise.
75255         binary-io: avoid potential compilation warning
75256         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75257         directives.
75259         fflush: avoid compilation error on NetBSD
75260         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75261         between off_t and fpos_t, since the latter is sometimes a struct.
75262         * lib/fseeko.c (rpl_fseeko): Likewise.
75263         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75265 2009-12-15  Eric Blake  <ebb9@byu.net>
75267         fcntl-h, stdio, sys_ioctl: fix declarations
75268         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75269         function must not take arguments.
75270         * lib/sys_ioctl.in.h (ioctl): Likewise.
75271         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75272         (open): Add a link warning.
75274 2009-12-15  Jim Meyering  <meyering@redhat.com>
75276         areadlink, areadlink-with-size: relax license to LGPLv2+
75277         * modules/areadlink (License): Relax to LGPLv2+.
75278         * modules/areadlink-with-size (License): Likewise.
75280 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75281             Bruno Haible  <bruno@clisp.org>
75283         *printf: Fix memory leak.
75284         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75285         * lib/vfprintf.c (vfprintf): Likewise.
75286         * lib/dprintf.c (dprintf): Likewise.
75287         * lib/vdprintf.c (vdprintf): Likewise.
75289 2009-12-14  Eric Blake  <ebb9@byu.net>
75291         accept4: adjust module dependencies
75292         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75294         utimens: one more try at avoiding compiler warning
75295         * lib/utimens.c (lutimens): Lower scope of result.
75297 2009-12-13  Bruno Haible  <bruno@clisp.org>
75299         Move the malloc checking from module 'list' to new module 'xlist'.
75300         * modules/xlist: New file.
75301         * lib/gl_xlist.h: New file.
75302         * lib/gl_xlist.c: New file.
75303         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75304         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75305         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75306         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75307         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75308         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75309         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75310         gl_sortedlist_nx_add): New declarations.
75311         (struct gl_list_implementation): Rename and change methods accordingly.
75312         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75313         (gl_list_nx_create): Renamed from gl_list_create.
75314         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75315         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75316         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75317         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75318         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75319         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75320         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75321         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75322         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75323         gl_list_create_empty.
75324         (gl_list_nx_create): Renamed from gl_list_create.
75325         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75326         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75327         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75328         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75329         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75330         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75331         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75332         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75333         * lib/gl_array_list.c: Don't include xalloc.h.
75334         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75335         NULL upon out-of-memory.
75336         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75337         out-of-memory.
75338         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75339         Change return type to 'int'.
75340         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75341         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75342         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75343         upon out-of-memory.
75344         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75345         upon out-of-memory.
75346         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75347         upon out-of-memory.
75348         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75349         upon out-of-memory.
75350         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75351         out-of-memory.
75352         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75353         Update.
75354         (gl_array_list_implementation): Update.
75355         * lib/gl_carray_list.c: Don't include xalloc.h.
75356         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75357         Return NULL upon out-of-memory.
75358         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75359         out-of-memory.
75360         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75361         Change return type to 'int'.
75362         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75363         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75364         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75365         upon out-of-memory.
75366         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75367         upon out-of-memory.
75368         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75369         out-of-memory.
75370         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75371         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75372         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75373         Update.
75374         (gl_carray_list_implementation): Update.
75375         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75376         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75377         gl_linked_create_empty. Return NULL upon out-of-memory.
75378         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75379         out-of-memory.
75380         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
75381         Change return type to 'int'. Return -1 upon out-of-memory.
75382         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
75383         out-of-memory.
75384         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
75385         upon out-of-memory.
75386         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
75387         upon out-of-memory.
75388         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
75389         NULL upon out-of-memory.
75390         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
75391         upon out-of-memory.
75392         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
75393         out-of-memory.
75394         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
75395         Update.
75396         * lib/gl_linked_list.c: Don't include xalloc.h.
75397         (gl_linked_list_implementation): Update.
75398         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
75399         (add_to_bucket): Change return type to 'int'.
75400         (gl_linkedhash_list_implementation): Update.
75401         * lib/gl_anytree_list1.h (free_subtree): New function.
75402         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
75403         gl_tree_create_empty. Return NULL upon out-of-memory.
75404         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
75405         Change return type to 'int'. Return -1 upon out-of-memory.
75406         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
75407         out-of-memory.
75408         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
75409         (gl_tree_remove_node): New function, moved here from
75410         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
75411         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
75412         Update.
75413         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
75414         malloc, not xmalloc. Return NULL upon out-of-memory.
75415         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75416         out-of-memory.
75417         (gl_tree_remove_node_from_tree): New function, extracted from
75418         gl_tree_remove_node.
75419         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75420         upon out-of-memory.
75421         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75422         out-of-memory.
75423         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75424         upon out-of-memory.
75425         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75426         upon out-of-memory.
75427         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75428         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
75429         not xmalloc. Return NULL upon out-of-memory.
75430         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75431         out-of-memory.
75432         (gl_tree_remove_node_from_tree): New function, extracted from
75433         gl_tree_remove_node.
75434         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75435         upon out-of-memory.
75436         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75437         out-of-memory.
75438         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75439         upon out-of-memory.
75440         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75441         upon out-of-memory.
75442         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75443         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
75444         gl_anytree_list1.h before gl_anyavltree_list2.h.
75445         (gl_avltree_list_implementation): Update.
75446         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
75447         gl_anytree_list1.h before gl_anyavltree_list2.h.
75448         (gl_rbtree_list_implementation): Update.
75449         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
75450         Change return type to 'int'. Return -1 upon out-of-memory. Use
75451         __builtin_expect.
75452         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
75453         (gl_avltreehash_list_implementation): Update.
75454         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
75455         (gl_rbtreehash_list_implementation): Update.
75456         * modules/array-list (Depends-on): Remove xalloc.
75457         * modules/carray-list (Depends-on): Likewise.
75458         * modules/linked-list (Depends-on): Likewise.
75459         * modules/linkedhash-list (Depends-on): Likewise.
75460         * modules/avltree-list (Depends-on): Likewise.
75461         * modules/rbtree-list (Depends-on): Likewise.
75462         * modules/avltreehash-list (Depends-on): Likewise.
75463         * modules/rbtreehash-list (Depends-on): Likewise.
75465         * modules/xsublist: New file.
75466         * lib/gl_xsublist.h: New file.
75467         * lib/gl_xsublist.c: New file.
75468         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
75469         (gl_sublist_nx_create): New declaration.
75470         * lib/gl_sublist.c: Don't include xalloc.h.
75471         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
75472         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
75473         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
75474         Change return type to 'int'. Return -1 upon out-of-memory.
75475         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
75476         upon out-of-memory.
75477         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
75478         NULL upon out-of-memory.
75479         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
75480         upon out-of-memory.
75481         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
75482         NULL upon out-of-memory.
75483         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
75484         NULL upon out-of-memory.
75485         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
75486         upon out-of-memory.
75487         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
75488         (gl_sublist_list_implementation): Update.
75489         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
75490         upon out-of-memory.
75491         * modules/sublist (Depends-on): Remove xalloc.
75493         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
75494         * tests/test-carray_list.c: Likewise.
75495         * tests/test-linked_list.c: Likewise.
75496         * tests/test-linkedhash_list.c: Likewise.
75497         * tests/test-avltree_list.c: Likewise.
75498         * tests/test-rbtree_list.c: Likewise.
75499         * tests/test-avltreehash_list.c: Likewise.
75500         * tests/test-rbtreehash_list.c: Likewise.
75501         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
75502         * modules/carray-list-tests (Makefile.am): Likewise.
75503         * modules/linked-list-tests (Makefile.am): Likewise.
75504         * modules/linkedhash-list-tests (Makefile.am): Likewise.
75505         * modules/avltree-list-tests (Makefile.am): Likewise.
75506         * modules/rbtree-list-tests (Makefile.am): Likewise.
75507         * modules/avltreehash-list-tests (Makefile.am): Likewise.
75508         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
75510         * NEWS: Mention the changes.
75512         * lib/clean-temp.c: Include gl_xlist.h.
75513         * modules/clean-temp (Depends-on): Add xlist.
75515         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
75516         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
75518         * tests/test-array_oset.c: Include gl_xlist.h.
75519         * modules/array-oset-tests (Depends-on): Add xlist.
75521         Reported by José E. Marchesi <jemarch@gnu.org>.
75523 2009-12-13  Bruno Haible  <bruno@clisp.org>
75525         Move the malloc checking from module 'oset' to new module 'xoset'.
75526         * modules/xoset: New file.
75527         * lib/gl_xoset.h: New file.
75528         * lib/gl_xoset.c: New file.
75529         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
75530         declarations.
75531         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
75532         (struct gl_oset_implementation): Rename and change methods accordingly.
75533         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
75534         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75535         'int'. Mark as __warn_unused_result__.
75536         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
75537         gl_oset_create_empty.
75538         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75539         'int'.
75540         * lib/gl_array_oset.c: Don't include xalloc.h.
75541         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
75542         malloc, not xmalloc.
75543         (grow): Change return type to 'int'. Don't call xalloc_die.
75544         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
75545         to 'int'.
75546         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
75547         'int'.
75548         (gl_array_oset_implementation): Update.
75549         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
75550         gl_tree_create_empty.
75551         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
75552         'int'.
75553         * lib/gl_avltree_oset.c: Don't include xalloc.h.
75554         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75555         xmalloc.
75556         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75557         not xmalloc.
75558         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75559         xmalloc.
75560         (gl_avltree_oset_implementation): Update.
75561         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
75562         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75563         xmalloc.
75564         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75565         not xmalloc.
75566         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75567         xmalloc.
75568         (gl_rbtree_oset_implementation): Update.
75569         * modules/array-oset (Depends-on): Remove xalloc.
75570         * modules/avltree-oset (Depends-on): Likewise.
75571         * modules/rbtree-oset (Depends-on): Likewise.
75572         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
75573         * tests/test-avltree_oset.c: Likewise.
75574         * tests/test-rbtree_oset.c: Likewise.
75575         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75576         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
75577         * modules/rbtree-oset-tests (Makefile.am): Likewise.
75578         * NEWS: Mention the change.
75580 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
75582         maint.mk: allow a project to override release-prep commands
75583         * top/maint.mk (alpha, beta, stable): Move release-preparatory
75584         commands into a new rule.
75585         (release-prep): New rule.
75586         (release-prep-hook): New overridable variable.
75588 2009-12-13  Bruno Haible  <bruno@clisp.org>
75590         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
75592 2009-12-13  Jim Meyering  <meyering@redhat.com>
75594         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
75595         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
75597 2009-12-12  Bruno Haible  <bruno@clisp.org>
75599         duplocale: Tweak.
75600         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
75602 2009-12-12  Karl Berry  <karl@gnu.org>
75604         * config/srclist.txt (strtoll.c): tab changes, no more sync.
75606 2009-12-12  Bruno Haible  <bruno@clisp.org>
75608         * m4/po.m4: Undo incorrect untabification.
75610 2009-12-12  Bruno Haible  <bruno@clisp.org>
75612         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
75613         * modules/c-strtod (Depends-on): Add locale.
75614         * modules/c-strtold (Depends-on): Likewise.
75616 2009-12-12  Bruno Haible  <bruno@clisp.org>
75618         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
75620 2009-12-11  Eric Blake  <ebb9@byu.net>
75622         setenv: relax requirement in light of POSIX ruling
75623         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
75624         not NULL.
75625         * tests/test-setenv.c (main): Relax test.
75626         * tests/test-unsetenv.c (main): Likewise.
75627         * doc/posix-functions/setenv.texi (setenv): Document this.
75628         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
75630 2009-12-11  Bruno Haible  <bruno@clisp.org>
75632         New module 'fd-safer-flag'.
75633         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
75634         * lib/dup-safer.c (dup_safer_flag): Remove function.
75635         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
75636         * lib/fd-safer.c (fd_safer_flag): Remove function.
75637         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
75638         * modules/cloexec (configure.ac): Drop indicator macro.
75639         * modules/fd-safer-flag: New file.
75640         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
75641         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
75642         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
75644 2009-12-11  Bruno Haible  <bruno@clisp.org>
75646         Tests for module 'nl_langinfo'.
75647         * modules/nl_langinfo-tests: New file.
75648         * tests/test-nl_langinfo.sh: New file.
75649         * tests/test-nl_langinfo.c: New file.
75651         New module 'nl_langinfo'.
75652         * lib/nl_langinfo.c: New file.
75653         * m4/nl_langinfo.m4: New file.
75654         * modules/nl_langinfo: New file.
75655         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
75657 2009-12-11  Bruno Haible  <bruno@clisp.org>
75659         Tests for module 'langinfo'.
75660         * modules/langinfo-tests: New file.
75661         * tests/test-langinfo.c: New file.
75663         New module 'langinfo'.
75664         * lib/langinfo.in.h: New file.
75665         * m4/langinfo_h.m4: New file.
75666         * modules/langinfo: New file.
75667         * doc/posix-headers/langinfo.texi: Mention the new module.
75669 2009-12-11  Bruno Haible  <bruno@clisp.org>
75671         * lib/config.charset: Untabify.
75673 2009-12-11  Bruno Haible  <bruno@clisp.org>
75675         * modules/unistd-safer (configure.ac): Drop indicator macro.
75677 2009-12-11  Bruno Haible  <bruno@clisp.org>
75679         Move pipe2-safer code to its own file.
75680         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
75681         * lib/pipe-safer.c (pipe2_safer): Remove function.
75682         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
75683         (Makefile.am): Add it to lib_SOURCES.
75685 2009-12-10  Bruno Haible  <bruno@clisp.org>
75687         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
75689 2009-12-10  Bruno Haible  <bruno@clisp.org>
75691         Declare which arguments expect non-NULL values, for GCC and clang.
75692         * build-aux/arg-nonnull.h: New file.
75693         * modules/arg-nonnull: New file.
75694         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
75695         (inet_ntop, inet_pton): Use it.
75696         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
75697         (closedir, dirfd, opendir, scandir, alphasort): Use it.
75698         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
75699         (open, openat): Use it.
75700         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
75701         (fnmatch): Use it.
75702         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
75703         (getopt, getopt_long, getopt_long_only): Use it.
75704         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
75705         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
75706         Use it.
75707         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
75708         (iconv_open): Use it.
75709         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
75710         (strtoimax, strtoumax): Use it.
75711         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
75712         (duplocale): Use it.
75713         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
75714         (frexp, frexpl): Use it.
75715         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
75716         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
75717         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
75718         (tsearch, tfind, tdelete, twalk): Use it.
75719         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
75720         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
75721         sigpending): Use it.
75722         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
75723         (posix_spawn, posix_spawnp, posix_spawnattr_init,
75724         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
75725         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
75726         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
75727         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
75728         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
75729         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
75730         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
75731         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
75732         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
75733         Use it.
75734         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
75735         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
75736         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
75737         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
75738         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
75739         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
75740         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
75741         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
75742         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
75743         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
75744         strtoull, unsetenv): Use it.
75745         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
75746         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
75747         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
75748         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
75749         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
75750         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
75751         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
75752         (strcasecmp, strncasecmp): Use it.
75753         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
75754         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
75755         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
75756         rpl_setsockopt): Use it.
75757         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
75758         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
75759         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
75760         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
75761         (gettimeofday): Use it.
75762         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
75763         (times): Use it.
75764         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
75765         (uname): Use it.
75766         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
75767         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
75768         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
75769         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
75770         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
75771         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
75772         unlinkat, write): Use it.
75773         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
75774         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
75775         * lib/argv-iter.h: Include arg-nonnull.h.
75776         (_ATTRIBUTE_NONNULL_): Remove macro.
75777         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
75778         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
75779         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
75780         optimization.
75781         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
75782         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
75783         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
75784         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
75785         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
75786         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
75787         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
75788         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
75789         * modules/arpa_inet (Depends-on): Add arg-nonnull.
75790         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
75791         * modules/dirent (Depends-on): Add arg-nonnull.
75792         (Makefile.am): Insert arg-nonnull.h into dirent.h.
75793         * modules/fcntl-h (Depends-on): Add arg-nonnull.
75794         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
75795         * modules/fnmatch (Depends-on): Add arg-nonnull.
75796         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
75797         * modules/getopt-posix (Depends-on): Add arg-nonnull.
75798         (Makefile.am): Insert arg-nonnull.h into getopt.h.
75799         * modules/glob (Depends-on): Add arg-nonnull.
75800         (Makefile.am): Insert arg-nonnull.h into glob.h.
75801         * modules/iconv_open (Depends-on): Add arg-nonnull.
75802         (Makefile.am): Insert arg-nonnull.h into iconv.h.
75803         * modules/inttypes (Depends-on): Add arg-nonnull.
75804         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
75805         * modules/locale (Depends-on): Add arg-nonnull.
75806         (Makefile.am): Insert arg-nonnull.h into locale.h.
75807         * modules/math (Depends-on): Add arg-nonnull.
75808         (Makefile.am): Insert arg-nonnull.h into math.h.
75809         * modules/netdb (Depends-on): Add arg-nonnull.
75810         (Makefile.am): Insert arg-nonnull.h into netdb.h.
75811         * modules/search (Depends-on): Add arg-nonnull.
75812         (Makefile.am): Insert arg-nonnull.h into search.h.
75813         * modules/signal (Depends-on): Add arg-nonnull.
75814         (Makefile.am): Insert arg-nonnull.h into signal.h.
75815         * modules/spawn (Depends-on): Add arg-nonnull.
75816         (Makefile.am): Insert arg-nonnull.h into spawn.h.
75817         * modules/stdio (Depends-on): Add arg-nonnull.
75818         (Makefile.am): Insert arg-nonnull.h into stdio.h.
75819         * modules/stdlib (Depends-on): Add arg-nonnull.
75820         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
75821         * modules/string (Depends-on): Add arg-nonnull.
75822         (Makefile.am): Insert arg-nonnull.h into string.h.
75823         * modules/strings (Depends-on): Add arg-nonnull.
75824         (Makefile.am): Insert arg-nonnull.h into strings.h.
75825         * modules/sys_socket (Depends-on): Add arg-nonnull.
75826         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
75827         * modules/sys_stat (Depends-on): Add arg-nonnull.
75828         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
75829         * modules/sys_time (Depends-on): Add arg-nonnull.
75830         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
75831         * modules/sys_times (Depends-on): Add arg-nonnull.
75832         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
75833         * modules/sys_utsname (Depends-on): Add arg-nonnull.
75834         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
75835         * modules/time (Depends-on): Add arg-nonnull.
75836         (Makefile.am): Insert arg-nonnull.h into time.h.
75837         * modules/unistd (Depends-on): Add arg-nonnull.
75838         (Makefile.am): Insert arg-nonnull.h into unistd.h.
75839         * modules/wchar (Depends-on): Add arg-nonnull.
75840         (Makefile.am): Insert arg-nonnull.h into wchar.h.
75841         * modules/argv-iter (Depends-on): Add arg-nonnull.
75842         * tests/test-canonicalize.c (null_ptr): New function.
75843         (main): Use it.
75844         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
75845         (main): Use it.
75846         * tests/test-memmem.c (null_ptr): New function.
75847         (main): Use it.
75848         Reported by Jim Meyering.
75850 2009-12-10  Bruno Haible  <bruno@clisp.org>
75852         Use spaces for indentation, not tabs.
75853         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
75854         * m4/*.m4: Untabify.
75855         * build-aux/*.h: Untabify.
75856         * tests/**/*.[hc]: Untabify.
75857         * README: New section "Indent with spaces, not TABs", based on
75858         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
75859         * NEWS: Mention the change.
75861 2009-12-10  Bruno Haible  <bruno@clisp.org>
75863         pty test: Fix link error.
75864         * modules/pty-tests (Makefile.am): Add the default LDADD value to
75865         test_pty_LDADD.
75867 2009-12-07  Simon Josefsson  <simon@josefsson.org>
75869         * modules/pty: New file.
75870         * modules/pty-tests: New file.
75871         * m4/pty.m4: New file.
75872         * tests/test-pty.c: New file.
75873         * doc/glibc-headers/pty.texi: Modified.
75874         * doc/glibc-functions/forkpty.texi: Modified.
75875         * doc/glibc-functions/openpty.texi: Modified.
75877 2009-12-10  Bruno Haible  <bruno@clisp.org>
75879         Avoid syntax error in C++ mode.
75880         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
75882 2009-12-10  Bruno Haible  <bruno@clisp.org>
75884         Use sed with option -e.
75885         * gnulib-tool (func_version, func_emit_copyright_notice,
75886         func_emit_initmacro_end, func_import, func_create_testdir): Pass
75887         option -e to sed.
75888         * modules/link-warning (Makefile.am): Likewise.
75890 2009-12-10  Jim Meyering  <meyering@redhat.com>
75892         mgetgroups: do not write bytes beyond end of malloc'd buffer
75893         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
75894         username, we call getgroups with a one-element-shorter buffer,
75895         but still told it the length was original, max_n_groups.
75897 2009-12-09  Eric Blake  <ebb9@byu.net>
75899         cloexec: relax license
75900         * modules/cloexec (Maintainer): Add myself.
75901         (License): Use LGPL, not GPL.
75903         link-warning: optimize generation
75904         * modules/link-warning (Makefile.am): Reduce process usage.
75906 2009-12-09  Bruno Haible  <bruno@clisp.org>
75908         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
75909         workaround was added on 2009-11-17.
75911 2009-12-09  Jim Meyering  <meyering@redhat.com>
75912             Bruno Haible  <bruno@clisp.org>
75914         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
75915         * modules/link-warning (Makefile.am): Make the comment-removing sed
75916         command more robust in the face of bootstrap-prepended comment lines.
75918 2009-12-09  Bruno Haible  <bruno@clisp.org>
75920         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
75921         most one group.
75923 2009-12-09  Simon Josefsson  <simon@josefsson.org>
75924             Bruno Haible  <bruno@clisp.org>
75926         * build-aux/link-warning.h: Add copyright notice.
75927         * modules/link-warning (Makefile.am): Generate link-warning.h from
75928         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
75929         * NEWS: Mention change in link-warning module.
75930         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
75931         * modules/dirent (Makefile.am): Add dependency to dirent.h.
75932         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
75933         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
75934         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
75935         * modules/math (Makefile.am): Add dependency to math.h.
75936         * modules/search (Makefile.am): Add dependency to search.h.
75937         * modules/signal (Makefile.am): Add dependency to signal.h.
75938         * modules/spawn (Makefile.am): Add dependency to spawn.h.
75939         * modules/stdio (Makefile.am): Add dependency to stdio.h.
75940         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
75941         * modules/string (Makefile.am): Add dependency to string.h.
75942         * modules/strings (Makefile.am): Add dependency to strings.h.
75943         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
75944         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
75945         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
75946         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
75947         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
75948         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
75949         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
75950         * modules/unistd (Makefile.am): Add dependency to unistd.h.
75951         * modules/wchar (Makefile.am): Add dependency to wchar.h.
75953 2009-12-09  Bruno Haible  <bruno@clisp.org>
75955         fchdir: Optimize away rpl_fstat when possible.
75956         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
75957         REPLACE_OPEN_DIRECTORY.
75958         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
75960 2009-12-09  Bruno Haible  <bruno@clisp.org>
75962         * lib/fchdir.c: Update comment.
75964 2009-12-09  Bruno Haible  <bruno@clisp.org>
75966         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
75968 2009-12-08  Eric Blake  <ebb9@byu.net>
75970         fchdir: avoid memory leak on re-registration.
75971         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
75973 2009-12-08  Jim Meyering  <meyering@redhat.com>
75975         init.sh: avoid Solaris 10 /bin/sh portability problem
75976         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
75977         sourced script:
75978           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
75979           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
75980           bar
75981         tests/init.sh relied on that, accepting a --set-path=DIR argument,
75982         and two tests used that idiom.
75983         * tests/init.sh: Update suggested usage comments.
75984         (path_prepend_): New function, to be used in place
75985         of the --src-path=DIR option.
75986         (setup_): Move PATH-prepending code into path_prepend_.
75987         * tests/test-pread.sh: Adapt to new usage.
75988         * tests/test-xalloc-die.sh: Likewise.
75990 2009-12-08  Simon Josefsson  <simon@josefsson.org>
75992         * doc/gnulib.texi (Glibc pty.h): Add.
75993         * doc/glibc-functions/forkpty.texi: Add.
75994         * doc/glibc-functions/openpty.texi: Add.
75995         Suggested by Bruno Haible.
75997 2009-12-08  Eric Blake  <ebb9@byu.net>
75999         fchdir: fix logic bugs
76000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76001         * tests/test-fchdir.c (main): Enhance test.
76002         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76003         is in use.
76005         dup2: fix logic bugs
76006         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76007         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76008         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76009         exists.
76010         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76012 2009-12-07  Eric Blake  <ebb9@byu.net>
76014         unlink: fix m4 detection
76015         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76017         unistd-safer: add unit test
76018         * modules/unistd-safer-tests: New file.
76019         * tests/test-dup-safer.c: Likewise.
76020         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76021         * tests/test-dup2.c (setmode): Likewise.
76022         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76024         cloexec: preserve text vs. binary across dup_cloexec
76025         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76026         mode.
76027         * modules/dup2-tests (Depends-on): Add binary-io.
76028         * modules/cloexec-tests (Depends-on): Likewise.
76029         * tests/test-dup2.c (setmode, is_mode): New helpers.
76030         (main): Add tests that translation mode is preserved.
76031         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76032         Reported by Bruno Haible.
76034         mgetgroups: reduce duplicate listings
76035         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76036         resulting array.
76037         * tests/test-chown.h (test_chown): Simplify client.
76038         * tests/test-lchown.h (test_lchown): Likewise.
76040 2009-12-06  Bruno Haible  <bruno@clisp.org>
76042         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76043         value.
76045 2009-12-06  Bruno Haible  <bruno@clisp.org>
76047         * lib/progname.c: Include stdio.h, stdlib.h.
76048         (set_program_name): Reject a NULL argument.
76050 2009-12-05  Eric Blake  <ebb9@byu.net>
76052         pipe2-safer: new module
76053         * modules/pipe2-safer: New file.
76054         * lib/unistd-safer.h (pipe2_safer): New prototype.
76055         * lib/unistd--.h (pipe2): New wrapper.
76056         * lib/pipe-safer.c (pipe2_safer): New function.
76057         * modules/pipe (Depends-on): Add pipe2-safer.
76058         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76060         stdlib-safer: preserve cloexec flag for mkostemp[s]
76061         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76062         fd_safer_flag.
76064         unistd-safer: allow preservation of cloexec status via flag
76065         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76066         prototypes.
76067         * lib/dup-safer.c (dup_safer_flag): New function.
76068         * lib/fd-safer.c (fd_safer_flag): Likewise.
76069         * modules/cloexec (configure.ac): Set witness.
76071         test-dup2: enhance test
76072         * modules/dup2-tests (Depends-on): Add cloexec.
76073         * tests/test-dup2.c (main): Enhance test.
76075         cloexec: add dup_cloexec
76076         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76077         header and comments.
76078         * lib/cloexec.c (set_cloexec_flag): Add comments.
76079         (dup_cloexec): New function, with mingw implementation borrowed
76080         from...
76081         * lib/w32spawn.h (dup_noinherit): ...here.
76082         * modules/execute (Depends-on): Add cloexec.
76083         * modules/pipe (Depends-on): Likewise.
76084         * modules/cloexec (Depends-on): Add dup2.
76085         * modules/cloexec-tests (Files): New file.
76086         * tests/test-cloexec.c: Likewise.
76088         test-xalloc-die: fix test for mingw
76089         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76090         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76091         directory and .exe suffix off argv[0] output.
76093         test-fseeko: fix test for mingw
76094         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76095         than undefining fseek, so test will pass on mingw.
76097 2009-12-05  Bruno Haible  <bruno@clisp.org>
76099         * lib/progname.h (set_program_name): Clarify specification.
76100         * lib/progname.c (set_program_name): Likewise.
76101         Reported by Jim Meyering.
76103 2009-12-05  Jim Meyering  <meyering@redhat.com>
76105         maint.mk: backslash-escape parens in default regexp
76106         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76107         backslash-escape the literal parentheses.
76109         maint.mk: news-date-check: use grep -E
76110         * top/maint.mk (today): Define a Make variable, not a...
76111         (news-date-check): ...shell variable.
76112         (news-date-regexp): Use the Make variable.
76113         Use grep's -E option.  Change the failing diagnostic to mention
76114         the variable, $(news-date-regexp).
76116 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76118         maintainer-makefile: allow customization of NEWS entry format
76119         * top/maint.mk (news-date-regexp): New overridable variable.
76120         (news-date-check): Use it.
76122 2009-12-04  Eric Blake  <ebb9@byu.net>
76124         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76125         * lib/mgetgroups.h (xgetgroups): New prototype.
76126         * lib/mgetgroups.c (xgetgroups): New wrapper.
76127         (mgetgroups): Handle ENOSYS.
76128         * modules/mgetgroups (Depends-on): Add realloc.
76129         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76131         mgetgroups: avoid argument promotion issues with -1
76132         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76133         for invalid gid_t.
76134         * tests/test-chown.h (getegid, test_chown): Likewise.
76135         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76137 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76139         exclude: Fix header file problems.
76140         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76142 2009-12-01  Jim Meyering  <meyering@redhat.com>
76144         fts: fts_open: do not let an empty string cause immediate failure
76145         This is required in support of GNU rm, for which the command
76146         "rm A '' B" must process and remove both A and B, in spite of
76147         the empty string argument.
76148         * lib/fts.c (fts_open): Do not let the presence of an empty string
76149         cause fts_open to fail immediately.  Most fts-using tools must be
76150         able to process all arguments, in order, and can be expected to
76151         diagnose such arguments themselves.
76153 2009-11-30  Eric Blake  <ebb9@byu.net>
76155         utimens: fix compilation error
76156         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76157         Declare variable at right scope.
76159 2009-11-29  Jim Meyering  <meyering@redhat.com>
76161         bootstrap: handle perl-5.11's changed --version output
76162         * build-aux/bootstrap (get_version): Handle perl separately,
76163         since perl-5.11's --version output is different.
76165 2009-11-28  Jim Meyering  <meyering@redhat.com>
76167         userspec: depend on the inttostr module, too
76168         * modules/userspec (Depends-on): Add inttostr.
76170         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76171         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76172         number of MAXUID when it evaluates to (uid_t) -1.
76173         Likewise for group ID.  Reported by Matt McCutchen in
76174         <http://savannah.gnu.org/bugs/?28113>
76176         userspec: reformat to use spaces, not TABs
76177         * lib/userspec.c: Expand TABs to spaces.
76178         Add Emacs' "indent-tabs-mode: nil" hint.
76180 2009-11-27  Eric Blake  <ebb9@byu.net>
76182         getopt-gnu: flush out another BSD bug
76183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76184         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76185         flush out BSD bug.
76186         * tests/test-getopt.h (test_getopt): End lists with NULL.
76187         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76188         (test_getopt_long_posix): Enhance test.
76189         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76190         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76191         getopt-gnu.
76192         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76193         Likewise.
76195 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76197         * modules/idpriv-droptemp-tests (Notice): Fix text.
76199 2009-11-27  Jim Meyering  <meyering@redhat.com>
76201         test-xalloc-die: avoid spurious failure due to libtool argv difference
76202         In a libtool-enabled project, this test would fail due to a difference
76203         in the emitted program name, e.g.,
76204         -test-xalloc-die: memory exhausted
76205         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76206         Use program to avoid that.
76207         * modules/xalloc-die-tests (Depends-on): Add progname.
76208         * tests/test-xalloc-die.c: Include progname.h".
76209         (program_name): Remove decl.
76210         (main): Call set_program_name.
76211         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
76213 2009-11-26  Richard Jones  <rjones@redhat.com>
76215         w32sock: leave win32 error in place.
76216         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
76218 2009-11-26  Eric Blake  <ebb9@byu.net>
76220         init.sh: suggest to use skip_ and fail_ functions in comments
76221         * tests/init.sh: Add a sentence.
76223 2009-11-25  Bruno Haible  <bruno@clisp.org>
76225         init.sh: add documentation in comments
76226         * tests/init.sh: Add some developer and user documentation.
76228 2009-11-26  Jim Meyering  <meyering@redhat.com>
76230         init.sh: accommodate even those who specify bogus srcdir manually
76231         * tests/init.sh: Normally, srcdir is guaranteed by automake and
76232         configure-time tests to be sanitized, so that there is no need to
76233         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
76234         (with no double quotes) suffices.  However, since tests may be
76235         invoked manually, and since you may explicitly set srcdir to the
76236         name of a directory containing spaces, do quote its uses here.
76237         * tests/test-pread.sh: Likewise.
76238         Suggested by Bruno Haible.
76240         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
76241         * tests/test-pread.sh: Write no data into the pipe, because
76242         test-pread actually reads none.  This avoids a diagnostic,
76243         "bash: echo: write error: Broken pipe", that arises in the unusual
76244         event something is ignoring SIGPIPE, and might be interpreted
76245         as some sort of failure.  Reported by Bruno Haible.
76247 2009-11-25  Jim Meyering  <meyering@redhat.com>
76249         test-pread: cover failure with ESPIPE and EINVAL
76250         * tests/test-pread.c (main): Test for failure, too.
76251         * tests/test-pread.sh: Invoke with stdin on a pipe.
76252         Suggested by Eric Blake.
76254         pread: improvement and fix
76255         * modules/pread (Depends-on): Depend on lseek, for portability to
76256         e.g., mingw.  Suggested by Eric Blake.
76257         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76259         unistd.in.h: correct declaration of pread
76260         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76261         Reported by Richard W.M. Jones.
76263         test-pread.sh: distribute the test script
76264         * modules/pread-tests (Files): Include test-pread.sh.
76266         test-pread.sh: clean up
76267         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76268         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76269         That is unnecessary, since it's always ".".
76270         Suggestion from Eric Blake.
76272         test-pread.sh: make executable
76273         * tests/test-pread.sh: Set executable bit.
76274         Reported by Eric Blake.
76276         correct typo in test-pread.sh
76277         * tests/test-pread.sh: Add #! line.
76279         test pread
76280         * tests/test-pread.c: New file.
76281         * tests/test-pread.sh: Likewise.
76282         * modules/pread-tests: Likewise.
76284         pread: new module
76285         * modules/pread: New file.
76286         * lib/unistd.in.h (pread): Define/declare.
76287         * lib/pread.c (pread): New file.
76288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76289         * modules/unistd (Makefile.am): Substitute witnesses.
76290         * doc/posix-functions/pread.texi (pread): Update.
76291         * MODULES.html.sh: Add pread.
76293 2009-11-25  Jim Meyering  <meyering@redhat.com>
76295         tests/init.sh: new file to be used via most *.sh tests
76296         * tests/init.sh: New file.
76298 2009-11-25  Eric Blake  <ebb9@byu.net>
76300         utimens: work around older Linux failure with symlinks
76301         * lib/utimens.c (lutimensat_works_really): New variable.
76302         (fdutimens, lutimens): Use it to manage kernels that support
76303         nanosecond times on files, but not on symlinks.
76304         Reported by Ondřej Vašík.
76306         utimes: fix configure grammar
76307         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76309 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76311         regex: Fix fastmap for multibyte character ranges.
76312         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76313         characters when a multibyte character range is included.
76315 2009-11-22  Andy Wingo  <wingo@pobox.com>
76317         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76318         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76320 2009-11-24  Bruno Haible  <bruno@clisp.org>
76322         doc: Most *_l functions exist in MacOS X 10.5.
76323         * doc/posix-functions/duplocale.texi: Update platforms list.
76324         * doc/posix-functions/freelocale.texi: Likewise.
76325         * doc/posix-functions/newlocale.texi: Likewise.
76326         * doc/posix-functions/uselocale.texi: Likewise.
76327         * doc/posix-functions/isalnum_l.texi: Likewise.
76328         * doc/posix-functions/isalpha_l.texi: Likewise.
76329         * doc/posix-functions/isblank_l.texi: Likewise.
76330         * doc/posix-functions/iscntrl_l.texi: Likewise.
76331         * doc/posix-functions/isdigit_l.texi: Likewise.
76332         * doc/posix-functions/isgraph_l.texi: Likewise.
76333         * doc/posix-functions/islower_l.texi: Likewise.
76334         * doc/posix-functions/isprint_l.texi: Likewise.
76335         * doc/posix-functions/ispunct_l.texi: Likewise.
76336         * doc/posix-functions/isspace_l.texi: Likewise.
76337         * doc/posix-functions/isupper_l.texi: Likewise.
76338         * doc/posix-functions/iswalnum_l.texi: Likewise.
76339         * doc/posix-functions/iswalpha_l.texi: Likewise.
76340         * doc/posix-functions/iswblank_l.texi: Likewise.
76341         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76342         * doc/posix-functions/iswctype_l.texi: Likewise.
76343         * doc/posix-functions/iswdigit_l.texi: Likewise.
76344         * doc/posix-functions/iswgraph_l.texi: Likewise.
76345         * doc/posix-functions/iswlower_l.texi: Likewise.
76346         * doc/posix-functions/iswprint_l.texi: Likewise.
76347         * doc/posix-functions/iswpunct_l.texi: Likewise.
76348         * doc/posix-functions/iswspace_l.texi: Likewise.
76349         * doc/posix-functions/iswupper_l.texi: Likewise.
76350         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76351         * doc/posix-functions/isxdigit_l.texi: Likewise.
76352         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76353         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76354         * doc/posix-functions/strcoll_l.texi: Likewise.
76355         * doc/posix-functions/strfmon_l.texi: Likewise.
76356         * doc/posix-functions/strftime_l.texi: Likewise.
76357         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76358         * doc/posix-functions/strxfrm_l.texi: Likewise.
76359         * doc/posix-functions/tolower_l.texi: Likewise.
76360         * doc/posix-functions/toupper_l.texi: Likewise.
76361         * doc/posix-functions/towctrans_l.texi: Likewise.
76362         * doc/posix-functions/towlower_l.texi: Likewise.
76363         * doc/posix-functions/towupper_l.texi: Likewise.
76364         * doc/posix-functions/wcscoll_l.texi: Likewise.
76365         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76366         * doc/posix-functions/wctrans_l.texi: Likewise.
76367         * doc/posix-functions/wctype_l.texi: Likewise.
76368         * doc/glibc-functions/strptime_l.texi: Likewise.
76369         * doc/glibc-functions/strtod_l.texi: Likewise.
76370         * doc/glibc-functions/strtof_l.texi: Likewise.
76371         * doc/glibc-functions/strtol_l.texi: Likewise.
76372         * doc/glibc-functions/strtold_l.texi: Likewise.
76373         * doc/glibc-functions/strtoll_l.texi: Likewise.
76374         * doc/glibc-functions/strtoul_l.texi: Likewise.
76375         * doc/glibc-functions/strtoull_l.texi: Likewise.
76376         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76377         * doc/glibc-functions/wcstod_l.texi: Likewise.
76378         * doc/glibc-functions/wcstof_l.texi: Likewise.
76379         * doc/glibc-functions/wcstol_l.texi: Likewise.
76380         * doc/glibc-functions/wcstold_l.texi: Likewise.
76381         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76382         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76383         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76385 2009-11-24  Bruno Haible  <bruno@clisp.org>
76387         duplocale: Fix logic bug.
76388         * lib/duplocale.c: Don't include <langinfo.h>.
76389         (_NL_LOCALE_NAME): Remove macro.
76390         (rpl_duplocale): Use setlocale instead of nl_langinfo.
76391         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
76393 2009-11-23  Jim Meyering  <meyering@redhat.com>
76395         test-update-copyright: don't hard-code /usr/bin/perl
76396         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
76397         perl to print the current year.  Gilles Espinasse reported that
76398         the replaced use of perl was hard-coded as /usr/bin/perl.
76400 2009-11-23  Bruno Haible  <bruno@clisp.org>
76402         duplocale: Add support for glibc 2.3.x.
76403         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
76405 2009-11-22  Bruno Haible  <bruno@clisp.org>
76407         vasnprintf: Tiny optimization.
76408         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
76409         MacOS X.
76411 2009-11-22  Bruno Haible  <bruno@clisp.org>
76413         Tests for module 'duplocale'.
76414         * modules/duplocale-tests: New file.
76415         * tests/test-duplocale.c: New file.
76417         New module 'duplocale'.
76418         * m4/duplocale.m4: New file.
76419         * lib/locale.in.h (duplocale): New declaration.
76420         * lib/duplocale.c: New file.
76421         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
76422         gl_LOCALE_H_DEFAULTS): New macros.
76423         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
76424         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
76425         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
76426         REPLACE_DUPLOCALE.
76427         * modules/duplocale: New file.
76428         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
76430 2009-11-22  Bruno Haible  <bruno@clisp.org>
76432         * modules/locale-tests (configure.ac): Test for newlocale function.
76433         * tests/test-locale.c: When the system has extended locale functions,
76434         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
76436         locale: Make locale_t available when possible.
76437         * lib/locale.in.h: Include <xlocale.h> when it exists.
76438         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
76439         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
76440         * modules/locale (Depends-on): Add extensions.
76441         (Makefile.am): Also substitute HAVE_XLOCALE_H.
76442         * doc/posix-headers/locale.texi: Document the problem with locale_t.
76444 2009-11-22  Bruno Haible  <bruno@clisp.org>
76446         Add comments.
76447         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
76448         invocation.
76449         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
76450         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
76451         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76453 2009-11-22  Bruno Haible  <bruno@clisp.org>
76455         error: account for the possibility of freopen (stdout).
76456         * lib/error.c: Include <unistd.h>.
76457         (flush_stdout): New function, extracted from error and error_at_line.
76458         Determine stdout's fd dynamically.
76459         (error, error_at_line): Invoke flush_stdout.
76460         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
76461         * modules/error (Depends-on): Add unistd.
76463 2009-11-22  Bruno Haible  <bruno@clisp.org>
76465         diffseq: Add comment.
76466         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
76468 2009-11-22  Jim Meyering  <meyering@redhat.com>
76470         c-stack: avoid defining an unused static function
76471         * lib/c-stack.c (find_stack_direction): Do not define this function
76472         when it will not be used.
76474         diffseq: avoid spurious gcc warnings
76475         * lib/diffseq.h (IF_LINT2): Define.
76476         (compareseq): Use it to initialize two members of "part".
76477         This avoids two used-uninitialized warnings.
76479 2009-11-21  Jim Meyering  <meyering@redhat.com>
76481         c-stack: avoid "ignoring return value of `write'" warning
76482         * lib/c-stack.c: Include "ignore-value.h".
76483         (die): Explicitly ignore each write return value.
76484         * modules/c-stack (Depends-on): Add ignore-value.
76486 2009-11-21  Bruno Haible  <bruno@clisp.org>
76488         diffseq: reduce scope of variable 'best'.
76489         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
76490         variable, earlier used for two different purposes.
76492 2009-11-21  Jim Meyering  <meyering@redhat.com>
76494         diffseq: remove useless assignment to "best"
76495         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
76496         assignment.  At that point "best" is already guaranteed to be zero.
76498 2009-11-20  Eric Blake  <ebb9@byu.net>
76500         build: mention ftp redirector in release announcements
76501         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
76502         values that used to come from cfg.mk; mention FTP redirect URL.
76503         * build-aux/announce-gen: Mention the mirror list.
76504         Suggested by Karl Berry.
76506         nanosleep: improve port to mingw
76507         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
76508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
76509         LIB_NANOSLEEP, but only when needed.
76510         * modules/select (Link): Document LIBSOCKET.
76511         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
76512         enough.
76514         nanosleep: work around cygwin bug
76515         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
76516         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
76517         bug.
76518         (getnow): Delete, not needed.
76519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
76520         LIB_CLOCK_GETTIME.
76521         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
76522         clock-time, gettime.
76523         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
76524         bug.
76525         * modules/nanosleep-tests: New test.
76526         * tests/test-nanosleep.c: New file.
76528         sleep: work around cygwin bug
76529         * lib/sleep.c (rpl_sleep): Work around the bug.
76530         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
76531         (gl_PREREQ_SLEEP): Delete unused macro.
76532         * modules/sleep (Depends-on): Add verify.
76533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76534         * modules/unistd (Makefile.am): Substitute witness.
76535         * lib/unistd.in.h (sleep): Update prototype.
76536         * doc/posix-functions/sleep.texi (sleep): Document the bug.
76537         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
76538         * modules/sleep-tests (Depends-on): Check for alarm.
76540 2009-11-20  Jim Meyering  <meyering@redhat.com>
76542         maint.mk: improve sc_prohibit_magic_number_exit
76543         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
76544         so it does not match uses like System.exit(1).
76545         Add comments showing how to correct all offenders.
76547 2009-11-19  Eric Blake  <ebb9@byu.net>
76549         xalloc-die-tests: add missing library
76550         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
76552         test-xvasprintf: silence compiler warnings
76553         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
76554         empty string from gcc.
76556 2009-11-19  Jim Meyering  <meyering@redhat.com>
76558         xfreopen: new module, from coreutils
76559         * modules/xfreopen: New module.
76560         * lib/xfreopen.c: New file.
76561         * lib/xfreopen.h: New file.
76562         * MODULES.html.sh (File stream based Input/Output"): Add it.
76564 2009-11-19  Eric Blake  <ebb9@byu.net>
76566         manywarnings: depend on warnings
76567         * modules/manywarnings (Depends-on): Add warnings.
76569         build: avoid compiler warnings
76570         * lib/select.c (rpl_select): Delete unused variable.
76571         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
76573 2009-11-18  Eric Blake  <ebb9@byu.net>
76575         tests: avoid false negative with --with-packager
76576         * tests/test-version-etc.sh: Discard packager information.
76577         * tests/test-argp-version-etc-1.sh: Likewise.
76578         Reported by Mike Frysinger.
76580         utimens: fix regression on Solaris
76581         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
76582         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
76583         can only change fd timestamps via futimesat.  Instead, use an
76584         additional witness macro to avoid BSD bug.
76585         Reported by Jim Meyering.
76587 2009-11-17  Eric Blake  <ebb9@byu.net>
76589         usleep: use it to simplify tests
76590         * modules/stat-time-tests (Depends-on): Add usleep.
76591         (configure.ac): Drop usleep check.
76592         * modules/chown-tests (Depends-on, configure.ac): Likewise.
76593         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
76594         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
76595         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
76596         * modules/openat-tests (Depends-on, configure.ac): Likewise.
76597         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
76598         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
76599         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
76600         Likewise.
76601         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
76602         * tests/test-lchown.h (nap): Likewise.
76603         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
76604         * tests/test-stat-time.c (nap): Likewise.
76605         * tests/test-utimens-common.h (nap): Update comments.
76607         usleep: new module
76608         * modules/usleep: New file.
76609         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
76610         * lib/usleep.c (usleep): Likewise.
76611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76612         * modules/unistd (Makefile.am): Substitute witnesses.
76613         * lib/unistd.in.h (usleep): Add declaration.
76614         * doc/pastposix-functions/usleep.texi (usleep): Document this.
76615         * MODULES.html.sh (Date and time): Likewise.
76616         * modules/usleep-tests (Depends-on): New test.
76617         * tests/test-usleep.c: New file.
76619         chown: work around OpenBSD bug
76620         * lib/chown.c (rpl_chown): Work around the bug.
76621         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
76622         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
76623         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
76624         * modules/chown (Depends-on): Add stdbool.
76625         * modules/lchown (Depends-on): Likewise.
76626         * doc/posix-functions/chown.texi (chown): Document the bug.
76627         * doc/posix-functions/lchown.texi (lchown): Likewise.
76628         * tests/test-lchown.h (test_chown): Relax test.
76630         mkstemp: avoid conflict with C++ keyword template
76631         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
76632         * lib/mkostemp.c (mkostemp): Likewise.
76633         * lib/mkostemps.c (mkostemps): Likewise.
76634         * lib/mkstemp.c (mkstemp): Likewise.
76635         * lib/mkstemps.c (mkstemps): Likewise.
76637         xalloc-die-tests: optimize
76638         * tests/test-xalloc-die.sh: Reduce number of processes.
76640 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76642         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
76643         patch from ludo@gnu.org (Ludovic Courtès).
76645 2009-11-17  Jim Meyering  <meyering@redhat.com>
76647         version-etc: use proper license string
76648         * modules/version-etc (License): Use LGPL, not LGPLv3+.
76649         * modules/version-etc-fsf: Likewise.
76651 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76653         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
76654         printed to stdout.  Deal with EOL differences.
76656 2009-11-17  Eric Blake  <ebb9@byu.net>
76658         unsetenv: work around Solaris bug
76659         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
76660         * lib/unsetenv.c (rpl_unsetenv): Work around it.
76661         Reported by Jim Meyering.
76663         vasnprintf: avoid compiler warnings
76664         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
76665         variables.
76666         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
76668 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76670         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
76671         settings since xalloc-die is no longer the self test,
76672         xalloc-die.sh is.
76674 2009-11-17  Jim Meyering  <meyering@redhat.com>
76676         test-xalloc-die.sh: make the code agree with the commit log
76677         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
76678         at the end, just in case you happen to have a test-xalloc-die
76679         program in some other PATH directory.
76681         test-xalloc-die.sh: fix a portability bug
76682         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
76683         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
76684         Otherwise, argv[0] (as often seen in diagnostics) would be too
76685         system-dependent, sometimes with, and sometimes without the leading "./".
76687         version-etc-fsf: relax license to LGPLv3+
76688         * modules/version-etc-fsf (License): Relax license.
76690 2009-11-16  Eric Blake  <ebb9@byu.net>
76692         xalloc-die-tests: avoid printing null pointer
76693         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
76694         shell script.
76695         * tests/test-xalloc-die.c (program_name): Declare.
76696         * tests/test-xalloc-die.sh (tmpfiles): New file.
76698         setenv, unsetenv: work around various bugs
76699         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
76700         (setenv) [HAVE_SETENV]: Work around bugs.
76701         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
76702         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
76703         for bugs.
76704         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
76705         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
76706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
76707         * modules/stdlib (Makefile.am): Update substitutions.
76708         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
76709         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
76710         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76711         * modules/setenv-tests: New test.
76712         * modules/unsetenv-tests: Likewise.
76713         * tests/test-setenv.c: New file.
76714         * tests/test-unsetenv.c: Likewise.
76716 2009-11-16  Jim Meyering  <meyering@redhat.com>
76718         version-etc: relax license to LGPLv3+
76719         * modules/version-etc (License): Relax license.
76721         better AC_REQUIRE expanded-before-required-warning avoidance
76722         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
76723         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
76724         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
76725         which is no longer needed.
76727 2009-11-16  Eric Blake  <ebb9@byu.net>
76729         test-freading: clean up temporary file
76730         * tests/test-freading.c (main): Remove file on success, and use
76731         ASSERT more liberally.
76732         Reported by Jim Meyering.
76734 2009-11-16  Jim Meyering  <meyering@redhat.com>
76736         avoid new AC_REQUIRE expanded-before-required warnings
76737         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
76738         merely using it.
76739         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
76740         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
76742 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76744         * tests/test-xalloc-die.c: New file.
76745         * modules/xalloc-die-tests: New file.
76746         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
76747         XFAIL_TESTS so it can be appended by modules.
76749 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76751         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
76752         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
76754 2009-11-14  Eric Blake  <ebb9@byu.net>
76756         fnmatch: avoid compiler warning
76757         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
76758         to silence compiler warning about mismatch signedness in ?:.
76759         Reported by Robert Millan.
76761         intprops: add double-inclusion guard
76762         * lib/intprops.h: Allow idempotent includes.
76763         Suggested by Bruce Korb.
76765         openat: detect Solaris fchownat bug
76766         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
76767         penalizing glibc chownat when only lchownat is broken.
76768         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
76769         trailing slash bugs.
76770         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
76771         * modules/openat-tests (Files): Include more files.
76772         (Depends-on): Add mgetgroups, sleep, stat-time.
76773         (configure.ac): Add additional checks.
76774         (Makefile.am): Build new test.
76775         * tests/test-fchownat.c: New file.
76777         lchown: detect Solaris and FreeBSD bug
76778         * lib/lchown.c (rpl_lchown): Work around bug.
76779         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
76780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76781         * modules/unistd (Makefile.am): Populate it.
76782         * lib/unistd.in.h (lchown): Update declaration.
76783         * doc/posix-functions/lchown.texi (lchown): Document the bug.
76784         * modules/lchown-tests: New file.
76785         * tests/test-lchown.h (test_lchown): Likewise.
76786         * tests/test-lchown.c (main): Likewise.
76788         chown: detect Solaris and FreeBSD bug
76789         * lib/chown.c (rpl_chown): Work around bug.
76790         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
76791         (gl_PREREQ_CHOWN): Delete.
76792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76793         * modules/unistd (Makefile.am): Populate it.
76794         * lib/unistd.in.h (chown): Update declaration.
76795         * lib/lchown.c (chown): Update client.
76796         * modules/lchown (Depends-on): Add lstat.
76797         * doc/posix-functions/chown.texi (chown): Document the bug.
76798         * doc/posix-functions/getgroups.texi (getgroups): Document
76799         getgroups pitfall.
76800         * modules/chown-tests: New file.
76801         * tests/test-chown.h (test_chown): Likewise.
76802         * tests/test-chown.c (main): Likewise.
76804 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
76806         gnulib-tool: correctly detect absence of m4 directories
76807         * gnulib-tool: Avoid extra newline on data passed to wc -l.
76809 2009-11-14  Jim Meyering  <meyering@redhat.com>
76811         maint.mk: Prohibit inclusion of "xalloc.h" without use.
76812         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
76814 2009-11-14  John W. Eaton  <jwe@gnu.org>
76816         strftime.h: wrap function declaration in extern "C" block
76817         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
76819 2009-11-13  Eric Blake  <ebb9@byu.net>
76821         getgroups: avoid compiler warning
76822         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
76824         getgroups: work around FreeBSD bug
76825         * lib/getgroups.c (rpl_getgroups): Work around the bug.
76826         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
76827         * doc/posix-functions/getgroups.texi (getgroups): Document it.
76828         * tests/test-getgroups.c (main): Fix buffer overrun.
76830         getgroups: avoid compilation failure
76831         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
76832         * modules/getgroups (Depends-on): Add stdint.
76834 2009-11-13  Jim Meyering  <meyering@redhat.com>
76836         test-getgroups: avoid compilation failure
76837         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
76839 2009-11-13  Eric Blake  <ebb9@byu.net>
76841         mgetgroups: new module, taken from coreutils
76842         * modules/mgetgroups: New file.
76843         * lib/mgetgroups.h: Likewise.
76844         * lib/mgetgroups.c (mgetgroups): Likewise.
76845         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
76846         * MODULES.html.sh (Users and groups): Mention it.
76848         getgroups: don't expose GETGROUPS_T to user
76849         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
76850         an element at a time if GETGROUPS_T is wrong size.
76851         * lib/getugroups.h (getugroups): Change signature.
76852         * lib/unistd.in.h (getgroups): Likewise.
76853         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
76854         signature needs fixing.
76855         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
76856         AC_TYPE_GETGROUPS.
76857         * modules/group-member (Depends-on): Add getgroups.
76858         * lib/group-member.c (group_info, get_group_info): Use gid_t.
76859         (group_member): Rely on getgroups replacement.
76860         * lib/getugroups.c (getugroups): Use gid_t.
76861         * tests/test-getgroups.c (main): Likewise.
76862         * NEWS: Mention the signature change.
76863         * doc/posix-functions/getgroups.texi (getgroups): Mention the
76864         problem with signature.
76865         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
76866         GETGROUPS_T is still useful for setgroups.
76868         getgroups, getugroups: provide stubs for mingw
76869         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
76870         * lib/getugroups.c (getugroups): Likewise.
76871         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
76872         function.  Modernize replacement scheme.
76873         (gl_PREREQ_GETGROUPS): Delete.
76874         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
76875         * modules/getgroups (configure.ac): Declare witness.
76876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76877         * modules/unistd (Depends-on): Substitute witness.
76878         * lib/unistd.in.h (getgroups): Declare replacement.
76880         getgroups: avoid calling exit
76881         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
76882         drop xalloc.
76883         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
76884         dependencies.
76885         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
76886         exiting, in the rare case of malloc failure.
76888         getgroups: fix logic error
76889         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
76890         has more than 20 groups.
76891         * modules/getgroups-tests: New test.
76892         * tests/test-getgroups.c: New file.
76894 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76896         * tests/test-base64.c: Improve.
76898 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76900         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
76901         Blake <ebb9@byu.net>.
76903 2009-11-13  Simon Josefsson  <simon@josefsson.org>
76905         * tests/test-xvasprintf.c: Add %s%s related checks.
76907 2009-11-12  Eric Blake  <ebb9@byu.net>
76909         version-etc: match standards.texi style
76910         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
76911         and use <> only for URLs.
76913 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
76915         fts: do not fail on a submount during traversal
76916         * lib/fts.c (fts_build): Read the stat info again after opening
76917         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
76918         Original report at http://bugzilla.redhat.com/501848.
76920 2009-11-12  Jim Meyering  <meyering@redhat.com>
76922         bootstrap: sync from coreutils
76923         * build-aux/bootstrap (bootstrap_epilogue): New function.
76924         Use git_modules_config in one more place.  This make bootstrap's
76925         --gnulib-srcdir option more useful for testing.
76927         bootstrap: generalize autoheader check
76928         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
76929         AC_CONFIG_HEADERS.
76931 2009-11-11  Eric Blake  <ebb9@byu.net>
76933         mkfifoat: use new modules for Solaris and BSD bugs
76934         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
76935         * lib/mkfifoat.c (mknodat): Split...
76936         * lib/mknodat.c (mknodat): ...into new file.
76937         * modules/mkfifoat (Files): Ship new file.
76938         (Depends-on): Add mkfifo, mknod.
76939         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
76940         (Depends-on): Add symlink.
76941         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
76942         redundant with test_mkfifo.h.
76943         (do_mkfifoat, do_mknodat): New helpers.
76945         mknod: new module
76946         * modules/mknod: New file.
76947         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
76948         * lib/mknod.c (mknod): Likewise.
76949         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
76950         defaults.
76951         * modules/sys_stat (Makefile.am): Substitute them.
76952         * lib/sys_stat.in.h (mknod): Declare replacement.
76953         * MODULES.html.sh (Support for systems lacking POSIX:2008):
76954         Document it.
76955         * doc/posix-functions/mknod.texi (mknod): Likewise.
76956         * modules/mknod-tests: New test.
76957         * tests/test-mknod.c: Likewise.
76959         mkfifo: new module
76960         * modules/mkfifo: New file.
76961         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
76962         * lib/mkfifo.c (mkfifo): Likewise.
76963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
76964         defaults.
76965         * modules/sys_stat (Makefile.am): Substitute them.
76966         * lib/sys_stat.in.h (mkfifo): Declare replacement.
76967         * MODULES.html.sh (Support for systems lacking POSIX:2008):
76968         Document it.
76969         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
76970         * modules/mkfifo-tests: New test.
76971         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
76972         from test-mkfifoat.c.
76973         * tests/test-mkfifo.c: New file.
76975         readlink: detect FreeBSD bug
76976         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
76977         slash on symlink.
76978         * doc/posix-functions/readlink.texi (readlink): Document the bug.
76979         * tests/test-readlink.h (test_readlink): Enhance test.
76981         symlink: detect FreeBSD bug
76982         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
76983         slash on symlink.
76984         * doc/posix-functions/symlink.texi (symlink): Document the bug.
76985         * tests/test-symlink.h (test_symlink): Enhance test.
76987 2009-11-10  Eric Blake  <ebb9@byu.net>
76989         link: detect FreeBSD bug
76990         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
76991         symlink.
76992         * doc/posix-functions/link.texi (link): Document the bug.
76993         * tests/test-link.h (test_link): Enhance test.
76994         * tests/test-linkat.c (main): Update caller.
76996         unlink, remove: detect FreeBSD bug
76997         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
76998         slash on symlink.
76999         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77000         * doc/posix-functions/remove.texi (remove): Likewise.
77001         * tests/test-unlink.h (test_unlink): Enhance test.
77002         * tests/test-remove.c (main): Likewise.
77004 2009-11-09  Eric Blake  <ebb9@byu.net>
77006         rename: detect FreeBSD bug
77007         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77008         slash on symlink.
77009         * modules/renameat-tests (Depends-on): Add filenamecat.
77010         * tests/test-rename.h (test_rename): Allow one more errno.
77011         * tests/test-renameat.c (main): Likewise.
77012         * doc/posix-functions/rename.texi (rename): Document the bug.
77014         open: detect FreeBSD bug
77015         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77016         symlink.
77017         * doc/posix-functions/open.texi (open): Document the bug.
77018         * doc/posix-functions/utimes.texi (utimes): Likewise.
77019         * tests/test-open.h (test_open): Add parameters, and test symlink
77020         handling.
77021         * tests/test-open.c (main): Adjust caller.
77022         * tests/test-fcntl-safer.c (main): Likewise.
77023         * modules/open-tests (Depends-on): Add stdbool, symlink.
77024         * modules/fcntl-safer-tests (Depends-on): Likewise.
77025         * tests/test-openat.c (main): Add test-open tests.
77027         stat: detect FreeBSD bug
77028         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77029         symlink.
77030         * doc/posix-functions/stat.texi (stat): Document the bug.
77031         * tests/test-stat.h (test_stat_func): Add argument.
77032         * tests/test-stat.c (main): Adjust caller.
77033         * tests/test-fstatat.c (main): Likewise.
77034         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77035         Reported by Jim Meyering.
77037 2009-11-09  James Youngman  <jay@gnu.org>
77039         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77040         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77042 2009-11-08  Jim Meyering  <meyering@redhat.com>
77044         utimens: remove invalid futimesat call
77045         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77046         It used the file descriptor of the target file as the DIR_FD
77047         parameter and NULL as the file name.  That caused failure with
77048         errno == EFAULT on FreeBSD-8.0-rc2
77050 2009-11-07  Eric Blake  <ebb9@byu.net>
77052         fflush, freadseek: use fseeko, not fseek
77053         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77054         (clear_ungetc_buffer): Avoid potential problems on large files.
77055         * lib/freadseek.c (freadseek): Likewise.
77056         * modules/freadseek (Depends-on): Add fseeko.
77057         * modules/fseek (configure.ac): Set a witness.
77058         * tests/test-fflush.c (main): Use fseeko.
77059         * tests/test-fpurge.c (fseek): Disable link warning.
77060         * tests/test-freadable.c (fseek): Likewise.
77061         * tests/test-freading.c (fseek): Likewise.
77062         * tests/test-fseeko.c (fseek): Likewise.
77063         * tests/test-ftell.c (fseek): Likewise.
77064         * tests/test-ftello.c (fseek): Likewise.
77065         * tests/test-fwritable.c (fseek): Likewise.
77066         * tests/test-fwriting.c (fseek): Likewise.
77068 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77070         * modules/memchr (Depends-on): Drop getpagesize dependency.
77072 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77074         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77075         Reported by Ludovic Courtès.
77076         * build-aux/pmccabe2html: Improve example usage.
77077         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77079 2009-11-06  Jim Meyering  <meyering@redhat.com>
77081         do-release-commit-and-tag: New module.
77082         Automate the release-commit and tag process.
77083         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77084         * modules/do-release-commit-and-tag: New file.
77085         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77087 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77089         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77090         because test-select.c uses inet_pton.
77092 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77094         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77095         GETADDRINFO_LIB.  Bump serial number.
77096         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77097         Suggested by Eric Blake <ebb9@byu.net>.
77099 2009-11-05  Eric Blake  <ebb9@byu.net>
77101         strtod: detect darwin bug
77102         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77103         Reported by Leo Davis.
77105         freopen-safer: new module
77106         * modules/freopen-safer: New module.
77107         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77108         * lib/freopen-safer.c (freopen_safer): New file.
77109         * lib/stdio-safer.h (freopen_safer): New declaration.
77110         * lib/stdio--.h (freopen): New override.
77111         * MODULES.html.sh (File stream based Input/Output): Mention it.
77112         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77113         freopen-safer module.
77114         * doc/posix-functions/stderr.texi (stderr): Likewise.
77115         * doc/posix-functions/stdin.texi (stdin): Likewise.
77116         * doc/posix-functions/stdout.texi (stdout): Likewise.
77117         * modules/freopen-safer-tests: New test.
77118         * tests/test-reopen-safer.c: New file.
77120 2009-11-05  Jim Meyering  <meyering@redhat.com>
77122         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77123         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77125 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77127         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77129 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77131         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77133 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77135         Fix link error.
77136         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77137         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77139 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77141         * tests/test-func.c: Also test value of __func__.
77143 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77145         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77146         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77148 2009-11-05  Bruno Haible  <bruno@clisp.org>
77150         Fix link error.
77151         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77152         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77153         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77155 2009-11-05  Bruno Haible  <bruno@clisp.org>
77157         Tests for module 'inet_pton'.
77158         * modules/inet_pton-tests: New file.
77159         * tests/test-inet_pton.c: New file.
77161 2009-11-05  Bruno Haible  <bruno@clisp.org>
77163         Tests for module 'inet_ntop'.
77164         * modules/inet_ntop-tests: New file.
77165         * tests/test-inet_ntop.c: New file.
77167 2009-11-04  Eric Blake  <ebb9@byu.net>
77169         stdlib-safer: wrap all mkstemp variants
77170         * modules/mkostemp (configure.ac): Set witness.
77171         * modules/mkostemps (configure.ac): Likewise.
77172         * modules/mkstemps (configure.ac): Likewise.
77173         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77174         (mkstemps_safer): Wrap more functions.
77175         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77176         wrapping.
77177         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77178         (mkstemps_safer): Implement the wrappers.
77180         mkstemps, mkostemps: new modules
77181         * modules/mkostemps: New module.
77182         * modules/mkstemps: Likewise.
77183         * lib/mkostemps.c (mkostemps): New file.
77184         * lib/mkstemps.c (mkstemps): Likewise.
77185         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77186         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77188         * modules/stdlib (Makefile.am): Substitute them.
77189         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77190         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77191         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77192         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77193         * MODULES.html.sh (File system functions): Mention them.
77195         tempname: resync from glibc
77196         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77197         same values for __GT_FILE as glibc.  Abort even when assertions
77198         are disabled.
77199         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77200         match its value otherwise.  Allow idempotent inclusion.
77201         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77202         * lib/mkostemp.c (mkostemp): Likewise.
77203         * lib/mkstemp.c (mkstemp): Likewise.
77204         * lib/tmpfile.c (tmpfile): Likewise.
77205         * NEWS: Document this.
77207         utimens: fix use of futimens on older Linux
77208         * lib/utimens.c (fdutimens): Use updated, rather than original,
77209         timespec to avoid bug in older Linux kernel.
77210         Reported by Simon Josefsson.
77212 2009-11-04  Bruno Haible  <bruno@clisp.org>
77214         Make num_processors more flexible and consistent.
77215         * lib/nproc.h (enum nproc_query): New type.
77216         (num_processors): Add a 'query' argument.
77217         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
77218         (num_processors): Add a 'query' argument. Test the value of the
77219         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
77220         mingw, count the number of CPUs available for the current process.
77221         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
77222         Check for sched_getaffinity and sched_getaffinity_np.
77223         * modules/nproc (Depends-on): Add c-ctype, extensions.
77224         * NEWS: Mention the change.
77226 2009-11-03  Bruno Haible  <bruno@clisp.org>
77228         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
77230 2009-11-03  Jim Meyering  <meyering@redhat.com>
77232         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
77233         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
77234         if it is defined.
77236 2009-11-02  Eric Blake  <ebb9@byu.net>
77238         mktime, timegm: share common declaration
77239         * lib/mktime-internal.h: New file.
77240         * lib/mktime.c: Use it rather than open-coding a declaration.
77241         * lib/timegm.c: Likewise.
77242         * modules/mktime (Files): Ship it.
77243         * modules/timegm (Files): Likewise.
77244         Suggested by Bruno Haible.
77246         test-update-copyright: update test to match script changes
77247         * tests/test-update-copyright.sh: Avoid hard-coding perl
77248         location.  Don't update *.bak created by earlier runs.
77250 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77251             Simon Josefsson  <simon@josefsson.org>
77252             Bruno Haible  <bruno@clisp.org>
77254         Fix link error on Solaris 8.
77255         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77256         also in libnsl. Define also INET_PTON_LIB.
77257         * modules/inet_pton (Link): New section.
77259 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77260             Bruno Haible  <bruno@clisp.org>
77262         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77263         * modules/inet_ntop (Link): New section.
77264         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77266 2009-11-02  Eric Blake  <ebb9@byu.net>
77268         maint: avoid compiler warnings in m4 macros
77269         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77270         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77272 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77274         * m4/pmccabe2html.m4: Remove file.
77275         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77276         function.  Change maintainer.
77277         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77278         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77279         Courtès).
77281 2009-10-31  Eric Blake  <ebb9@byu.net>
77283         fseeko: fix m4 regression
77284         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77285         regression from 2009-10-27.
77286         Reported by Ralf Wildenhues.
77288 2009-10-31  Jim Meyering  <meyering@redhat.com>
77290         inttostr: aesthetics and improved (compile-time) safety
77291         Define inttype_is_signed rather than inttype_is_unsigned,
77292         since the sole use is via "#if inttype_is_signed".
77293         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77294         inttype_is_unsigned.
77295         * lib/offtostr.c (inttype_is_signed): Likewise.
77296         * lib/uinttostr.c (inttype_is_signed): Likewise.
77297         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77298         * lib/inttostr.c (inttostr): Use verify to cross-check the
77299         inttype_is_signed value and the signedness of the actual type.
77300         * modules/inttostr (Depends-on): Add verify.
77302 2009-10-30  Eric Blake  <ebb9@byu.net>
77304         build: avoid compiler warnings
77305         * lib/fchmodat.c (lchmod): Mark unused variables.
77306         * lib/getopt.c (_getopt_initialize): Likewise.
77307         * lib/mktime.c (__mktime_internal): Provide prototype.
77308         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77309         older gcc that do not understand #pragma GCC diagnostic.
77310         * lib/uinttostr.c (inttype_is_unsigned): Define.
77311         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77313 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77315         stat: fix compilation on AIX
77316         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77317         only see struct stat64.
77319 2009-10-30  Eric Blake  <ebb9@byu.net>
77321         exclude: make more robust
77322         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77323         rather than masking a coding bug.
77324         Suggested by Bruno Haible.
77326 2009-10-30  Jim Meyering  <meyering@redhat.com>
77328         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77329         Rather than putting #!/usr/bin/perl on the first line,
77330         start with a variant of what's recommended by "man perlrun" that
77331         invokes the first "perl" program from your shell's search path.
77332         * build-aux/gitlog-to-changelog: Replace #!... as above.
77333         Add a "Local Variables" perl mode setting.
77334         Prompted by a patch from Ludovic Courtès.
77335         Improved by Eric Blake.
77336         * build-aux/useless-if-before-free: Likewise.
77337         * build-aux/announce-gen: Likewise.
77338         * build-aux/update-copyright: Likewise.
77340 2009-10-29  Eric Blake  <ebb9@byu.net>
77342         filenamecat-lgpl: adjust clients
77343         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77344         filenamecat.
77345         * modules/renameat (Depends-on): Likewise.
77347         filenamecat: split into filenamecat-lgpl
77348         * modules/filenamecat-lgpl: New module.
77349         * modules/filenamecat (Files): Move library-safe files into
77350         filenamecat-lgpl.
77351         (Depends-on): Add filenamecat-lgpl.
77352         (configure.ac): Declare witness.
77353         * lib/filenamecat.h (file_name_concat): Only declare when using
77354         GPL module.
77355         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77356         Move...
77357         * lib/filenamecat-lgpl.c: ...into new file.
77358         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77359         (gl_FILE_NAME_CONCAT): Use it.
77360         * MODULES.html.sh (File system functions): Mention new module.
77362         argp: avoid memory leak
77363         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77364         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77365         base_name, since the latter malloc()s and can call exit().
77366         Leak introduced 2006-07-03.
77368         dirname-lgpl: adjust clients that don't need full dirname
77369         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77370         * modules/filenamecat (Depends-on): Likewise.
77371         * modules/linkat (Depends-on): Likewise.
77372         * modules/mkancesdirs (Depends-on): Likewise.
77373         * modules/mkdir (Depends-on): Likewise.
77374         * modules/openat (Depends-on): Likewise.
77375         * modules/savewd (Depends-on): Likewise.
77376         * modules/rename (Depends-on): Likewise.
77377         (License): Relax license.
77378         * modules/mkdir-tests (Depends-on): Drop progname.
77379         (Makefile.am): Delete unneeded LDADD.
77380         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
77382         dirname: split into dirname-lgpl
77383         * modules/dirname-lgpl: New module.
77384         * modules/dirname (Files): Move library-safe files into
77385         dirname-lgpl.
77386         (Depends-on): Add dirname-lgpl.
77387         (configure.ac): Declare witness.
77388         * modules/double-slash-root (License): Relax license.
77389         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
77390         module.
77391         * lib/dirname.c (dir_len, mdir_name): Move...
77392         * lib/dirname-lgpl.c: ...into new file.
77393         * lib/basename.c (last_component, base_len): Move...
77394         * lib/basename-lgpl.c: ...into new file.
77395         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
77396         (gl_DIRNAME): Use it.
77397         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
77398         Mention new module.
77399         * modules/dirname-tests (Depends-on): Add progname.
77400         * tests/test-dirname.c (program_name): Delete.
77402         mkdir: make safe for libraries
77403         * modules/mkdir (Depends-on): Drop xalloc.
77404         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
77405         exit.
77407         tests: avoid some compiler warnings
77408         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
77409         literals.
77410         * tests/test-memchr.c (main): Avoid type mismatch.
77411         * tests/test-arpa_inet.c (main): Avoid unused parameters.
77412         * tests/test-base64.c (main): Likewise.
77413         * tests/test-getdelim.c (main): Likewise.
77414         * tests/test-gethostname.c (main): Likewise.
77415         * tests/test-getline.c (main): Likewise.
77416         * tests/test-netinet_in.c (main): Likewise.
77417         * tests/test-select.c (open_server_socket, main): Likewise.
77418         * tests/test-select-stdin.c (main): Likewise.
77419         * tests/test-sockets.c (main): Likewise.
77420         * tests/test-strsignal.c (main): Likewise.
77421         * tests/test-sys_select.c (main): Likewise.
77422         * tests/test-sys_socket.c (main): Likewise.
77423         * tests/test-u64.c (main): Likewise.
77424         * tests/test-xfprintf-posix.c (main): Likewise.
77425         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
77427         sockets: avoid compiler warning
77428         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
77430         maint: detect usage(1) and other suspicious exits
77431         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
77433 2009-10-29  Jim Meyering  <meyering@redhat.com>
77435         timespec: long-to-int truncation could make timespec_cmp malfunction
77436         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
77437         a multiple of 2^32 nanoseconds as no difference.
77439 2009-10-28  Jim Meyering  <meyering@redhat.com>
77441         fprintftime: wrap macro code argument in "do {...} while(0)"
77442         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
77443         cpy macro must be a statement that can be followed by a semicolon.
77444         Now that the else clause contains a comment and is hence longer
77445         than one line, I require curly braces.  That in turn requires
77446         that we wrap this code block in the standard do...while(0).
77448         fprintftime: remove stray semicolon from previous change
77449         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
77451         fprintftime: avoid a warning about ignored fwrite return value
77452         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
77453         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
77454         that is unsafe.
77455         * modules/fprintftime (Depends-on): Add ignore-value.
77457         exclude: avoid an unwarranted warning
77458         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
77460 2009-10-27  Eric Blake  <ebb9@byu.net>
77462         fseek: avoid compilation failure when fflush is replaced
77463         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
77464         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
77465         module is in use.
77466         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
77467         module is not in use; since REPLACE_FSEEK worked otherwise.
77468         (GNULIB_FTELLO): Likewise for ftell.
77469         Reported by Ian Beckwith and others.
77471 2009-10-27  Bruno Haible  <bruno@clisp.org>
77473         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
77474         Reported by Jim Meyering.
77476 2009-10-27  Jim Meyering  <jim@meyering.net>
77477             Bruno Haible  <bruno@clisp.org>
77479         Avoid warning despite dropping the return value of fwrite.
77480         * lib/unicodeio.c: Include ignore-value.h.
77481         (fwrite_success_callback): Explicitly ignore fwrite's return value.
77482         * modules/unicodeio (Depends-on): Add ignore-value.
77484 2009-10-26  Eric Blake  <ebb9@byu.net>
77486         areadlinkat: fix fallback path
77487         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
77488         pointer and zero.
77490 2009-10-22  Pádraig Brady  <P@draigBrady.com>
77492         Use a better IO block size for modern systems
77493         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
77494         * lib/md2.c: Likewise.
77495         * lib/md4.c: Likewise.
77496         * lib/md5.c: Likewise.
77497         * lib/sha1.c: Likewise.
77498         * lib/sha256.c: Likewise.
77499         * lib/sha512.c: Likewise.
77501 2009-10-22  Eric Blake  <ebb9@byu.net>
77503         tests: avoid several compiler warnings
77504         * tests/test-getcwd.c (main): Avoid buffer underflow.
77505         * tests/test-getdate.c (main): String literals are not safe with
77506         putenv, so use setenv.  Declare unused argument.
77507         * modules/getdate-tests (Depends-on): Add setenv.
77508         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
77509         problems with string literals in char *.
77510         * tests/test-hash.c (main): Avoid shadowing declaration.
77511         (insert_new): Treat string literals as char const *.
77512         * tests/test-getopt.h (test_getopt): Likewise.
77513         (getopt_loop): Alter types to minimize casting elsewhere.
77514         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
77515         (test_getopt_long_posix): Likewise.
77516         (do_getopt_long): Add wrapper to minimize casting.
77517         * tests/test-atexit.c (clear_temp_file): Use void.
77518         * tests/test-areadlink-with-size.c (main): Declare unused
77519         arguments.
77520         * tests/test-areadlink.c (main): Likewise.
77521         * tests/test-areadlinkat-with-size.c (main): Likewise.
77522         * tests/test-areadlinkat.c (main): Likewise.
77523         * tests/test-canonicalize-lgpl.c (main): Likewise.
77524         * tests/test-canonicalize.c (main): Likewise.
77525         * tests/test-dirent-safer.c (main): Likewise.
77526         * tests/test-dirname.c (main): Likewise.
77527         * tests/test-dup2.c (main): Likewise.
77528         * tests/test-fchdir.c (main): Likewise.
77529         * tests/test-fcntl-h.c (main): Likewise.
77530         * tests/test-fcntl-safer.c (main): Likewise.
77531         * tests/test-fdopendir.c (main): Likewise.
77532         * tests/test-fdutimensat.c (main): Likewise.
77533         * tests/test-fflush.c (main): Likewise.
77534         * tests/test-filenamecat.c (main): Likewise.
77535         * tests/test-filevercmp.c (main): Likewise.
77536         * tests/test-fopen-safer.c (main): Likewise.
77537         * tests/test-fopen.c (main): Likewise.
77538         * tests/test-fpending.c (main): Likewise.
77539         * tests/test-fpurge.c (main): Likewise.
77540         * tests/test-freading.c (main): Likewise.
77541         * tests/test-fstatat.c (main): Likewise.
77542         * tests/test-fsync.c (main): Likewise.
77543         * tests/test-futimens.c (main): Likewise.
77544         * tests/test-getndelim2.c (main): Likewise.
77545         * tests/test-gettimeofday.c (main): Likewise.
77546         * tests/test-getopt.c (main): Likewise.
77547         * tests/test-i-ring.c (main): Likewise.
77548         * tests/test-inttypes.c (main): Likewise.
77549         * tests/test-link.c (main): Likewise.
77550         * tests/test-lstat.c (main): Likewise.
77551         * tests/test-math.c (main): Likewise.
77552         * tests/test-md5.c (main): Likewise.
77553         * tests/test-memchr2.c (main): Likewise.
77554         * tests/test-memrchr.c (main): Likewise.
77555         * tests/test-mkdir.c (main): Likewise.
77556         * tests/test-mkdirat.c (main): Likewise.
77557         * tests/test-mkfifoat.c (main): Likewise.
77558         * tests/test-open.c (main): Likewise.
77559         * tests/test-openat-safer.c (main): Likewise.
77560         * tests/test-openat.c (main): Likewise.
77561         * tests/test-quotearg.c (main): Likewise.
77562         * tests/test-rawmemchr.c (main): Likewise.
77563         * tests/test-readlink.c (main): Likewise.
77564         * tests/test-remove.c (main): Likewise.
77565         * tests/test-rename.c (main): Likewise.
77566         * tests/test-renameat.c (main): Likewise.
77567         * tests/test-rmdir.c (main): Likewise.
77568         * tests/test-sha1.c (main): Likewise.
77569         * tests/test-signal.c (main): Likewise.
77570         * tests/test-sigaction.c (main): Likewise.
77571         * tests/test-stat.c (main): Likewise.
77572         * tests/test-stat-time.c (main): Likewise.
77573         * tests/test-stddef.c (main): Likewise.
77574         * tests/test-stdint.c (main): Likewise.
77575         * tests/test-stdio.c (main): Likewise.
77576         * tests/test-stdlib.c (main): Likewise.
77577         * tests/test-strchrnul.c (main): Likewise.
77578         * tests/test-strerror.c (main): Likewise.
77579         * tests/test-string.c (main): Likewise.
77580         * tests/test-strtod.c (main): Likewise.
77581         * tests/test-strverscmp.c (main): Likewise.
77582         * tests/test-symlink.c (main): Likewise.
77583         * tests/test-symlinkat.c (main): Likewise.
77584         * tests/test-sys_stat.c (main): Likewise.
77585         * tests/test-sys_time.c (main): Likewise.
77586         * tests/test-time.c (main): Likewise.
77587         * tests/test-unistd.c (main): Likewise.
77588         * tests/test-unlink.c (main): Likewise.
77589         * tests/test-unlinkat.c (main): Likewise.
77590         * tests/test-utimens.c (main): Likewise.
77591         * tests/test-utimensat.c (main): Likewise.
77592         * tests/test-version-etc.c (main): Likewise.
77593         * tests/test-wchar.c (main): Likewise.
77594         * tests/test-wctype.c (main): Likewise.
77595         * tests/test-xprintf-posix.c (main): Likewise.
77596         * tests/test-posixtm.c (main): Likewise.
77597         (STREQ): Delete unused macro.
77598         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
77599         shadowed variables.
77600         * tests/test-memchr.c (main): Likewise.
77602 2009-10-21  Eric Blake  <ebb9@byu.net>
77604         areadlinkat: avoid failure on older glibc
77605         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
77606         rather than mis-comparing 0 against FUNC_RESULT of char*.
77608 2009-10-21  Bruno Haible  <bruno@clisp.org>
77610         * modules/stpncpy (License): Relicense under LGPLv2+.
77611         Reported by David Lutterkort <lutter@redhat.com>.
77613 2009-10-20  Eric Blake  <ebb9@byu.net>
77615         utimensat: work around Solaris 9 bug
77616         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
77617         has trailing slash bugs.
77618         * tests/test-lutimens.h (test_lutimens): Enhance test.
77619         * tests/test-utimens.h (test_utimens): Likewise.
77620         * doc/posix-functions/utime.texi (utime): Enhance documentation.
77621         * doc/posix-functions/utimes.texi (utimes): Likewise.
77622         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77623         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
77624         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
77625         * doc/posix-functions/futimens.texi (futimens): Likewise.
77627         fdutimensat: new module
77628         * modules/fdutimensat: New file.
77629         * lib/fdutimensat.c (fdutimensat): Likewise.
77630         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
77631         * MODULES.html.sh (File system functions): Mention module.
77632         * modules/fdutimensat-tests: New test.
77633         * tests/test-fdutimensat.c: Likewise.
77635         doc: regenerate INSTALL
77636         * doc/INSTALL: Reflect recent autoconf update.
77637         * doc/INSTALL.ISO: Likewise.
77638         * doc/INSTALL.UTF-8: Likewise.
77640 2009-10-20  Pádraig Brady  <P@draigBrady.com>
77642         acl: warn if ACL support is not detected
77643         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
77645 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
77647         * lib/nproc.h: Add extern "C" block for C++.
77649 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
77650             Bruno Haible  <bruno@clisp.org>
77652         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
77653         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
77654         * doc/posix-functions/isalpha.texi: Likewise.
77655         * doc/posix-functions/isblank.texi: Likewise.
77656         * doc/posix-functions/iscntrl.texi: Likewise.
77657         * doc/posix-functions/isdigit.texi: Likewise.
77658         * doc/posix-functions/isgraph.texi: Likewise.
77659         * doc/posix-functions/islower.texi: Likewise.
77660         * doc/posix-functions/isprint.texi: Likewise.
77661         * doc/posix-functions/ispunct.texi: Likewise.
77662         * doc/posix-functions/isspace.texi: Likewise.
77663         * doc/posix-functions/isupper.texi: Likewise.
77664         * doc/posix-functions/isxdigit.texi: Likewise.
77666 2009-10-18  Bruno Haible  <bruno@clisp.org>
77668         Tests for module 'isblank'.
77669         * modules/isblank-tests: New file.
77670         * tests/test-isblank.c: New file.
77672         New module 'isblank'.
77673         * lib/isblank.c: New file.
77674         * m4/isblank.m4: New file.
77675         * modules/isblank: New file.
77676         * doc/posix-functions/isblank.texi: Mention the new module.
77678 2009-10-18  Bruno Haible  <bruno@clisp.org>
77680         New module 'ctype'.
77681         * lib/ctype.in.h: New file.
77682         * m4/ctype.m4: New file.
77683         * modules/ctype: New file.
77684         * doc/posix-headers/ctype.texi: Mention the new module.
77686 2009-10-18  Jim Meyering  <meyering@redhat.com>
77688         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
77689         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
77690         right after its initialization, rather than farther down.
77691         Keeping these in close proximity makes it easier to ensure
77692         that each such variable is initialized.  E.g.,
77694             LIB_CLOCK_GETTIME=
77695             AC_SUBST([LIB_CLOCK_GETTIME])
77697         This change also increments these serial numbers.
77698         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
77699         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77702 2009-10-18  Bruno Haible  <bruno@clisp.org>
77704         Don't let environment variables perturb build.
77705         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
77706         (gl_PREREQ_GETHRXTIME): ... not here.
77708 2009-10-18  Bruno Haible  <bruno@clisp.org>
77710         Avoid symlink attack in localcharset module.
77711         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
77712         (O_NOFOLLOW): Define fallback.
77713         (get_charset_aliases): Don't open the file if it is a symbolic link.
77714         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
77715         gl_FCNTL_H.
77716         (gl_FCNTL_H): Require it.
77717         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
77718         * modules/localcharset (Files): Add m4/fcntl_h.m4.
77719         Reported by Fergal Glynn <fglynn@veracode.com>.
77721 2009-10-18  Bruno Haible  <bruno@clisp.org>
77723         Implement nproc for mingw.
77724         * lib/nproc.c: Include <windows.h>
77725         (num_processors): On native Windows platforms, try GetSystemInfo.
77727 2009-10-18  Bruno Haible  <bruno@clisp.org>
77729         Implement nproc for IRIX.
77730         * lib/nproc.c: Include <sys/sysmp.h>.
77731         (num_processors): On IRIX systems, try sysmp.
77732         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
77734 2009-10-18  Bruno Haible  <bruno@clisp.org>
77736         Implement nproc for HP-UX.
77737         * lib/nproc.c: Include <sys/pstat.h>
77738         (num_processors): On HP-UX systems, try pstat_getdynamic.
77739         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
77740         pstat_getdynamic.
77742 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
77743             Bruno Haible  <bruno@clisp.org>
77745         Implement nproc for NetBSD, OpenBSD.
77746         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
77747         (ARRAY_SIZE): New macro.
77748         (num_processors): On BSD systems, try sysctl of HW_NCPU.
77749         * m4/nproc.m4: New file.
77750         * modules/nproc (Files): Add m4/nproc.m4.
77751         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
77752         (Makefile.am): Instead, augment lib_SOURCES.
77754 2009-10-18  Bruno Haible  <bruno@clisp.org>
77756         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
77757         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
77758         sys/param.h.
77760 2009-10-16  Eric Blake  <ebb9@byu.net>
77762         utimensat: new module
77763         * modules/utimensat: New file.
77764         * lib/utimensat.c (utimensat): Likewise.
77765         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77766         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
77767         so we can work around Linux bugs.
77768         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77769         * modules/sys_stat (Makefile.am): Substitute them.
77770         * lib/sys_stat.in.h (utimensat): Declare it.
77771         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77772         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77773         * modules/utimensat-tests: New test.
77774         * tests/test-utimensat.c: Likewise.
77776         utimens: let lutimens work on non-symlinks
77777         * lib/utimens.c (lutimens): Fall back to utimens rather than
77778         failing with ENOSYS, when file is not a symlink.
77779         (utimens): Reduce redirection.
77780         * tests/test-lutimens.h (test_lutimens): Update test to cover
77781         non-symlinks.
77782         * tests/test-utimens.h (test_utimens): Update test to cover
77783         symlinks.
77784         * tests/test-utimens.c (main): Update caller.
77786         utimens: cache whether utimensat syscall works
77787         * lib/utimens.c (utimensat_works_really): New cache variable.
77788         (fdutimens, lutimens): Use it to avoid failing syscall.
77790         test-stat-time, test-utimens: improve portability
77791         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
77792         ext4 on alpha, and for cygwin.
77793         * tests/test-utimens-common.h: New file.
77794         (nap): Factor delays into single function.
77795         * tests/test-lutimens.h (test_lutimens): Use new header.
77796         * tests/test-futimens.h (test_futimens): Likewise.
77797         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
77798         timestamps to occur from same machine, as was done previously for
77799         test_utimens.
77800         * modules/utimens-tests (Files): Ship new file.
77801         * modules/futimens-tests (Files): Likewise.
77802         Reported in part by Jim Meyering.
77804         sys_stat: sort replacement declarations
77805         * lib/sys_stat.in.h: Sort declarations.
77806         * lib/futimens.c (futimens): Fix typo.
77808 2009-10-15  Jim Meyering  <meyering@redhat.com>
77810         don't let environment settings perturb build
77811         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
77812         could cause a configure-time and/or build-time malfunction.
77813         Typically, a configure-time function-in-library test is performed
77814         via code like this:
77816           LIB_VAR=
77817           AC_SUBST([LIB_VAR])
77818           prefix_saved_LIBS=$LIBS
77819             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
77820                        [test "$ac_cv_search_FUNC" = "none required" ||
77821                         LIB_VAR=$ac_cv_search_FUNC])
77822           LIBS=$prefix_saved_LIBS
77824         However, in each of the files affected by this change, the LIB_VAR=
77825         initialization was omitted.  Thus, when set in the environment, its
77826         value would propagate into generated Makefiles when FUNC is not found
77827         in LIB_NAME.
77828         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
77829         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77832 2009-10-14  Eric Blake  <ebb9@byu.net>
77834         fchdir: avoid infinite recursion in mingw
77835         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
77836         recursing.
77838         test-stat-time: port to mingw
77839         * tests/test-stat-time.c (force_unlink): Return a value.
77840         (test_ctime) [W32]: Fix compilation error.
77841         (nap): Don't call usleep with too large an argument.  Use
77842         force_unlink.
77843         * doc/pastposix-functions/usleep.texi (usleep): Document the
77844         portability issue.
77846 2009-10-13  Jim Meyering  <meyering@redhat.com>
77848         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
77849         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
77850         * modules/pipe-filter-ii: Likewise.
77851         * modules/sys_socket-tests: Likewise.
77852         * modules/tsearch-tests: Likewise.
77853         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
77854         (check): Depend on it.
77856 2009-10-12  Eric Blake  <ebb9@byu.net>
77858         utimens-tests: port to NFS file systems
77859         * tests/test-utimens.h (test_utimens): Refactor utimecmp
77860         comparisons to avoid spurious failures from timestamp drift
77861         between NFS machines.
77863 2009-10-12  Eric Blake  <ebb9@byu.net>
77865         stat-time-tests: minor cleanups
77866         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
77867         * tests/test-stat-time.c (nap): Separate assignment from call.
77868         Suggested by Paolo Bonzini and Bruno Haible.
77870         sys_stat: guarantee struct timespec
77871         * lib/sys_stat.in.h (includes): Always include <time.h>
77872         * modules/sys_stat (Depends-on): Add time.
77873         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
77874         mode_t permission values.
77875         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
77876         get at subsecond timestamps.
77878 2009-10-10  Eric Blake  <ebb9@byu.net>
77880         futimens: new module
77881         * modules/futimens: New file.
77882         * lib/futimens.c (futimens): Likewise.
77883         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
77884         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
77885         we can work around Linux bugs.
77886         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77887         * modules/sys_stat (Makefile.am): Substitute them.
77888         * lib/sys_stat.in.h (futimens): Declare it.
77889         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77890         * doc/posix-functions/futimens.texi (futimens): Likewise.
77891         * modules/futimens-tests: New test.
77892         * tests/test-futimens.c: Likewise.
77894         utimens: introduce fdutimens
77895         * lib/utimens.h (fdutimens): New prototype.
77896         * lib/utimens.c (gl_futimens): Move guts...
77897         (fdutimens): ...to new interface.
77898         * tests/test-utimens.c (do_fdutimens): Use it.
77900         utimens: add UTIME_NOW and UTIME_OMIT support
77901         * lib/utimens.c (validate_timespec, update_timespec): New helper
77902         functions.
77903         (gl_futimens, lutimens): Use them.
77904         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
77905         stdbool, sys_stat.
77906         (Link): Mention resulting library dependency.
77907         * modules/utimecmp (Link): Likewise.
77908         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
77909         (Makefile.am): Pick up library dependency.
77910         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
77911         definition.
77912         * tests/test-sys_stat.c: Test the definitions.
77913         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
77914         * NEWS: Document library dependency.
77916         utimecmp: support symlink timestamps
77917         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
77918         hashing when possible.  Use pathconf when available.
77919         (SYSCALL_RESOLUTION): Recognize tighter resolution.
77920         * modules/utimecmp (Depends-on): Add lstat.
77922         utimens: add lutimens interface
77923         * lib/utimens.c (lutimens): New function.
77924         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
77925         * lib/utimens.h (lutimens): Declare new interface.
77926         * tests/test-utimens.c (main): Enhance test.
77927         * tests/test-lutimens.h (test_lutimens): New file.
77928         * modules/utimens-tests (Files): Distribute it.
77929         (Depends-on): Add symlink.
77930         (configure.ac): Check for usleep.
77932         utimens: validate futimens usage
77933         * lib/utimens.c (gl_futimens): Require valid fd up front, using
77934         fewer syscalls on failure later on.  Avoid compiler warning on
77935         mingw.
77936         * modules/utimens (Depends-on): Add dup2.
77938         utimens: add test
77939         * modules/utimens-tests: New test.
77940         * tests/test-utimens.h: New file.
77941         * tests/test-futimens.h: Likewise.
77942         * tests/test-utimens.c: Likewise.
77944         doc: mention timestamp portability issues
77945         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
77946         instead.
77947         * doc/posix-functions/utime.texi (utime): Likewise.
77948         * doc/posix-functions/utimes.texi (utimes): Likewise.
77949         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
77950         instead.
77951         * doc/posix-functions/futimens.texi (futimens): Mention utimens
77952         module.
77953         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77954         Mention weakness with symlink timestamps.
77955         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
77956         to utimensat/futimens instead.
77957         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
77959         test-dup2: enhance test
77960         * tests/test-dup2.c (main): Also check AT_FDCWD.
77962         test-stat-time: avoid more spurious failures
77963         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
77964         xfs; and avoid race if the two timestamps cross quantization edge.
77966         relocatable: prefer 'file system' over 'filesystem'
77967         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
77968         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
77969         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
77970         * doc/relocatable.texi (Enabling Relocatability): Likewise.
77971         * lib/relocatable.c (compute_curr_prefix): Likewise.
77973 2009-10-10  Jim Meyering  <meyering@redhat.com>
77975         stat-time-tests: check for the usleep function
77976         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
77978 2009-10-10  Bruno Haible  <bruno@clisp.org>
77980         * modules/xnanosleep: Put the Link section after the Include section.
77982 2009-10-09  Eric Blake  <ebb9@byu.net>
77984         dup2: work around FreeBSD 6.1 bug
77985         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
77986         * doc/posix-functions/dup2.texi (dup2): Document it.
77987         Reported by Nelson H. F. Beebe and Jim Meyering.
77989         test-stat-time: port to buggy NFS clients
77990         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
77991         (test_ctime): Also skip test if mtime and ctime are skewed.
77993         maint: prefer 'file system' over 'filesystem'
77994         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
77995         * doc/posix-functions/lstat.texi (lstat): Likewise.
77996         * lib/file-has-acl.c (file_has_acl): Likewise.
77997         * lib/fwriteerror.c [TEST]: Likewise.
77998         * tests/test-areadlink.h (test_areadlink): Likewise.
77999         * tests/test-areadlinkat-with-size.c (main): Likewise.
78000         * tests/test-areadlinkat.c (main): Likewise.
78001         * tests/test-canonicalize-lgpl.c (main): Likewise.
78002         * tests/test-canonicalize.c (main): Likewise.
78003         * tests/test-fstatat.c (main): Likewise.
78004         * tests/test-linkat.c (main): Likewise.
78005         * tests/test-lstat.h (test_lstat_func): Likewise.
78006         * tests/test-mkdir.h (test_mkdir): Likewise.
78007         * tests/test-readlink.h (test_readlink): Likewise.
78008         * tests/test-remove.c (main): Likewise.
78009         * tests/test-rename.h (test_rename): Likewise.
78010         * tests/test-renameat.c (main): Likewise.
78011         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78012         * tests/test-symlink.h (test_symlink): Likewise.
78013         * tests/test-symlinkat.c (main): Likewise.
78014         * tests/test-unlink.h (test_unlink_func): Likewise.
78015         * tests/test-unlinkat.c (main): Likewise.
78017         maint: make realtime library usage explicit
78018         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78019         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78020         * modules/settime (Link): Likewise.
78021         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78023         test-stat-time: speed up execution
78024         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78025         warning on mingw.
78026         (nap): New helper function.
78027         (prepare_test): Use it to reduce sleep time.
78028         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78029         execution.
78030         * modules/stat-time-tests (configure.ac): Check for usleep.
78032 2009-10-09  Jim Meyering  <meyering@redhat.com>
78034         selinux-h: always use getfilecon wrappers
78035         * lib/getfilecon.c: New file.
78036         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78037         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78038         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78039         (fgetfilecon): Provide a stub.
78040         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78041         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78042         file unconditionally.
78043         When <selinux/selinux.h> is found, arrange to use wrappers.
78044         * modules/selinux-h (Files): Add getfilecon.c.
78045         (Makefile.am): Substitute include-next-related bits
78046         into the now-always-generated selinux/selinux.h file.
78047         * doc/glibc-functions/lgetfilecon.texi: New file.
78048         * doc/glibc-functions/fgetfilecon.texi: New file.
78049         * doc/glibc-functions/getfilecon.texi: New file.
78050         * doc/glibc-functions/getfilecon-desc.texi: New file.
78051         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78052         which to pull in the new files.
78053         * MODULES.html.sh (Misc): Add selinux-h.
78055 2009-10-08  Jim Meyering  <meyering@redhat.com>
78057         unistd: fix comment typo
78058         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78060 2009-10-08  Eric Blake  <ebb9@byu.net>
78062         areadlink: use SIZE_MAX consistently
78063         * modules/areadlink (Depends-on): Add stdint.
78064         * modules/areadlink-with-size (Depends-on): Likewise.
78065         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78066         gives NULL; drop sys/types, since unistd gives size_t; and add
78067         stdint for SIZE_MAX.
78068         (SIZE_MAX): Rely on headers.
78069         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78070         and add stdint.
78071         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78072         (SIZE_MAX): Likewise.
78073         (INITIAL_BUF_SIZE): Turn into enum.
78074         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78076 2009-10-08  Jim Meyering  <meyering@redhat.com>
78078         areadlinkat: avoid compilation failure
78079         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78080         Fix typo in comment.
78082 2009-10-07  Eric Blake  <ebb9@byu.net>
78084         areadlinkat-with-size: new module
78085         * modules/areadlinkat-with-size: New module.
78086         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78087         * lib/areadlink.h (areadlinkat): Declare it.
78088         * MODULES.html.sh (File system functions): Mention it.
78089         * modules/areadlinkat-with-size-tests: New test.
78090         * tests/test-areadlinkat-with-size.c: New file.
78092         xreadlinkat: new module
78093         * modules/xreadlinkat: New module.
78094         * lib/xreadlinkat.c (xreadlinkat): New file.
78095         * lib/xreadlink.h (xreadlinkat): Declare it.
78096         * MODULES.html.sh (File system functions): Mention it.
78098         areadlinkat: new module
78099         * lib/at-func.c (FUNC_FAIL): New define.
78100         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78101         * modules/areadlinkat: New module.
78102         * lib/linkat.c (areadlinkat): Move...
78103         * lib/areadlinkat.c (areadlinkat): ...to new file.
78104         * lib/areadlink.h (areadlinkat): Declare it.
78105         * modules/linkat (Depends-on): Add areadlinkat.
78106         * MODULES.html.sh (File system functions): Mention it.
78107         * modules/areadlinkat-tests: New test.
78108         * tests/test-areadlinkat.c: New file.
78110         areadlink, areadlink-with-size: add tests
78111         * modules/areadlink-tests: New test.
78112         * modules/areadlink-with-size-tests: Likewise.
78113         * tests/test-areadlink.h: New file.
78114         * tests/test-areadlink.c: Likewise.
78115         * tests/test-areadlink-with-size.c: Likewise.
78117         maint: minor cleanups
78118         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78119         _UNUSED_PARAMETER_ instead.
78120         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78121         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78122         * modules/linkat-tests (Files): Distribute test-link.h.
78124         openat, utimens: whitespace cleanup
78125         * lib/openat.c: Prefer space throughout, rather than mix of 8
78126         spaces vs. tabs.
78127         * lib/at-func.c: Likewise.
78128         * lib/utimens.c: Likewise.
78130         openat: avoid using wrong fd
78131         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78132         working directory chooses same fd.
78133         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78135         mkdir, mkdirat: fix cygwin 1.5.x bug
78136         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78137         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78138         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78139         bug.
78140         (gl_PREREQ_MKDIR): Delete unused macro.
78141         * modules/mkdir (Files): Track file rename.
78142         (configure.ac): Update macro name.
78143         * modules/openat (Depends-on): Add mkdir.
78144         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78146         mkdir, mkdirat: add tests
78147         * modules/mkdir-tests: New test.
78148         * tests/test-mkdir.h: New file.
78149         * tests/test-mkdir.c: Likewise.
78150         * tests/test-mkdirat.c: Likewise.
78151         * modules/openat-tests (Files): Add new files.
78152         (Makefile.am): Run new test.
78154 2009-10-06  Eric Blake  <ebb9@byu.net>
78156         doc: tweak *at function documentation
78157         * doc/posix-functions/faccessat.texi (faccessat): Mention
78158         known issue with replacement.
78159         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78160         * doc/posix-functions/linkat.texi (linkat): Likewise.
78161         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78162         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78163         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78164         * doc/posix-functions/renameat.texi (renameat): Likewise.
78165         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78167         openat: fix GNU/Hurd bug in unlinkat
78168         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78169         broken.
78170         * doc/posix-functions/unlink.texi (unlink): Document this.
78171         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78173         fdopendir: fix GNU/Hurd bug
78174         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78175         allowing non-directory fds.
78176         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78177         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78178         * modules/dirent (Makefile.am): Substitute it.
78179         * lib/dirent.in.h (fdopendir): Declare replacement.
78180         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78181         * tests/test-fdopendir.c (main): Test something other than
78182         /dev/null, since on Hurd that behaves like a directory.
78184         test-symlink: port to GNU/Hurd
78185         * tests/test-symlink.h (test_symlink): Relax expected errno.
78187         doc: tweak more cygwin information
78188         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78189         now compatible with glibc.
78190         * doc/posix-functions/getopt.texi (getopt): Likewise.
78192         getopt-gnu: add another test
78193         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78194         guarantee behavior relied on by m4.
78195         * tests/test-getopt.c (main): Use it.
78196         * modules/getopt-posix-tests (Depends-on): Add setenv.
78197         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78199         getopt: fix compilation on darwin
78200         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78201         include.
78202         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78203         Reported by Ludovic Courtès.
78205 2009-10-06  Bruno Haible  <bruno@clisp.org>
78207         * modules/size_max (Description): Discourage its use.
78208         Reported by Simon Josefsson.
78210 2009-10-06  Jim Meyering  <meyering@redhat.com>
78212         linkat: avoid compilation failure
78213         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
78215 2009-10-05  Eric Blake  <ebb9@byu.net>
78217         linkat: support Linux 2.6.17
78218         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
78219         linkat on Linux, but allow cache variable override.
78220         * lib/linkat.c (rpl_linkat): Define override.
78221         * modules/linkat (Depends-on): Add symlinkat.
78222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
78223         * modules/unistd (Makefile.am): Substitute it.
78224         * lib/unistd.in.h (linkat): Declare replacement.
78225         Reported by Pádraig Brady.
78227         quotearg: port test to systems with C.UTF-8 locale
78228         * tests/test-quotearg.c (struct result_strings): Add another
78229         member, differentiating between C.ASCII and C.UTF-8 handling.
78230         (compare_strings): Add parameter.
78231         (main): Adjust all callers.
78233         getopt: avoid clash with FreeBSD _getopt_internal
78234         * lib/getopt.in.h (_getopt_internal): Override the name.
78235         * lib/getopt_int.h (includes): Pick up any overrides.
78236         Reported by Reuben Thomas.
78238         hash: allow C89 compilation
78239         * lib/hash.c (check_tuning): Move declaration before statement.
78240         Reported by Reuben Thomas.
78242 2009-10-05  Karl Berry  <karl@gnu.org>
78244         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
78246 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
78247             Bruno Haible  <bruno@clisp.org>
78249         * lib/uname.c (uname): Use a table-driven algorithm to compute
78250         Windows NT versions.
78252 2009-10-04  Bruno Haible  <bruno@clisp.org>
78254         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78255         program_invocation_short_name.
78256         * modules/progname (configure.ac): Test for presence of
78257         program_invocation_short_name.
78258         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78260 2009-10-04  Bruno Haible  <bruno@clisp.org>
78262         * lib/progname.c (set_program_name): Fix comment.
78263         Reported by Jim Meyering.
78265 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78266             Bruno Haible  <bruno@clisp.org>
78268         * lib/uname.c: Include <string.h>.
78269         (uname): Do only one call to GetVersionEx in the common case.
78271 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78272             Bruno Haible  <bruno@clisp.org>
78274         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78275         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78276         (uname): Add support for Windows CE and various non-x86 CPU types.
78278 2009-10-03  Bruno Haible  <bruno@clisp.org>
78280         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78281         invocation to tests/configure.ac.
78282         Reported by Ian Beckwith <ianb@erislabs.net>.
78284 2009-10-02  Eric Blake  <ebb9@byu.net>
78286         fchdir: avoid compiler warning
78287         * lib/fchdir.c (canonicalize_file_name)
78288         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78290         test-open: support mingw errno values
78291         * tests/test-open.h (test_open): Relax test.
78292         * tests/test-fopen.h (test_fopen): Likewise.
78293         * tests/test-openat-safer.c (main): Likewise.
78295         open: fix opening directory on mingw
78296         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78298         test-open: on GNU/Hurd, /dev/null is a directory
78299         * tests/test-fopen.h (main): Rename...
78300         (test_fopen): ...to this.  Use a guaranteed non-directory when
78301         confirming open behavior on trailing slash.
78302         * tests/test-openat-safer.c (main): Likewise.
78303         * tests/test-open.h (main): Likewise....
78304         (test_open): ...to this.
78305         * tests/test-fopen.c (main): Adjust caller.
78306         * tests/test-fopen-safer.c (main): Likewise.
78307         * tests/test-open.c (main): Likewise.
78308         * tests/test-fcntl-safer.c (main): Likewise.
78309         Reported by Samuel Thibault.
78311         rename, fchdir: don't ignore chdir failure
78312         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78313         * lib/rename.c (rpl_rename) [W32]: Likewise.
78314         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78315         an empty destination directory if source cannot be renamed,
78316         although there is still possibility for failure.
78317         * doc/posix-functions/rename.texi (rename): Document the race.
78318         Reported by Jim Meyering.
78320         maint: cleanup whitespace in recent commits
78321         * lib/rename.c (rpl_rename): Remove tabs.
78322         * tests/test-link.h (test_link): Likewise.
78323         * lib/fchdir.c (get_name): Likewise.
78324         Reported by Jim Meyering.
78326 2009-10-02  Ben Pfaff  <blp@gnu.org>
78328         relocatable-prog-wrapper: Add missing dependency on
78329         double-slash-root.
78330         * modules/relocatable-prog-wrapper: Add dependency.
78331         Reported by Ian Beckwith <ianb@erislabs.net>.
78333 2009-10-02  Eric Blake  <ebb9@byu.net>
78335         renameat: fix Solaris bugs
78336         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78337         needed fixing.
78338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78339         * modules/stdio (Makefile.am): Substitute it.
78340         * lib/stdio.in.h (renameat): Declare replacement.
78341         * lib/renameat.c (rpl_renameat): Implement fix.
78343         renameat: new module
78344         * modules/renameat: New file.
78345         * lib/renameat.c (renameat): Likewise.
78346         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78348         * modules/stdio (Makefile.am): Substitute them.
78349         * lib/stdio.in.h (renameat): Declare it.
78350         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78351         * doc/posix-functions/renameat.texi (renameat): Likewise.
78352         * modules/renameat-tests: New test.
78353         * tests/test-renameat.c: Likewise.
78355         rename: fix mingw bugs
78356         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78357         directory overwrite bugs.
78359         rename: fix another cygwin 1.5 bug
78360         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78361         checks.
78362         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78363         unnecessary cygwin workarounds.  Also work around bug with moving
78364         full directory onto an empty one.
78365         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78367         rename-dest-slash: merge into rename module
78368         * modules/rename-dest-slash (Status): Mark obsolete.
78369         (Depends-on): Add rename.
78370         (Files): Let rename do it all.
78371         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78372         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78373         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78374         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78375         * lib/rename.c (rpl_rename): Update comments.
78377         rename: fix cygwin 1.5.x bugs
78378         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78379         * lib/rename.c (rpl_rename): Work around them.
78380         * modules/rename (Depends-on): Add same-inode.
78382         rename: fix Solaris 10 bug
78383         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78384         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
78385         was the only bug.
78387         rename: fix Solaris 9 bug
78388         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
78389         on non-directory.  Avoid calling exit.
78390         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
78391         strdup.
78392         * modules/rename-tests (Depends-on): Drop lstat.
78393         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78394         (gl_PREREQ_RENAME): Delete unused macro.
78396         rename-dest-slash: fix NetBSD bug
78397         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
78398         links.
78399         * modules/rename-dest-slash (Depends-on): Add same-inode.
78401         rename-tests: new test, exposes several platform bugs
78402         * modules/rename-tests: New file.
78403         * tests/test-rename.h: Likewise.
78404         * tests/test-rename.c: Likewise.
78405         * doc/posix-functions/rename.texi (rename): Improve documentation,
78406         including bugs that will eventually be fixed in gnulib.
78408 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
78410         * lib/uname.c: Include <stdlib.h>
78411         (uname): Assume version info is available.
78413 2009-10-02  Jim Meyering  <meyering@redhat.com>
78415         gnu-web-doc-update: correct --help output
78416         * build-aux/gnu-web-doc-update: Make --help output relevant.
78418         gnu-web-doc-update: add standard options
78419         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
78421         gnu-web-doc-update: New module.
78422         Use this script to automatically update the on-line web documentation
78423         for your GNU project at http://www.gnu.org/software/$pkg/manual/
78424         * modules/gnu-web-doc-update: New file, from coreutils.
78425         * build-aux/gnu-web-doc-update: New script.
78427 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
78429         link: LoadLibrary is not needed.
78430         * lib/link.c: Use GetModuleHandle.
78432 2009-10-01  Eric Blake  <ebb9@byu.net>
78434         getopt: bump serial number
78435         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
78436         change.
78438         tests: tighten link, rmdir, and remove tests
78439         * tests/test-link.h (includes): No need to use <config.h> here.
78440         Clean up if directory hard link was created, otherwise test for
78441         trailing '.'.
78442         * tests/test-linkat.c (main): Simplify.
78443         * tests/test-remove.c (main): Enhance test for trailing '.'.
78444         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78446 2009-10-01  Jim Meyering  <meyering@redhat.com>
78448         maint.mk: requiring "make major" was annoying, for a "minor" release.
78449         What is intended is "stable", to contrast with alpha and beta,
78450         so require "make stable", not "make major".
78451         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
78452         (get_tool_versions): Likewise.
78453         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
78455 2009-09-30  Ben Pfaff  <blp@gnu.org>
78457         Fix broken build of replacement for Windows tmpfile().
78458         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
78459         flags argument added along with the 'mkostemp' module.
78461 2009-09-28  Bruno Haible  <bruno@clisp.org>
78463         Avoid identifier clash with POSIX function 'remove' defined as a macro.
78464         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
78465         to 'remove_elt'.
78466         (gl_list_remove): Update.
78467         * lib/gl_list.c (gl_list_remove): Update.
78468         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
78469         to 'remove_elt'.
78470         (gl_oset_remove): Update.
78471         * lib/gl_list.c (gl_oset_remove): Update.
78472         Reported by Eric Blake.
78474 2009-09-28  Eric Blake  <ebb9@byu.net>
78476         doc: mention yet more cygwin 1.7 status
78477         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
78478         cygwin.
78479         * doc/glibc-functions/execvpe.texi (execvpe): New file.
78480         * doc/gnulib.texi (Glibc unistd.h): Mention it.
78482         argp: fix test failure
78483         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
78484         that are not upper-case.  Pass correct range to tolower.
78486 2009-09-27  Jim Meyering  <meyering@redhat.com>
78488         test-yesno: work around sparc-dash here-document infelicity
78489         Without this change, the literal \177 byte in a here document
78490         would make dash 0.5.5.1-3 access uninitialized memory.
78491         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
78492         Instead, use a marker, "@", and filter through tr to create the desired
78493         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
78495 2009-09-27  Bruno Haible  <bruno@clisp.org>
78497         Disable untested support for new flavours of ACLs on AIX.
78498         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
78499         progress.
78500         * lib/set-mode-acl.c (qset_acl): Likewise.
78502 2008-12-07  Bruno Haible  <bruno@clisp.org>
78504         Add support for new flavours of ACLs on AIX. (Untested.)
78505         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
78506         (file_has_acl): Add support for newer AIX.
78507         * lib/set-mode-acl.c (qset_acl): Likewise.
78508         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
78509         Rainer Tammer <tammer@tammer.net>.
78511 2009-09-26  Eric Blake  <ebb9@byu.net>
78513         argp: fix compilation of getopt
78514         * lib/getopt.in.h (includes): Use different guard than glibc.
78515         Reported by Sergey Poznyakoff.
78517         doc: mention more cygwin 1.7 status
78518         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
78519         bug.
78520         * doc/posix-functions/execl.texi (execl): Likewise.
78521         * doc/posix-functions/execle.texi (execle): Likewise.
78522         * doc/posix-functions/execlp.texi (execlp): Likewise.
78523         * doc/posix-functions/execv.texi (execv): Likewise.
78524         * doc/posix-functions/execve.texi (execve): Likewise.
78525         * doc/posix-functions/execvp.texi (execvp): Likewise.
78526         * doc/glibc-functions/canonicalize_file_name.texi
78527         (canonicalize_file_name): Cygwin 1.7 now provides this.
78528         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
78529         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
78530         on AT_SYMLINK_NOFOLLOW.
78532 2009-09-24  Eric Blake  <ebb9@byu.net>
78534         test-linkat: make test more robust
78535         * tests/test-linkat.c (main): Avoid collision with EEXIST.
78537         getopt: fix inclusion guards for cygwin
78538         * modules/getopt-posix (Depends-on): Add include-next.
78539         (Makefile.am): Substitute more items in replacement header.
78540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
78541         <getopt.h>.
78542         * lib/getopt.in.h (includes): Use split inclusion guard, and
78543         prefer <getopt.h> over include <unistd.h> when one is present.
78544         (option): Also override name of 'struct option'.
78546         same-inode: revert prior change; it is not yet ready
78547         * NEWS: Undo mention of this change.
78548         * lib/same-inode.h (same-inode.h): Undo tri-state change.
78549         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78550         * lib/cycle-check.c (cycle_check): Likewise.
78551         * lib/same.c (same_name): Likewise.
78552         * lib/at-func2.c (at_func2): Likewise.
78554 2009-09-23  Eric Blake  <ebb9@byu.net>
78556         linkat: new module
78557         * modules/linkat: New file.
78558         * lib/at-func2.c (at_func2): Likewise.
78559         * lib/linkat.c (linkat): Likewise.
78560         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
78561         * lib/openat-priv.h (at_func2): Add declaration.
78562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78563         * modules/unistd (Makefile.am): Substitute them.
78564         * lib/unistd.in.h (linkat): Declare it.
78565         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78566         * doc/posix-functions/linkat.texi (linkat): Likewise.
78567         * doc/posix-functions/link.texi (link): Tweak wording.
78568         * tests/test-link.c (main): Move guts...
78569         * tests/test-link.h (test_link): ...into new file.
78570         * modules/linkat-tests: New test.
78571         * tests/test-linkat.c: Likewise.
78572         * modules/link-tests (Files): Ship new file.
78573         (Depends-on): Add stdbool.
78575         dirname: add library-safe mdir_name
78576         * lib/dirname.h (mdir_name): New prototype.
78577         * lib/dirname.c (dir_name): Move guts...
78578         (mdir_name): ...to new function that avoids xalloc_die.
78580         fchdir: another mingw fix
78581         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
78582         * lib/fchdir.c (get_name): New helper method; skips canonicalize
78583         on mingw (where it has not yet been ported), and make it optional
78584         elsewhere.
78585         (_gl_register_fd): Use it.
78587         same-inode: make SAME_INODE tri-state, to port to mingw
78588         * NEWS: Mention this change.
78589         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
78590         st_ino always being 0.
78591         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78592         * lib/cycle-check.c (cycle_check): Likewise.
78593         * lib/same.c (same_name): Likewise.
78595         lstat: avoid mingw compilation error
78596         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
78597         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
78598         lstat ourselves.
78599         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
78600         was adequate.
78601         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
78602         the checks for lstat.
78603         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
78605         link: fix test failure on Solaris 9
78606         * lib/link.c (rpl_link): Don't assume link will catch bogus
78607         trailing slash on source.
78609         test-symlinkat: enhance test
78610         * tests/test-readlink.c (main): Move guts...
78611         * tests/test-readlink.h (test_readlink): ...into new file.
78612         * tests/test-symlink.c (main): Move guts...
78613         * tests/test-symlink.h (test_symlink): ...into new file.
78614         * tests/test-symlinkat.c (main): Use new files for further
78615         coverage.
78616         (do_symlink, do_readlink): New helper functions.
78617         * modules/symlink-tests (Files): Ship new file.
78618         (Depends-on): Add stdbool.
78619         * modules/readlink-tests (Files): Ship new file.
78620         (Depends-on): Add stdbool.
78621         * modules/symlinkat-tests (Files): Use new files.
78623 2009-09-23  Eric Blake  <ebb9@byu.net>
78625         readlink: document portability issue with symlink length
78626         * doc/posix-functions/lstat.texi (lstat): Mention that some file
78627         systems have bogus st_size on symlinks, and mention the
78628         areadlink-with-size module.
78629         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78630         * doc/posix-functions/readlink.texi (readlink): Mention the
78631         areadlink module, and ERANGE failure.
78632         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78633         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
78635         readlink: fix Solaris 9 bug with trailing slash
78636         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
78637         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
78638         * doc/posix-functions/readlink.texi (readlink): Document this.
78639         * modules/readlink-tests: New test.
78640         * tests/test-readlink.c: Likewise.
78642         readlink: fix cygwin 1.5.x bug with return type
78643         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
78644         * lib/unistd.in.h (readlink): Use ssize_t.
78645         * lib/readlink.c (readlink): Likewise.
78646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78647         * modules/unistd (Makefile.am): Substitute it.
78648         * lib/unistd.in.h (readlink): Declare replacement.
78649         * doc/posix-functions/readlink.texi (readlink): Document this.
78651         symlink: use throughout gnulib
78652         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
78653         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
78654         symlink is not used.
78655         * modules/symlinkat (Depends-on): Add symlink.
78656         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78657         * modules/canonicalize-tests (Depends-on): Likewise.
78658         * modules/lstat-tests (Depends-on): Likewise.
78659         * modules/openat-tests (Depends-on): Likewise.
78660         * modules/remove-tests (Depends-on): Likewise.
78661         * modules/rmdir-tests (Depends-on): Likewise.
78662         * modules/unlink-tests (Depends-on): Likewise.
78663         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
78664         * tests/test-canonicalize.c (symlink): Likewise.
78665         * tests/test-fstatat.c (symlink): Likewise.
78666         * tests/test-lstat.c (symlink): Likewise.
78667         * tests/test-remove.c (symlink): Likewise.
78668         * tests/test-rmdir.c (symlink): Likewise.
78669         * tests/test-unlink.c (symlink): Likewise.
78670         * tests/test-unlinkat.c (symlink): Likewise.
78672         symlink: new module, for Solaris 9 bug
78673         * modules/symlink: New file.
78674         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
78675         * lib/symlink.c: Likewise.
78676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78677         * modules/unistd (Makefile.am): Substitute them.
78678         * lib/unistd.in.h (symlink): Declare replacement.
78679         * MODULES.html.sh (File system functions): Mention it.
78680         * doc/posix-functions/symlink.texi (symlink): Likewise.
78681         * modules/symlink-tests: New test.
78682         * tests/test-symlink.c: Likewise.
78684 2009-09-23  Bruno Haible  <bruno@clisp.org>
78686         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
78687         when needed.
78688         Test case: gnulib-tool --import --with-tests atexit inttypes.
78689         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
78691 2009-09-23  Bruno Haible  <bruno@clisp.org>
78693         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
78694         subcommand, not in a subshell.
78696 2009-09-22  Eric Blake  <ebb9@byu.net>
78698         unistd: sort replacement declarations
78699         * lib/unistd.in.h: Sort declarations.
78701         open, openat: minor optimization
78702         * lib/open.c (open): If open succeeded, len is non-zero.
78703         * lib/openat.c (rpl_openat): Likewise.
78705         link-follow: ensure correct result
78706         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
78707         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
78708         distinguish between possible failures.
78710 2009-09-21  Eric Blake  <ebb9@byu.net>
78712         fts: avoid compiler warning
78713         * lib/fts.c (dirent_inode_sort_may_be_useful)
78714         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
78716 2009-09-19  Bruno Haible  <bruno@clisp.org>
78718         * lib/progreloc.c (canonicalize_file_name): New declaration.
78720 2009-09-19  Eric Blake  <ebb9@byu.net>
78722         link: fix quoting
78723         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
78725         openat: fix openat bugs on Solaris 9
78726         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
78727         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
78728         * modules/openat (Depends-on): Add open.
78729         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
78730         * modules/fcntl-h (Makefile.am): Substitute it.
78731         * lib/fcntl.in.h (openat): Declare replacement.
78732         * doc/posix-functions/openat.texi (openat): Document this.
78734         openat: move fstatat and unlinkat into correct files
78735         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
78736         compiled.
78737         * lib/openat.c (fstatat, unlinkat): Move...
78738         * lib/fstatat.c (fstatat): ...into correct files.
78739         * lib/unlinkat.c (unlinkat): Likewise.
78741         openat: fix unlinkat bugs on Solaris 9
78742         * lib/unlinkat.c (unlinkat): New file.
78743         * modules/openat (Depends-on): Add unlink.
78744         (Files): Distribute it.
78745         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
78746         trailing slash behavior is broken.
78747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78748         * modules/unistd (Makefile.am): Substitute it.
78749         * lib/unistd.in.h (unlinkat): Declare replacement.
78750         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
78752         openat: fix fstatat bugs on Solaris 9
78753         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
78754         stat.
78755         * doc/posix-functions/fstatat.texi (fstatat): Document this.
78757         test-unlinkat: enhance test, to expose Solaris 9 bug
78758         * tests/test-unlink.c (main): Factor guts...
78759         * tests/test-unlink.h (test_rmdir_func): ...into new file.
78760         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
78761         * tests/test-rmdir.c (main): Adjust caller.
78762         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
78763         (unlinker): New helper function.
78764         (rmdirat): Enhance check.
78765         * modules/rmdir-tests (Depends-on): Add stdbool.
78766         * modules/unlink-tests (Depends-on): Likewise.
78767         (Files): Add test-unlink.h.
78768         * modules/openat-tests (Files): Likewise.
78769         (Depends-on): Add unlinkdir.
78771         test-fstatat: new test, to expose Solaris 9 bugs
78772         * tests/test-stat.c (main): Factor guts...
78773         * tests/test-stat.h (test_stat_func): ...into new file.
78774         * tests/test-lstat.c (main): Factor guts...
78775         * tests/test-lstat.h (test_lstat_func): ...into new file.
78776         * tests/test-fstatat.c: New file.
78777         * modules/stat-tests (Files): Add test-stat.h.
78778         * modules/lstat-tests (Files): Add test-lstat.h.
78779         (Depends-on): Add stdbool.
78780         * modules/openat-tests (Depends-on): Add pathmax.
78781         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
78782         (Makefile.am): Run new test.
78784         remove: new module, for mingw and Solaris 9 bugs
78785         * modules/remove: New file.
78786         * lib/remove.c: Likewise.
78787         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
78788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78789         * modules/stdio (Makefile.am): Use them.
78790         * lib/stdio.in.h (remove): Declare replacement.
78791         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78792         * doc/posix-functions/remove.texi (remove): Likewise.
78793         * modules/remove-tests: New test.
78794         * tests/test-remove.c: Likewise.
78796         unlink: new module, for Solaris 9 bug
78797         * modules/unlink: New file.
78798         * lib/unlink.c: Likewise.
78799         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
78800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78801         * modules/unistd (Makefile.am): Use them.
78802         * lib/unistd.in.h (stat): Declare replacement.
78803         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78804         * doc/posix-functions/unlink.texi (unlink): Likewise.
78805         * modules/unlink-tests: New test.
78806         * tests/test-unlink.c: Likewise.
78808         lstat: fix Solaris 9 bug
78809         * lib/lstat.c (lstat): Also check for trailing slash on
78810         non-symlink, non-directories.  Use stat module to simplify logic.
78811         * doc/posix-functions/lstat.texi (lstat): Document it.
78812         * modules/lstat-tests (Depends-on): Add errno, same-inode.
78813         (configure.ac): Check for symlink.
78814         * tests/test-lstat.c (main): Add more tests.
78816         stat: add as dependency to other modules
78817         * modules/chown (Depends-on): Add stat.
78818         * modules/euidaccess (Depends-on): Likewise.
78819         * modules/fchdir (Depends-on): Likewise.
78820         * modules/isdir (Depends-on): Likewise.
78821         * modules/link (Depends-on): Likewise.
78822         * modules/lstat (Depends-on): Likewise.
78823         * modules/mkdir-p (Depends-on): Likewise.
78824         * modules/modechange (Depends-on): Likewise.
78825         * modules/open (Depends-on): Likewise.
78826         * modules/readlink (Depends-on): Likewise.
78827         * modules/same (Depends-on): Likewise.
78829         stat: fix Solaris 9 bug
78830         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
78831         slash.
78832         * lib/stat.c (rpl_stat): Work around it.
78833         * doc/posix-functions/stat.texi (stat): Update documentation.
78835         stat: new module, for mingw bug
78836         * modules/stat: New file.
78837         * lib/stat.c: Likewise.
78838         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
78839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78840         * modules/sys_stat (Makefile.am): Use them.
78841         * lib/sys_stat.in.h (stat): Declare replacement.
78842         * lib/openat.c (fstatat): Deal with lstat and stat being function
78843         macros.
78844         * modules/openat (Depends-on): Add inline.
78845         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78846         * doc/posix-functions/stat.texi (stat): Likewise.
78847         * modules/stat-tests: New test.
78848         * tests/test-stat.c: Likewise.
78850 2009-09-19  Jim Meyering  <meyering@redhat.com>
78852         syntax-check: detect unnecessary inclusion of canonicalize.h
78853         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
78855 2009-09-19  Eric Blake  <ebb9@byu.net>
78857         canonicalize-lgpl: adjust clients to use correct header
78858         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
78859         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
78860         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
78861         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
78862         * lib/progreloc.c (includes): Likewise.
78864 2009-09-19  Jim Meyering  <meyering@redhat.com>
78866         test-posixtm.c: correct a comment
78867         * tests/test-posixtm.c: Correct first-line comment.
78868         Spotted by Eric Blake.
78870 2009-09-16  Jim Meyering  <meyering@redhat.com>
78872         posixtm-tests: make T const-correct; add a test case
78873         * tests/test-posixtm.c (T): Declare const.
78874         Add a test for -(2^31+1).
78875         Remove useless can-succeed-only-in-2002 test.
78877         posixtm-tests: adjust the sole failing test
78878         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
78879         expected output matches what mktime now produces.  Cross-checked via
78880         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
78882         posixtm: move #ifdef'd tests into a new module
78883         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
78884         * tests/test-posixtm.c: ... this new file.
78885         * modules/posixtm-tests: New module.
78887 2009-09-19  Eric Blake  <ebb9@byu.net>
78889         openat: simplify use of at-func.c
78890         * lib/at-func.c (includes): Include prerequisites here, to
78891         simplify requirements on client files.
78892         * lib/openat-priv.h: Add double-inclusion guard.
78893         * lib/faccessat.c (includes): Simplify.
78894         * lib/fchmodat.c (includes): Likewise.
78895         * lib/fchownat.c (includes): Likewise.
78896         * lib/mkdirat.c (includes): Likewise.
78897         * lib/mkfifoat.c (includes): Likewise.
78898         * lib/symlinkat.c (includes): Likewise.
78900         openat: allow return of fd 0
78901         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
78902         * modules/save-cwd (Depends-on): Replace fcntl-safer with
78903         unistd-safer.
78904         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
78905         <fcntl.h>; this module does not leak fds.
78906         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
78907         must be allowed to return 0, leaving openat_safer to add the
78908         safety.
78909         (openat_permissive): Avoid writing to just-opened fd 2 if
78910         restoring the current directory fails.
78911         * lib/openat-die.c (openat_restore_fail): Add comment.
78912         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
78913         (save_cwd): Guarantee safe fd, but without use of open_safer.
78914         * tests/test-openat.c: New test.
78915         * modules/openat-tests (Files, Makefile.am): Distribute and build
78916         new file.
78918         relocatable-prog-wrapper: fix build
78919         * modules/relocatable-prog-wrapper (Files): Update name of
78920         canonicalize m4 file, broken on 2009-09-17.
78921         Reported by emad hajjar <aleppos@hotmail.com>.
78923 2009-09-19  Bruno Haible  <bruno@clisp.org>
78925         * lib/safe-alloc.h: Use the standard header with GPL copyright.
78926         * lib/safe-alloc.c: Likewise.
78927         Reported by Ian Beckwith <ianb@erislabs.net>.
78929 2009-09-18  Bruno Haible  <bruno@clisp.org>
78931         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
78932         Reported by <erobles@sensacd.com.mx>.
78934 2009-09-17  Eric Blake  <ebb9@byu.net>
78936         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
78937         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
78938         slashes when checking if last component is missing.
78939         * tests/test-canonicalize.c (main): Test this.
78941         canonicalize, canonicalize-lgpl: honor // if distinct from /
78942         * modules/canonicalize (Files): Add double-slash-root.m4.
78943         * modules/canonicalize-lgpl (Files): Likewise.
78944         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
78945         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
78946         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
78947         fallback definition.
78948         (canonicalize_filename_mode): Use it to protect //.
78949         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
78950         (__realpath): Likewise.
78951         * tests/test-canonicalize.c (main): Test this.
78952         * tests/test-canonicalize-lgpl.c (main): Likewise.
78953         * modules/canonicalize-tests (Depends-on): Add same-inode.
78954         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78956         canonicalize-lgpl: fix glibc bug with trailing slash
78957         * m4/canonicalize-lgpl.m4: Move contents...
78958         * m4/canonicalize.m4: ...here.
78959         (gl_CANONICALIZE_LGPL): Factor realpath check...
78960         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
78961         glibc 2.3.5 bug, fixed 2005-04-27.
78962         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
78963         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
78964         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
78965         * modules/canonicalize-lgpl (Files): Manage file rename.
78966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
78967         * modules/stdlib (Makefile.am): Substitute witness.
78968         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
78969         is needed.
78970         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
78971         replacement is required.
78972         * lib/canonicalize.c (canonicalize_file_name): Likewise.
78973         * doc/glibc-functions/canonicalize_file_name.texi
78974         (canonicalize_file_name): Document this.
78975         * doc/posix-functions/realpath.texi (realpath): Likewise.
78977         canonicalize-lgpl: reject non-directory with trailing slash
78978         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
78979         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
78980         catches failures in glibc 2.3.5.
78981         * tests/test-canonicalize.c (main): Likewise.
78983         canonicalize-lgpl: use native realpath if it works
78984         * lib/canonicalize-lgpl.c (realpath): Guard with
78985         FUNC_REALPATH_WORKS.
78986         * lib/stdlib.in.h (realpath): Make declaration optional based on
78987         HAVE_REALPATH.
78988         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
78989         native realpath works.
78990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
78991         * modules/stdlib (Makefile.am): Substitute witness.
78993         canonicalize, canonicalize-lgpl: use <stdlib.h>
78994         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
78995         (Include): Mention <stdlib.h>.
78996         (configure.ac): Mention functions we provide.
78997         * modules/canonicalize (configure.ac): Likewise.
78998         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
78999         realpath if canonicalize_file_name is missing.
79000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79001         * modules/stdlib (Makefile.am): Substitute witnesses.
79002         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79003         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79004         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79005         * NEWS: Document this.
79006         * doc/glibc-functions/canonicalize_file_name.texi
79007         (canonicalize_file_name): Likewise.
79008         * doc/posix-functions/realpath.texi (realpath): Likewise.
79009         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79011         test-canonicalize: consolidate into single C program
79012         * tests/test-canonicalize.sh: Delete; move setup into...
79013         * tests/test-canonicalize.c (main): ...the program, making it
79014         easier to run in debugger.  Add some tests.
79015         * modules/canonicalize-tests (Files): Remove unused file.
79016         (Depends-on): Add progname.
79017         (configure.ac, Makefile.am): Simplify.
79019         test-canonicalize-lgpl: consolidate into single C program
79020         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79021         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79022         easier to run in debugger.  Add some tests.
79023         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79024         (configure.ac, Makefile.am): Simplify.
79026         canonicalize: avoid resolvepath
79027         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79028         unnecessary checks.
79029         * lib/canonicalize.c (includes): Simplify.
79030         (canonicalize_file_name): Drop resolvepath implementation.
79031         * modules/canonicalize (Depends-on): Drop filenamecat.
79033         canonicalize: don't lose errno
79034         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79035         over calls to free.
79037         canonicalize: simplify errno handling
79038         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79039         assignment.
79041         canonicalize, canonicalize-lgpl: update module dependencies
79042         * modules/canonicalize (Depends-on): Add extensions, lstat,
79043         pathmax, stdlib.
79044         (Files): Drop pathmax.h.
79045         (configure.ac): Adjust macro name.
79046         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79047         lstat, stdlib, sys_stat.
79048         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79049         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79050         extensions.
79051         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79052         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79053         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79054         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79055         declaration, if available.
79056         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79057         we can rely on the readlink module.
79058         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79059         (includes): Use <unistd.h> unconditionally.
79061 2009-09-17  Eric Blake  <ebb9@byu.net>
79063         maint: make Include sections of modules consistent
79064         * modules/alloca: Use only header name; no need to list #include.
79065         * modules/alloca-opt: Likewise.
79066         * modules/arpa_inet: Likewise.
79067         * modules/canon-host: Likewise.
79068         * modules/configmake: Likewise.
79069         * modules/dirent: Likewise.
79070         * modules/eealloc: Likewise.
79071         * modules/environ: Likewise.
79072         * modules/fchdir: Likewise.
79073         * modules/fcntl: Likewise.
79074         * modules/fcntl-h: Likewise.
79075         * modules/gethrxtime: Likewise.
79076         * modules/gettime: Likewise.
79077         * modules/ignore-value: Likewise.
79078         * modules/inet_ntop: Likewise.
79079         * modules/inet_pton: Likewise.
79080         * modules/inttypes: Likewise.
79081         * modules/isnand-nolibm: Likewise.
79082         * modules/isnanf-nolibm: Likewise.
79083         * modules/mbchar: Likewise.
79084         * modules/mbfile: Likewise.
79085         * modules/mbiter: Likewise.
79086         * modules/mbuiter: Likewise.
79087         * modules/netdb: Likewise.
79088         * modules/netinet_in: Likewise.
79089         * modules/nproc: Likewise.
79090         * modules/pagealign_alloc: Likewise.
79091         * modules/poll: Likewise.
79092         * modules/printf-frexp: Likewise.
79093         * modules/pthread: Likewise.
79094         * modules/putenv: Likewise.
79095         * modules/random_r: Likewise.
79096         * modules/relocatable-prog: Likewise.
79097         * modules/search: Likewise.
79098         * modules/select: Likewise.
79099         * modules/selinux-h: Likewise.
79100         * modules/settime: Likewise.
79101         * modules/signal: Likewise.
79102         * modules/size_max: Likewise.
79103         * modules/socklen: Likewise.
79104         * modules/ssize_t: Likewise.
79105         * modules/stdarg: Likewise.
79106         * modules/stdbool: Likewise.
79107         * modules/stddef: Likewise.
79108         * modules/stdint: Likewise.
79109         * modules/stdio: Likewise.
79110         * modules/stdlib: Likewise.
79111         * modules/string: Likewise.
79112         * modules/strings: Likewise.
79113         * modules/sys_file: Likewise.
79114         * modules/sys_ioctl: Likewise.
79115         * modules/sys_select: Likewise.
79116         * modules/sys_socket: Likewise.
79117         * modules/sys_stat: Likewise.
79118         * modules/sys_time: Likewise.
79119         * modules/sys_times: Likewise.
79120         * modules/sys_utsname: Likewise.
79121         * modules/sys_wait: Likewise.
79122         * modules/sysexits: Likewise.
79123         * modules/time: Likewise.
79124         * modules/times: Likewise.
79125         * modules/tmpfile: Likewise.
79126         * modules/trim: Likewise.
79127         * modules/unistd: Likewise.
79128         * modules/wchar: Likewise.
79129         * modules/wctype: Likewise.
79131 2009-09-17  Bruno Haible  <bruno@clisp.org>
79133         Make getdate.y compile on QNX and NetBSD 5 / i386.
79134         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79135         TIME_T_FITS_IN_LONG_INT.
79136         * lib/getdate.y (long_time_t): New type.
79137         (relative_time): Change type of 'seconds' field to long_time_t.
79138         (get_date): Update types of local variables. Check against overflow
79139         during conversion from long_time_t to time_t.
79140         Reported by Matt Kraai <kraai@ftbfs.org>
79141         and Hasso Tepper <hasso@netbsd.org>.
79143 2009-09-17  Bruno Haible  <bruno@clisp.org>
79145         * modules/COPYING: Update copyright years.
79146         * modules/README: Likeiwse.
79147         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79148         Reported by Ian Beckwith <ianb@erislabs.net>.
79150 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79152         * users.txt: Update references for gnuit package.
79154 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79156         * m4/getdelim.m4: Fix typo in copyright line.
79158 2009-09-17  Bruno Haible  <bruno@clisp.org>
79160         * lib/atoll.c: Use the standard header with GPL copyright.
79161         * lib/argz.in.h: Likewise.
79162         * lib/glob.c: Likewise.
79163         * lib/glob-libc.h: Likewise.
79164         * lib/random_r.c: Likewise.
79165         * lib/siglist.h: Likewise.
79166         * lib/strsignal.c: Likewise.
79167         Reported by Ian Beckwith <ianb@erislabs.net>.
79169 2009-09-17  Eric Blake  <ebb9@byu.net>
79171         rmdir: ensure correct dependency order
79172         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79174 2009-09-17  Bruno Haible  <bruno@clisp.org>
79176         Disable assertion that fails on NetBSD 5 / i386.
79177         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79178         Reported by Sam Steingold <sds@gnu.org>
79179         and Hasso Tepper <hasso@netbsd.org>.
79181 2009-09-16  Eric Blake  <ebb9@byu.net>
79183         unlinkdir: port to mingw
79184         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79185         on which no one can unlink a directory.
79187         stdlib: sort witness names
79188         * modules/stdlib (Makefile.am): Sort replacements.
79189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79190         * lib/stdlib.in.h: Likewise.
79192         parse-duration-tests: avoid link failure
79193         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79194         LIBINTL.
79195         Reported by Tom G. Christensen.
79197         openat-tests: ensure unlinkat behaves like rmdir
79198         * tests/test-rmdir.c (main): Factor guts...
79199         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79200         * modules/rmdir-tests (Files): Ship new file.
79201         * modules/openat-tests: New test.
79202         * tests/test-unlinkat.c: Likewise.
79204         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79205         * modules/rmdir-errno (Status, Notice): Now obsolete.
79207         rmdir: work around cygwin 1.5.x and mingw bugs
79208         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
79209         * lib/rmdir.c (rmdir): Work around it.
79210         * modules/rmdir (Status, Notice): No longer obsolete.
79211         (Files): Add dos.m4.
79212         (Depends-on): Add unistd.
79213         (configure.ac): Set witnesses.
79214         (License): Relax to LGPLv2+.
79215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
79216         * modules/unistd (Makefile.am): Substitute witnesses.
79217         * lib/unistd.in.h (rmdir): Declare replacement.
79218         * doc/posix-functions/rmdir.texi (rmdir): Document this.
79219         * modules/rmdir-tests: New tests.
79220         * tests/test-rmdir.c: Likewise.
79222 2009-09-15  Eric Blake  <ebb9@byu.net>
79224         fchdir: improve use of replacement functions
79225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
79226         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
79227         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
79228         REPLACE_CLOSEDIR.
79229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
79230         * modules/sys_stat (Makefile.am): Substitute correct witness.
79231         * modules/dirent (Makefile.am): Likewise.
79232         * modules/unistd (Makefile.am): Likewise.
79233         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
79234         * lib/unistd.in.h (dup): Likewise.
79235         * lib/sys_stat.in.h (fstat): Likewise.
79237         maint: ignore gnulib-tool temp files
79238         * .gitignore: Ignore files created during gnulib-tool --test.
79240 2009-09-13  Jim Meyering  <meyering@redhat.com>
79242         posixtm: don't reject a time that specify "60" as the number of seconds
79243         * lib/posixtm.c (posixtime): The code to reject invalid dates
79244         would also reject a time specified with the .60 suffix.
79245         But POSIX allows that, in order to accommodate leap seconds.
79246         So don't reject it.
79247         (main): Adjust tests accordingly.
79248         * modules/posixtm (Depends-on): Add stpcpy.
79250 2009-09-11  Jim Meyering  <meyering@redhat.com>
79252         announce-gen: include [$release_type] in emitted Subject:
79253         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79254         e.g., [stable] in the emitted Subject: line.
79256 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79258         Remove obsolete macros from several modules.
79259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79260         obsolete Autoconf macros with their modern counterparts.
79261         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79262         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79264         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79265         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79266         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79268         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79269         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79270         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79271         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79272         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79273         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79274         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79275         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79276         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79277         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79278         * m4/time_r.m4 (gl_TIME_R): Likewise.
79279         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79280         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79281         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79283         Fix copyright header in build-aux scripts.
79284         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79285         recommendation.
79286         * build-aux/ncftpput-ftp: Likewise.
79287         * build-aux/update-copyright: Likewise.
79289 2009-09-09  Eric Blake  <ebb9@byu.net>
79291         test-link: allow Linux choice of errno
79292         * tests/test-link.c (main): Relax test for alternate error.
79294         strndup: fix improper m4 caching
79295         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79296         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79297         (gl_PREREQ_STRNDUP): Delete.
79298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79299         * modules/string (Makefile.am): Substitute it.
79300         * lib/string.in.h (strndup): Modernize prototype.
79302         getcwd: port to mingw
79303         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79304         different from the POSIX assumptions made throughout the getcwd
79305         module; fortunately, the mingw getcwd does not need replacement.
79306         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79307         * modules/getcwd-tests: New test.
79308         * tests/test-getcwd.c: Likewise.
79310         link: fix platform bugs
79311         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79312         * lib/link.c (link): Work around them.  Fix related mingw bug.
79313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79314         * modules/unistd (Makefile.am): Substitute it.
79315         * lib/unistd.in.h (link): Declare replacement.
79316         * doc/posix-functions/link.texi (link): Document this.
79317         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79319         test-link: consolidate into single C program, test more cases
79320         * tests/test-link.sh: Delete.
79321         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79322         at least Cygwin and Solaris.
79323         * modules/link-tests (Files): Remove unused file.
79324         (Depends-on): Add errno, sys_stat.
79325         (Makefile.am): Simplify.
79327 2009-09-08  Bruno Haible  <bruno@clisp.org>
79329         Work around towlower, towupper bug on mingw.
79330         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79331         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79332         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79333         * doc/posix-functions/towupper.texi: Likewise.
79334         Reported by Eric Blake.
79336 2009-09-08  Jim Meyering  <meyering@redhat.com>
79338         build: don't try to run autoheader if we don't use it
79339         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79340         is not used in configure.ac.
79342 2009-09-08  Eric Blake  <ebb9@byu.net>
79344         euidaccess: fix compilation error
79345         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79347         rawmemchr: relax license
79348         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79349         okay.
79350         Reported by Jim Meyering.
79352         mkfifoat: new module
79353         * modules/mkfifoat: New file.
79354         * lib/mkfifoat.c: Likewise.
79355         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79357         * modules/sys_stat (Makefile.am): Use them.
79358         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79359         * MODULES.html.sh (File system functions): Mention module.
79360         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79361         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79362         * modules/mkfifoat-tests: New test.
79363         * tests/test-mkfifoat.c: Likewise.
79365         strchrnul: relax license
79366         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79367         okay.
79368         Reported by Jim Meyering.
79370 2009-09-08  Eric Blake  <ebb9@byu.net>
79372         fstatat: fix compilation on Solaris
79373         * lib/fstatat.c (includes): Add fcntl.h.
79374         Reported by Pádraig Brady.
79376 2009-09-07  Eric Blake  <ebb9@byu.net>
79378         rename: modernize replacement
79379         * modules/rename (Depends-on): Add stdio.
79380         (configure.ac): Declare witness.
79381         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
79382         stdio take care of replacement.
79383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79384         * modules/stdio (Makefile.am): Substitute them.
79385         * lib/stdio.in.h (rename): Declare replacement.
79386         * lib/rename.c (includes): Allow cross-compilation to non-windows
79387         machines.
79388         * doc/posix-functions/rename.texi (rename): Improve
79389         documentation.
79391         stdio: sort witness names
79392         * modules/stdio (Makefile.am): Sort replacements.
79393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79394         * lib/stdio.in.h: Likewise.
79396         getcwd: minor cleanups
79397         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
79398         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
79400         openat: provide more convenience names
79401         * modules/faccessat (configure.ac): Add C witness.
79402         * lib/unistd.in.h (readlinkat): Fix typo.
79403         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
79404         convenience wrappers.
79405         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
79406         wrappers in syntax checks.
79408 2009-09-06  Eric Blake  <ebb9@byu.net>
79410         doc: fix comments in recent patches
79411         * lib/faccessat.c: Mention correct function.
79412         * lib/fchmodat.c: Likewise.
79413         * lib/fchownat.c: Likewise.
79414         * lib/symlinkat.c: Likewise.
79415         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
79416         constants.
79418         faccessat, symlinkat: continue cleanup of previous patch
79419         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
79420         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79421         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
79422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
79423         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
79424         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
79425         set.
79427 2009-09-06  Bruno Haible  <bruno@clisp.org>
79429         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
79430         (fstatat): Declare if GNULIB_FSTATAT is set.
79431         (mkdirat): Declare if GNULIB_MKDIRAT is set.
79432         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
79433         (unlinkat): Declare if GNULIB_UNLINKAT is set.
79434         * modules/fcntl-h (Files): Remove m4/openat.m4.
79435         * modules/sys_stat (Files): Remove m4/openat.m4.
79436         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
79437         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
79438         * modules/unistd (Files): Remove m4/openat.m4.
79439         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
79440         GNULIB_OPENAT.
79441         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
79442         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
79443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
79444         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
79445         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
79446         gl_OPENAT_DEFAULTS.
79447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
79448         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
79449         Don't require gl_OPENAT_DEFAULTS.
79450         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
79451         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
79452         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
79453         (gl_OPENAT_DEFAULTS): Remove macro.
79455 2009-09-06  Bruno Haible  <bruno@clisp.org>
79457         * modules/openat (configure.ac): Remove unneeded witness.
79459 2009-09-06  Bruno Haible  <bruno@clisp.org>
79461         Set errno to ENOSYS when a function is entirely unsupported.
79462         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
79463         EOPNOTSUPP.
79464         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79465         * modules/chown (Depends-on): Remove errno.
79467 2009-09-06  Bruno Haible  <bruno@clisp.org>
79469         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
79471 2009-09-06  Bruno Haible  <bruno@clisp.org>
79473         * lib/sys_stat.in.h: Fix preprocessor command indentation.
79475 2009-09-06  Ben Pfaff  <blp@gnu.org>
79476             Bruno Haible  <bruno@clisp.org>
79478         Work around a glibc bug in strtok_r.
79479         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
79480         Undefine if UNDEFINE_STRTOK_R is set.
79481         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
79482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79483         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
79484         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
79485         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
79486         UNDEFINE_STRTOK_R.
79487         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
79489 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
79491         exclude: minor fix
79492         * lib/exclude.c: Include wctype.h
79494 2009-09-06  Akim Demaille  <demaille@gostai.com>
79496         bootstrap: improve error message
79497         * build-aux/bootstrap (find_tool): Upon failure, report the list
79498         of candidates.
79499         Honor the initial value of the envvar.
79501 2009-09-05  Eric Blake  <ebb9@byu.net>
79503         symlinkat: new module
79504         * modules/symlinkat: New file.
79505         * lib/symlinkat.c: Likewise.
79506         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
79507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79508         * modules/unistd (Makefile.am): Use them.
79509         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
79510         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
79511         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
79512         * MODULES.html.sh (File system functions): Mention module.
79513         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79514         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79515         * modules/symlinkat-tests: New test.
79516         * tests/test-symlinkat.c: Likewise.
79518         test-openat-safer: add more checks
79519         * tests/test-openat-safer.c (main): Check more code paths.
79521 2009-09-05  Jim Meyering  <meyering@redhat.com>
79523         syntax-check: detect unnecessary inclusion of openat.h
79524         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
79526 2009-09-05  Bruno Haible  <bruno@clisp.org>
79528         Support towlower, towupper.
79529         * doc/posix-functions/towlower.texi: Mention module wctype.
79530         * doc/posix-functions/towupper.texi: Likewise.
79531         * lib/wctype.in.h (towlower, towupper): New functions.
79532         * tests/test-wctype.c: Include stdio.h, stdlib.h.
79533         (ASSERT): New macro.
79534         (e): New variable.
79535         (main): Test also towlower, towupper. Test WEOF argument.
79536         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79538 2009-09-05  Bruno Haible  <bruno@clisp.org>
79540         Fix conversion behaviour when the input is invalid.
79541         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
79542         mark occurring in first pass of indirect conversion.
79543         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
79544         input.
79545         Found by clang's static analyzer.
79547 2009-09-05  Bruno Haible  <bruno@clisp.org>
79549         * tests/test-striconveh.c (main): Test indirect conversion on platforms
79550         where direct conversion is possible.
79552 2009-09-04  Eric Blake  <ebb9@byu.net>
79554         openat: fail with ENOENT on empty name
79555         * lib/openat-proc.c (openat_proc_name): Special-case the empty
79556         buffer.
79558         link-follow: fix logic bug in prior patch
79559         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
79560         reversed sense of yes and no in prior patch.  Avoid confusing
79561         compilation failure with desired semantics.
79563         link-follow: accommodate mingw and cross-compilation
79564         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
79565         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
79566         cross-compilation results to -1, to make linkat easier to
79567         implement when cross-compiling.  Trivially support mingw.
79568         * modules/link-follow (configure.ac): Call new name.
79569         * NEWS: Mention this.
79571 2009-09-03  Eric Blake  <ebb9@byu.net>
79573         faccessat: compile replacement
79574         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
79575         needed.
79577         fts: fix compilation error
79578         * lib/fts.c (includes): Re-add "openat.h", for
79579         openat_needs_fchdir.
79581         faccessat: new module
79582         * modules/faccessat: New file.
79583         * lib/faccessat.c: Likewise.
79584         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79586         * modules/unistd (Makefile.am): Use it.
79587         * lib/unistd.in.h (faccessat): Declare it.
79588         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
79589         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
79590         * MODULES.html.sh (File system functions): Mention it.
79591         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
79592         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
79594         euidaccess: prefer POSIX over non-standard implementation
79595         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
79596         * lib/euidaccess.c (euidaccess): Use it if available.
79598         openat: make template easier to use
79599         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
79600         AT_FUNC_F2 to be undefined.
79601         (VALIDATE_FLAG): New macro; use it to reject bad flags.
79602         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
79603         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
79604         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
79605         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
79606         Likewise.
79607         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
79608         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
79609         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
79610         Likewise.
79612         openat: declare in POSIX headers
79613         * NEWS: Mention this.
79614         * modules/openat (configure.ac): Declare witnesses.
79615         (Depends-on): Add fcntl-h, sys_stat, unistd.
79616         (Include): Mention correct headers.
79617         * modules/fcntl-h (Depends-on): Add link-warning.
79618         (Files): Add openat.m4.
79619         (Makefile.am): Substitute witnesses.
79620         * modules/sys_stat (Files, Makefile.am): Likewise.
79621         * modules/unistd (Files, Makefile.am): Likewise.
79622         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
79623         (gl_OPENAT_DEFAULTS): New macro.
79624         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
79625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
79626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
79627         (SYS_STAT_H): Remove unused variable.
79628         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
79629         * lib/fcntl--.h (includes): Remove unneeded header.
79630         * lib/openat-safer.c (includes): Likewise.
79631         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
79632         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
79633         appropriate headers.
79634         (__OPENAT_PREFIX): Delete.
79635         * lib/fcntl.in.h (openat): Provide declaration.
79636         (AT_FDCWD): Fix Solaris bug.
79637         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
79638         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
79639         * lib/fchmodat.c (includes):  Adjust to find declaration.
79640         * lib/fchownat.c (includes): Likewise.
79641         * lib/mkdirat.c (includes): Likewise.
79642         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
79643         still visible.
79645 2009-09-02  Eric Blake  <ebb9@byu.net>
79647         errno: use consistently
79648         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
79649         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
79650         * lib/canonicalize.c (ELOOP): Likewise.
79651         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
79652         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
79653         * lib/lchown.c (EOPNOTSUPP): Likewise.
79654         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
79655         * lib/savewd.c (ESTALE): Likewise.
79656         * lib/settime.c (ENOSYS): Likewise.
79657         * lib/utimens.c (ENOSYS): Likewise.
79658         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
79659         * lib/chdir-safer.c (ELOOP): Likewise.
79660         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
79661         * modules/c-stack (Depends-on): Add errno.
79662         * modules/canonicalize (Depends-on): Likewise.
79663         * modules/chdir-safer (Depends-on): Likewise.
79664         * modules/fdopendir (Depends-on): Likewise.
79665         * modules/inet_ntop (Depends-on): Likewise.
79666         * modules/inet_pton (Depends-on): Likewise.
79667         * modules/lchown (Depends-on): Likewise.
79668         * modules/openat (Depends-on): Likewise.
79669         * modules/savewd (Depends-on): Likewise.
79670         * modules/settime (Depends-on): Likewise.
79671         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
79673         fts: avoid leaking fds
79674         * modules/fts (Depends-on): Add cloexec.
79675         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
79676         flag.
79678         fts: make directory fds more robust
79679         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
79680         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
79682         backupfile, chdir-long, fts, savedir: make safer
79683         * lib/backupfile.c (includes): Use "dirent--.h", since
79684         numbered_backup can write to stderr during readdir.
79685         * lib/savedir.c (includes): Likewise.
79686         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
79687         emulation can write to stderr on failure.
79688         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
79689         * lib/getcwd.c: Document why opendir_safer is unused.
79690         * lib/glob.c: Likewise.
79691         * lib/scandir.c: Likewise.
79692         * lib/openat-proc.c: Likewise, for open_safer.
79693         * modules/backupfile (Depends-on): Add dirent-safer.
79694         * modules/savedir (Depends-on): Likewise.
79695         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
79696         * modules/chdir-long (Depends-on): Add openat-safer.
79698         openat-safer: new module
79699         * modules/openat-safer: New file.
79700         * lib/openat-safer.c: Likewise.
79701         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
79702         * lib/fcntl-safer.h (openat_safer): Declare.
79703         * lib/fcntl--.h (openat): Override.
79704         * MODULES.html.sh (File descriptor based I/O): Mention it.
79705         * lib/openat.h: Add double-inclusion guards.
79706         * lib/openat.c (includes): Only include "fcntl-safer.h", not
79707         "fcntl--.h", so we can implement openat.
79708         * modules/openat-safer-tests: New test.
79709         * tests/test-openat-safer.c: New file.
79711         dirent-safer: new module
79712         * modules/dirent-safer: New file.
79713         * lib/dirent--.h: Likewise.
79714         * lib/dirent-safer.h: Likewise.
79715         * lib/opendir-safer.c: Likewise.
79716         * m4/dirent-safer.m4: Likewise.
79717         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
79718         * modules/dirent-safer-tests: New test.
79719         * tests/test-dirent-safer.c: New file.
79720         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
79722         fdopendir: optimize on mingw
79723         * lib/unistd.in.h (_gl_directory_name): New prototype.
79724         * lib/fchdir.c (_gl_directory_name): Implement it.
79725         (fchdir): Use it to simplify implementation.
79726         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
79727         fchdir, when available, to avoid calling [f]chdir().
79729         fdopendir: split into its own module
79730         * lib/openat.c (fdopendir): Move...
79731         * lib/fdopendir.c: ...into new file.
79732         * modules/fdopendir: New module.
79733         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
79734         * modules/openat (Depends-on): Add fdopendir.
79735         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
79736         fdopendir here.
79737         * modules/savedir (Depends-on): Only need fdopendir, not full
79738         openat.
79739         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
79740         * lib/openat.h (fdopendir): Drop prototype.
79741         * lib/dirent.in.h (fdopendir): Provide prototype.
79742         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
79743         * modules/dirent (Makefile.am): Substitute them.
79744         * MODULES.html.sh (File system functions): Mention it.
79745         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
79746         * modules/fdopendir-tests: New file.
79747         * tests/test-fdopendir.c: Likewise.
79749         fchdir: use more consistent macro convention
79750         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
79751         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
79752         REPLACE_FCHDIR, rather than relying on config.h macros.
79753         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
79754         inside a single make-time REPLACE_FCHDIR block, rather than using
79755         the config.h FCHDIR_REPLACEMENT.
79756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
79757         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
79758         Manage fstat replacement.
79759         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
79760         REPLACE_FCHDIR.
79761         * modules/sys_stat (Files): Add m4/unistd_h.m4.
79762         (Makefile.am): Substitute REPLACE_FCHDIR.
79763         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
79764         FCHDIR_REPLACEMENT.
79765         * lib/dup-safer.c (dup_safer): Likewise.
79766         * lib/dup2.c (rpl_dup2): Likewise.
79767         * lib/dup3.c (rpl_dup3): Likewise.
79768         * lib/open.c (rpl_open): Likewise.
79770         fchdir: simplify error handling, and support dup3
79771         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
79772         stdbool, malloc-posix, realloc-posix.
79773         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
79774         (ensure_dirs_slot): Return false on allocation failure.
79775         (rpl_dup2): Delete.
79776         (_gl_register_dup): New function.
79777         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
79778         (_gl_register_fd): Close fd on allocation failure.
79779         * lib/fcntl.in.h (_gl_register_fd): Update signature.
79780         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
79781         prototype.
79782         (rpl_dup2_fchdir): Delete prototype.
79783         * lib/open.c (open): Update caller.
79784         * lib/dup2.c (dup2): Track fchdir metadata.
79785         * lib/dup3.c (dup3): Likewise.
79786         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
79787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
79789 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79791         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
79792         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
79793         don't pass arguments to AC_OUTPUT.
79795 2009-09-02  Bruno Haible  <bruno@clisp.org>
79797         * modules/mkdtemp (License): Relicense under LGPLv2+.
79798         Reported by Paolo Bonzini.
79800 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79802         Replace uses of obsolete autoconf macros in Jim's modules.
79803         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
79804         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
79805         can evoke a warning from autoconf when run with -Wobsolete
79806         enabled.  They were declared obsolete for good reasons (see
79807         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
79808         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
79809         should not continue using the deprecated macros.
79810         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
79811         obsolete Autoconf macros with modern counterparts.
79812         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79813         * m4/dos.m4 (gl_AC_DOS): Likewise.
79814         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
79815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
79816         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
79817         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
79818         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
79819         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
79820         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
79821         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
79822         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
79823         Likewise.
79824         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
79825         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79826         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
79827         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
79828         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
79829         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79831 2009-09-01  Eric Blake  <ebb9@byu.net>
79833         fchdir: fix off-by-one bug in previous patch
79834         * lib/fchdir.c (rpl_fstat): Use correct bounds.
79835         (_gl_unregister_fd): Delete useless if.
79837 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
79839         maint.mk: sort the list of syntax-check rules
79840         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
79841         easier to get a sense of progress when the rules are run sequentially
79842         and take a long time.
79844 2009-09-01  Simon Josefsson  <simon@josefsson.org>
79846         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
79847         * modules/netinet_in: Likewise.
79848         * modules/sys_file: Likewise.
79849         * modules/sys_ioctl: Likewise.
79850         * modules/sys_select: Likewise.
79851         * modules/sys_socket: Likewise.
79852         * modules/sys_stat: Likewise.
79853         * modules/sys_time: Likewise.
79854         * modules/sys_times: Likewise.
79855         * modules/sys_utsname: Likewise.
79856         * modules/sys_wait: Likewise.
79858 2009-09-01  Jim Meyering  <meyering@redhat.com>
79860         fts: help ensure that return values are not ignored
79861         * lib/fts_.h (__GNUC_PREREQ): Define.
79862         (__attribute_warn_unused_result__): Define.
79863         (fts_children, fts_close, fts_open, fts_read): Declare with
79864         __attribute_warn_unused_result__.
79866         fts: fts_close now fails also when closing a dir file descriptor fails
79867         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
79868         and propagate to caller, along with errno.
79870         announce-gen: correct formatting in --help output
79871         * build-aux/announce-gen (usage): Move the one-line description in
79872         --help output "up", to where it belongs, just after Usage:.
79874 2009-08-31  Eric Blake  <ebb9@byu.net>
79876         fchdir: port to mingw
79877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
79878         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
79879         opened, then use a substitute.
79880         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
79881         replacement.
79882         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
79883         (_gl_register_fd): No need to check stat if open already filters
79884         all directories.
79885         (fchdir): Fix error condition to match POSIX.
79886         * modules/fchdir (Depends-on): Add sys_stat.
79887         * doc/posix-functions/open.texi (open): Document the limitation.
79888         * modules/fchdir-tests: New file.
79889         * tests/test-fchdir.c: Likewise.
79891         canonicalize: allow cross-testing from cygwin to mingw
79892         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
79893         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
79894         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
79895         Likewise.
79896         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
79897         target does not support symlinks.
79898         * tests/test-canonicalize-lgpl.sh: Likewise.
79900         chown: avoid compilation warning on mingw
79901         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
79902         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
79903         mingw.
79904         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79905         * modules/chown (Depends-on): Add errno.
79907 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
79909         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
79910         command.
79912 2009-08-31  Jim Meyering  <meyering@redhat.com>
79914         canonicalize: remove useless initialization
79915         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
79916         initialization of local, "end".
79918 2009-08-30  Bruno Haible  <bruno@clisp.org>
79920         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
79921         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
79922         ENOSYS.
79924 2009-08-30  Bruno Haible  <bruno@clisp.org>
79926         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
79927         /usr/xpg4/bin/tr when it exists.
79928         * tests/test-pipe-filter-gi1.sh: Likewise.
79930 2009-08-30  Bruno Haible  <bruno@clisp.org>
79932         Work around deficient /usr/bin/id program on Solaris.
79933         * tests/test-file-has-acl.sh (ID): New variable.
79934         * tests/test-set-mode-acl.sh (ID): Likewise.
79935         * tests/test-copy-acl.sh (ID): Likewise.
79936         * tests/test-copy-file.sh (ID): Likewise.
79938 2009-08-30  Bruno Haible  <bruno@clisp.org>
79940         New module 'xstriconveh'.
79941         * lib/xstriconveh.h: New file.
79942         * lib/xstriconveh.c: New file.
79943         * modules/xstriconveh: New file.
79945 2009-08-30  Bruno Haible  <bruno@clisp.org>
79947         Make it easier to use mem_cd_iconveh.
79948         * lib/striconveh.h (iconveh_t): New type.
79949         (iconveh_open, iconveh_close): New declarations.
79950         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
79951         with a single 'const iconveh_t *' argument.
79952         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
79953         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
79954         with a single 'const iconveh_t *' argument.
79955         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
79956         * tests/test-striconveh.c (main): Update.
79957         * NEWS: Mention the change.
79959 2009-08-30  Bruno Haible  <bruno@clisp.org>
79961         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
79962         problem.
79964 2009-08-30  Bruno Haible  <bruno@clisp.org>
79966         Work around iconv_open problem on Solaris.
79967         * lib/iconv_open-solaris.gperf: New file.
79968         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
79969         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
79970         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
79971         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
79972         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
79973         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
79975 2009-08-29  Jim Meyering  <meyering@redhat.com>
79977         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
79978         * top/maint.mk (cvs-check): Remove target; it was just an alias
79979         to the better-named vc-diff-check.
79980         (maintainer-distcheck): Remove rule.  It was used only from
79981         the (alpha/beta/major) target, and all of its commands but one
79982         were coreutils-specific.
79983         (vc-dist): Remove rule.
79984         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
79985         Run vc-diff-check, not vc-dist.
79986         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
79988 2009-08-27  Bruno Haible  <bruno@clisp.org>
79990         * tests/test-bitrotate.c (main): Remove test that uses a shift count
79991         of 0.
79993 2009-08-27  Bruno Haible  <bruno@clisp.org>
79995         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
79996         compilers.
79997         * doc/func.texi: Document the SunPRO C bug.
79999 2009-08-27  Bruno Haible  <bruno@clisp.org>
80001         Fix link error on Solaris.
80002         * tests/test-parse-duration.c (xstrdup): Remove function.
80004 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80006         ignore-value: handle pointer types, too
80007         * lib/ignore-value.h (__attribute__): Remove definition.
80008         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80009         of a more concise and more-often effective "(void) i" statement.
80010         (ignore_ptr): New function to suppress warnings from functions that
80011         return pointers, and to make it explicit that one function doesn't
80012         handle all cases.
80014 2009-08-25  Bruno Haible  <bruno@clisp.org>
80016         dup2: work around a Linux bug.
80017         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80018         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80019         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80020         Reported by Simon Josefsson.
80022 2009-08-25  Jim Meyering  <meyering@redhat.com>
80024         libguestfs uses gnulib
80025         * users.txt: Add libguestfs.
80027 2009-08-24  Eric Blake  <ebb9@byu.net>
80029         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80030         * lib/pipe2.c (includes): Add binary-io.h.
80031         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80033 2009-08-24  Bruno Haible  <bruno@clisp.org>
80035         Tolerate declared but missing accept4 syscall.
80036         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80037         available.
80038         * lib/sys_socket.in.h (accept4): If the function is already present,
80039         override it.
80040         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80041         * modules/accept4 (Makefile.am): Compile accept4.c always.
80042         Reported by Paolo Bonzini and Eric Blake.
80044 2009-08-23  Bruno Haible  <bruno@clisp.org>
80046         New module 'accept4'.
80047         * lib/sys_socket.in.h (accept4): New declaration.
80048         * lib/accept4.c: New file.
80049         * m4/accept4.m4: New file.
80050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80051         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80052         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80053         HAVE_ACCEPT4.
80054         * modules/accept4: New file.
80055         * doc/glibc-functions/accept4.texi: Mention the new module.
80057 2009-08-24  Jim Meyering  <meyering@redhat.com>
80059         progname: also set global program_invocation_name, when possible
80060         Before this change, a libtool-enabled program that calls glibc's
80061         error function would report the program name as
80062         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80063         * modules/progname (configure.ac): Check for a declaration of
80064         program_invocation_name.
80065         * lib/progname.c:  Include <errno.h>.
80066         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80067         Set program_invocation_name.
80069 2009-08-23  Bruno Haible  <bruno@clisp.org>
80071         * lib/dup3.c: Include <string.h>.
80073 2009-08-23  Bruno Haible  <bruno@clisp.org>
80075         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80076         * lib/pipe2.c (pipe2): Likewise.
80077         Suggested by Eric Blake.
80079 2009-08-23  Bruno Haible  <bruno@clisp.org>
80081         Tolerate declared but missing dup3 syscall.
80082         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80083         * lib/unistd.in.h (dup3): If the function is already present,
80084         override it.
80085         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80086         * modules/dup3 (Makefile.am): Compile dup3.c always.
80087         Reported by Paolo Bonzini.
80089 2009-08-23  Bruno Haible  <bruno@clisp.org>
80091         Tolerate declared but missing pipe2 syscall.
80092         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80093         available.
80094         * lib/unistd.in.h (pipe2): If the function is already present,
80095         override it.
80096         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80097         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80098         Reported by Paolo Bonzini.
80100 2009-08-23  Bruno Haible  <bruno@clisp.org>
80102         * lib/pipe2.c (pipe2): Move #ifs inside function.
80104 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80106         quotearg: document limitations of quote_these_too
80107         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80108         those limitations are created.
80109         * lib/quotearg.h (set_char_quoting): Document that digits and
80110         letters that are special after backslash are not permitted.
80111         (quotearg_char): Cross-reference set_char_quoting documentation.
80113 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80115         quotearg: implement custom_quoting_style
80116         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80117         right_quote fields.
80118         (set_custom_quoting): New public function.
80119         (quotearg_buffer_restyled): Add left_quote and right_quote
80120         arguments, handle them very much like locale quoting, and update
80121         all uses.
80122         (quotearg_n_custom): New public function.
80123         (quotearg_n_custom_mem): New public function.
80124         (quotearg_custom): New public function.
80125         (quotearg_custom_mem): New public function.
80126         * lib/quotearg.h: Prototype and document new public functions.
80127         (enum quoting_style): For escape_quoting_style and
80128         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80129         ignored even though they're otherwise like c_quoting_style.
80130         Add custom_quoting_style member and document with comparison to
80131         clocale_quoting_style.
80132         * tests/test-quotearg.c (custom_quotes): New array.
80133         (custom_results): New array.
80134         (main): Extend to test custom quoting.
80136 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80138         quotearg: fix right quote escaping when it's in quote_these_too
80139         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80140         quote, be sure to prepend only one backslash.
80141         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80142         (main): Test it.
80144 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80146         quotearg-tests: test escaping of embedded locale quotes
80147         * tests/test-quotearg.c (struct result_strings): Add member for
80148         new input.
80149         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80150         (inputs): Add new input.
80151         (results_g): Add expected results.
80152         (flag_results): Likewise.
80153         (locale_results): Likewise.
80154         (compare_strings): Check those.
80156 2009-08-23  Bruno Haible  <bruno@clisp.org>
80158         Tests for module 'dup3'.
80159         * modules/dup3-tests: New file.
80160         * tests/test-dup3.c: New file.
80162         New module 'dup3'.
80163         * lib/unistd.in.h (dup3): New declaration.
80164         * lib/dup3.c: New file.
80165         * m4/dup3.m4: New file.
80166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80167         HAVE_DUP3.
80168         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80169         * modules/dup3: New file.
80170         * doc/glibc-functions/dup3.texi: Mention the new module.
80172 2009-08-23  Bruno Haible  <bruno@clisp.org>
80174         Tweak the dup2 test.
80175         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80176         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80177         the test file is still empty. Fix argument order of lseek.
80179 2009-08-23  Bruno Haible  <bruno@clisp.org>
80181         Avoid test link errors when the modules getopt-gnu, gettext are used.
80182         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80185 2009-08-23  Bruno Haible  <bruno@clisp.org>
80187         Fix getdtablesize() on mingw.
80188         * lib/getdtablesize.c (getdtablesize): Implement differently.
80189         * lib/unistd.in.h (getdtablesize): Improve comment.
80191 2009-08-23  Bruno Haible  <bruno@clisp.org>
80193         New module 'mkostemp'.
80194         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80195         * lib/stdlib.in.h (mksotemp): New declaration.
80196         * lib/mkostemp.c: New file, from glibc with modifications.
80197         * lib/tempname.h (GT_FILE): Remove outdated comment.
80198         (gen_tempname): Add flags argument.
80199         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80200         (__GT_FILE): Map to 1.
80201         (small_open, large_open): Remove macros.
80202         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80203         * lib/mkstemp.c (mkstemp): Update.
80204         * lib/mkdtemp.c (mkdtemp): Likewise.
80205         * m4/mkostemp.m4: New file.
80206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80207         HAVE_MKOSTEMP.
80208         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
80209         HAVE_MKOSTEMP.
80210         * modules/mkostemp: New file, based on modules/mkstemp.
80211         * doc/glibc-functions/mkostemp.texi: Mention the new module.
80212         * NEWS: Mention the change.
80214 2009-08-23  Bruno Haible  <bruno@clisp.org>
80216         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
80217         Reported by Eric Blake.
80219 2009-08-23  Bruno Haible  <bruno@clisp.org>
80221         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
80222         Reported by Eric Blake.
80224 2009-08-23  Bruno Haible  <bruno@clisp.org>
80226         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
80227         * modules/pipe2 (Depends-on): Likewise.
80229 2009-08-23  Eric Blake  <ebb9@byu.net>
80231         fcntl-h: add O_TTY_INIT support
80232         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
80233         * tests/test-fcntl-h.c (o): Test it.
80234         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80236         fcntl-h: rename from fcntl, in preparation for fcntl(2)
80237         * modules/fcntl: Move <fcntl.h> header replacement...
80238         * modules/fcntl-h: ...to new name, so as not to collide with
80239         like-named function.
80240         * tests/test-fcntl.c: Rename...
80241         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
80242         * modules/fcntl-tests: Rename...
80243         * modules/fcntl-h-tests: ...to this.  Update test file name.
80244         * modules/chdir-long (Depends-on): Update clients.
80245         * modules/chdir-safer (Depends-on): Likewise.
80246         * modules/fcntl-safer (Depends-on): Likewise.
80247         * modules/fts (Depends-on): Likewise.
80248         * modules/mkancesdirs (Depends-on): Likewise.
80249         * modules/mkdir-p (Depends-on): Likewise.
80250         * modules/open (Depends-on): Likewise.
80251         * modules/savewd (Depends-on): Likewise.
80252         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80253         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80255 2009-08-22  Bruno Haible  <bruno@clisp.org>
80257         * modules/binary-io (License): Relicense under LGPL.
80258         * modules/pipe2 (License): Likewise.
80260 2009-08-22  Bruno Haible  <bruno@clisp.org>
80262         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80263         return value.
80264         * lib/pipe-filter-gi.c (filter_init): Likewise.
80265         Reported by Eric Blake.
80267 2009-08-22  Bruno Haible  <bruno@clisp.org>
80269         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80270         * modules/pipe (Depends-on): Add pipe2.
80272 2009-08-22  Bruno Haible  <bruno@clisp.org>
80274         Tests for module 'pipe2'.
80275         * modules/pipe2-tests: New file.
80276         * tests/test-pipe2.c: New file.
80278         New module 'pipe2'.
80279         * lib/unistd.in.h (pipe2): New declaration.
80280         * lib/pipe2.c: New file.
80281         * m4/pipe2.m4: New file.
80282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80283         HAVE_PIPE2.
80284         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80285         * modules/pipe2: New file.
80286         * doc/glibc-functions/pipe2.texi: Mention the new module.
80288 2009-08-22  Bruno Haible  <bruno@clisp.org>
80290         Reference some new glibc functions.
80291         * doc/glibc-functions/accept4.texi: New file.
80292         * doc/glibc-functions/dup3.texi: New file.
80293         * doc/glibc-functions/mkostemp.texi: New file.
80294         * doc/glibc-functions/pipe2.texi: New file.
80295         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80296         (Glibc sys/socket.h): Refer to accept4.
80297         (Glibc unistd.h): Refer to dup3, pipe2.
80298         Reported by Eric Blake.
80300 2009-08-22  Jim Meyering  <meyering@redhat.com>
80301             Bruno Haible  <bruno@clisp.org>
80303         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80304         This makes it so packages using automake-1.11's silent-rules option
80305         can print e.g., a single "GEN    configmake.h" line, rather than
80306         the 30+ statements that perform the job.  If you want to see the
80307         actual commands, you can still run "make V=1".
80308         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80309         so that make output is abbreviated when those variables are defined
80310         appropriately.
80311         * modules/argz: Likewise.
80312         * modules/arpa_inet: Likewise.
80313         * modules/byteswap: Likewise.
80314         * modules/configmake: Likewise.
80315         * modules/dirent: Likewise.
80316         * modules/errno: Likewise.
80317         * modules/fcntl: Likewise.
80318         * modules/float: Likewise.
80319         * modules/fnmatch: Likewise.
80320         * modules/getopt-posix: Likewise.
80321         * modules/glob: Likewise.
80322         * modules/iconv_open: Likewise.
80323         * modules/inttypes: Likewise.
80324         * modules/localcharset: Likewise.
80325         * modules/locale: Likewise.
80326         * modules/math: Likewise.
80327         * modules/netdb: Likewise.
80328         * modules/netinet_in: Likewise.
80329         * modules/poll: Likewise.
80330         * modules/posix_spawnp-tests: Likewise.
80331         * modules/sched: Likewise.
80332         * modules/search: Likewise.
80333         * modules/selinux-h: Likewise.
80334         * modules/signal: Likewise.
80335         * modules/spawn: Likewise.
80336         * modules/stdarg: Likewise.
80337         * modules/stdbool: Likewise.
80338         * modules/stddef: Likewise.
80339         * modules/stdint: Likewise.
80340         * modules/stdio: Likewise.
80341         * modules/stdlib: Likewise.
80342         * modules/string: Likewise.
80343         * modules/strings: Likewise.
80344         * modules/sys_file: Likewise.
80345         * modules/sys_ioctl: Likewise.
80346         * modules/sys_select: Likewise.
80347         * modules/sys_socket: Likewise.
80348         * modules/sys_stat: Likewise.
80349         * modules/sys_time: Likewise.
80350         * modules/sys_times: Likewise.
80351         * modules/sys_utsname: Likewise.
80352         * modules/sys_wait: Likewise.
80353         * modules/sysexits: Likewise.
80354         * modules/time: Likewise.
80355         * modules/unistd: Likewise.
80356         * modules/wchar: Likewise.
80357         * modules/wctype: Likewise.
80359 2009-08-22  Jim Meyering  <meyering@redhat.com>
80361         announce-gen: detect write failure
80362         * build-aux/announce-gen: Add Coda at end.
80363         Remove equivalent-but-more-verbose block at top.
80365 2009-08-19  Akim Demaille  <demaille@gostai.com>
80367         bootstrap: --help to stdout.
80368         * bootstrap (usage): Don't send --help to stderr.
80369         Use a here doc instead of a long string.
80371 2009-08-21  Eric Blake  <ebb9@byu.net>
80373         test-popen-safer: split from test-popen
80374         * tests/test-popen.c (main): Move...
80375         * tests/test-popen.h: ...into new file.
80376         * tests/test-popen-safer2.c: New file.
80377         * modules/popen-tests (Files): Add test-popen.h.
80378         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80379         Suggested by Bruno Haible.
80381         test-fcntl-safer: split from test-open
80382         * tests/test-open.c (main): Move...
80383         * tests/test-open.h: ...into new file.
80384         * tests/test-fcntl-safer.c: New file.
80385         * modules/open-tests (Files): Add test-open.h.
80386         * modules/fcntl-safer-tests: New file.
80387         Suggested by Bruno Haible.
80389         test-fopen-safer: split from test-fopen
80390         * tests/test-fopen.c (main): Move...
80391         * tests/test-fopen.h: ...into new file.
80392         * tests/test-fopen-safer.c: New file.
80393         * modules/fopen-tests (Files): Add test-fopen.h.
80394         * modules/fopen-safer-tests: New file.
80395         Suggested by Bruno Haible.
80397 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80399         popen-safer: test O_CLOEXEC at run-time.
80400         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
80402 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80404         fcntl: move more flags to the header
80405         * lib/cloexec.c: Do not define FD_CLOEXEC here.
80406         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
80407         * lib/fcntl.in.h: Do both things here.
80409 2009-08-21  Jim Meyering  <meyering@redhat.com>
80411         consistently remove $@-t before redirecting to it
80412         * modules/argz: Remove $@-t and $@ before redirecting to the former.
80413         * modules/alloca-opt: Likewise.
80414         * modules/byteswap: Likewise.
80415         * modules/fnmatch: Likewise.
80416         * modules/getopt-posix: Likewise.
80417         * modules/glob: Likewise.
80418         * modules/poll: Likewise.
80419         * modules/posix_spawnp-tests: Likewise.
80420         * modules/sys_socket: Likewise.
80421         * modules/sysexits: Likewise.
80423 2009-08-21  Eric Blake  <ebb9@byu.net>
80425         popen: simplify access to original popen
80426         * lib/popen.c (rpl_popen): No need to worry about popen being a
80427         macro.
80428         Reported by Bruno Haible.
80430 2009-08-20  Eric Blake  <ebb9@byu.net>
80432         build: avoid some compiler warnings
80433         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
80434         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
80435         type.
80436         (new_exclude_segment, excluded_file_pattern_p)
80437         (excluded_file_name_p): Reduce scope.
80438         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80439         old-style declaration.
80441 2009-08-20  Simon Josefsson  <simon@josefsson.org>
80443         * tests/test-exclude1.sh: Handle Windows EOL.
80444         * tests/test-exclude2.sh: Likewise.
80445         * tests/test-exclude3.sh: Likewise.
80446         * tests/test-exclude4.sh: Likewise.
80447         * tests/test-exclude5.sh: Likewise.
80448         * tests/test-exclude6.sh: Likewise.
80449         * tests/test-exclude7.sh: Likewise.
80451 2009-08-19  Akim Demaille  <demaille@gostai.com>
80453         bootstrap: find sha1sum when named gsha1sum.
80454         * bootstrap (find_tool): New.
80455         ($SHA1SUM): New.
80456         Use it.
80458 2009-08-20  Jim Meyering  <meyering@redhat.com>
80460         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
80461         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
80462         expression that converts "." in a file name to "\." in the resulting
80463         regexp.  Start with a dummy statement, so that prior shell variable
80464         definitions are expanded portably.  Reported by Simon Josefsson.
80466 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
80468         Fix polling for writeability of a screen buffer.
80469         * lib/poll.c: Distinguish input and screen buffers for the
80470         Win32 implementation.
80471         * lib/select.c: Likewise.
80473 2009-08-19  Eric Blake  <ebb9@byu.net>
80475         popen-safer: prevent popen from clobbering std descriptors
80476         * modules/popen-safer: New file.
80477         * lib/popen-safer.c: Likewise.
80478         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
80479         * lib/stdio--.h (popen): Provide override.
80480         * lib/stdio-safer.h (popen_safer): Provide declaration.
80481         * tests/test-popen.c (includes): Partially test this.
80482         * modules/popen-safer-tests: New file, for more tests.
80483         * tests/test-popen-safer.c: Likewise.
80484         * MODULES.html.sh (file stream based Input/Output): Mention it.
80486         tests: test some of the *-safer modules
80487         * modules/fopen-safer (Depends-on): Add fopen.
80488         * modules/fcntl-safer (Depends-on): Add fcntl.
80489         * modules/stdlib-safer (Depends-on): Add stdlib.
80490         (configure.ac): Set indicator.
80491         * modules/unistd-safer (configure.ac): Likewise.
80492         * modules/tmpfile-safer (configure.ac): Likewise.
80493         (Depends-on): Add tmpfile.
80494         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
80495         active.
80496         * tests/test-fopen.c (includes): Test safer versions when they are
80497         in use.
80498         * tests/test-open.c (includes): Likewise.
80500         popen: fix cygwin 1.5 bug when stdin closed
80501         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
80502         * modules/popen: New file.
80503         * modules/popen-tests: Likewise.
80504         * tests/test-popen.c: Likewise.
80505         * m4/popen.m4: Likewise.
80506         * lib/popen.c: Likewise.
80507         * lib/stdio.in.h (popen): New declaration.
80508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
80509         * modules/stdio (Makefile.am): Likewise.
80510         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
80512 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
80514         maint.mk: give full control over update-copyright exclusions
80515         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
80516         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
80517         (update-copyright): Don't force inclusion of top-level
80518         ChangeLog.  Don't force exclusion of all COPYING files, but make
80519         them the default exclusion instead.
80521 2009-08-16  Bruno Haible  <bruno@clisp.org>
80523         Fix test failures on Solaris 10.
80524         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
80525         tests when Solaris iconv() is used.
80526         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80527         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80528         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80529         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80530         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80532 2009-08-16  Bruno Haible  <bruno@clisp.org>
80534         Fix test failures on Solaris 10.
80535         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
80536         'tr' program and pass it as first argument.
80537         * tests/test-pipe-filter-gi1.sh: Likewise.
80538         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
80539         program as first argument.
80540         * tests/test-pipe-filter-gi1.c (main): Likewise.
80542 2009-08-16  Eric Blake  <ebb9@byu.net>
80544         fpurge: fix previous commits
80545         * modules/fpurge (Makefile.am): Make replacement conditional,
80546         partially reverting 2007-04-29 change; missed in previous
80547         attempt.
80548         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
80549         is missing.
80551 2009-08-16  Bruno Haible  <bruno@clisp.org>
80553         Clarify fpurge's effect on the file position.
80554         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
80555         * tests/test-fpurge.c (main): Make a second pass for checking the file
80556         position.
80558 2009-08-16  Bruno Haible  <bruno@clisp.org>
80560         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
80561         declaration of fpurge is missing.
80562         * tests/test-fpurge.c (main): Check that the file has not more contents
80563         than expected. Close the file before removing it.
80565 2009-08-15  Eric Blake  <ebb9@byu.net>
80567         fpurge: don't wrap working cygwin implementation
80568         * lib/fpurge.c (fpurge): Fix comment typo.
80569         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
80570         1.7 to avoid replacement.
80571         * tests/test-fpurge.c (main): Enhance test.
80573 2009-08-15  Eric Blake  <ebb9@byu.net>
80574         and Jim Meyering  <meyering@redhat.com>
80576         test-update-copyright: skip if perl is insufficient
80577         * tests/test-update-copyright.sh: Failure to run maintainer tool
80578         should not cause testsuite failure on cygwin 1.5.
80580 2009-08-14  Eric Blake  <ebb9@byu.net>
80582         doc: mention more functions added in cygwin 1.7.0
80583         * doc/posix-headers/limits.texi (limits.h): Update for recent
80584         cygwin additions.
80585         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
80586         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
80587         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
80588         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
80589         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
80591 2009-08-14  Eric Blake  <ebb9@byu.net>
80593         maint.mk: simplify update-copyright rule
80594         * top/maint.mk (update-copyright-local): Delete, and document how
80595         to do it in cfg.mk instead.
80596         (update-copyright-exclude-regexp): Delete, and document how to do
80597         it in .x-update-copyright instead.
80598         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
80599         exclude ChangeLog.
80601 2009-08-14  Bruno Haible  <bruno@clisp.org>
80603         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
80605 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80607         maint.mk: support update-copyright-env
80608         * top/maint.mk (update-copyright-env): Define place-holder.
80609         (update-copyright): Expand $(update-copyright-env) before
80610         invoking update-copyright.
80612 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80614         update-copyright: implement forced reformatting
80615         * build-aux/update-copyright: Implement and document
80616         UPDATE_COPYRIGHT_FORCE.
80617         * tests/test-update-copyright.sh: Test it.
80619 2009-08-14  Eric Blake  <ebb9@byu.net>
80620         and Bruno Haible  <bruno@clisp.org>
80622         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
80623         * tests/test-locale.c: Revert previous patch related to NULL.
80624         * tests/test-stdio.c: Likewise.
80625         * tests/test-stdlib.c: Likewise.
80626         * tests/test-string.c: Likewise.
80627         * tests/test-unistd.c: Likewise.
80628         * modules/time-tests (Depends-on): Add verify.
80629         * modules/wchar-tests (Depends-on): Likewise.
80630         * tests/test-time.c: Test for NULL compliance.
80631         * tests/test-wchar.c: Likewise.
80632         * modules/locale (Depends-on): Add stddef.
80633         * modules/stdio (Depends-on): Likewise.
80634         * modules/stdlib (Depends-on): Likewise.
80635         * modules/string (Depends-on): Likewise.
80636         * modules/time (Depends-on): Likewise.
80637         * modules/unistd (Depends-on): Likewise.
80638         * modules/wchar (Depends-on): Likewise.
80639         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
80640         * lib/stdlib.in.h (includes): Likewise.
80641         * lib/string.in.h (includes): Likewise.
80642         * lib/time.in.h (includes): Likewise.
80643         * lib/unistd.in.h (includes): Likewise.
80644         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
80645         replaced.
80646         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
80647         * m4/stddef_h.m4: New file.
80648         * modules/stddef: Likewise.
80649         * lib/stddef.in.h: Likewise.
80650         * modules/stddef-tests: Likewise.
80651         * tests/test-stddef.c: Likewise.
80652         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
80653         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
80654         * doc/posix-headers/locale.texi (locale.h): Likewise.
80655         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
80656         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
80657         * doc/posix-headers/string.texi (string.h): Likewise.
80658         * doc/posix-headers/time.texi (time.h): Likewise.
80659         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
80660         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
80662 2009-08-14  Eric Blake  <ebb9@byu.net>
80664         doc: improve git diff of texinfo files
80665         * .gitattributes: Add rule for *.texi files, with hint on how to
80666         use it.
80667         Copied from m4, and based on a report by Bruno Haible.
80669 2009-08-14  Bruno Haible  <bruno@clisp.org>
80671         Disable multithread support by default on Cygwin 1.5.x for real.
80672         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
80674 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80676         update-copyright: much ado about intervals
80677         * build-aux/update-copyright: Implement and document
80678         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
80679         of copyright year intervals.
80680         Also, document UPDATE_COPYRIGHT_YEAR.
80681         * tests/test-update-copyright.sh: Test it.
80683         update-copyright: convert 2-digit to 4-digit years
80684         * build-aux/update-copyright: Implement and document.
80685         * tests/test-update-copyright.sh: Update.
80687 2009-08-14  Jim Meyering  <meyering@redhat.com>
80689         test-exclude: avoid coreutils "make check" failure
80690         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
80691         just as in test-argmatch.c.
80693 2009-08-13  Eric Blake  <ebb9@byu.net>
80695         test-dup2: fix bad assumption
80696         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
80697         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
80699         test-version-etc: fix CRLF portability issue
80700         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
80701         recognize \r.
80702         * tests/test-argp-version-etc-1.sh: Likewise.
80704         getopt: update client modules
80705         * modules/argp (Depends-on): Use getopt-gnu.
80706         * modules/git-merge-changelog (Depends-on): Likewise.
80707         * modules/long-options (Depends-on): Likewise.
80708         * modules/xstrtol (Depends-on): Likewise.
80710 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80712         * tests/test-version-etc.sh: Don't fail on different
80713         project/version.  Don't fail on CRLF differences.  Rewrite to use
80714         multiple -e instead of multiple sed forks, suggested by Eric Blake
80715         <ebb9@byu.net>.
80716         * tests/test-argp-version-etc-1.sh: Likewise.
80718 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80720         * tests/test-version-etc.sh: Don't fail on different
80721         project/version.
80723 2009-08-12  Bruno Haible  <bruno@clisp.org>
80725         Tests for modules 'getopt-posix', 'getopt-gnu'.
80726         * modules/getopt-posix-tests: New file.
80727         * tests/test-getopt.c: New file.
80728         * tests/test-getopt.h: New file.
80729         * tests/test-getopt_long.h: New file.
80731         New modules 'getopt-posix', 'getopt-gnu'.
80732         * modules/getopt-gnu: New file, renamed from modules/getopt.
80733         * modules/getopt-posix: New file.
80734         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
80735         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
80736         (gl_GETOPT): Remove macro.
80737         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
80738         Disable the test against BSD systems that declare optreset. Test
80739         against mingw bug. Test against lack of support of optional arguments
80740         on many platforms.
80741         * doc/glibc-headers/getopt.texi: Update module name and list of
80742         relevant platforms.
80743         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
80744         'getopt-gnu' and more portability problems.
80745         * NEWS: Mention the changes.
80747 2009-08-12  Bruno Haible  <bruno@clisp.org>
80749         Ensure that optarg etc. get declared by <unistd.h>.
80750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
80751         AC_USE_SYSTEM_EXTENSIONS.
80752         * modules/getopt (Depends-on): Add 'extensions'.
80754 2009-08-12  Bruno Haible  <bruno@clisp.org>
80756         Avoid test link errors.
80757         * modules/pipe-filter-ii-tests (Makefile.am): Define
80758         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
80759         * modules/pipe-filter-gi-tests (Makefile.am): Define
80760         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
80761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80763 2009-08-12  Bruno Haible  <bruno@clisp.org>
80765         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
80766         gl_GETOPT_SUBSTITUTE before.
80767         (gl_GETOPT): Use it.
80768         * m4/argp.m4 (gl_ARGP): Update.
80769         Reported by Sergey Poznyakoff.
80771         * m4/getopt.m4: Reorder macros.
80772         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
80773         (gl_GETOPT_SUBSTITUTE): Remove macro.
80775 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80777         Minor improvement in gitlog-to-changelog
80779         * build-aux/gitlog-to-changelog: New option `--format' makes
80780         output format string configurable.
80782 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80784         Optimize exclude: use hash tables for non-wildcard patterns.
80786         * lib/exclude.c: Include hash.h and mbuiter.h
80787         (struct exclude_pattern, exclude_segment): New data types.
80788         (struct exclude): Rewrite.
80789         (fnmatch_pattern_has_wildcards): New function.
80790         (new_exclude_segment, free_exclude_segment): New functions.
80791         (excluded_file_pattern_p, excluded_file_name_p): New functions.
80792         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
80793         * lib/exclude.h (is_fnmatch_pattern): New prototype.
80794         * modules/exclude: Depend on hash and mbuiter.
80796         * modules/exclude-tests: New file.
80797         * tests/test-exclude.c: New file.
80798         * tests/test-exclude1.sh: New file.
80799         * tests/test-exclude2.sh: New file.
80800         * tests/test-exclude3.sh: New file.
80801         * tests/test-exclude4.sh: New file.
80802         * tests/test-exclude5.sh: New file.
80803         * tests/test-exclude6.sh: New file.
80804         * tests/test-exclude7.sh: New file.
80806 2009-08-12  Bruno Haible  <bruno@clisp.org>
80808         Ensure that getopt() gets declared by <unistd.h>.
80809         * lib/unistd.in.h: Conditionally include getopt.h.
80810         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
80811         Set GNULIB_UNISTD_H_GETOPT.
80812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80813         GNULIB_UNISTD_H_GETOPT.
80814         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
80816 2009-08-12  Bruno Haible  <bruno@clisp.org>
80818         Clarify logic.
80819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
80820         gl_replace_getopt instead of GETOPT_H.
80822 2009-08-12  Bruno Haible  <bruno@clisp.org>
80824         * m4/getopt.m4: Add comments.
80826 2009-08-12  Bruno Haible  <bruno@clisp.org>
80828         Disable multithread support by default on Cygwin 1.5.x.
80829         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
80830         set gl_use_threads=no if not specified otherwise.
80832 2009-08-11  Bruno Haible  <bruno@clisp.org>
80834         Avoid compilation error on NetBSD 5.0.
80835         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
80836         * tests/test-stdio.c: Likewise.
80837         * tests/test-stdlib.c: Likewise.
80838         * tests/test-string.c: Likewise.
80839         * tests/test-unistd.c: Likewise.
80840         Reported by Greg Troxel <gdt@ir.bbn.com>
80841         at <https://savannah.gnu.org/support/?106973>.
80843 2009-08-11  Bruno Haible  <bruno@clisp.org>
80845         * modules/dup2-tests (Depends-on): Remove close.
80847         Undo 2009-07-19 commit.
80848         * modules/acl-tests (Depends-on): Remove close.
80849         * modules/binary-io-tests (Depends-on): Likewise.
80850         * modules/closein-tests (Depends-on): Likewise.
80851         * modules/flock-tests (Depends-on): Likewise.
80852         * modules/fsync-tests (Depends-on): Likewise.
80853         * modules/lseek-tests (Depends-on): Likewise.
80854         * modules/pipe-tests (Depends-on): Likewise.
80855         * modules/posix_spawn-tests (Depends-on): Likewise.
80856         * modules/posix_spawnp-tests (Depends-on): Likewise.
80857         * modules/stat-time-tests (Depends-on): Likewise.
80858         * modules/yesno-tests (Depends-on): Likewise.
80860 2009-08-10  Bruno Haible  <bruno@clisp.org>
80862         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
80864 2009-08-10  Bruno Haible  <bruno@clisp.org>
80866         Fix a gcc warning.
80867         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
80869 2009-08-10  Bruno Haible  <bruno@clisp.org>
80871         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
80872         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
80873         not only the first time.
80874         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
80875         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
80876         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
80877         is 1, not only the first time.
80879 2009-08-10  Bruno Haible  <bruno@clisp.org>
80881         Make it possible to use module 'gethostname' without module 'close'.
80882         * lib/unistd.in.h (close): Evoke a link error only if
80883         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
80884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80885         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80886         * modules/unistd (Makefile.am): Substitute
80887         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80888         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
80889         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
80890         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
80891         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80892         * modules/sys_ioctl (Makefile.am): Substitute
80893         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80894         * modules/socket (configure.ac): On native Windows, set
80895         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
80896         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
80897         Reported by Sam Steingold <sds@gnu.org>.
80899 2009-08-10  Bruno Haible  <bruno@clisp.org>
80901         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
80902         * modules/ioctl (configure.ac): Likewise.
80904 2009-08-10  Bruno Haible  <bruno@clisp.org>
80906         Avoid collision between gnulib wrapper and libintl wrapper.
80907         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
80908         already defined in intl/printf.c.
80909         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
80910         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
80912 2009-08-09  Bruno Haible  <bruno@clisp.org>
80914         Make <sys/select.h> really self-contained, also on Solaris 10.
80915         * lib/sys_select.in.h: Include <string.h>.
80916         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
80917         Solaris 10 problem.
80918         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
80919         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
80920         Reported by Jim Meyering.
80922 2009-08-09  Bruno Haible  <bruno@clisp.org>
80924         Avoid warnings from 'aclocal' that are due to a use of macro name
80925         AM_XGETTEXT_OPTION that is not defined in automake.
80926         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
80927         automake.
80928         * modules/error (configure.ac): Likewise.
80929         * modules/propername (configure.ac): Likewise.
80930         * modules/vasprintf (configure.ac): Likewise.
80931         * modules/verror (configure.ac): Likewise.
80932         * modules/xprintf (configure.ac): Likewise.
80933         * modules/xvasprintf (configure.ac): Likewise.
80935 2009-08-08  Bruno Haible  <bruno@clisp.org>
80937         Avoid compilation error in C++ mode.
80938         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
80939         Reported by Sam Steingold <sds@gnu.org>.
80941 2009-08-08  Bruno Haible  <bruno@clisp.org>
80943         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
80944         for the various Unix platforms.
80945         * doc/posix-headers/limits.texi: Update platforms list regarding
80946         HOST_NAME_MAX.
80947         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80949 2009-08-07  Jim Meyering  <meyering@redhat.com>
80951         selinux-at: fix typo in a comment
80952         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
80953         Spotted by Paolo Bonzini.
80955         selinux-at: remove redundant m4 code, add documentation
80956         * modules/selinux-at (configure.ac): Remove redundant code.
80957         LIB_SELINUX is already set via the dependent module, selinux-h.
80958         (Include): Add quotes around selinux-at.h.
80959         * lib/selinux-at.h: Add documentation.
80960         Reported by Bruno Haible in
80961         http://marc.info/?l=gnulib-bug&m=124958988300749
80963 2009-08-07  Bruno Haible  <bruno@clisp.org>
80965         Avoid link error on MacOS X 10.3 and 10.4.
80966         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
80967         on non-ELF systems.
80968         * lib/argp-pv.c (argp_program_version): Likewise.
80969         Reported by Simon Josefsson.
80971 2009-08-07  Simon Josefsson  <simon@josefsson.org>
80973         * tests/test-version-etc.sh: Use $EXEEXT.
80975 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
80977         update-copyright: update documentation to point to maint.mk
80978         * build-aux/update-copyright: Here.
80980 2009-08-06  Jim Meyering  <meyering@redhat.com>
80982         maint.mk: support update-copyright-local
80983         * top/maint.mk (update-copyright-local): Define place-holder.
80984         (update-copyright): Depend on $(update-copyright-local).
80986 2009-08-06  Jim Meyering  <meyering@redhat.com>
80988         selinux-at: new module
80989         Initially written for coreutils, this module will soon be
80990         used by findutils, too.
80991         * MODULES.html.sh [Misc]: Add selinux-at.
80992         * lib/selinux-at.h: New file, from coreutils.
80993         * lib/selinux-at.c: Likewise.
80994         * modules/selinux-at: Likewise.
80995         (License): Change from LGPL to GPL, since it depends
80996         on the GPL'd openat module.
80998         doc: update README
80999         * README: Remove references to cogito.
81000         Remove cvs-repo-updating instructions from 2007.
81001         Don't imply that CVS is better if you have limited disk space.
81003 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81005         update-copyright: support C-style comments
81006         * build-aux/update-copyright: Implement and document.
81007         * tests/test-update-copyright.sh: Test.
81009 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81011         update-copyright: support omitted "(C)"
81012         * build-aux/update-copyright: Implement and document.  Also,
81013         allow variable whitespace before "(C)".
81014         * tests/test-update-copyright.sh: Test.
81016 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81018         update-copyright: don't trip on non-FSF copyright statements
81019         * build-aux/update-copyright: Fix so that the first correctly
81020         formatted FSF copyright statement is recognized no matter what
81021         appears before it.  Update documentation.
81022         * tests/test-update-copyright.sh: Test that.
81024 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81026         update-copyright: clean up code a little
81027         * build-aux/update-copyright: Append "_re" to the name of any
81028         variable holding a regular expression.
81029         Replace "old" and "new" with "stmt" in variable names.
81030         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81031         handled correctly.
81032         Format code more consistently.
81034 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81036         update-copyright-tests: improve portability
81037         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81038         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81040 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81042         update-copyright: support @copyright{} and &copy;
81043         * build-aux/update-copyright: Implement and document.
81044         * tests/test-update-copyright.sh: Test.
81046 2009-08-04  Jim Meyering  <meyering@redhat.com>
81048         update-copyright-tests: correctly test EOL=\r\n handling
81049         * tests/test-update-copyright.sh: Put \r at the end of some lines
81050         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81052         maint.mk: make update-copyright exclusion list more configurable
81053         * top/maint.mk (update-copyright): Default to excluding COPYING,
81054         but allow an override, in case someone does want to update that file.
81056         maint.mk: don't update copyright date in COPYING
81057         * top/maint.mk (update-copyright): Exclude COPYING.
81059         maint.mk: add a copyright-updating rule
81060         * top/maint.mk (update-copyright): New rule.
81061         Derived from coreutils/Makefile.am.
81063         update-copyright: rename some variables
81064         * build-aux/update-copyright: Rename a few variables for clarity.
81065         Tweak syntax.  List Joel E. Denny as coauthor.
81067 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81069         update-copyright: fix bug for 2-digit last year and add tests
81070         * build-aux/update-copyright: Fix bug.
81071         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81072         specified.
81073         * modules/update-copyright-tests: New
81074         * tests/test-update-copyright.sh: New.
81076 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81078         update-copyright: handle leading tabs in line prefix
81079         * build-aux/update-copyright: Count leading tabs as 8 spaces
81080         when computing margin.  This helps with the formatting of
81081         ChangeLogs, for example.
81082         Fix documentation a little.
81084 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81086         update-copyright: support EOL=\r\n
81087         * build-aux/update-copyright: Implement that.
81089 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81091         update-copyright: automatically format copyright statements
81092         * build-aux/update-copyright: Implement that.
81093         Also, be a little more predictable and safer by always failing
81094         when the full copyright format is not perfectly recognized as an
81095         unbroken whole.  Discussed at
81096         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81097         Rewrite documentation.
81099 2009-08-03  Bruno Haible  <bruno@clisp.org>
81101         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81103 2009-08-02  Bruno Haible  <bruno@clisp.org>
81105         Tests for module 'uname'.
81106         * modules/uname-tests: New file.
81107         * tests/test-uname.c: New file.
81109         New module 'uname'.
81110         * lib/uname.c: New file.
81111         * m4/uname.m4: New file.
81112         * modules/uname: New file.
81113         * doc/posix-functions/uname.texi: Mention the new module.
81115 2009-08-02  Bruno Haible  <bruno@clisp.org>
81117         Tests for module 'sys_utsname'.
81118         * modules/sys_utsname-tests: New file.
81119         * tests/test-sys_utsname.c: New file.
81121         New module 'sys_utsname'.
81122         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81123         * m4/sys_utsname_h.m4: New file.
81124         * modules/sys_utsname: New file.
81125         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81127 2009-08-02  Bruno Haible  <bruno@clisp.org>
81129         Implicitly initialize the sockets library.
81130         * lib/gethostname.c: Include sockets.h.
81131         (rpl_gethostname): Invoke gl_sockets_startup.
81132         * lib/socket.c: Include sockets.h.
81133         (rpl_socket): Invoke gl_sockets_startup.
81134         * modules/gethostname (Depends-on): Add sockets.
81135         * modules/socket (Depends-on): Likewise.
81136         * tests/test-poll.c: Don't include sockets.h.
81137         (main): Don't invoke gl_sockets_startup.
81138         * tests/test-select.c: Don't include sockets.h.
81139         (main): Don't invoke gl_sockets_startup.
81141 2009-08-02  Bruno Haible  <bruno@clisp.org>
81143         Allow multiple calls to gl_sockets_startup.
81144         * lib/sockets.c (initialized_sockets_version): New variable.
81145         (gl_sockets_startup): Do nothing if already called for this or a higher
81146         version.
81147         (gl_sockets_cleanup): Reset initialized_sockets_version.
81149 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81151         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81152         different project/version.
81154 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81155             Bruno Haible  <bruno@clisp.org>
81157         Tests for module 'pipe-filter-gi'.
81158         * modules/pipe-filter-gi-tests: New file.
81159         * tests/test-pipe-filter-gi1.sh: New file.
81160         * tests/test-pipe-filter-gi1.c: New file.
81161         * tests/test-pipe-filter-gi2.sh: New file.
81162         * tests/test-pipe-filter-gi2-main.c: New file.
81163         * tests/test-pipe-filter-gi2-child.c: New file.
81165         New module 'pipe-filter-gi'.
81166         * lib/pipe-filter-gi.c: New file.
81167         * modules/pipe-filter-gi: New file.
81169 2009-08-02  Bruno Haible  <bruno@clisp.org>
81170             Paolo Bonzini  <bonzini@gnu.org>
81172         Tests for module 'pipe-filter-ii'.
81173         * modules/pipe-filter-ii-tests: New file.
81174         * tests/test-pipe-filter-ii1.sh: New file.
81175         * tests/test-pipe-filter-ii1.c: New file.
81176         * tests/test-pipe-filter-ii2.sh: New file.
81177         * tests/test-pipe-filter-ii2-main.c: New file.
81178         * tests/test-pipe-filter-ii2-child.c: New file.
81180         New module 'pipe-filter-ii'.
81181         * lib/pipe-filter.h: New file.
81182         * lib/pipe-filter-ii.c: New file.
81183         * lib/pipe-filter-aux.h: New file.
81184         * modules/pipe-filter-ii: New file.
81186 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81188         * lib/gc-libgcrypt.c: Change copyright to FSF.
81189         * lib/gc-gnulib.c: Likewise.
81191 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81193         * lib/gethostname.c: Include limits.h.
81195 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81196             Bruno Haible  <bruno@clisp.org>
81198         Ensure HOST_NAME_MAX as part of the gethostname module.
81199         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81200         define also HOST_NAME_MAX.
81201         * tests/test-gethostname.c: Include <limits.h>.
81202         (main): Check also HOST_NAME_MAX.
81203         * doc/posix-headers/limits.texi: Document the mingw problem.
81205 2009-08-02  Bruno Haible  <bruno@clisp.org>
81207         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81208         Add comments.
81210 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81212         * lib/gethostname.c: Add Windows wrapper.
81213         * m4/gethostname.m4: Look for gethostname in -lws2_32.
81214         * modules/gethostname: Depend on sys_socket & errno, for also
81215         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
81216         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
81218 2009-07-31  Jim Meyering  <meyering@redhat.com>
81220         getloadavg: fix symbol name in comment
81221         * lib/getloadavg.c: Correct a typo I introduced when adding
81222         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
81223         Matt Kraai spotted the problem.
81225 2009-07-29  Matt Kraai  <mkraai@beckman.com>
81227         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
81228         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
81229         code also if ! defined N_NAME_POINTER.
81230         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
81231         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
81232         but the n_name member is a 12-byte array.
81234 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
81236         update-copyright: generalize comment handling
81237         * build-aux/update-copyright: Handle copyright statements
81238         within more comment styles.
81239         Document usage.
81240         Report any file with an external copyright holder or parse failure.
81242 2009-07-29  Jim Meyering  <meyering@redhat.com>
81244         mktime: correct setting of REPLACE_MKTIME
81245         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
81247         update-copyright: new module
81248         * modules/update-copyright: New file.
81249         * build-aux/update-copyright: New file.
81250         * MODULES.html.sh (maint+release support): Add update-copyright.
81252 2009-07-27  Bruno Haible  <bruno@clisp.org>
81254         Fix compilation error when <ctime> is used and mktime is replaced.
81255         * lib/time.in.h (mktime): New declaration.
81256         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81257         REPLACE_MKTIME instead of defining mktime in config.h.
81258         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81259         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81260         Reported by Ross McFarland <rwmcfa1@neces.com>.
81262 2009-07-27  Bruno Haible  <bruno@clisp.org>
81264         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81265         Reported by Matt Kraai <mkraai@beckman.com>.
81267 2009-07-25  Jim Meyering  <meyering@redhat.com>
81269         maint.mk: avoid warnings about missing files
81270         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81271         diagnostic when .prev-version does not exist.
81272         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81273         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81274         nonexistent cfg.mk.
81275         Suggestions from Simon Josefsson.
81277 2009-07-25  Bruno Haible  <bruno@clisp.org>
81279         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81280         defined as macros. Needed on QNX 6.4.1.
81281         Reported by Matt Kraai <mkraai@beckman.com>.
81283 2009-07-23  Jim Meyering  <meyering@redhat.com>
81285         maint.mk: invoke "make dist" with a working value of XZ_OPT
81286         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81288 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81290         Make fseeko.c compile on QNX.
81291         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81293 2009-07-22  Peter Simons  <simons@cryp.to>
81295         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81296         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81297         * lib/md4.h: Likewise.
81298         * lib/md5.h: Likewise.
81299         * lib/sha1.h: Likewise.
81300         * lib/sha256.h: Likewise.
81301         * lib/sha512.h: Likewise.
81303         tests-sha1: don't assign literal string to 'char *' variable
81304         * tests/test-sha1.c (main): Declare locals with "const" to match
81305         attributes of the right hand side.
81307 2009-07-21  Eric Blake  <ebb9@byu.net>
81309         dup2: fix more mingw problems
81310         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81311         fd to itself.
81312         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81313         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81314         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81315         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81316         care of mingw bugs.
81318 2009-07-21  Jim Meyering  <meyering@redhat.com>
81320         vc-list-files: avoid failure when /bin/sh is dash
81321         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81322         On some Debian based systems, /bin/sh is a symlink to dash, and running
81323         this command would omit the "/" following each 'tests' prefix:
81324           dash -x build-aux/vc-list-files -C . tests
81325         That is because bash and dash work differently:
81326           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81327           bash ok
81328           dash odd
81330 2009-07-21  Eric Blake  <ebb9@byu.net>
81332         dup2-tests: test previous patch
81333         * modules/dup2-tests: New file.
81334         * tests/test-dup2.c: Likewise.
81335         * tests/test-open.c (main): Avoid unspecified behavior.
81336         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81337         test.
81339         dup2: work around mingw and cygwin 1.5 bug
81340         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81342         * modules/unistd (Makefile.am): Substitute it.
81343         * lib/unistd.in.h (dup2): Declare the replacement.
81344         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81345         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81346         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81347         * modules/execute (Depends-on): Add dup2.
81348         * modules/fseterr (Depends-on): Likewise.
81349         * modules/pipe (Depends-on): Likewise.
81350         * modules/posix_spawn-internal (Depends-on): Likewise.
81352 2009-07-21  Bruno Haible  <bruno@clisp.org>
81354         * modules/.gitattributes: New file.
81356 2009-07-20  Bruno Haible  <bruno@clisp.org>
81358         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81359         (main): Use it.
81361 2009-07-20  Eric Blake  <ebb9@byu.net>
81363         test-pipe: make a bit more robust.
81364         * tests/test-pipe.c (myerr): Allow error messages regardless of
81365         what we do to stderr.
81366         (test_pipe): Rearrange to avoid deadlock.
81367         (child_main): Try a larger read, to ensure we avoided deadlock.
81368         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81369         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81370         if misused.
81372 2009-07-19  Jim Meyering  <meyering@redhat.com>
81374         fts: avoid false-positive cycle-detection
81375         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81376         for each new command line argument.
81378 2009-07-19  Bruno Haible  <bruno@clisp.org>
81380         Fix build error on mingw with the modules sys_select and unistd.
81381         * modules/acl-tests (Depends-on): Add close.
81382         * modules/binary-io-tests (Depends-on): Likewise.
81383         * modules/closein-tests (Depends-on): Likewise.
81384         * modules/flock-tests (Depends-on): Likewise.
81385         * modules/fsync-tests (Depends-on): Likewise.
81386         * modules/lseek-tests (Depends-on): Likewise.
81387         * modules/pipe-tests (Depends-on): Likewise.
81388         * modules/posix_spawn-tests (Depends-on): Likewise.
81389         * modules/posix_spawnp-tests (Depends-on): Likewise.
81390         * modules/stat-time-tests (Depends-on): Likewise.
81391         * modules/yesno-tests (Depends-on): Likewise.
81393 2009-07-19  Bruno Haible  <bruno@clisp.org>
81395         Unify conditionals.
81396         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
81397         macros, not at the compiler macros.
81398         * lib/pipe.c: Likewise.
81399         * lib/execute.c: Likewise.
81400         * lib/spawni.c: Likewise.
81402 2009-07-19  Bruno Haible  <bruno@clisp.org>
81404         Fix handling of closed stdin/stdout/stderr on mingw.
81405         * lib/w32spawn.h: Include unistd.h.
81406         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
81407         file descriptor with O_NOINHERIT flag.
81408         (fd_safer_noinherit): New function, based on fd-safer.c.
81409         (dup_safer_noinherit): New function, based on dup-safer.c.
81410         (undup_safer_noinherit): New function.
81411         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
81412         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
81413         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
81414         instead of fd_safer.
81415         * tests/test-pipe.c: Include <windows.h>.
81416         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
81417         result.
81419         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
81420         from main.
81421         (test_pipe): Pass an extra argument for disambiguation.
81422         (main): Invoke parent_main or child_main.
81424         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
81425         consistently.
81427 2009-07-18  Eric Blake  <ebb9@byu.net>
81429         test-pipe: fix mingw build
81430         * tests/test-pipe.c (main): Avoid fcntl on mingw.
81432 2009-07-18  Bruno Haible  <bruno@clisp.org>
81434         * modules/pipe-tests (Makefile.am): Fix typo.
81436 2009-07-18  Eric Blake  <ebb9@byu.net>
81438         error: fix mingw build
81439         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
81440         Reported by Bruno Haible.
81442         error: avoid undefined use of stdout
81443         * lib/error.c (error, error_at_line): Check that fd 1 is open
81444         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
81445         is handling faults and the close_stdout module wants to report the
81446         detection of closed stdout as an error.
81448 2009-07-17  Eric Blake  <ebb9@byu.net>
81450         pipe: be robust in face of closed fds
81451         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
81452         should cause child to misbehave.
81453         * modules/pipe-tests: New module.
81454         * tests/test-pipe.c: New file.
81455         * tests/test-pipe.sh: New file.
81456         Reported by Akim Demaille.
81458 2009-07-14  Bruno Haible  <bruno@clisp.org>
81460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
81461         Reported by anonymous kc.
81463 2009-07-07  Jim Meyering  <meyering@redhat.com>
81465         maint.mk: don't look for translatable strings in *.m4 or *.mk
81466         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
81467         when searching for translatable strings.
81469 2009-07-05  Jim Meyering  <meyering@redhat.com>
81471         remove superfluous parentheses in STREQ definition
81472         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
81473         * lib/getugroups.c (STREQ): Likewise.
81474         * lib/fnmatch.c (STREQ): Likewise.
81475         Spotted by Bruno Haible.
81477 2009-07-04  Jim Meyering  <meyering@redhat.com>
81479         argv-iter: new module
81480         * MODULES.html.sh: Add argv-iter.
81481         * lib/argv-iter.c, lib/argv-iter.h: New files.
81482         * modules/argv-iter: New file.
81483         * modules/argv-iter-tests: New file.
81484         * tests/test-argv-iter.c: Test it.
81486 2009-07-04  Bruno Haible  <bruno@clisp.org>
81488         Fix assertion.
81489         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
81490         contains more exact copies of a given entry than file2, leave the extra
81491         copies unpaired rather than aborting.
81492         Reported by Eric Blake.
81494 2009-07-02  Bruno Haible  <bruno@clisp.org>
81496         Speedup git-merge-changelog for git cherry-pick.
81497         * lib/git-merge-changelog.c (struct entries_mapping): New type.
81498         (entries_mapping_get): New function, extracted from compute_mapping.
81499         (entries_mapping_reverse_get): New function.
81500         (compute_mapping): Add a 'full' argument. Return the result in a
81501         'struct entries_mapping'.
81502         (main): Update. Access the mappings through entries_mapping_get.
81503         Reported by Eric Blake.
81505 2009-07-02  Bruno Haible  <bruno@clisp.org>
81507         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
81508         best_i.
81510 2009-07-02  Bruno Haible  <bruno@clisp.org>
81512         Speed up approximate search for matching ChangeLog entries.
81513         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
81514         argument. Call fstrcmp_bounded instead of fstrcmp.
81515         (compute_mapping, try_split_merged_entry, main): Update callers.
81517 2009-07-02  Bruno Haible  <bruno@clisp.org>
81519         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
81521 2009-06-30  Bruno Haible  <bruno@clisp.org>
81523         Reduce the number of uc_is_cased calls.
81524         * lib/unicase.h (casing_suffix_context_t): Add
81525         'first_char_except_ignorable' field.
81526         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
81527         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
81528         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
81529         Update initializer.
81530         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
81531         case-ignorable characters.
81532         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
81533         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
81534         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
81535         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
81536         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
81538 2009-06-30  Bruno Haible  <bruno@clisp.org>
81540         Tests for module 'unicase/ignorable'.
81541         * modules/unicase/ignorable-tests: New file.
81542         * tests/unicase/test-ignorable.c: New file, generated by
81543         gen-uni-tables.
81545         Tests for module 'unicase/cased'.
81546         * modules/unicase/cased-tests: New file.
81547         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
81548         * tests/unicase/test-predicate-part1.h: New file, derived from
81549         tests/unictype/test-predicate-part1.h.
81550         * tests/unicase/test-predicate-part2.h: New file, same as
81551         tests/unictype/test-predicate-part2.h.
81553         Fix evaluation of "Before C" condition of FINAL_SIGMA.
81554         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
81555         (output_casing_properties): New function.
81556         (main): Call it.
81557         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
81558         * lib/unicase/cased.c: Include unictype/bitmap.h.
81559         (uc_is_cased): Define through a bitmap lookup.
81560         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
81561         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
81562         (uc_is_case_ignorable): Define through a bitmap lookup.
81563         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
81564         lib/unictype/bitmap.h.
81565         (Depends-on): Add inline. Clean up.
81566         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
81567         lib/unictype/bitmap.h.
81568         (Depends-on): Add inline. Clean up.
81569         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
81570         recognition.
81571         * tests/unicase/test-u16-tolower.c (main): Likewise.
81572         * tests/unicase/test-u32-tolower.c (main): Likewise.
81574 2009-06-30  Bruno Haible  <bruno@clisp.org>
81576         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
81577         * lib/unicase/u16-casemap.c: Likewise.
81578         * lib/unicase/u32-casemap.c: Likewise.
81580 2009-06-29  Bruno Haible  <bruno@clisp.org>
81582         Define u32_casefold as a wrapper around u32_ct_casefold.
81583         * lib/unicase/u32-casefold.c: Update.
81584         * modules/unicase/u32-casefold (Depends-on): Add
81585         unicase/u32-ct-casefold, unicase/empty-prefix-context,
81586         unicase/empty-suffix-context. Clean up.
81588         Define u16_casefold as a wrapper around u16_ct_casefold.
81589         * lib/unicase/u16-casefold.c: Update.
81590         * modules/unicase/u16-casefold (Depends-on): Add
81591         unicase/u16-ct-casefold, unicase/empty-prefix-context,
81592         unicase/empty-suffix-context. Clean up.
81594         Define u8_casefold as a wrapper around u8_ct_casefold.
81595         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
81596         * lib/unicase/u8-casefold.c: Update.
81597         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
81598         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81600         Define u32_totitle as a wrapper around u32_ct_totitle.
81601         * lib/unicase/u32-totitle.c: Update.
81602         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
81603         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81605         Define u16_totitle as a wrapper around u16_ct_totitle.
81606         * lib/unicase/u16-totitle.c: Update.
81607         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
81608         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81610         Define u8_totitle as a wrapper around u8_ct_totitle.
81611         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
81612         functions.
81613         (FUNC): Delegate to U_CT_TOTITLE.
81614         * lib/unicase/u8-totitle.c: Update.
81615         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
81616         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81618         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
81619         invocation.
81620         * modules/unicase/u32-tolower (Depends-on): Add
81621         unicase/empty-prefix-context, unicase/empty-suffix-context.
81623         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
81624         invocation.
81625         * modules/unicase/u16-tolower (Depends-on): Add
81626         unicase/empty-prefix-context, unicase/empty-suffix-context.
81628         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
81629         * modules/unicase/u8-tolower (Depends-on): Add
81630         unicase/empty-prefix-context, unicase/empty-suffix-context.
81632         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
81633         invocation.
81634         * modules/unicase/u32-toupper (Depends-on): Add
81635         unicase/empty-prefix-context, unicase/empty-suffix-context.
81637         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
81638         invocation.
81639         * modules/unicase/u16-toupper (Depends-on): Add
81640         unicase/empty-prefix-context, unicase/empty-suffix-context.
81642         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
81643         * modules/unicase/u8-toupper (Depends-on): Add
81644         unicase/empty-prefix-context, unicase/empty-suffix-context.
81646         New module 'unicase/u32-ct-casefold'.
81647         * lib/unicase/u32-ct-casefold.c: New file.
81648         * modules/unicase/u32-ct-casefold: New file.
81650         New module 'unicase/u16-ct-casefold'.
81651         * lib/unicase/u16-ct-casefold.c: New file.
81652         * modules/unicase/u16-ct-casefold: New file.
81654         New module 'unicase/u8-ct-casefold'.
81655         * lib/unicase/u8-ct-casefold.c: New file.
81656         * lib/unicase/u-ct-casefold.h: New file, derived from
81657         lib/unicase/u-casefold.h.
81658         * modules/unicase/u8-ct-casefold: New file.
81660         New module 'unicase/u32-ct-totitle'.
81661         * lib/unicase/u32-ct-totitle.c: New file.
81662         * modules/unicase/u32-ct-totitle: New file.
81664         New module 'unicase/u16-ct-totitle'.
81665         * lib/unicase/u16-ct-totitle.c: New file.
81666         * modules/unicase/u16-ct-totitle: New file.
81668         New module 'unicase/u8-ct-totitle'.
81669         * lib/unicase/u8-ct-totitle.c: New file.
81670         * lib/unicase/u-ct-totitle.h: New file, derived from
81671         lib/unicase/u-totitle.h.
81672         * modules/unicase/u8-ct-totitle: New file.
81674         New module 'unicase/u32-ct-tolower'.
81675         * lib/unicase/u32-ct-tolower.c: New file.
81676         * modules/unicase/u32-ct-tolower: New file.
81678         New module 'unicase/u16-ct-tolower'.
81679         * lib/unicase/u16-ct-tolower.c: New file.
81680         * modules/unicase/u16-ct-tolower: New file.
81682         New module 'unicase/u8-ct-tolower'.
81683         * lib/unicase/u8-ct-tolower.c: New file.
81684         * modules/unicase/u8-ct-tolower: New file.
81686         New module 'unicase/u32-ct-toupper'.
81687         * lib/unicase/u32-ct-toupper.c: New file.
81688         * modules/unicase/u32-ct-toupper: New file.
81690         New module 'unicase/u16-ct-toupper'.
81691         * lib/unicase/u16-ct-toupper.c: New file.
81692         * modules/unicase/u16-ct-toupper: New file.
81694         New module 'unicase/u8-ct-toupper'.
81695         * lib/unicase/u8-ct-toupper.c: New file.
81696         * modules/unicase/u8-ct-toupper: New file.
81698         Add context arguments to u*_casemap functions.
81699         * lib/unicase/unicasemap.h: Include unicase.h.
81700         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
81701         suffix_context arguments.
81702         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
81703         functions.
81704         (FUNC): Add prefix_context and suffix_context arguments. Use
81705         uc_is_cased and uc_is_case_ignorable.
81706         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
81707         * lib/unicase/u16-casemap.c: Likewise.
81708         * lib/unicase/u32-casemap.c: Likewise.
81709         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
81710         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81711         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
81712         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81713         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
81714         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81716         New module 'unicase/u32-suffix-context'.
81717         * lib/unicase/u32-suffix-context.c: New file.
81718         * modules/unicase/u32-suffix-context: New file.
81720         New module 'unicase/u16-suffix-context'.
81721         * lib/unicase/u16-suffix-context.c: New file.
81722         * modules/unicase/u16-suffix-context: New file.
81724         New module 'unicase/u8-suffix-context'.
81725         * lib/unicase/u8-suffix-context.c: New file.
81726         * lib/unicase/u-suffix-context.h: New file.
81727         * modules/unicase/u8-suffix-context: New file.
81729         New module 'unicase/empty-suffix-context'.
81730         * lib/unicase/empty-suffix-context.c: New file.
81731         * modules/unicase/empty-suffix-context: New file.
81733         New module 'unicase/u32-prefix-context'.
81734         * lib/unicase/u32-prefix-context.c: New file.
81735         * modules/unicase/u32-prefix-context: New file.
81737         New module 'unicase/u16-prefix-context'.
81738         * lib/unicase/u16-prefix-context.c: New file.
81739         * modules/unicase/u16-prefix-context: New file.
81741         New module 'unicase/u8-prefix-context'.
81742         * lib/unicase/u8-prefix-context.c: New file.
81743         * lib/unicase/u-prefix-context.h: New file.
81744         * lib/unicase/context.h: New file.
81745         * modules/unicase/u8-prefix-context: New file.
81747         New module 'unicase/empty-prefix-context'.
81748         * lib/unicase/empty-prefix-context.c: New file.
81749         * modules/unicase/empty-prefix-context: New file.
81751         New module 'unicase/ignorable'.
81752         * lib/unicase/ignorable.c: New file.
81753         * modules/unicase/ignorable: New file.
81755         New module 'unicase/cased'.
81756         * lib/unicase/caseprop.h: New file.
81757         * lib/unicase/cased.c: New file.
81758         * modules/unicase/cased: New file.
81760         New functions for case mapping of substrings.
81761         * lib/unicase.h (casing_prefix_context_t): New type.
81762         (unicase_empty_prefix_context): New variable.
81763         (u8_casing_prefix_context, u16_casing_prefix_context,
81764         u32_casing_prefix_context, u8_casing_prefixes_context,
81765         u16_casing_prefixes_context, u32_casing_prefixes_context): New
81766         declarations.
81767         (casing_suffix_context_t): New type.
81768         (unicase_empty_suffix_context): New variable.
81769         (u8_casing_suffix_context, u16_casing_suffix_context,
81770         u32_casing_suffix_context, u8_casing_suffixes_context,
81771         u16_casing_suffixes_context, u32_casing_suffixes_context,
81772         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
81773         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
81774         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
81775         declarations.
81777 2009-06-28  Jim Meyering  <meyering@redhat.com>
81779         boostrap: indent only with spaces
81780         * build-aux/bootstrap: Indent only with spaces, never TABs.
81782         bootstrap: split long lines
81783         * build-aux/bootstrap: Keep line length < 80.
81785         bootstrap: sync from coreutils
81786         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
81787         just as autoreconf does.  Verify a list of prerequisite
81788         package-name,version-number pairs if defined in bootstrap.conf.
81789         Refer to README-prereq, if prerequisites are not satisfied.
81791 2009-06-27  Eric Blake  <ebb9@byu.net>
81793         tests: add test for bogus NULL definition
81794         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
81795         * tests/test-stdlib.c: Likewise.
81796         * tests/test-string.c: Likewise.
81797         * tests/test-locale.c: Likewise.
81798         * tests/test-unistd.c: Likewise.
81799         * modules/stdio-tests (Depends-on): Add verify.
81800         * modules/stdlib-tests (Depends-on): Likewise.
81801         * modules/string-tests (Depends-on): Likewise.
81802         * modules/locale-tests (Depends-on): Likewise.
81803         * modules/unistd-tests (Depends-on): Likewise.
81805 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
81807         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
81808         self-explaining comment.
81809         * m4/selinux-selinux-h: Update serial.
81810         (gl_LIBSELINUX): New macro, adding a warning for missing development
81811         packages to code extracted from...
81812         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
81813         Add warning for missing development packages here, too.
81815 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
81817         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
81819 2009-06-25  Eric Blake  <ebb9@byu.net>
81821         version-etc: fix regression
81822         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
81823         gcc.
81824         (version_etc): Use it, to catch bugs with trailing NULL.
81825         * lib/version-etc.c (version_etc_arn): Delete unused argument.
81826         (version_etc_va): Fix logic bug.
81827         * modules/version-etc-tests: Add test.
81828         * tests/test-version-etc.c: New file.
81829         * tests/test-version-etc.sh: Likewise.
81831 2009-06-25  Sam Steingold  <sds@gnu.org>
81833         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
81834         mbtowc declaration.
81836 2009-06-25  Eric Blake  <ebb9@byu.net>
81838         fpurge: migrate into <stdio.h>
81839         * lib/fpurge.h: Delete...
81840         * lib/stdio.in.h (fpurge): ...and declare here, instead.
81841         * lib/fpurge.c (fpurge): Change declaring header.
81842         * modules/fpurge (Files): Drop deleted file.
81843         (Depends-on): Add stdio.
81844         (configure.ac): Set witness.
81845         * modules/stdio (Makefile.am): Support fpurge macros.
81846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81847         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
81848         * lib/fflush.c: Update client.
81849         * tests/test-fpurge.c: Likewise.
81850         * NEWS: Mention the change.
81852 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81854         * lib/argp-version-etc.c (program_authors): Add const
81855         qualifier.
81856         * lib/version-etc.c: Fix typos in the comments.
81857         * modules/argp-version-etc: Depends on version-etc.
81859 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81861         argp-version-etc: new module.
81863         * lib/argp-version-etc.c: New file.
81864         * lib/argp-version-etc.h: New file.
81865         * modules/argp-version-etc: New file.
81866         * modules/argp-version-etc-tests: New file.
81867         * tests/test-argp-version-etc.c: New test.
81868         * tests/test-argp-version-etc-1.sh: New test.
81870 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81872         Provide additional interfaces and documentation for version-etc
81873         module.
81875         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
81876         interfaces.
81877         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
81878         prototypes.
81880 2009-06-24  Bruno Haible  <bruno@clisp.org>
81882         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
81883         HAVE_LIB${NAME} macro.
81884         Reported by Sam Steingold <sds@gnu.org>.
81886 2009-06-23  Simon Josefsson  <simon@josefsson.org>
81888         * modules/hash-tests (test_hash_LDADD): Link to libintl when
81889         needed.
81891 2009-06-21  Bruno Haible  <bruno@clisp.org>
81893         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
81894         work.
81895         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
81896         together with LIB${NAME}, LTLIB${NAME}.
81897         Reported by Sam Steingold <sds@gnu.org>.
81899 2009-06-20  Jim Meyering  <meyering@redhat.com>
81901         tests: make sc_require_test_exit_idiom more generic
81902         * top/maint.mk (Exit_witness_file): New overridable variable.
81903         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
81904         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
81906 2009-06-19  Jim Meyering  <meyering@redhat.com>
81908         hash: reverse order of src/dst parameters in an internal interface
81909         * lib/hash.c (transfer_entries): Reverse order of parameters to
81910         put DST before SRC.  Adjust callers.
81912         tests: test-hash: avoid wholesale duplication
81913         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
81914         Instead, use a loop and add a single conditional.
81916         tests: test-hash: allow seed selection via a command line argument
81917         * tests/test-hash.c (get_seed): New function.
81918         (main): Use it.
81920 2009-06-19  Eric Blake  <ebb9@byu.net>
81922         hash: avoid memory leak on allocation failure
81923         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
81924         failure.  Factor repeated algorithm...
81925         (transfer_entries): ...into new helper routine.
81926         (hash_delete): React to hash_rehash return value.
81928         hash: reduce memory pressure in hash_rehash no-op case
81929         * lib/hash.c (next_prime): Avoid overflow.
81930         (hash_initialize): Factor bucket size computation...
81931         (compute_bucket_size): ...into new helper function.
81932         (hash_rehash): Use new function and open coding to reduce memory
81933         pressure, and avoid a memory leak in USE_OBSTACK code.
81934         Reported by Jim Meyering.
81936 2009-06-18  Eric Blake  <ebb9@byu.net>
81938         hash: make rotation more obvious
81939         * modules/hash (Depends-on): Add bitrotate and stdint.
81940         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
81941         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
81942         (SIZE_MAX): Rely on headers for definition.
81943         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
81944         (raw_hasher): Use rotr_sz.
81945         Suggested by Jim Meyering.
81947         hash: fix memory leak in last patch
81948         * lib/hash.c (hash_rehash): Avoid memory leak.
81950         hash: avoid no-op rehashing
81951         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
81953         hash: provide default callback functions
81954         * lib/hash.c (raw_hasher, raw_comparator): New functions.
81955         (hash_initialize): Use them as defaults.
81956         * tests/test-hash.c (main): Test this.
81958         hash: minor optimization
81959         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
81960         when possible.
81961         (hash_initialize): Document this promise.
81962         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
81963         * tests/test-hash.c (hash_compare_strings): Test this.
81965 2009-06-18  Bruno Haible  <bruno@clisp.org>
81967         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
81968         going to be replaced anyway.
81970 2009-06-18  Bruno Haible  <bruno@clisp.org>
81972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
81973         in one place.
81974         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
81975         be replaced anyway.
81977 2009-06-18  Eric Blake  <ebb9@byu.net>
81979         hash: check for resize before insertion
81980         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
81981         threshold before insertion, so that a pathological hash_rehash
81982         that fills every bucket can still trigger another rehash.
81984 2009-06-18  Jim Meyering  <meyering@redhat.com>
81986         hash-tests: add a loop around the small tests
81987         * tests/test-hash.c (main): Repeat small tests with selected
81988         small initial table sizes.
81990 2009-06-17  Eric Blake  <ebb9@byu.net>
81992         hash: minor cleanups
81993         * lib/hash.h (hash_entry): Make opaque, by moving...
81994         * lib/hash.c (hash_entry): ...here.
81995         (hash_insert): Clarify restrictions on what can be inserted.
81996         (hash_get_next): Clarify when it is safe to remove an element
81997         during traversal.
81998         (check_tuning): Skip verification when tuning is known safe.
81999         (hash_initialize): Clarify restrictions on tuning.
82001 2009-06-17  Jim Meyering  <jim@meyering.net>
82002         and Eric Blake  <ebb9@byu.net>
82004         hash-tests: new module
82005         * modules/hash-tests: New file.
82006         * tests/test-hash.c: New file.
82008 2009-06-17  Eric Blake  <ebb9@byu.net>
82010         strstr-simple: document new module
82011         * MODULES.html.sh: Document new module.
82013         strstr, strcasestr: replace on platforms with broken memchr
82014         * modules/strstr: Split into...
82015         * modules/strstr-simple: ...new module that does not care about
82016         performance, but does care about glibc bug.
82017         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82018         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82019         if platform memchr is broken, per Debian bug 521737.
82020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82021         memchr.
82022         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82023         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82024         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82025         * modules/mountlist (Depends-on): Add strstr-simple.
82026         * modules/gen-uni-tables (Depends-on): Likewise.
82027         * modules/argz (Depends-on): Add strstr.
82029 2009-06-17  Bruno Haible  <bruno@clisp.org>
82031         * modules/posix_spawn-internal (Depends-on): Add errno.
82033 2009-06-17  Bruno Haible  <bruno@clisp.org>
82035         Define missing ESTALE on Interix 3.5.
82036         * lib/errno.in.h (ESTALE): Assign a value if missing.
82037         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82038         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82039         missing.
82040         * doc/posix-headers/errno.texi: Mention the Interix bug.
82041         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82043 2009-06-15  Eric Blake  <ebb9@byu.net>
82045         memchr, memchr2: add valgrind exception
82046         * lib/memchr.valgrind: New file.
82047         * lib/memchr2.valgrind: New file.
82048         * modules/memchr (Files): Distribute valgrind file.
82049         * modules/memchr2 (Files): Likewise.
82051         docs: memchr is no longer obsolete
82052         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82053         * lib/string.in.h (memchr): Simplify logic.
82055 2009-06-14  Jim Meyering  <meyering@redhat.com>
82057         link-follow: fix the "checking..." message to not mention trailing slash
82058         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82059         never considered trailing slashes.
82061 2009-06-14  Bruno Haible  <bruno@clisp.org>
82063         * m4/memchr.m4: Mention also the bug on IA-64.
82064         * doc/posix-functions/memchr.texi: Likewise.
82066 2009-06-12  Eric Blake  <ebb9@byu.net>
82068         memchr: detect broken x86_64 and alpha implementations
82069         * modules/memchr-tests (Depends-on): Move mmap detection...
82070         * modules/memchr (Depends-on): ...here.
82071         (configure.ac): Set indicator.
82072         * lib/string.in.h (memchr): Declare replacement.
82073         * modules/string (Makefile.am): Trigger replacement.
82074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82075         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82076         bugs.
82077         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82078         * modules/getpagesize (License): Relax license.
82080 2009-06-11  Bruno Haible  <bruno@clisp.org>
82082         * lib/idpriv.h: Add more references.
82084 2009-06-08  Bruno Haible  <bruno@clisp.org>
82086         Tests for module 'idpriv-droptemp'.
82087         * modules/idpriv-droptemp-tests: New file.
82088         * tests/test-idpriv-droptemp.sh: New file.
82089         * tests/test-idpriv-droptemp.su.sh: New file.
82090         * tests/test-idpriv-droptemp.c: New file.
82092         New module 'idpriv-droptemp'.
82093         * lib/idpriv-droptemp.c: New file.
82094         * modules/idpriv-droptemp: New file.
82096 2009-06-08  Bruno Haible  <bruno@clisp.org>
82098         Tests for module 'idpriv-drop'.
82099         * modules/idpriv-drop-tests: New file.
82100         * tests/test-idpriv-drop.sh: New file.
82101         * tests/test-idpriv-drop.su.sh: New file.
82102         * tests/test-idpriv-drop.c: New file.
82104         New module 'idpriv-drop'.
82105         * lib/idpriv.h: New file.
82106         * lib-idpriv-drop.c: New file.
82107         * m4/idpriv.m4: New file.
82108         * modules/idpriv-drop: New file.
82110 2009-06-08  Bruno Haible  <bruno@clisp.org>
82112         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82120 2009-06-08  Eric Blake  <ebb9@byu.net>
82122         test-strstr: use memory fence, when possible
82123         * tests/test-strstr.c (main): Use memory fence, in order to be
82124         more likely to trigger Debian bug 521737.
82125         * modules/strstr-tests (Files): Pull in additional files.
82127         memchr: no longer obsolete, for wider field testing
82128         * modules/memchr (Status, Notice): Delete, this module is no
82129         longer obsolete.
82130         * modules/vasnprintf (Depends-on): Add memchr.
82132 2009-06-07  Jim Meyering  <meyering@redhat.com>
82134         hash: declare some functions with the warn_unused_result attribute
82135         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82137 2009-06-07  Bruno Haible  <bruno@clisp.org>
82139         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82140         Reported by Eric Blake.
82142 2009-06-06  Eric Blake  <ebb9@byu.net>
82144         test-alignof: fix typo with long double
82145         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82146         compiler error.
82148 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82150         Escape non-texinfo { and }s.
82151         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82152         markup error.
82154 2009-06-04  Jim Meyering  <meyering@redhat.com>
82156         gitlog-to-changelog: don't infloop on an empty commit log
82157         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82158         Reported by Boris Petersen <transacid@centerim.org>.
82160 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82162         version-etc: extend for packagers
82163         Add three new configure options, intended for packagers:
82164           --with-packager="packager name"
82165           --with-packager-version="packager-specific version"
82166           --with-packager-bug-reports="packager bug reporting"
82167         An example with coreutils:
82168           $ ./configure \
82169             --with-packager=Gentoo \
82170             --with-packager-bug-report=http://bugs.gentoo.org/ \
82171             --with-packager-version="patchset 1.6"
82172           $ ./src/ls --version | head -n2
82173           ls (GNU coreutils) 7.1-dirty
82174           Packaged by Gentoo (patchset 1.6)
82175         Note that the bug reporting info via --help doesn't show up because
82176         coreutils uses its own custom emit_bug_reporting_address() implementation
82177         in src/system.h.  If it didn't, it'd look like:
82178           $ ./src/ls --help | tail -n4
82179           Report bugs to <bug-coreutils@gnu.org>.
82180           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82181           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82182           General help using GNU software: <http://www.gnu.org/gethelp/>.
82183         * lib/version-etc.c: Print new information, if provided.
82184         * m4/version-etc.m4: New file.
82185         * modules/version-etc (Files): Add m4/version-etc.m4.
82186         (configure.ac): Add gl_VERSION_ETC.
82188 2009-05-31  Bruno Haible  <bruno@clisp.org>
82190         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82191         and 'int64_t'.
82192         * modules/alignof-tests (Dependencies): Add stdint.
82193         Reported by Eric Blake.
82195 2009-05-31  Bruno Haible  <bruno@clisp.org>
82197         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82198         restriction due to compiler bugs.
82199         Reported by Eric Blake.
82201 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82202             Bruno Haible  <bruno@clisp.org>
82204         Fix test-alignof failure.
82205         * lib/alignof.h (alignof_slot): New macro.
82206         (alignof_type): New macro, with the same semantics as the previous
82207         'alignof'.
82208         (alignof): Alias to alignof_slot.
82209         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
82210         check that the results are usable as constant expressions.
82212 2009-05-31  Bruno Haible  <bruno@clisp.org>
82214         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
82215         * tests/test-memchr.c (main): Check that memchr does not read past the
82216         first occurrence of the byte.
82217         * tests/test-strstr.c (main): Update comment.
82218         Suggested by Eric Blake.
82220 2009-05-30  Bruno Haible  <bruno@clisp.org>
82222         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
82223         detail how to use dumpbin.
82224         Reported by David Byron <dbyron@dbyron.com>.
82226 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82228         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
82230 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82232         * m4/manywarnings.m4: Add GCC 4.4 warnings.
82234 2009-05-28  Bruno Haible  <bruno@clisp.org>
82236         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
82237         build-aux/ files.
82239 2009-05-28  Simon Josefsson  <simon@josefsson.org>
82241         * gnulib-tool (func_import): Transform license on build-aux/ files too.
82243 2009-05-27  Simon Josefsson  <simon@josefsson.org>
82245         * gnulib-tool (sed_transform_main_lib_file)
82246         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
82247         regexps.
82249 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82251         * tests/test-strstr.c: Add another self-test.
82252         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82253         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82255 2009-05-23  Bruno Haible  <bruno@clisp.org>
82257         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82258         change.
82260 2009-05-21  Bruno Haible  <bruno@clisp.org>
82262         Simplify use of mode_t varargs.
82263         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82264         uses 'mode_t' or 'int'.
82265         * lib/openat.c (openat): Likewise.
82266         * lib/open-safer.c (open_safer): Likewise.
82267         * m4/mode_t.m4: New file.
82268         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82269         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82270         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82271         * modules/open (Files): Add m4/mode_t.m4.
82272         * modules/openat (Files): Likewise.
82273         * modules/fcntl-safer (Files): Likewise.
82274         Suggested by Eric Blake.
82276 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82278         * doc/glibc-functions/fallocate.texi: New file.
82279         * doc/gnulib.texi: Include it.
82281 2009-05-21  Eric Blake  <ebb9@byu.net>
82282             Bruno Haible  <bruno@clisp.org>
82284         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82285         invocations.
82286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82288 2009-05-21  Eric Blake  <ebb9@byu.net>
82289             Bruno Haible  <bruno@clisp.org>
82291         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82292         include_next. Fix of 2008-11-20 commit.
82293         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82294         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82295         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82296         NEXT_MATH_H.
82297         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82298         instead of NEXT_MATH_H.
82300 2009-05-21  Bruno Haible  <bruno@clisp.org>
82302         Avoid redefinition warnings for SIZE_MAX.
82303         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82304         Reported by Simon Josefsson.
82306 2009-05-21  Bruno Haible  <bruno@clisp.org>
82308         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82309         AC_CACHE_VAL.
82311 2009-05-20  Bruno Haible  <bruno@clisp.org>
82313         Make zeroptr.h work on mingw.
82314         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82315         mprotect.
82316         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82317         * modules/memchr2-tests (configure.ac): Likewise.
82318         * modules/memcmp-tests (configure.ac): Likewise.
82319         * modules/memmem-tests (configure.ac): Likewise.
82320         * modules/memrchr-tests (configure.ac): Likewise.
82321         Reported by Simon Josefsson.
82323 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82325         * tests/test-glob.c: Include string.h for strcmp prototype.
82327 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82329         * modules/getdelim (Depends-on): Add explicit stdint, although it
82330         was implicitly already pulled in via realloc-posix.
82331         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82333 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82335         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82336         G. Christensen" <tgc@jupiterrise.com>.
82337         * m4/sys_socket_h.m4: Check for sa_family_t.
82338         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82339         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82340         * tests/test-sys_socket.c: Check that sa_family_t works.
82342 2009-05-18  Eric Blake  <ebb9@byu.net>
82344         maint.mk: allow gnulib_dir in VPATH build
82345         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82347 2009-05-15  Jim Meyering  <meyering@redhat.com>
82349         maint.mk: Give gnulib_dir a default definition.
82350         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82351         Thus, most packages no longer need to specify this variable in cfg.mk
82353 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82355         rename.m4: fix typos that would make non-mingw cross-configure fail
82356         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82358 2009-05-13  Eric Blake  <ebb9@byu.net>
82360         mmap-anon: avoid out-of-order autoconf expansion
82361         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82362         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82363         * modules/memchr-tests (Depends-on): Add extensions.
82364         * modules/memchr2-tests (Depends-on): Add extensions.
82365         * modules/memcmp-tests (Depends-on): Add extensions.
82366         * modules/memmem-tests (Depends-on): Add extensions.
82367         * modules/memrchr-tests (Depends-on): Add extensions.
82369 2009-05-13  Bruno Haible  <bruno@clisp.org>
82371         Make some tests ISO C 99 compliant.
82372         * tests/zerosize-ptr.h: New file.
82373         * tests/test-memchr.c: Include zerosize-ptr.h.
82374         (main): Use a zero-size object pointer instead of NULL.
82375         * tests/test-memchr2.c: Include zerosize-ptr.h.
82376         (main): Use a zero-size object pointer instead of NULL.
82377         * tests/test-memcmp.c: Include zerosize-ptr.h.
82378         (main): Use a zero-size object pointer instead of NULL.
82379         * tests/test-memmem.c: Include zerosize-ptr.h.
82380         (main): Use a zero-size object pointer instead of NULL.
82381         * tests/test-memrchr.c: Include zerosize-ptr.h.
82382         (main): Use a zero-size object pointer instead of NULL.
82383         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
82384         m4/mmap-anon.m4.
82385         (Depends-on): Add getpagesize.
82386         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82387         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
82388         m4/mmap-anon.m4.
82389         (Depends-on): Add getpagesize.
82390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82391         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
82392         m4/mmap-anon.m4.
82393         (Depends-on): Add getpagesize.
82394         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82395         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
82396         m4/mmap-anon.m4.
82397         (Depends-on): Add getpagesize.
82398         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82399         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
82400         m4/mmap-anon.m4.
82401         (Depends-on): Add getpagesize.
82402         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82404 2009-05-12  Bruno Haible  <bruno@clisp.org>
82406         Tests for module 'alignof'.
82407         * modules/alignof-tests: New file.
82408         * tests/test-alignof.c: New file.
82410 2009-05-12  Bruno Haible  <bruno@clisp.org>
82412         Fix alignof macro.
82413         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
82414         vendor compilers that are always correct.
82416 2009-05-12  Bruno Haible  <bruno@clisp.org>
82418         Make the MAP_ANONYMOUS detection work on HP-UX 11.
82419         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
82420         not whether its fully works.
82422 2009-05-12  Bruno Haible  <bruno@clisp.org>
82424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
82426 2009-05-12  Jim Meyering  <meyering@redhat.com>
82428         * top/maint.mk: Adjust backslash alignment.
82430 2009-05-11  Simon Josefsson  <simon@josefsson.org>
82432         * top/maint.mk: Make $(srcdir)/build-aux configurable.
82434 2009-05-11  Eric Blake  <ebb9@byu.net>
82436         argp: avoid undefined behavior
82437         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
82438         macros.
82440 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82442         * tests/test-vc-list-files-git.sh: Do git config of user.email and
82443         user.name to prevent git commit from complaining.
82445 2009-05-10  Bruno Haible  <bruno@clisp.org>
82447         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
82448         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
82449         it rewrites every file name only once.
82450         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
82452 2009-05-08  Bruno Haible  <bruno@clisp.org>
82454         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
82455         instead of 'max'.
82457 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82459         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
82460         sockaddr_storage test.
82462 2009-05-07  Simon Josefsson  <simon@josefsson.org>
82464         * modules/sys_socket (Makefile.am): Substitute
82465         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
82466         * m4/sys_socket_h.m4: Check for sockaddr_storage.
82467         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
82468         * tests/test-sys_socket.c: Check sockaddr_storage.
82470 2009-05-08  Bruno Haible  <bruno@clisp.org>
82472         New module 'alignof'.
82473         * lib/alignof.h: New file.
82474         * modules/alignof: New file.
82476 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82477             Bruno Haible  <bruno@clisp.org>
82479         Fix test-file-has-acl on FreeBSD.
82480         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
82481         mask is implicitly added.
82482         * tests/test-file-has-acl.c: Include <signal.h>.
82483         (main): Terminate the test after 5 seconds.
82484         * modules/acl-tests (configure.ac): Check for alarm function.
82486 2009-05-04  Bruno Haible  <bruno@clisp.org>
82488         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
82489         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
82490         * modules/errno (configure.ac): Drop AC_REQUIRE.
82491         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
82492         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
82494 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82496         * modules/glob-tests: New module.
82497         * tests/test-glob.c: Add.
82499 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82501         * modules/fnmatch-tests: New module.
82502         * tests/test-fnmatch.c: Add.
82504 2009-05-04  Eric Blake  <ebb9@byu.net>
82506         maint: make the new no-submodule-changes rule VPATH-safe
82507         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
82509 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82510             Bruno Haible  <bruno@clisp.org>
82512         acl: Fix infinite loop on FreeBSD.
82513         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
82514         of return value from acl_get_entry.
82515         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
82516         Likewise.
82518 2009-05-03  Bruno Haible  <bruno@clisp.org>
82520         * lib/acl-internal.h (acl_entries): Clarify return value.
82521         * lib/acl_entries.c (acl_entries): Likewise.
82523 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82525         Bug fix in acl module.
82526         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
82528 2009-05-03  Bruno Haible  <bruno@clisp.org>
82530         Create gperf-generated file in the source dir, not in the build dir.
82531         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
82532         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
82533         * modules/unicase/locale-language (unicase/locale-languages.h):
82534         Likewise.
82535         * modules/unicase/special-casing (unicase/special-casing-table.h):
82536         Likewise.
82537         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
82538         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
82539         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
82540         Reported by Ralf Wildenhues.
82542 2009-05-03  Bruno Haible  <bruno@clisp.org>
82544         * modules/fnmatch (Description, configure.ac): Taken from
82545         fnmatch-posix.
82546         * modules/fnmatch-posix: Turn into a symbolic reference to the
82547         'fnmatch' module, and deprecate.
82548         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
82550 2009-05-03  Bruno Haible  <bruno@clisp.org>
82552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
82553         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
82554         Reported by Ralf Wildenhues.
82556 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82558         * m4/fnmatch.m4: Fix fnmatch re-define.
82560 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82562         priv-set: new module and tests; adapt write-any-file
82563         * lib/priv-set.c: New file.
82564         * lib/priv-set.h: New file.
82565         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
82566         * lib/write-any-file.c: Simplify by using priv-set module.
82567         * m4/priv-set.m4: New file.
82568         * modules/priv-set: New file.
82569         * modules/unlinkdir: Add dependency on priv-set module.
82570         * modules/write-any-file: Likewise.
82572         Tests for module 'priv-set'.
82573         * modules/priv-set-tests: New file.
82574         * tests/test-priv-set.c: New file.
82576 2009-05-03  Jim Meyering  <meyering@redhat.com>
82577             Bruno Haible  <bruno@clisp.org>
82579         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
82580         use the converted UTF-8 variant of the name instead.
82582 2009-05-03  Jim Meyering  <meyering@redhat.com>
82584         tests: tighten some getdate tests
82585         * tests/test-getdate.c (main): Tighten tests: require equality,
82586         not just greater than.  Set TZ envvar to UTC0.
82588 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
82590         getdate: correctly interpret "next monday" when run on a Monday
82591         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
82592         that e.g., "next tues" (when run on a tuesday) results in a date
82593         that is one week in the future, and not today's date.
82594         I.e., add a week when the wday is the same as the current one.
82595         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
82596         and earlier by Martin Bernreuther and Jan Minář.
82597         * tests/test-getdate.c (main): Check that "next DAY" is always in
82598         the future and that "last DAY" is always in the past.
82600 2009-05-02  Jim Meyering  <meyering@redhat.com>
82602         build: ensure that a release build fails when a submodule is unclean
82603         * top/maint.mk (no-submodule-changes): New rule.
82604         (alpha beta major): Depend on it.
82606 2009-05-02  Bruno Haible  <bruno@clisp.org>
82608         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
82609         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
82610         shell variable gl_fnmatch_required to detect which variant is
82611         requested.
82612         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
82613         gl_FUNC_FNMATCH_POSIX.
82614         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
82615         exclude fnmatch-posix.
82617 2009-05-02  Bruno Haible  <bruno@clisp.org>
82619         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
82620         * modules/mbsrtowcs (License): Change to LGPLv2+.
82621         * modules/strnlen1 (License): Likewise.
82622         Reported by Simon Josefsson.
82624 2009-05-02  Bruno Haible  <bruno@clisp.org>
82626         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
82627         "cross".
82628         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
82629         gnulib-tool was called with option --source-base=lib.
82631 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82633         Use automake *-local hooks without commands, for extensibility.
82634         * modules/localcharset (Makefile.am): Rename install-exec-local
82635         rule to install-exec-localcharset, and make it a prerequisite of
82636         install-exec-local.  Likewise, rename the uninstall-local rule to
82637         uninstall-localcharset, and make it a prerequisite of the former.
82639 2009-05-01  Bruno Haible  <bruno@clisp.org>
82641         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
82642         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82643         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
82644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
82645         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
82646         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82647         m4/locale-zh.m4, m4/codeset.m4.
82649         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82650         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
82651         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82652         m4/locale-zh.m4.
82654         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
82655         REPLACE_WCRTOMB if mbstate_t must be replaced.
82656         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
82657         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
82659 2009-05-01  Bruno Haible  <bruno@clisp.org>
82661         Avoid compiler warnings when redefining macros defined by <libintl.h>.
82662         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
82663         dngettext, dcngettext, textdomain, bindtextdomain,
82664         bind_textdomain_codeset): Undefine before redefining.
82666 2009-04-30  Bruno Haible  <bruno@clisp.org>
82668         Fix bug introduced on 2009-04-25.
82669         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
82670         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
82671         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
82672         is defined.
82673         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
82674         is defined.
82675         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
82676         is defined.
82677         Reported by Elbert_Pol <elbert.pol@gmail.com>.
82679 2009-04-28  Bruno Haible  <bruno@clisp.org>
82681         Comment tweaks.
82682         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
82683         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
82684         * lib/unicase.h (u*_casexfrm): Likewise.
82685         Reported by Paolo Bonzini.
82687 2009-04-28  Bruno Haible  <bruno@clisp.org>
82689         Fix a compilation error.
82690         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
82691         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82692         Reported by Jim Meyering.
82694 2009-04-27  Bruno Haible  <bruno@clisp.org>
82696         New module 'libunistring'.
82697         * modules/libunistring: New file.
82698         * m4/libunistring.m4: New file.
82699         * MODULES.html.sh (Unicode string functions): Add it.
82701 2009-04-27  Eric Blake  <ebb9@byu.net>
82703         maint.mk: allow package-specific header to provide <config.h>
82704         * top/maint.mk (sc_require_config_h): New variable.
82705         (sc_require_config_h, sc_require_config_h_first): Use it.
82707 2009-04-27  Simon Josefsson  <simon@josefsson.org>
82709         * top/maint.mk (sc_avoid_if_before_free): Except
82710         useless-if-before-free script.
82712 2009-04-27  Eric Blake  <ebb9@byu.net>
82714         maintainer-makefile: depend on all required helper scripts
82715         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
82716         useless-if-before-free.
82717         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
82718         version, rather than assuming gnulib checkout is available.
82719         Reported by Simen Josefsson.
82721 2009-04-26  Bruno Haible  <bruno@clisp.org>
82723         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
82724         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
82725         "../" or "..".
82727 2009-04-26  Bruno Haible  <bruno@clisp.org>
82729         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
82730         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
82731         AC_LIB_HAVE_LINKFLAGS.
82733 2009-04-26  Bruno Haible  <bruno@clisp.org>
82735         Simplify calling convention of u*_conv_from_encoding.
82736         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
82737         u32_conv_from_encoding): Expect a resultbuf argument and return the
82738         result directly as a pointer.
82739         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
82740         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
82741         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
82742         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
82743         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
82744         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82745         Update.
82746         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
82747         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
82748         * lib/vasnprintf.c (VASNPRINTF): Update.
82749         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
82750         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
82751         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
82752         * NEWS: Mention the change.
82754 2009-04-26  Bruno Haible  <bruno@clisp.org>
82756         Simplify calling convention of u*_conv_to_encoding.
82757         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
82758         u32_conv_to_encoding): Expect a resultbuf argument and return the
82759         result directly as a pointer.
82760         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82761         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
82762         freeing scaled_offsets if mem_iconveha failed.
82763         * lib/unicase/u-casexfrm.h (FUNC): Update.
82764         * lib/uninorm/u-normxfrm.h (FUNC): Update.
82765         * lib/vasnprintf.c (VASNPRINTF): Update.
82766         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
82767         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
82768         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
82769         * NEWS: Mention the change.
82771 2009-04-26  Bruno Haible  <bruno@clisp.org>
82773         Avoid test failures on AIX and OSF/1.
82774         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
82775         malloc(0).
82776         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82777         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82778         Likewise.
82779         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
82780         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
82781         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
82782         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
82783         * doc/posix-functions/malloc.texi: Document the portability problem
82784         related to malloc(0).
82786 2009-04-26  Bruno Haible  <bruno@clisp.org>
82788         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
82789         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
82790         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
82792 2009-04-25  Bruno Haible  <bruno@clisp.org>
82794         Avoid link error when creating a namespace clean library.
82795         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
82796         as macro with arguments if already defined as an alias.
82797         * lib/signbitf.c (gl_signbitf): Don't undefine.
82798         * lib/signbitd.c (gl_signbitd): Don't undefine.
82799         * lib/signbitl.c (gl_signbitl): Don't undefine.
82801 2009-04-25  Jim Meyering  <meyering@redhat.com>
82803         vc-list-files: fix another quoting bug
82804         * build-aux/vc-list-files: Avoid sed backslash expansion
82805         of pathological directory names.
82807 2009-04-25  Eric Blake  <ebb9@byu.net>
82809         vc-list-files: fix shell quoting error
82810         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
82811         timestamp.
82813 2009-04-25  Jim Meyering  <meyering@redhat.com>
82815         vc-list-files: restore lost functionality with subdir argument
82816         * build-aux/vc-list-files: When given a non-"." sub-directory
82817         argument, substitute the $dir/ prefix back onto each resulting name.
82818         Otherwise, coreutils' root_tests check would fail.
82820 2009-04-24  Eric Blake  <ebb9@byu.net>
82822         vc-list-files: ignore git symlinks
82823         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
82824         than ls-files, to ignore git symlinks.
82826         maint.mk: import improvements from m4
82827         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
82828         (move_if_change): Delete unused macro.
82829         (news-date-check, vc-diff-check): Support VPATH builds.
82830         (announcement): Likewise.  Split --bootstrap-tools list...
82831         (boostrap-tools): ...into separate list, which can be overridden
82832         in cfg.mk.
82833         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
82834         requiring dependency on useless-if-before-free module.
82835         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
82836         Support VPATH builds.
82838 2009-04-24  Jim Meyering  <meyering@redhat.com>
82840         maint.mk: remove coreutils-specific rules and variables
82841         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
82842         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
82843         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
82845         maint.mk: remove obsolete rule
82846         * top/maint.mk (rel-check): Remove rule.
82847         (WGET, WGETFLAGS): Remove now-unused variables.
82849 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82851         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
82852         consistency.
82854         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
82855         '$(PATH_SEPARATOR)' instead of ':'.
82857 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82859         * lib/getopt1.c (main): Use 'const' for static array.
82861 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82863         * top/maint.mk: Sync with coreutils.
82864         * NEWS: Explain incompatibilities.
82866 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82867             Bruno Haible  <bruno@clisp.org>
82869         Fix cross-compilation results.
82870         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
82871         statement, as third argument of AC_TRY_RUN.
82872         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
82873         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
82874         Likewise.
82875         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
82876         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
82877         Likewise.
82878         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
82879         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
82880         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
82882 2009-04-20  Bruno Haible  <bruno@clisp.org>
82884         Avoid test failure on mingw.
82885         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
82887 2009-04-20  Bruno Haible  <bruno@clisp.org>
82889         Avoid compilation error on mingw.
82890         * modules/localename-tests (Depends-on): Add locale.
82892 2009-04-19  Bruno Haible  <bruno@clisp.org>
82894         Support for building a shared library on Windows platforms.
82895         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
82896         (main): Test the presence of UNINORM_NFC here.
82897         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
82898         (main): Test the presence of UNINORM_NFD here.
82899         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
82900         (main): Test the presence of UNINORM_NFKC here.
82901         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
82902         (main): Test the presence of UNINORM_NFKD here.
82904 2009-04-19  Bruno Haible  <bruno@clisp.org>
82906         Avoid a compiler warning.
82907         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
82908         Change type of variable 'sequence'.
82910 2009-04-19  Bruno Haible  <bruno@clisp.org>
82912         * modules/configmake (Makefile.am): When the contents of configmake.h
82913         does not change, arrange to preserve its modification time.
82915 2009-04-17  Simon Josefsson  <simon@josefsson.org>
82917         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
82918         gettext domain.
82920 2009-04-16  Jim Meyering  <meyering@redhat.com>
82922         useless-if-before-free: improve conversion code
82923         * build-aux/useless-if-before-free: Adjust code-in-comment to match
82924         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
82926 2009-04-14  Bruno Haible  <bruno@clisp.org>
82928         * modules/fcntl (Depends-on): Add extensions.
82929         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
82931 2009-04-12  Ben Pfaff  <blp@gnu.org>
82933         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
82934         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
82936 2009-03-20  Ben Pfaff  <blp@gnu.org>
82938         Make rename replace existing destinations on Windows.
82939         * m4/rename.m4: Add test for Mingw.
82940         * lib/rename.c: Add rename replacement that uses MoveFileEx with
82941         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
82942         * doc/posix-functions/rename.texi: Document.
82944 2009-04-10  Bruno Haible  <bruno@clisp.org>
82946         New include file "iconveh.h".
82947         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
82948         * lib/striconveh.h: Include it.
82949         (enum iconv_ilseq_handler): Remove definition.
82950         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
82951         striconveh.h.
82952         * lib/striconveha.c: Include striconveh.h.
82953         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
82954         * modules/striconveh (Files): Add lib/iconveh.h.
82955         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
82956         lib/striconveh.h.
82958 2009-04-10  Bruno Haible  <bruno@clisp.org>
82960         * lib/uniconv.h: Update comment.
82962 2009-04-10  Bruno Haible  <bruno@clisp.org>
82964         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
82965         always.
82966         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
82967         * lib/unistr/u16-mbtouc-aux.c: Likewise.
82968         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
82969         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
82970         "unistring-notinline.h", so that the function gets defined always.
82971         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
82972         * lib/unistr/u8-uctomb.c: Likewise.
82973         * lib/unistr/u16-mbtouc.c: Likewise.
82974         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
82975         * lib/unistr/u16-uctomb.c: Likewise.
82976         * lib/unistr/u32-mbtouc.c: Likewise.
82977         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
82978         * lib/unistr/u32-uctomb.c: Likewise.
82980 2009-04-10  Bruno Haible  <bruno@clisp.org>
82982         Mark 'utime' obsolete.
82983         * modules/utime (Status, Notice): New sections.
82984         Suggested by Jim Meyering.
82986         Fix cross-compile guess for utime test.
82987         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
82988         autoconf.
82989         * doc/posix-functions/utime.texi: Give more precisions.
82990         Reported by Jan <ipif@ymail.com>.
82992 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
82994         filevercmp: correct today's change
82995         * lib/filevercmp.c: Also handle coreutils' test inputs.
82996         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
82998         Fix regression in 'filevercmp' module. Thanks Sven Joachim
82999         for reporting it.
83000         * lib/filevercmp.c: Special handle for "", "." and "..".
83001         * tests/test-filevercmp.c: Enlarge the set suite.
83003 2009-04-07  Jim Meyering  <meyering@redhat.com>
83005         useless-if-before-free: show how to remove braced useless free, too
83006         * build-aux/useless-if-before-free: still only in a comment, though.
83008 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83010         maint.mk: import changes to syntax-check macros from coreutils
83011         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83012         Use them in the relevant macros.
83014 2009-04-06  Bruno Haible  <bruno@clisp.org>
83016         Fix unportable use of bit-fields.
83017         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83018         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83019         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83021 2009-04-06  Bruno Haible  <bruno@clisp.org>
83023         Avoid test failures on AIX and OSF/1.
83024         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83025         that malloc(0) = NULL.
83026         * tests/unicase/test-u8-tolower.c (check): Likewise.
83027         * tests/unicase/test-u8-totitle.c (check): Likewise.
83028         * tests/unicase/test-u8-toupper.c (check): Likewise.
83029         * tests/unicase/test-u16-casefold.c (check): Likewise.
83030         * tests/unicase/test-u16-tolower.c (check): Likewise.
83031         * tests/unicase/test-u16-totitle.c (check): Likewise.
83032         * tests/unicase/test-u16-toupper.c (check): Likewise.
83033         * tests/unicase/test-u32-casefold.c (check): Likewise.
83034         * tests/unicase/test-u32-tolower.c (check): Likewise.
83035         * tests/unicase/test-u32-totitle.c (check): Likewise.
83036         * tests/unicase/test-u32-toupper.c (check): Likewise.
83037         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83038         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83039         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83040         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83041         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83042         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83043         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83044         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83045         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83046         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83047         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83048         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83050 2009-04-05  Bruno Haible  <bruno@clisp.org>
83052         Work around an autoconf limitation.
83053         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83054         comment line if it would be longer than 3 KB.
83056 2009-04-05  Bruno Haible  <bruno@clisp.org>
83058         Avoid test failure with libiconv-1.13.
83059         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83060         of the expected test results.
83062 2009-04-05  Bruno Haible  <bruno@clisp.org>
83064         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83065         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83066         that it should be installed.
83068 2009-04-05  Bruno Haible  <bruno@clisp.org>
83070         * gnulib-tool: New option --copy-file.
83071         (func_usage): Document it.
83072         (func_dest_tmpfilename): Moved out of func_import.
83073         (func_add_file, func_update_file): New functions, extracted from
83074         func_import.
83075         (func_import): Update.
83077 2009-04-05  Karl Berry  <karl@gnu.org>
83079         * README: prominently mention gnulib-tool.
83080         Rearrange sections so getting the code is near the top.
83082 2009-04-05  Bruno Haible  <bruno@clisp.org>
83084         * lib/unicase.h: Mention u*_cmp2.
83085         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83086         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83087         * lib/unicase/ulc-casecmp.c: Likewise.
83088         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83089         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83090         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83091         unistr/u8-cmp.
83092         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83093         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83094         unistr/u16-cmp.
83095         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83096         unistr/u32-cmp.
83098         * lib/uninorm.h: Mention u*_cmp2.
83099         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83100         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83101         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83102         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83103         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83104         unistr/u8-cmp.
83105         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83106         unistr/u16-cmp.
83107         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83108         unistr/u32-cmp.
83110         New module 'unistr/u32-cmp2'.
83111         * lib/unistr/u32-cmp2.c: New file.
83112         * modules/unistr/u32-cmp2: New file.
83114         New module 'unistr/u16-cmp2'.
83115         * lib/unistr/u16-cmp2.c: New file.
83116         * modules/unistr/u16-cmp2: New file.
83118         New module 'unistr/u8-cmp2'.
83119         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83120         * lib/unistr/u8-cmp2.c: New file.
83121         * lib/unistr/u-cmp2.h: New file.
83122         * modules/unistr/u8-cmp2: New file.
83124 2009-04-05  Bruno Haible  <bruno@clisp.org>
83126         * lib/unictype.h (uc_property_is_valid): New macro.
83127         * tests/unictype/test-pr_byname.c (main): Use it.
83129         * lib/unistr.h: Doc fixes.
83130         * lib/uniconv.h: Doc fixes.
83131         * lib/unictype.h: Doc fixes.
83133 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83135         Port coreutils 7.2 to Solaris 8.
83137         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83138         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83139         for Solaris 8.  This is a bit of a hack, as it means it's the
83140         caller's responsibility to add -lnsl if needed, but most likely it
83141         won't be needed since only getaddrinfo uses this and getaddrinfo
83142         isn't needed on Solaris 8.
83144         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83145         problem to Solaris 8 encountered with coreutils 7.2, which
83146         resulted in a message "fnmatch.c:292: warning: passing argument 4
83147         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83148         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83150 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83152         * m4/ld-version-script.m4: Add FIXME comment.
83154 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83156         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83157         SOVERSION variable.
83159 2009-04-02  Bruno Haible  <bruno@clisp.org>
83161         * Makefile (info, html, dvi, pdf): Combine the rules.
83162         Suggested by Jim Meyering.
83164 2009-04-01  Bruno Haible  <bruno@clisp.org>
83166         * Makefile (info, html, dvi, pdf): New targets.
83167         Reported by Reuben Thomas <rrt@sc3d.org>.
83169 2009-04-01  Bruno Haible  <bruno@clisp.org>
83171         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83172         can be put into PATH.
83173         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83175 2009-04-01  Bruno Haible  <bruno@clisp.org>
83177         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83179 2009-04-01  Bruno Haible  <bruno@clisp.org>
83181         Rename module 'visibility'.
83182         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83183         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83184         * doc/gnulib.texi: Update.
83185         * MODULES.html.sh (Misc): Update.
83186         * NEWS: Mention the change.
83188 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83190         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83191         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83192         Eric Blake <ebb9@byu.net> for review.
83193         * MODULES.html.sh: Add lib-msvc-compat.
83194         * doc/gnulib.texi: Link to new section.
83195         * m4/ld-output-def.m4: New file.
83196         * doc/ld-output-def.texi: New file.
83198 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83200         Rename ld-version-script to lib-symbol-versions.  Suggested by
83201         Bruno Haible <bruno@clisp.org>.
83202         * modules/ld-version-script: Renamed to lib-symbol-versions.
83203         * doc/ld-version-script.texi: Fix module name.
83204         * MODULES.html.sh: Add lib-symbol-versions.
83206 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83208         * modules/u64-tests: New file.
83209         * tests/test-u64.c: New file.
83211 2009-03-04  Simon Josefsson  <simon@josefsson.org>
83213         * MODULES.html.sh: Mention u64.
83214         * modules/u64: New module.
83215         * modules/crypto/sha512: Depend on u64 module instead of providing
83216         u64.h.
83218 2009-03-27  Eric Blake  <ebb9@byu.net>
83220         test-strerror: make debugging EAI_SYSTEM easier
83221         * modules/getaddrinfo-tests (Depends-on): Add strerror.
83222         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
83223         failure was EAI_SYSTEM.
83225 2009-03-25  Bruno Haible  <bruno@clisp.org>
83227         Fix a problem with --enable-relocatable on Solaris 7.
83228         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
83229         since 2008-02-24.
83231 2009-03-25  Eric Blake  <ebb9@byu.net>
83233         test-sockets: avoid gcc warning
83234         * tests/test-sockets.c (main): Silence compiler warning.
83236 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83238         New modules nproc, pthread, contributed by Glen Lenker.
83240         * MODULES.html.sh: Add pthread, nproc.
83241         * lib/nproc.c: New file.
83242         * lib/nproc.h: New file.
83243         * lib/pthread.in.h: New file.
83244         * m4/pthread.m4: New file.
83245         * modules/nproc: New file.
83246         * modules/pthread: New file.
83248 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83250         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83251         New variable.
83253 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83255         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83256         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83257         * tests/test-filevercmp.c: Add tests for backup suffixes.
83259 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83261         * modules/stdlib (Depends-on): Add stdint, needed when defining
83262         struct random_data on, for example, HP-UX 10.20.  Reported by
83263         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83265 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83267         * lib/readline.c (readline): Call fflush on stdout after printing
83268         prompt.
83270 2009-03-20  Bruno Haible  <bruno@clisp.org>
83272         Remove dependency from 'close' module to -lws2_32 on native Windows.
83273         * lib/close-hook.h: New file.
83274         * lib/close-hook.c: New file.
83275         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83276         w32sock.h.
83277         (_gl_close_fd_maybe_socket): Remove function.
83278         (rpl_close): Invoke execute_all_close_hooks instead of
83279         _gl_close_fd_maybe_socket.
83280         * lib/sockets.c: Include close-hook.h, w32sock.h.
83281         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83282         (close_sockets_hook): New variable.
83283         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83284         (gl_sockets_cleanup): Unregister it.
83285         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83286         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83287         * modules/close-hook: New file.
83288         * modules/close (Files): Remove lib/w32sock.h.
83289         (Depends-on): Add close-hook.
83290         (Link): Remove section.
83291         * modules/sockets (Files): Add lib/w32sock.h.
83292         (Depends-on): Add close-hook.
83293         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83294         invocation.
83295         * NEWS: Mention that LIB_CLOSE is gone.
83297 2009-03-23  Eric Blake  <ebb9@byu.net>
83299         signal-tests: test previous patch
83300         * tests/test-signal.c: New file.
83301         * modules/signal-tests: Likewise.
83303         signal.h: always support 'volatile sig_atomic_t'
83304         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83305         (gl_SIGNAL_H_DEFAULTS): Add a default.
83306         * modules/signal (Makefile.am): Substitute if needed.
83307         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83308         users can blindly add volatile.
83309         * doc/posix-headers/signal.texi (signal.h): Document it.
83310         Reported by Matthew Woehlke.
83312 2009-03-23  Jim Meyering  <meyering@redhat.com>
83314         pathmax: PATH_MAX: use pathconf only when available
83315         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83316         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83317         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83318         This avoids a link failure in a PSP cross-compilation environment
83319         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83321         * lib/vasnprintf.c (divide): Fix typo in comment.
83323 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83325         * gnulib-tool (func_filter_filelist): Fix comment.
83327 2009-03-20  Bruno Haible  <bruno@clisp.org>
83329         Make sockets.h self-contained.
83330         * lib/sockets.c: Include sockets.h first.
83331         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83333 2009-03-19  Eric Blake  <ebb9@byu.net>
83335         doc: mention more functions added in cygwin 1.7.0
83336         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83337         addition.
83338         * doc/posix-functions/log2f.texi: Likewise.
83340 2009-03-19  Jim Meyering  <meyering@redhat.com>
83342         fsusage: avoid syntax error due to statement-before-declaration
83343         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83344         after all declarations.  Reported by Matthew Woehlke in
83345         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83347 2009-03-18  Eric Blake  <ebb9@byu.net>
83349         build-aux/compile: sync from automake
83350         * build-aux/compile: New file, from automake.
83351         * config/srclist.txt: Mention build-aux/compile.
83353 2009-03-17  Bruno Haible  <bruno@clisp.org>
83355         * lib/git-merge-changelog.c: Fix typo in comment.
83356         Reported by Reuben Thomas <rrt@sc3d.org>.
83358 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83360         * m4/regex.m4: update and improve help for
83361         --without-included-regex.
83363 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83365         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83366         failure on missing include files.
83368 2009-03-17  Eric Blake  <ebb9@byu.net>
83370         doc: mention more functions added in cygwin 1.7.0
83371         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83372         addition.
83373         * doc/posix-functions/fwscanf.texi: Likewise.
83374         * doc/posix-functions/swprintf.texi: Likewise.
83375         * doc/posix-functions/swscanf.texi: Likewise.
83376         * doc/posix-functions/vfwprintf.texi: Likewise.
83377         * doc/posix-functions/vfwscanf.texi: Likewise.
83378         * doc/posix-functions/vswprintf.texi: Likewise.
83379         * doc/posix-functions/vswscanf.texi: Likewise.
83380         * doc/posix-functions/vwprintf.texi: Likewise.
83381         * doc/posix-functions/vwscanf.texi: Likewise.
83382         * doc/posix-functions/wcscasecmp.texi: Likewise.
83383         * doc/posix-functions/wcsdup.texi: Likewise.
83384         * doc/posix-functions/wcsftime.texi: Likewise.
83385         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83386         * doc/posix-functions/wprintf.texi: Likewise.
83387         * doc/posix-functions/wscanf.texi: Likewise.
83388         * doc/glibc-functions/gethostbyname2.texi: Likewise.
83390 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83392         maint.mk: really add $(AM_MAKEFLAGS)
83393         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
83394         was inadvertently omitted in the last commit.
83395         Spotted by Bruno Haible.
83397         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
83398         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
83399         $(AM_MAKEFLAGS)' rather than plain `make'.
83401         gnulib-tool: execute $MAKE not make
83402         * gnulib-tool: Default $MAKE to 'make'.
83403         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
83404         than make.  Initialize $MAKE in the do-autobuild script.
83406         gnulib-tool: use $MAKE not make in generated files
83407         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
83408         make, in generated files.  Initialize $MAKE in the do-autobuild
83409         script.
83411         * top/GNUmakefile (_have-git-version-gen): Fix typo.
83413         GNUmakefile: disable parallelism only for multiple, recursive targets
83414         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
83415         additions in the Makefile.
83416         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
83417         by Automake.
83418         (.NOTPARALLEL): Only disable parallel builds if multiple targets
83419         are listed on the command line and at least one of them is
83420         listed in $(ALL_RECURSIVE_TARGETS).
83422 2009-03-14  Bruno Haible  <bruno@clisp.org>
83424         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
83425         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
83426         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
83427         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
83428         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
83429         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
83430         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
83431         unistr/u8-uctomb.
83432         * modules/unistr/u8-strchr (Depends-on): Likewise.
83433         * modules/unistr/u8-strrchr (Depends-on): Likewise.
83434         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
83435         unistr/u16-uctomb.
83436         * modules/unistr/u16-strchr (Depends-on): Likewise.
83437         * modules/unistr/u16-strrchr (Depends-on): Likewise.
83439 2009-03-12  Bruno Haible  <bruno@clisp.org>
83441         Work around select() bug on Interix 3.5.
83442         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
83443         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
83444         * m4/select.m4: New file.
83445         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
83446         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
83447         * modules/select (Files): Add m4/select.m4.
83448         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
83449         * modules/nanosleep (Depends-on): Add select.
83450         * modules/poll (Depends-on): Likewise.
83451         * doc/posix-functions/select.texi: Mention the Interix bug.
83452         Reported by Markus Duft <mduft@gentoo.org>.
83454         * lib/select.c: Renamed from lib/winsock-select.c.
83455         * modules/select (Files): Add lib/select.c, remove
83456         lib/winsock-select.c.
83457         (configure.ac): Update.
83459 2009-03-12  Jim Meyering  <meyering@redhat.com>
83461         avoid gcc warnings about unused macro definitions
83462         * lib/readtokens.c (STREQ): Remove unused definition.
83463         * lib/xmalloc.c (SIZE_MAX): Likewise.
83464         * lib/openat-die.c (N_): Likewise.
83465         * lib/mountlist.c (SIZE_MAX): Remove definition.
83466         Instead, include <stdint.h>.
83467         * lib/readutmp.c: Likewise.
83468         * modules/readutmp (Depends-on): Add stdint.
83469         * modules/mountlist (Depends-on): Add stdint.
83470         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
83472 2009-03-10  Bruno Haible  <bruno@clisp.org>
83474         Tests for module 'mbmemcasecoll'.
83475         * modules/mbmemcasecoll-tests: New file.
83476         * tests/test-mbmemcasecoll1.sh: New file.
83477         * tests/test-mbmemcasecoll2.sh: New file.
83478         * tests/test-mbmemcasecoll3.sh: New file.
83479         * tests/test-mbmemcasecoll.c: New file.
83481         New module 'mbmemcasecoll'.
83482         * lib/mbmemcasecoll.h: New file.
83483         * lib/mbmemcasecoll.c: New file.
83484         * modules/mbmemcasecoll: New file.
83486         * tests/test-mbmemcasecmp.h: New file, extracted from
83487         tests/test-mbmemcasecmp.c.
83488         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
83489         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
83490         (main): Update.
83491         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
83493 2009-03-09  Bruno Haible  <bruno@clisp.org>
83495         Tests for module 'mbmemcasecmp'.
83496         * modules/mbmemcasecmp-tests: New file.
83497         * tests/test-mbmemcasecmp1.sh: New file.
83498         * tests/test-mbmemcasecmp2.sh: New file.
83499         * tests/test-mbmemcasecmp3.sh: New file.
83500         * tests/test-mbmemcasecmp.c: New file.
83502         New module 'mbmemcasecmp'.
83503         * lib/mbmemcasecmp.h: New file.
83504         * lib/mbmemcasecmp.c: New file.
83505         * modules/mbmemcasecmp: New file.
83507 2009-03-09  Bruno Haible  <bruno@clisp.org>
83509         Tests for module 'unicase/ulc-casecoll'.
83510         * modules/unicase/ulc-casecoll-tests: New file.
83511         * tests/unicase/test-ulc-casecoll1.sh: New file.
83512         * tests/unicase/test-ulc-casecoll2.sh: New file.
83513         * tests/unicase/test-ulc-casecoll.c: New file.
83515         New module 'unicase/ulc-casecoll'.
83516         * lib/unicase.h (ulc_casecoll): New declaration.
83517         * lib/unicase/ulc-casecoll.c: New file.
83518         * modules/unicase/ulc-casecoll: New file.
83520         New module 'unicase/ulc-casexfrm'.
83521         * lib/unicase.h (ulc_casexfrm): New declaration.
83522         * lib/unicase/ulc-casexfrm.c: New file.
83523         * modules/unicase/ulc-casexfrm: New file.
83525 2009-03-09  Bruno Haible  <bruno@clisp.org>
83527         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
83528         invocations.
83530         * m4/mbscasecmp.m4: Remove file.
83531         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
83532         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
83534         * m4/mbscasestr.m4: Remove file.
83535         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
83536         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
83538         * m4/mbschr.m4: Remove file.
83539         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
83540         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83542         * m4/mbscspn.m4: Remove file.
83543         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
83544         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
83546         * m4/mbslen.m4: Remove file.
83547         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
83548         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
83550         * m4/mbsncasecmp.m4: Remove file.
83551         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
83552         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
83554         * m4/mbsnlen.m4: Remove file.
83555         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
83556         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
83558         * m4/mbspbrk.m4: Remove file.
83559         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
83560         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
83562         * m4/mbspcasecmp.m4: Remove file.
83563         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
83564         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
83566         * m4/mbsrchr.m4: Remove file.
83567         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
83568         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
83570         * m4/mbssep.m4: Remove file.
83571         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
83572         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
83574         * m4/mbsspn.m4: Remove file.
83575         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
83576         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
83578         * m4/mbsstr.m4: Remove file.
83579         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
83580         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
83582         * m4/mbstok_r.m4: Remove file.
83583         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
83584         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
83586         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
83588         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
83589         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
83591         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
83593 2009-03-08  Bruno Haible  <bruno@clisp.org>
83595         Tests for module 'unicase/ulc-casecmp'.
83596         * modules/unicase/ulc-casecmp-tests: New file.
83597         * tests/unicase/test-ulc-casecmp1.sh: New file.
83598         * tests/unicase/test-ulc-casecmp2.sh: New file.
83599         * tests/unicase/test-ulc-casecmp.c: New file.
83601         New module 'unicase/ulc-casecmp'.
83602         * lib/unicase.h (ulc_casecmp): New declaration.
83603         * lib/unicase/ulc-casecmp.c: New file.
83604         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
83605         'const SRC_UNIT *'.
83606         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
83607         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
83608         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
83609         * modules/unicase/ulc-casecmp: New file.
83611         Tests for module 'unicase/u32-is-cased'.
83612         * modules/unicase/u32-is-cased-tests: New file.
83613         * tests/unicase/test-u32-is-cased.c: New file.
83615         Tests for module 'unicase/u16-is-cased'.
83616         * modules/unicase/u16-is-cased-tests: New file.
83617         * tests/unicase/test-u16-is-cased.c: New file.
83619         Tests for module 'unicase/u8-is-cased'.
83620         * modules/unicase/u8-is-cased-tests: New file.
83621         * tests/unicase/test-u8-is-cased.c: New file.
83622         * tests/unicase/test-is-cased.h: New file.
83624         New module 'unicase/u32-is-cased'.
83625         * lib/unicase/u32-is-cased.c: New file.
83626         * modules/unicase/u32-is-cased: New file.
83628         New module 'unicase/u16-is-cased'.
83629         * lib/unicase/u16-is-cased.c: New file.
83630         * modules/unicase/u16-is-cased: New file.
83632         New module 'unicase/u8-is-cased'.
83633         * lib/unicase/u8-is-cased.c: New file.
83634         * lib/unicase/u-is-cased.h: New file.
83635         * modules/unicase/u8-is-cased: New file.
83637         Tests for module 'unicase/u32-is-casefolded'.
83638         * modules/unicase/u32-is-casefolded-tests: New file.
83639         * tests/unicase/test-u32-is-casefolded.c: New file.
83641         Tests for module 'unicase/u16-is-casefolded'.
83642         * modules/unicase/u16-is-casefolded-tests: New file.
83643         * tests/unicase/test-u16-is-casefolded.c: New file.
83645         Tests for module 'unicase/u8-is-casefolded'.
83646         * modules/unicase/u8-is-casefolded-tests: New file.
83647         * tests/unicase/test-u8-is-casefolded.c: New file.
83648         * tests/unicase/test-is-casefolded.h: New file.
83650         New module 'unicase/u32-is-casefolded'.
83651         * lib/unicase/u32-is-casefolded.c: New file.
83652         * modules/unicase/u32-is-casefolded: New file.
83654         New module 'unicase/u16-is-casefolded'.
83655         * lib/unicase/u16-is-casefolded.c: New file.
83656         * modules/unicase/u16-is-casefolded: New file.
83658         New module 'unicase/u8-is-casefolded'.
83659         * lib/unicase/u8-is-casefolded.c: New file.
83660         * modules/unicase/u8-is-casefolded: New file.
83662         Tests for module 'unicase/u32-is-titlecase'.
83663         * modules/unicase/u32-is-titlecase-tests: New file.
83664         * tests/unicase/test-u32-is-titlecase.c: New file.
83666         Tests for module 'unicase/u16-is-titlecase'.
83667         * modules/unicase/u16-is-titlecase-tests: New file.
83668         * tests/unicase/test-u16-is-titlecase.c: New file.
83670         Tests for module 'unicase/u8-is-titlecase'.
83671         * modules/unicase/u8-is-titlecase-tests: New file.
83672         * tests/unicase/test-u8-is-titlecase.c: New file.
83673         * tests/unicase/test-is-titlecase.h: New file.
83675         New module 'unicase/u32-is-titlecase'.
83676         * lib/unicase/u32-is-titlecase.c: New file.
83677         * modules/unicase/u32-is-titlecase: New file.
83679         New module 'unicase/u16-is-titlecase'.
83680         * lib/unicase/u16-is-titlecase.c: New file.
83681         * modules/unicase/u16-is-titlecase: New file.
83683         New module 'unicase/u8-is-titlecase'.
83684         * lib/unicase/u8-is-titlecase.c: New file.
83685         * modules/unicase/u8-is-titlecase: New file.
83687         Tests for module 'unicase/u32-is-lowercase'.
83688         * modules/unicase/u32-is-lowercase-tests: New file.
83689         * tests/unicase/test-u32-is-lowercase.c: New file.
83691         Tests for module 'unicase/u16-is-lowercase'.
83692         * modules/unicase/u16-is-lowercase-tests: New file.
83693         * tests/unicase/test-u16-is-lowercase.c: New file.
83695         Tests for module 'unicase/u8-is-lowercase'.
83696         * modules/unicase/u8-is-lowercase-tests: New file.
83697         * tests/unicase/test-u8-is-lowercase.c: New file.
83698         * tests/unicase/test-is-lowercase.h: New file.
83700         New module 'unicase/u32-is-lowercase'.
83701         * lib/unicase/u32-is-lowercase.c: New file.
83702         * modules/unicase/u32-is-lowercase: New file.
83704         New module 'unicase/u16-is-lowercase'.
83705         * lib/unicase/u16-is-lowercase.c: New file.
83706         * modules/unicase/u16-is-lowercase: New file.
83708         New module 'unicase/u8-is-lowercase'.
83709         * lib/unicase/u8-is-lowercase.c: New file.
83710         * modules/unicase/u8-is-lowercase: New file.
83712         Tests for module 'unicase/u32-is-uppercase'.
83713         * modules/unicase/u32-is-uppercase-tests: New file.
83714         * tests/unicase/test-u32-is-uppercase.c: New file.
83716         Tests for module 'unicase/u16-is-uppercase'.
83717         * modules/unicase/u16-is-uppercase-tests: New file.
83718         * tests/unicase/test-u16-is-uppercase.c: New file.
83720         Tests for module 'unicase/u8-is-uppercase'.
83721         * modules/unicase/u8-is-uppercase-tests: New file.
83722         * tests/unicase/test-u8-is-uppercase.c: New file.
83723         * tests/unicase/test-is-uppercase.h: New file.
83725         New module 'unicase/u32-is-uppercase'.
83726         * lib/unicase/u32-is-uppercase.c: New file.
83727         * modules/unicase/u32-is-uppercase: New file.
83729         New module 'unicase/u16-is-uppercase'.
83730         * lib/unicase/u16-is-uppercase.c: New file.
83731         * modules/unicase/u16-is-uppercase: New file.
83733         New module 'unicase/u8-is-uppercase'.
83734         * lib/unicase/u8-is-uppercase.c: New file.
83735         * modules/unicase/u8-is-uppercase: New file.
83737         New module 'unicase/u32-is-invariant'.
83738         * lib/unicase/u32-is-invariant.c: New file.
83739         * modules/unicase/u32-is-invariant: New file.
83741         New module 'unicase/u16-is-invariant'.
83742         * lib/unicase/u16-is-invariant.c: New file.
83743         * modules/unicase/u16-is-invariant: New file.
83745         New module 'unicase/u8-is-invariant'.
83746         * lib/unicase/u8-is-invariant.c: New file.
83747         * lib/unicase/invariant.h: New file.
83748         * lib/unicase/u-is-invariant.h: New file.
83749         * modules/unicase/u8-is-invariant: New file.
83751         Tests for module 'unicase/u32-casecoll'.
83752         * modules/unicase/u32-casecoll-tests: New file.
83753         * tests/unicase/test-u32-casecoll.c: New file.
83755         Tests for module 'unicase/u16-casecoll'.
83756         * modules/unicase/u16-casecoll-tests: New file.
83757         * tests/unicase/test-u16-casecoll.c: New file.
83759         Tests for module 'unicase/u8-casecoll'.
83760         * modules/unicase/u8-casecoll-tests: New file.
83761         * tests/unicase/test-u8-casecoll.c: New file.
83763         New module 'unicase/u32-casecoll'.
83764         * lib/unicase/u32-casecoll.c: New file.
83765         * modules/unicase/u32-casecoll: New file.
83767         New module 'unicase/u16-casecoll'.
83768         * lib/unicase/u16-casecoll.c: New file.
83769         * modules/unicase/u16-casecoll: New file.
83771         New module 'unicase/u8-casecoll'.
83772         * lib/unicase/u8-casecoll.c: New file.
83773         * lib/unicase/u-casecoll.h: New file.
83774         * modules/unicase/u8-casecoll: New file.
83776         New module 'unicase/u32-casexfrm'.
83777         * lib/unicase/u32-casexfrm.c: New file.
83778         * modules/unicase/u32-casexfrm: New file.
83780         New module 'unicase/u16-casexfrm'.
83781         * lib/unicase/u16-casexfrm.c: New file.
83782         * modules/unicase/u16-casexfrm: New file.
83784         New module 'unicase/u8-casexfrm'.
83785         * lib/unicase/u8-casexfrm.c: New file.
83786         * lib/unicase/u-casexfrm.h: New file.
83787         * modules/unicase/u8-casexfrm: New file.
83789         Tests for module 'unicase/u32-casecmp'.
83790         * modules/unicase/u32-casecmp-tests: New file.
83791         * tests/unicase/test-u32-casecmp.c: New file.
83793         Tests for module 'unicase/u16-casecmp'.
83794         * modules/unicase/u16-casecmp-tests: New file.
83795         * tests/unicase/test-u16-casecmp.c: New file.
83797         Tests for module 'unicase/u8-casecmp'.
83798         * modules/unicase/u8-casecmp-tests: New file.
83799         * tests/unicase/test-u8-casecmp.c: New file.
83800         * tests/unicase/test-casecmp.h: New file.
83802         New module 'unicase/u32-casecmp'.
83803         * lib/unicase/u32-casecmp.c: New file.
83804         * modules/unicase/u32-casecmp: New file.
83806         New module 'unicase/u16-casecmp'.
83807         * lib/unicase/u16-casecmp.c: New file.
83808         * modules/unicase/u16-casecmp: New file.
83810         New module 'unicase/u8-casecmp'.
83811         * lib/unicase/u8-casecmp.c: New file.
83812         * lib/unicase/u-casecmp.h: New file.
83813         * modules/unicase/u8-casecmp: New file.
83815         Tests for module 'unicase/u32-casefold'.
83816         * modules/unicase/u32-casefold-tests: New file.
83817         * tests/unicase/test-u32-casefold.c: New file.
83819         Tests for module 'unicase/u16-casefold'.
83820         * modules/unicase/u16-casefold-tests: New file.
83821         * tests/unicase/test-u16-casefold.c: New file.
83823         Tests for module 'unicase/u8-casefold'.
83824         * modules/unicase/u8-casefold-tests: New file.
83825         * tests/unicase/test-u8-casefold.c: New file.
83827         New module 'unicase/u32-casefold'.
83828         * lib/unicase/u32-casefold.c: New file.
83829         * modules/unicase/u32-casefold: New file.
83831         New module 'unicase/u16-casefold'.
83832         * lib/unicase/u16-casefold.c: New file.
83833         * modules/unicase/u16-casefold: New file.
83835         New module 'unicase/u8-casefold'.
83836         * lib/unicase/u8-casefold.c: New file.
83837         * lib/unicase/u-casefold.h: New file.
83838         * modules/unicase/u8-casefold: New file.
83840         New module 'unicase/tocasefold'.
83841         * lib/unicase/casefold.h: New file.
83842         * lib/unicase/tocasefold.c: New file.
83843         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
83844         * modules/unicase/tocasefold: New file.
83846         Tests for module 'unicase/u32-totitle'.
83847         * modules/unicase/u32-totitle-tests: New file.
83848         * tests/unicase/test-u32-totitle.c: New file.
83850         Tests for module 'unicase/u16-totitle'.
83851         * modules/unicase/u16-totitle-tests: New file.
83852         * tests/unicase/test-u16-totitle.c: New file.
83854         Tests for module 'unicase/u8-totitle'.
83855         * modules/unicase/u8-totitle-tests: New file.
83856         * tests/unicase/test-u8-totitle.c: New file.
83858         New module 'unicase/u32-totitle'.
83859         * lib/unicase/u32-totitle.c: New file.
83860         * modules/unicase/u32-totitle: New file.
83862         New module 'unicase/u16-totitle'.
83863         * lib/unicase/u16-totitle.c: New file.
83864         * modules/unicase/u16-totitle: New file.
83866         New module 'unicase/u8-totitle'.
83867         * lib/unicase/u8-totitle.c: New file.
83868         * lib/unicase/u-totitle.h: New file.
83869         * modules/unicase/u8-totitle: New file.
83871         Tests for module 'unicase/u32-tolower'.
83872         * modules/unicase/u32-tolower-tests: New file.
83873         * tests/unicase/test-u32-tolower.c: New file.
83875         Tests for module 'unicase/u16-tolower'.
83876         * modules/unicase/u16-tolower-tests: New file.
83877         * tests/unicase/test-u16-tolower.c: New file.
83879         Tests for module 'unicase/u8-tolower'.
83880         * modules/unicase/u8-tolower-tests: New file.
83881         * tests/unicase/test-u8-tolower.c: New file.
83883         New module 'unicase/u32-tolower'.
83884         * lib/unicase/u32-tolower.c: New file.
83885         * modules/unicase/u32-tolower: New file.
83887         New module 'unicase/u16-tolower'.
83888         * lib/unicase/u16-tolower.c: New file.
83889         * modules/unicase/u16-tolower: New file.
83891         New module 'unicase/u8-tolower'.
83892         * lib/unicase/u8-tolower.c: New file.
83893         * modules/unicase/u8-tolower: New file.
83895         Tests for module 'unicase/u32-toupper'.
83896         * modules/unicase/u32-toupper-tests: New file.
83897         * tests/unicase/test-u32-toupper.c: New file.
83899         Tests for module 'unicase/u16-toupper'.
83900         * modules/unicase/u16-toupper-tests: New file.
83901         * tests/unicase/test-u16-toupper.c: New file.
83903         Tests for module 'unicase/u8-toupper'.
83904         * modules/unicase/u8-toupper-tests: New file.
83905         * tests/unicase/test-u8-toupper.c: New file.
83907         New module 'unicase/u32-toupper'.
83908         * lib/unicase/u32-toupper.c: New file.
83909         * modules/unicase/u32-toupper: New file.
83911         New module 'unicase/u16-toupper'.
83912         * lib/unicase/u16-toupper.c: New file.
83913         * modules/unicase/u16-toupper: New file.
83915         New module 'unicase/u8-toupper'.
83916         * lib/unicase/u8-toupper.c: New file.
83917         * modules/unicase/u8-toupper: New file.
83919         New module 'unicase/u32-casemap'.
83920         * lib/unicase/u32-casemap.c: New file.
83921         * modules/unicase/u32-casemap: New file.
83923         New module 'unicase/u16-casemap'.
83924         * lib/unicase/u16-casemap.c: New file.
83925         * modules/unicase/u16-casemap: New file.
83927         New module 'unicase/u8-casemap'.
83928         * lib/unicase/unicasemap.h: New file.
83929         * lib/unicase/u8-casemap.c: New file.
83930         * lib/unicase/u-casemap.h: New file.
83931         * modules/unicase/u8-casemap: New file.
83933         New module 'unicase/special-casing'.
83934         * lib/unicase/special-casing.h: New file.
83935         * lib/unicase/special-casing.c: New file.
83936         * lib/unicase/special-casing-table.gperf: New file, generated by
83937         gen-uni-tables.c.
83938         * modules/unicase/special-casing: New file.
83940         Tests for module 'unicase/locale-language'.
83941         * modules/unicase/locale-language-tests: New file.
83942         * tests/unicase/test-locale-language.sh: New file.
83943         * tests/unicase/test-locale-language.c: New file.
83945         New module 'unicase/locale-language'.
83946         * lib/unicase/locale-language.c: New file.
83947         * lib/unicase/locale-languages.gperf: New file.
83948         * modules/unicase/locale-language: New file.
83950         Generate more tables for case conversion and case folding.
83951         * lib/gen-uni-tables.c (SCC_*): New enum items.
83952         (struct special_casing_rule): New type.
83953         (casing_rules, num_casing_rules, allocated_casing_rules): New
83954         variables.
83955         (add_casing_rule, fill_casing_rules): New functions.
83956         (struct casefold_rule): New type.
83957         (casefolding_rules, num_casefolding_rules,
83958         allocated_casefolding_rules): New variables.
83959         (fill_casefolding_rules): New function.
83960         (unicode_casefold): New variable.
83961         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
83962         sort_casing_rules, output_casing_rules): New functions.
83963         (main): Accept to more arguments: SpecialCasing.txt and
83964         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
83965         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
83966         Output mapping for casefolding.
83968         * lib/unicase.h: Include stdbool.h, uninorm.h.
83969         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
83970         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
83971         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
83972         arguments.
83973         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
83974         resultp arguments.
83975         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
83976         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
83977         resultp arguments.
83978         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
83979         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
83980         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
83981         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
83982         declarations.
83983         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
83985 2009-03-08  Bruno Haible  <bruno@clisp.org>
83987         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
83988         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
83989         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
83990         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
83992 2009-03-07  Bruno Haible  <bruno@clisp.org>
83994         Adjust u*_normcmp, u*_normcoll API.
83995         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
83996         u16_normcoll, u32_normcoll): Change failure conventions.
83997         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
83998         errno and return -1.
83999         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84001 2009-03-07  Bruno Haible  <bruno@clisp.org>
84003         Tests for module 'uninorm/u32-normcoll'.
84004         * modules/uninorm/u32-normcoll-tests: New file.
84005         * tests/uninorm/test-u32-normcoll.c: New file.
84007         Tests for module 'uninorm/u16-normcoll'.
84008         * modules/uninorm/u16-normcoll-tests: New file.
84009         * tests/uninorm/test-u16-normcoll.c: New file.
84011         Tests for module 'uninorm/u8-normcoll'.
84012         * modules/uninorm/u8-normcoll-tests: New file.
84013         * tests/uninorm/test-u8-normcoll.c: New file.
84015 2009-03-07  Bruno Haible  <bruno@clisp.org>
84017         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84018         tests/uninorm/test-u32-normcmp.c.
84019         * tests/uninorm/test-u32-normcmp.c: Include it.
84020         (test_nonascii): New function, extracted from main. Add some more
84021         tests.
84022         (main): Invoke test_ascii and test_nonascii.
84023         * modules/uninorm/u32-normcmp-tests (Files): Add
84024         tests/uninorm/test-u32-normcmp.h.
84025         (Depends-on): Remove uninorm/u32-normcmp.
84027         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84028         tests/uninorm/test-u16-normcmp.c.
84029         * tests/uninorm/test-u16-normcmp.c: Include it.
84030         (test_nonascii): New function, extracted from main. Add some more
84031         tests.
84032         (main): Invoke test_ascii and test_nonascii.
84033         * modules/uninorm/u16-normcmp-tests (Files): Add
84034         tests/uninorm/test-u16-normcmp.h.
84035         (Depends-on): Remove uninorm/u16-normcmp.
84037         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84038         tests/uninorm/test-u8-normcmp.c.
84039         * tests/uninorm/test-u8-normcmp.c: Include it.
84040         (test_nonascii): New function, extracted from main. Add some more
84041         tests.
84042         (main): Invoke test_ascii and test_nonascii.
84043         * modules/uninorm/u8-normcmp-tests (Files): Add
84044         tests/uninorm/test-u8-normcmp.h.
84045         (Depends-on): Remove uninorm/u8-normcmp.
84047 2009-03-07  Bruno Haible  <bruno@clisp.org>
84049         New module 'uninorm/u32-normcoll'.
84050         * lib/uninorm/u32-normcoll.c: New file.
84051         * modules/uninorm/u32-normcoll: New file.
84053         New module 'uninorm/u16-normcoll'.
84054         * lib/uninorm/u16-normcoll.c: New file.
84055         * modules/uninorm/u16-normcoll: New file.
84057         New module 'uninorm/u8-normcoll'.
84058         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84059         declarations.
84060         * lib/uninorm/u8-normcoll.c: New file.
84061         * lib/uninorm/u-normcoll.h: New file.
84062         * modules/uninorm/u8-normcoll: New file.
84064         New module 'uninorm/u32-normxfrm'.
84065         * lib/uninorm/u32-normxfrm.c: New file.
84066         * modules/uninorm/u32-normxfrm: New file.
84068         New module 'uninorm/u16-normxfrm'.
84069         * lib/uninorm/u16-normxfrm.c: New file.
84070         * modules/uninorm/u16-normxfrm: New file.
84072         New module 'uninorm/u8-normxfrm'.
84073         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84074         declarations.
84075         * lib/uninorm/u8-normxfrm.c: New file.
84076         * lib/uninorm/u-normxfrm.h: New file.
84077         * modules/uninorm/u8-normxfrm: New file.
84079 2009-03-07  Bruno Haible  <bruno@clisp.org>
84081         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84082         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84083         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84085 2009-03-07  Bruno Haible  <bruno@clisp.org>
84087         New module 'memxfrm'.
84088         * lib/memxfrm.h: New file.
84089         * lib/memxfrm.c: New file.
84090         * modules/memxfrm: New file.
84092 2009-03-07  Bruno Haible  <bruno@clisp.org>
84094         New module 'memcmp2'.
84095         * lib/memcmp2.h: New file.
84096         * lib/memcmp2.c: New file.
84097         * modules/memcmp2: New file.
84099 2009-03-07  Bruno Haible  <bruno@clisp.org>
84101         Tests for module 'uninorm/decomposing-form'.
84102         * modules/uninorm/decomposing-form-tests: New file.
84103         * tests/uninorm/test-decomposing-form.c: New file.
84105         New module 'uninorm/decomposing-form'.
84106         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84107         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84108         Add 'decomposing_variant' field.
84109         * lib/uninorm/decomposing-form.c: New file.
84110         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84111         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84112         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84113         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84114         * modules/uninorm/decomposing-form: New file.
84115         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84116         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84118 2009-03-07  Bruno Haible  <bruno@clisp.org>
84120         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84121         strings.
84123 2009-03-06  Bruno Haible  <bruno@clisp.org>
84125         Tests for module 'uninorm/u32-normcmp'.
84126         * tests/uninorm/test-u32-normcmp.c: New file.
84127         * modules/uninorm/u32-normcmp-tests: New file.
84129         Tests for module 'uninorm/u16-normcmp'.
84130         * tests/uninorm/test-u16-normcmp.c: New file.
84131         * modules/uninorm/u16-normcmp-tests: New file.
84133         Tests for module 'uninorm/u8-normcmp'.
84134         * tests/uninorm/test-u8-normcmp.c: New file.
84135         * modules/uninorm/u8-normcmp-tests: New file.
84137         New module 'uninorm/u32-normcmp'.
84138         * lib/uninorm/u32-normcmp.c: New file.
84139         * modules/uninorm/u32-normcmp: New file.
84141         New module 'uninorm/u16-normcmp'.
84142         * lib/uninorm/u16-normcmp.c: New file.
84143         * modules/uninorm/u16-normcmp: New file.
84145         New module 'uninorm/u8-normcmp'.
84146         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84147         declarations.
84148         * lib/uninorm/u8-normcmp.c: New file.
84149         * lib/uninorm/u-normcmp.h: New file.
84150         * modules/uninorm/u8-normcmp: New file.
84152 2009-03-06  Bruno Haible  <bruno@clisp.org>
84154         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84155         Reported by Eric Blake.
84157 2009-03-06  Eric Blake  <ebb9@byu.net>
84158             Bruno Haible  <bruno@clisp.org>
84160         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84161         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84162         condition.
84163         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84164         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84165         condition.
84166         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84168 2009-03-06  Eric Blake  <ebb9@byu.net>
84170         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84171         to avoid compiler warnings.
84172         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84174 2009-03-05  Bruno Haible  <bruno@clisp.org>
84176         * tests/test-ftell.c (main): Disable test beyond end of file on
84177         FreeMiNT.
84178         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84180 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84182         * lib/filevercmp.c: Move hidden files up in ordering.
84183         * tests/test-filevercmp.c: Add tests for hidden files.
84185 2009-03-04  Bruno Haible  <bruno@clisp.org>
84187         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84188         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84189         AM_CFLAGS.
84190         Reported by Simon Josefsson.
84192 2009-03-03  Bruno Haible  <bruno@clisp.org>
84194         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84195         Reported by Simon Josefsson.
84197         * doc/ld-version-script.texi: Update node reference.
84199 2009-03-03  Bruno Haible  <bruno@clisp.org>
84201         * modules/visibility (License): Change to 'unlimited'.
84202         Suggested by Simon Josefsson.
84204 2009-03-03  Jim Meyering  <meyering@redhat.com>
84206         unlinkdir: cannot_unlink_dir may modify process state
84207         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84208         it's neither thread-safe nor appropriate for use in a library.
84210 2009-03-03  Eric Blake  <ebb9@byu.net>
84212         test-closein: silence test under Darwin
84213         * tests/test-closein.sh: Ignore stderr from cat, since we don't
84214         care if it dies from EPIPE or EBADF.
84216 2009-03-03  Bruno Haible  <bruno@clisp.org>
84218         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
84219         earlier.
84220         * doc/visibility.texi: Fix @node and @section.
84222 2009-03-03  Simon Josefsson  <simon@josefsson.org>
84224         * doc/gnulib.texi: Link to sections for ld version script and
84225         visibility.
84226         * doc/visibility.texi: Add @node and @section.
84227         * modules/ld-version-script: New module.
84228         * m4/ld-version-script.m4: New file.
84229         * doc/ld-version-script.texi: New file.
84231 2009-03-02  David Lutterkort  <lutter@redhat.com>
84233         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
84234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84236 2009-03-02  Bruno Haible  <bruno@clisp.org>
84238         * doc/visibility.texi: Mention libtool's -export-symbols option.
84240 2009-03-02  Jim Meyering  <meyering@redhat.com>
84242         announce-gen: new option: --no-print-checksums
84243         * build-aux/announce-gen (usage): Describe it.
84244         (print_checksums): Print a newline here, not in the [*] footnote.
84245         (main): Honor it.
84247 2009-03-01  Bruno Haible  <bruno@clisp.org>
84249         Use socklen_t in the native Windows replacements prototypes.
84250         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84251         instead of 'int'.
84252         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84253         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84254         * modules/getsockopt (Depends-on): Add socklen.
84255         * modules/setsockopt (Depends-on): Add socklen.
84257 2009-03-01  Bruno Haible  <bruno@clisp.org>
84259         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84260         least 4.2.
84262 2009-03-01  Eric Blake  <ebb9@byu.net>
84263             Bruno Haible  <bruno@clisp.org>
84265         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84266         error messages.
84267         * lib/wait-process.c (wait_subprocess): Omit error message about
84268         deadly signal sent to the child of termsigp != NULL.
84270 2009-03-01  Eric Blake  <ebb9@byu.net>
84272         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84274 2009-03-01  Bruno Haible  <bruno@clisp.org>
84276         Avoid a gcc warning.
84277         * tests/test-sched.c (b): Make global.
84278         Reported by Eric Blake.
84280 2009-01-19  Martin Lambers  <marlam@marlam.de>
84282         Provide POSIX semantics for socket timeout options on W32.
84283         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84284         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84285         * modules/setsockopt: Depend on sys_time module for struct timeval.
84286         * modules/getsockopt: Depend on sys_time module for struct timeval.
84288 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84290         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84291         __USE_GNU, for consistency with netdb.in.h.
84292         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84294 2009-03-01  Bruno Haible  <bruno@clisp.org>
84296         More support for FreeMiNT.
84297         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84298         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84300 2009-03-01  Bruno Haible  <bruno@clisp.org>
84302         More support for FreeMiNT.
84303         * lib/fpurge.c (fpurge): Correct last commit.
84304         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84306 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84308         Fix unportable awk script in vc-list-files.
84309         * build-aux/vc-list-files: In the replacement awk script, use
84310         substr with a second argument of 1, not zero.
84311         Report by Simon Josefsson.
84313 2009-02-28  Bruno Haible  <bruno@clisp.org>
84315         More support for FreeMiNT.
84316         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84317         to FreeMiNT today.
84318         * lib/fwriting.c (fwriting): Likewise.
84319         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84321 2009-02-28  Bruno Haible  <bruno@clisp.org>
84323         * tests/test-freadseek.c (main): Disable test beyond end of file on
84324         FreeMiNT.
84325         * tests/test-ftello.c (main): Likewise.
84326         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84328 2009-02-28  Bruno Haible  <bruno@clisp.org>
84330         Add tentative support for FreeMiNT.
84331         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84332         * lib/fpurge.c (fpurge): Likewise.
84333         * lib/freadable.c (freadable): Likewise.
84334         * lib/freading.c (freading): Likewise.
84335         * lib/freadptr.c (freadptr): Likewise.
84336         * lib/freadseek.c (freadptrinc): Likewise.
84337         * lib/fseeko.c (rpl_fseeko): Likewise.
84338         * lib/fseterr.c (fseterr): Likewise.
84339         * lib/fwritable.c (fwritable): Likewise.
84340         * lib/fwriting.c (fwriting): Likewise.
84341         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84342         Hourihane.
84343         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84345 2009-02-28  Bruno Haible  <bruno@clisp.org>
84347         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84348         SIGCHLD.
84349         Reported by Jim Meyering.
84351 2009-02-28  Bruno Haible  <bruno@clisp.org>
84353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84354         Mention the results of these tests on various platforms.
84355         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84356         order.
84357         * doc/posix-functions/printf.texi: Likewise.
84358         * doc/posix-functions/snprintf.texi: Likewise.
84359         * doc/posix-functions/sprintf.texi: Likewise.
84360         * doc/posix-functions/vfprintf.texi: Likewise.
84361         * doc/posix-functions/vprintf.texi: Likewise.
84362         * doc/posix-functions/vsnprintf.texi: Likewise.
84363         * doc/posix-functions/vsprintf.texi: Likewise.
84364         * doc/glibc-functions/obstack_printf.texi: Likewise.
84365         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84367 2009-02-28  Bruno Haible  <bruno@clisp.org>
84369         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84370         Reported by Loïc Minier <lool@dooz.org>.
84372 2009-02-27  Bruno Haible  <bruno@clisp.org>
84374         * gnulib-tool (func_import): Make the sed expression used to create the
84375         sed script for updating the .gitignore file POSIX compliant.
84376         Reported by Eric Blake.
84378 2009-02-27  Bruno Haible  <bruno@clisp.org>
84380         * gnulib-tool (sed): Don't alias as "sed --posix".
84381         Reported by Eric Blake.
84383 2009-02-27  Bruno Haible  <bruno@clisp.org>
84385         Avoid test link errors.
84386         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
84387         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
84388         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
84389         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
84390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84392 2009-02-27  Bruno Haible  <bruno@clisp.org>
84394         Avoid spurious "(cached)" in configure output.
84395         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
84396         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
84397         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
84398         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
84399         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
84400         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
84401         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
84402         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
84403         Reported by Eric Blake.
84405 2009-02-27  Eric Blake  <ebb9@byu.net>
84407         printf: fix regression in previous patch
84408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
84410 2009-02-27  Bruno Haible  <bruno@clisp.org>
84412         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
84413         value.
84414         * lib/stdint.in.h: Likewise.
84415         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
84417 2009-02-27  Eric Blake  <ebb9@byu.net>
84419         doc: mention more functions added in cygwin 1.7.0
84420         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
84421         addition.
84422         * doc/posix-functions/open_wmemstream.texi: Likewise.
84423         * doc/posix-functions/wcsnlen.texi: Likewise.
84424         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84425         * doc/posix-functions/wcstod.texi: Likewise.
84426         * doc/posix-functions/wcstof.texi: Likewise.
84427         * doc/posix-functions/wcstoimax.texi: Likewise.
84428         * doc/posix-functions/wcstok.texi: Likewise.
84429         * doc/posix-functions/wcstoumax.texi: Likewise.
84431         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
84432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
84433         * doc/posix-functions/fprintf.texi: Update.
84434         * doc/posix-functions/printf.texi: Update.
84435         * doc/posix-functions/snprintf.texi: Update.
84436         * doc/posix-functions/sprintf.texi: Update.
84437         * doc/posix-functions/vfprintf.texi: Update.
84438         * doc/posix-functions/vprintf.texi: Update.
84439         * doc/posix-functions/vsnprintf.texi: Update.
84440         * doc/posix-functions/vsprintf.texi: Update.
84441         * doc/glibc-functions/obstack_printf.texi: Update.
84442         * doc/glibc-functions/obstack_vprintf.texi: Update.
84444 2009-02-26  Eric Blake  <ebb9@byu.net>
84446         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
84447         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
84448         compilation bug by using runtime conversion.
84449         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
84450         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
84451         * modules/ceill-tests (Files): Use nan.h.
84452         * modules/floorl-tests (Files): Likewise.
84453         * modules/frexpl-tests (Files): Likewise.
84454         * modules/isnanl-tests (Files): Likewise.
84455         * modules/ldexpl-tests (Files): Likewise.
84456         * modules/roundl-tests (Files): Likewise.
84457         * modules/truncl-tests (Files): Likewise.
84458         * tests/test-ceill.c (main): Use a working NaN.
84459         * tests/test-floorl.c (main): Likewise.
84460         * tests/test-frexpl.c (main): Likewise.
84461         * tests/test-isnan.c (test_long_double): Likewise.
84462         * tests/test-isnanl.h (main): Likewise.
84463         * tests/test-ldexpl.h (main): Likewise.
84464         * tests/test-roundl.h (main): Likewise.
84465         * tests/test-truncl.h (main): Likewise.
84466         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
84468 2009-02-26  Eric Blake  <ebb9@byu.net>
84469             Bruno Haible  <bruno@clisp.org>
84471         Work around a *printf bug with %ls on Solaris.
84472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
84473         precision is specified, sprintf stops converting the wide string
84474         argument when the number of bytes that have been produced by this
84475         conversion equals or exceeds the precision.
84476         * doc/posix-functions/fprintf.texi: Update.
84477         * doc/posix-functions/printf.texi: Update.
84478         * doc/posix-functions/snprintf.texi: Update.
84479         * doc/posix-functions/sprintf.texi: Update.
84480         * doc/posix-functions/vfprintf.texi: Update.
84481         * doc/posix-functions/vprintf.texi: Update.
84482         * doc/posix-functions/vsnprintf.texi: Update.
84483         * doc/posix-functions/vsprintf.texi: Update.
84484         * doc/glibc-functions/obstack_printf.texi: Update.
84485         * doc/glibc-functions/obstack_vprintf.texi: Update.
84487 2009-02-26  Eric Blake  <ebb9@byu.net>
84489         stdlib: favor compiler check of random.h
84490         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
84491         to avoid an ObjC random.h installed by Swarm.
84493 2009-02-26  Bruno Haible  <bruno@clisp.org>
84495         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
84496         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
84497         Reported by Gary V. Vaughan <gary@gnu.org>.
84499 2009-02-26  Bruno Haible  <bruno@clisp.org>
84501         Fix *printf behaviour regarding the %ls directive.
84502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
84503         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
84504         NEED_PRINTF_DIRECTIVE_LS.
84505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
84506         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
84507         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84508         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
84509         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
84510         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
84511         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
84512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84516         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
84517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84520         * doc/posix-functions/fprintf.texi: Update.
84521         * doc/posix-functions/printf.texi: Update.
84522         * doc/posix-functions/snprintf.texi: Update.
84523         * doc/posix-functions/sprintf.texi: Update.
84524         * doc/posix-functions/vfprintf.texi: Update.
84525         * doc/posix-functions/vprintf.texi: Update.
84526         * doc/posix-functions/vsnprintf.texi: Update.
84527         * doc/posix-functions/vsprintf.texi: Update.
84528         * doc/glibc-functions/obstack_printf.texi: Update.
84529         * doc/glibc-functions/obstack_vprintf.texi: Update.
84530         Reported by Eric Blake.
84532 2009-02-25  Bruno Haible  <bruno@clisp.org>
84534         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
84535         with known value.
84536         Reported by Gary V. Vaughan <gary@gnu.org>.
84538 2009-02-25  Bruno Haible  <bruno@clisp.org>
84540         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
84541         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
84542         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
84543         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
84544         Reported by Gary V. Vaughan <gary@gnu.org>.
84546 2009-02-25  Bruno Haible  <bruno@clisp.org>
84548         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
84549         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
84550         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
84551         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
84552         Reported by Gary V. Vaughan <gary@gnu.org>.
84554 2009-02-25  Eric Blake  <ebb9@byu.net>
84556         tests: skip fseek/ftell tests if ungetc is broken
84557         * m4/ungetc.m4: New file.
84558         * modules/fseek-tests: Split test, so ungetc dependency is
84559         separate from rest of test.
84560         * modules/fseeko-tests: Likewise.
84561         * modules/ftell-tests: Likewise.
84562         * modules/ftello-tests: Likewise.
84563         * tests/test-fseek.c (main): Isolate ungetc dependency.
84564         * tests/test-fseeko.c (main): Likewise.
84565         * tests/test-ftell.c (main): Likewise.
84566         * tests/test-ftello.c (main): Likewise.
84567         * tests/test-fseek2.sh: New file.
84568         * tests/test-fseeko2.sh: Likewise.
84569         * tests/test-ftell2.sh: Likewise.
84570         * tests/test-ftello2.sh: Likewise.
84572 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
84574         test-getaddrinfo: fix usage of skip return code 77
84575         * tests/test-gettaddrinfo.c: Return skip code 77 only
84576         for first occurrence of skip (4x77 is not 77)
84578 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
84580         strtod: avoid C99 decl-after-statement
84581         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
84583 2009-02-24  Eric Blake  <ebb9@byu.net>
84585         strtod: detect HP-UX 11.31 bug
84586         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
84587         Reported by Gary V. Vaughan.
84589 2009-02-23  Bruno Haible  <bruno@clisp.org>
84591         Fix invalid read past end of memory block.
84592         * lib/vasnprintf.c (DCHAR_SET): Define.
84593         (local_wcslen): Define only when needed.
84594         (local_strnlen, local_wcsnlen): New functions.
84595         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
84596         directives that involve a conversion ourselves.
84597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
84598         wcsnlen, mbrtowc, wcrtomb.
84599         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
84600         * tests/test-vasprintf-posix.c (test_function): Likewise.
84601         * tests/test-snprintf-posix.h (test_function): Likewise.
84602         * tests/test-sprintf-posix.h (test_function): Likewise.
84603         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84605 2009-02-22  Bruno Haible  <bruno@clisp.org>
84607         Implement new clarified decomposition of Hangul syllables.
84608         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
84609         of type LTV, return only a pairwise decomposition.
84610         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
84611         Likewise.
84612         * tests/uninorm/test-decomposition.c (main): Updated expected result.
84613         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
84614         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
84616 2009-02-22  Bruno Haible  <bruno@clisp.org>
84618         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
84619         zero-length results and shrink excess allocated memory.
84620         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
84621         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
84622         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
84623         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
84624         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
84625         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
84626         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
84627         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
84628         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
84629         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
84630         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
84631         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
84633 2009-02-21  Bruno Haible  <bruno@clisp.org>
84635         * doc/gnulib.texi: Include safe-alloc.texi earlier.
84636         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
84637         spaces after a period. Put a space between a macro name and its
84638         argument list. Trivial rewordings.
84639         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
84640         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
84641         (main): Return 0 explicitly.
84643 2009-02-21  Bruno Haible  <bruno@clisp.org>
84645         Tests for module 'uninorm/filter'.
84646         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
84647         * modules/uninorm/filter-tests: New file.
84649         New module 'uninorm/filter'.
84650         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
84651         uninorm_filter_flush, uninorm_filter_free): New declarations.
84652         * lib/uninorm/uninorm-filter.c: New file.
84653         * modules/uninorm/filter: New file.
84655 2009-02-21  Bruno Haible  <bruno@clisp.org>
84657         Tests for module 'uninorm/nfkc'.
84658         * tests/uninorm/test-nfkc.c: New file.
84659         * tests/uninorm/test-u8-nfkc.c: New file.
84660         * tests/uninorm/test-u16-nfkc.c: New file.
84661         * tests/uninorm/test-u32-nfkc.c: New file.
84662         * tests/uninorm/test-u32-nfkc-big.sh: New file.
84663         * tests/uninorm/test-u32-nfkc-big.c: New file.
84664         * modules/uninorm/nfkc-tests: New file.
84666         New module 'uninorm/nfkc'.
84667         * lib/uninorm/nfkc.c: New file.
84668         * modules/uninorm/nfkc: New file.
84670         Tests for module 'uninorm/nfkd'.
84671         * tests/uninorm/test-nfkd.c: New file.
84672         * tests/uninorm/test-u8-nfkd.c: New file.
84673         * tests/uninorm/test-u16-nfkd.c: New file.
84674         * tests/uninorm/test-u32-nfkd.c: New file.
84675         * tests/uninorm/test-u32-nfkd-big.sh: New file.
84676         * tests/uninorm/test-u32-nfkd-big.c: New file.
84677         * modules/uninorm/nfkd-tests: New file.
84679         New module 'uninorm/nfkd'.
84680         * lib/uninorm/nfkd.c: New file.
84681         * modules/uninorm/nfkd: New file.
84683         Tests for module 'uninorm/nfc'.
84684         * tests/uninorm/test-nfc.c: New file.
84685         * tests/uninorm/test-u8-nfc.c: New file.
84686         * tests/uninorm/test-u16-nfc.c: New file.
84687         * tests/uninorm/test-u32-nfc.c: New file.
84688         * tests/uninorm/test-u32-nfc-big.sh: New file.
84689         * tests/uninorm/test-u32-nfc-big.c: New file.
84690         * modules/uninorm/nfc-tests: New file.
84692         New module 'uninorm/nfc'.
84693         * lib/uninorm/nfc.c: New file.
84694         * modules/uninorm/nfc: New file.
84696         Tests for module 'uninorm/nfd'.
84697         * tests/uninorm/test-nfd.c: New file.
84698         * tests/uninorm/test-u8-nfd.c: New file.
84699         * tests/uninorm/test-u16-nfd.c: New file.
84700         * tests/uninorm/test-u32-nfd.c: New file.
84701         * tests/uninorm/test-u32-nfd-big.sh: New file.
84702         * tests/uninorm/test-u32-nfd-big.c: New file.
84703         * tests/uninorm/test-u32-normalize-big.h: New file.
84704         * tests/uninorm/test-u32-normalize-big.c: New file.
84705         * tests/uninorm/NormalizationTest.txt: New file, created from
84706         Unicode 5.1.0 NormalizationTest.txt.
84707         * modules/uninorm/nfd-tests: New file.
84709         New module 'uninorm/nfd'.
84710         * lib/uninorm/nfd.c: New file.
84711         * modules/uninorm/nfd: New file.
84713         New module 'uninorm/u32-normalize'.
84714         * lib/uninorm/u32-normalize.c: New file.
84715         * modules/uninorm/u32-normalize: New file.
84717         New module 'uninorm/u16-normalize'.
84718         * lib/uninorm/u16-normalize.c: New file.
84719         * modules/uninorm/u16-normalize: New file.
84721         New module 'uninorm/u8-normalize'.
84722         * lib/uninorm/u8-normalize.c: New file.
84723         * lib/uninorm/normalize-internal.h: New file.
84724         * lib/uninorm/u-normalize-internal.h: New file.
84725         * modules/uninorm/u8-normalize: New file.
84727         New module 'uninorm/decompose-internal'.
84728         * lib/uninorm/decompose-internal.c: New file.
84729         * modules/uninorm/decompose-internal: New file.
84731         Tests for module 'uninorm/composition'.
84732         * tests/uninorm/test-composition.c: New file.
84733         * modules/uninorm/composition-tests: New file.
84735         New module 'uninorm/composition'.
84736         * lib/uninorm/composition.c: New file.
84737         * lib/uninorm/composition-table.gperf: New file, generated by
84738         gen-uni-tables.
84739         * modules/uninorm/composition: New file.
84741         Tests for module 'uninorm/compat-decomposition'.
84742         * tests/uninorm/test-compat-decomposition.c: New file.
84743         * modules/uninorm/compat-decomposition-tests: New file.
84745         New module 'uninorm/compat-decomposition'.
84746         * lib/uninorm/decompose-internal.h: New file.
84747         * lib/uninorm/compat-decomposition.c: New file.
84748         * modules/uninorm/compat-decomposition: New file.
84750         Tests for module 'uninorm/canonical-decomposition'.
84751         * tests/uninorm/test-canonical-decomposition.c: New file.
84752         * modules/uninorm/canonical-decomposition-tests: New file.
84754         New module 'uninorm/canonical-decomposition'.
84755         * lib/uninorm/canonical-decomposition.c: New file.
84756         * modules/uninorm/canonical-decomposition: New file.
84758         Tests for module 'uninorm/decomposition'.
84759         * tests/uninorm/test-decomposition.c: New file.
84760         * modules/uninorm/decomposition-tests: New file.
84762         New module 'uninorm/decomposition'.
84763         * lib/uninorm/decomposition.c: New file.
84764         * modules/uninorm/decomposition: New file.
84766         New module 'uninorm/decomposition-table'.
84767         * lib/uninorm/decomposition-table.h: New file.
84768         * lib/uninorm/decomposition-table.c: New file.
84769         * lib/uninorm/decomposition-table1.h: New file, generated by
84770         gen-uni-tables.
84771         * lib/uninorm/decomposition-table2.h: New file, generated by
84772         gen-uni-tables.
84773         * modules/uninorm/decomposition-table: New file.
84775         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
84776         (UC_DECOMP_*): New enumeration items.
84777         (get_decomposition): New function.
84778         (struct decomp_table): New type.
84779         (output_decomposition, output_decomposition_tables): New functions.
84780         (unicode_composition_exclusions): New variable.
84781         (fill_composition_exclusions, debug_output_composition_tables): New
84782         functions.
84783         (main): Accept one more argument. Invoke fill_composition_exclusions.
84784         Output decomposition and composition tables.
84786         New module 'uninorm/base'.
84787         * lib/uninorm.h: New file.
84788         * lib/unictype.h: Update comment.
84789         * modules/uninorm/base: New file.
84791 2009-02-21  David Lutterkort  <lutter@redhat.com>
84793         Tests for module 'safe-alloc'.
84794         * tests/test-safe-alloc.c: New file.
84795         * modules/safe-alloc-tests: New file.
84797         New module 'safe-alloc'.
84798         * lib/safe-alloc.h: New file.
84799         * lib/safe-alloc.c: New file.
84800         * m4/safe-alloc.m4: New file.
84801         * modules/safe-alloc: New file.
84802         * doc/safe-alloc.texi: New file.
84803         * doc/gnulib.texi: Include it.
84804         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
84805         safe-alloc.
84807 2009-02-18  Bruno Haible  <bruno@clisp.org>
84809         Fix link error on non-glibc systems.
84810         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
84811         variable.
84812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84814 2009-02-18  Jim Meyering  <meyering@redhat.com>
84816         fts: avoid used-uninitialized error due to recent change
84817         * lib/fts.c (fts_read): Guard uses of the new member,
84818         parent->fts_n_dirs_remaining, since it's not relevant for
84819         the parent of a directory specified on the command-line.
84821 2009-02-17  James Youngman  <jay@gnu.org>
84822             Bruno Haible  <bruno@clisp.org>
84824         * m4/include_next.m4: Reformulate comment.
84826 2009-02-16  Jim Meyering  <meyering@redhat.com>
84828         fts: add #if guards so that the fts_lgpl module still builds
84829         * lib/fts.c: Guard just-added hash-table-using parts with
84830         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
84831         Reported by Simon Josefsson.
84833 2009-02-15  Bruno Haible  <bruno@clisp.org>
84835         * modules/array-mergesort-tests: New file.
84836         * tests/test-array-mergesort.c: New file.
84838         New module 'array-mergesort'.
84839         * modules/array-mergesort: New file.
84840         * lib/array-mergesort.h: New file.
84842 2009-02-15  Bruno Haible  <bruno@clisp.org>
84844         Fix 2009-02-07 commit.
84845         * lib/gen-uni-tables.c (output_predicate, output_category,
84846         output_combclass, output_bidi_category, output_decimal_digit,
84847         output_digit, output_numeric, output_mirror, output_scripts,
84848         output_ident_category, output_simple_mapping): Fix format directives.
84849         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
84851 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
84853         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
84854         fixes are available from IBM.
84856 2009-02-13  Jim Meyering  <meyering@redhat.com>
84858         fts: arrange not to stat non-directories in more cases
84859         This makes GNU find (when it doesn't need to stat each file)
84860         *much* more efficient at traversing reiserfs file systems.
84861         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
84862         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
84863         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
84864         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
84865         (leaf_optimization_applies): New function.
84866         (LCO_hash, LCO_compare): New helper functions.
84867         (link_count_optimize_ok): New function.
84868         (fts_stat): Initialize new member (if dir).
84869         (fts_read): Decrement parent's fts_n_dirs_remaining count if
84870         we've just stat'ed a directory.  Skip the stat call when possible.
84871         ---
84872         Note this AFS-related exchange:
84873         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
84874         and note find's pioctl call in find/fstype.c.
84875         But that is necessary only if you want to enable the
84876         optimization for AFS, and for now, I don't.
84878         fts: move a function definition "up" (no semantic change)
84879         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
84880         "up" to precede upcoming use of a related function.
84882 2009-02-11  Jim Meyering  <meyering@redhat.com>
84884         fts: correct internal computation of nlinks (optimization-related)
84885         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
84886         whether the current entry is a directory, so don't test it.
84888 2009-02-10  Bruno Haible  <bruno@clisp.org>
84890         Tests for module 'uniwbrk/ulc-wordbreaks'.
84891         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
84892         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
84893         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
84895         Tests for module 'uniwbrk/u32-wordbreaks'.
84896         * modules/uniwbrk/u32-wordbreaks-tests: New file.
84897         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
84899         Tests for module 'uniwbrk/u16-wordbreaks'.
84900         * modules/uniwbrk/u16-wordbreaks-tests: New file.
84901         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
84903         Tests for module 'uniwbrk/u8-wordbreaks'.
84904         * modules/uniwbrk/u8-wordbreaks-tests: New file.
84905         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
84907 2009-02-10  Bruno Haible  <bruno@clisp.org>
84909         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
84910         property.
84911         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
84912         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
84913         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
84915 2009-02-10  Simon Josefsson  <simon@josefsson.org>
84917         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
84918         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
84920 2009-02-10  Bruno Haible  <bruno@clisp.org>
84922         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
84923         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
84924         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
84925         * lib/unilbrk/u8-possible-linebreaks.c: Update.
84926         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
84927         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
84929 2009-02-09  Simon Josefsson  <simon@josefsson.org>
84931         * lib/sockets.h (gl_fd_to_handle): New function.
84933         * tests/test-sockets.c: Call gl_fd_to_handle.
84935 2009-02-09  Bruno Haible  <bruno@clisp.org>
84937         * doc/havelib.texi: Document the conventions on bi-arch systems.
84939 2009-02-08  Bruno Haible  <bruno@clisp.org>
84941         Document the AC_LIB_LINKFLAGS macro.
84942         * doc/havelib.texi: New file, mostly written on 2005-05-24.
84943         * doc/gnulib.texi: Include it.
84945 2009-02-08  Bruno Haible  <bruno@clisp.org>
84947         Fix wrong order of sections, compared to TOC.
84948         * doc/gnulib.texi: Include relocatable-maint.texi after the
84949         "Regular expressions" node, not before.
84951 2009-02-08  Bruno Haible  <bruno@clisp.org>
84953         Tests for module 'unicase/totitle'.
84954         * modules/unicase/totitle-tests: New file.
84956         Tests for module 'unicase/tolower'.
84957         * modules/unicase/tolower-tests: New file.
84959         Tests for module 'unicase/toupper'.
84960         * modules/unicase/toupper-tests: New file.
84961         * tests/unicase/test-mapping-part1.h: New file.
84962         * tests/unicase/test-mapping-part2.h: New file.
84964         New module 'unicase/totitle'.
84965         * modules/unicase/totitle: New file.
84966         * lib/unicase/totitle.c: New file.
84968         New module 'unicase/tolower'.
84969         * modules/unicase/tolower: New file.
84970         * lib/unicase/tolower.c: New file.
84972         New module 'unicase/toupper'.
84973         * modules/unicase/toupper: New file.
84974         * lib/unicase/toupper.c: New file.
84975         * lib/unicase/simple-mapping.h: New file.
84977         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
84978         (mapping_table): New structure.
84979         (output_simple_mapping): New function.
84980         (main): Invoke output_simple_mapping_test and output_simple_mapping.
84981         * modules/gen-uni-tables (Description): Update.
84982         * lib/unicase/toupper.h: New file, automatically generated by
84983         gen-uni-tables.
84984         * lib/unicase/tolower.h: New file, automatically generated by
84985         gen-uni-tables.
84986         * lib/unicase/totitle.h: New file, automatically generated by
84987         gen-uni-tables.
84988         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
84989         gen-uni-tables.
84990         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
84991         gen-uni-tables.
84992         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
84993         gen-uni-tables.
84995         New module 'unicase/base'.
84996         * modules/unicase/base: New file.
84997         * lib/unicase.h: New file.
84999 2009-02-08  Bruno Haible  <bruno@clisp.org>
85001         New module 'uniwbrk/ulc-wordbreaks'.
85002         * modules/uniwbrk/ulc-wordbreaks: New file.
85003         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85005         New module 'uniwbrk/u32-wordbreaks'.
85006         * modules/uniwbrk/u32-wordbreaks: New file.
85007         * lib/uniwbrk/u32-wordbreaks.c: New file.
85009         New module 'uniwbrk/u16-wordbreaks'.
85010         * modules/uniwbrk/u16-wordbreaks: New file.
85011         * lib/uniwbrk/u16-wordbreaks.c: New file.
85013         New module 'uniwbrk/u8-wordbreaks'.
85014         * modules/uniwbrk/u8-wordbreaks: New file.
85015         * lib/uniwbrk/u8-wordbreaks.c: New file.
85016         * lib/uniwbrk/u-wordbreaks.h: New file.
85018         New module 'uniwbrk/table'.
85019         * modules/uniwbrk/table: New file.
85020         * lib/uniwbrk/wbrktable.h: New file.
85021         * lib/uniwbrk/wbrktable.c: New file.
85023         New module 'uniwbrk/wordbreak-property'.
85024         * modules/uniwbrk/wordbreak-property: New file.
85025         * lib/uniwbrk/wordbreak-property.c: New file.
85027         * lib/gen-uni-tables.c (WBP_*): New enum items.
85028         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85029         (unicode_org_wbp): New variable.
85030         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85031         New functions.
85032         (wbp_table): New structure.
85033         (output_wbp, output_wbrk_tables): New functions.
85034         (main): Accept additional argument. Invoke fill_org_wbp,
85035         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85036         output_wbrk_tables.
85037         * modules/gen-uni-tables (Description): Update.
85038         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85039         gen-uni-tables.
85041         New module 'uniwbrk/base'.
85042         * modules/uniwbrk/base: New file.
85043         * lib/uniwbrk.h: New file.
85045 2009-02-08  Bruno Haible  <bruno@clisp.org>
85047         Update to Unicode 5.1.0.
85048         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85049         U+2185..U+2188.
85050         (is_property_default_ignorable_code_point): Don't include characters
85051         of category Cc or Cs and not-a-characters.
85052         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85053         U+0D79, U+109E, U+109F, U+A60C.
85054         * lib/unictype/bidi_of.h: Regenerated.
85055         * lib/unictype/blocks.h: Regenerated.
85056         * lib/unictype/categ_C.h: Regenerated.
85057         * lib/unictype/categ_Cf.h: Regenerated.
85058         * lib/unictype/categ_Cn.h: Regenerated.
85059         * lib/unictype/categ_L.h: Regenerated.
85060         * lib/unictype/categ_Ll.h: Regenerated.
85061         * lib/unictype/categ_Lm.h: Regenerated.
85062         * lib/unictype/categ_Lo.h: Regenerated.
85063         * lib/unictype/categ_Lu.h: Regenerated.
85064         * lib/unictype/categ_M.h: Regenerated.
85065         * lib/unictype/categ_Mc.h: Regenerated.
85066         * lib/unictype/categ_Me.h: Regenerated.
85067         * lib/unictype/categ_Mn.h: Regenerated.
85068         * lib/unictype/categ_N.h: Regenerated.
85069         * lib/unictype/categ_Nd.h: Regenerated.
85070         * lib/unictype/categ_Nl.h: Regenerated.
85071         * lib/unictype/categ_No.h: Regenerated.
85072         * lib/unictype/categ_P.h: Regenerated.
85073         * lib/unictype/categ_Pd.h: Regenerated.
85074         * lib/unictype/categ_Pe.h: Regenerated.
85075         * lib/unictype/categ_Pf.h: Regenerated.
85076         * lib/unictype/categ_Pi.h: Regenerated.
85077         * lib/unictype/categ_Po.h: Regenerated.
85078         * lib/unictype/categ_Ps.h: Regenerated.
85079         * lib/unictype/categ_S.h: Regenerated.
85080         * lib/unictype/categ_Sk.h: Regenerated.
85081         * lib/unictype/categ_Sm.h: Regenerated.
85082         * lib/unictype/categ_So.h: Regenerated.
85083         * lib/unictype/categ_of.h: Regenerated.
85084         * lib/unictype/combining.h: Regenerated.
85085         * lib/unictype/ctype_alnum.h: Regenerated.
85086         * lib/unictype/ctype_alpha.h: Regenerated.
85087         * lib/unictype/ctype_graph.h: Regenerated.
85088         * lib/unictype/ctype_lower.h: Regenerated.
85089         * lib/unictype/ctype_print.h: Regenerated.
85090         * lib/unictype/ctype_punct.h: Regenerated.
85091         * lib/unictype/ctype_upper.h: Regenerated.
85092         * lib/unictype/decdigit.h: Regenerated.
85093         * lib/unictype/digit.h: Regenerated.
85094         * lib/unictype/mirror.h: Regenerated.
85095         * lib/unictype/numeric.h: Regenerated.
85096         * lib/unictype/pr_alphabetic.h: Regenerated.
85097         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85098         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85099         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85100         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85101         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85102         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85103         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85104         * lib/unictype/pr_combining.h: Regenerated.
85105         * lib/unictype/pr_dash.h: Regenerated.
85106         * lib/unictype/pr_decimal_digit.h: Regenerated.
85107         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85108         * lib/unictype/pr_deprecated.h: Regenerated.
85109         * lib/unictype/pr_diacritic.h: Regenerated.
85110         * lib/unictype/pr_extender.h: Regenerated.
85111         * lib/unictype/pr_format_control.h: Regenerated.
85112         * lib/unictype/pr_grapheme_base.h: Regenerated.
85113         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85114         * lib/unictype/pr_grapheme_link.h: Regenerated.
85115         * lib/unictype/pr_id_continue.h: Regenerated.
85116         * lib/unictype/pr_id_start.h: Regenerated.
85117         * lib/unictype/pr_ideographic.h: Regenerated.
85118         * lib/unictype/pr_ignorable_control.h: Regenerated.
85119         * lib/unictype/pr_lowercase.h: Regenerated.
85120         * lib/unictype/pr_math.h: Regenerated.
85121         * lib/unictype/pr_numeric.h: Regenerated.
85122         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85123         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85124         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85125         * lib/unictype/pr_other_id_continue.h: Regenerated.
85126         * lib/unictype/pr_other_lowercase.h: Regenerated.
85127         * lib/unictype/pr_other_math.h: Regenerated.
85128         * lib/unictype/pr_punctuation.h: Regenerated.
85129         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85130         * lib/unictype/pr_soft_dotted.h: Regenerated.
85131         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85132         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85133         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85134         * lib/unictype/pr_uppercase.h: Regenerated.
85135         * lib/unictype/pr_xid_continue.h: Regenerated.
85136         * lib/unictype/pr_xid_start.h: Regenerated.
85137         * lib/unictype/pr_zero_width.h: Regenerated.
85138         * lib/unictype/scripts.h: Regenerated.
85139         * lib/unictype/scripts_byname.gperf: Regenerated.
85140         * lib/unictype/sy_java_ident.h: Regenerated.
85141         * lib/unilbrk/lbrkprop1.h: Regenerated.
85142         * lib/unilbrk/lbrkprop2.h: Regenerated.
85143         * tests/unictype/test-categ_C.c: Regenerated.
85144         * tests/unictype/test-categ_Cf.c: Regenerated.
85145         * tests/unictype/test-categ_Cn.c: Regenerated.
85146         * tests/unictype/test-categ_L.c: Regenerated.
85147         * tests/unictype/test-categ_Ll.c: Regenerated.
85148         * tests/unictype/test-categ_Lm.c: Regenerated.
85149         * tests/unictype/test-categ_Lo.c: Regenerated.
85150         * tests/unictype/test-categ_Lu.c: Regenerated.
85151         * tests/unictype/test-categ_M.c: Regenerated.
85152         * tests/unictype/test-categ_Mc.c: Regenerated.
85153         * tests/unictype/test-categ_Me.c: Regenerated.
85154         * tests/unictype/test-categ_Mn.c: Regenerated.
85155         * tests/unictype/test-categ_N.c: Regenerated.
85156         * tests/unictype/test-categ_Nd.c: Regenerated.
85157         * tests/unictype/test-categ_Nl.c: Regenerated.
85158         * tests/unictype/test-categ_No.c: Regenerated.
85159         * tests/unictype/test-categ_P.c: Regenerated.
85160         * tests/unictype/test-categ_Pd.c: Regenerated.
85161         * tests/unictype/test-categ_Pe.c: Regenerated.
85162         * tests/unictype/test-categ_Pf.c: Regenerated.
85163         * tests/unictype/test-categ_Pi.c: Regenerated.
85164         * tests/unictype/test-categ_Po.c: Regenerated.
85165         * tests/unictype/test-categ_Ps.c: Regenerated.
85166         * tests/unictype/test-categ_S.c: Regenerated.
85167         * tests/unictype/test-categ_Sk.c: Regenerated.
85168         * tests/unictype/test-categ_Sm.c: Regenerated.
85169         * tests/unictype/test-categ_So.c: Regenerated.
85170         * tests/unictype/test-ctype_alnum.c: Regenerated.
85171         * tests/unictype/test-ctype_alpha.c: Regenerated.
85172         * tests/unictype/test-ctype_graph.c: Regenerated.
85173         * tests/unictype/test-ctype_lower.c: Regenerated.
85174         * tests/unictype/test-ctype_print.c: Regenerated.
85175         * tests/unictype/test-ctype_punct.c: Regenerated.
85176         * tests/unictype/test-ctype_upper.c: Regenerated.
85177         * tests/unictype/test-decdigit.h: Regenerated.
85178         * tests/unictype/test-digit.h: Regenerated.
85179         * tests/unictype/test-numeric.h: Regenerated.
85180         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85181         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85182         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85183         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85184         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85185         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85186         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85187         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85188         * tests/unictype/test-pr_combining.c: Regenerated.
85189         * tests/unictype/test-pr_dash.c: Regenerated.
85190         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85191         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85192         * tests/unictype/test-pr_deprecated.c: Regenerated.
85193         * tests/unictype/test-pr_diacritic.c: Regenerated.
85194         * tests/unictype/test-pr_extender.c: Regenerated.
85195         * tests/unictype/test-pr_format_control.c: Regenerated.
85196         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85197         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85198         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85199         * tests/unictype/test-pr_id_continue.c: Regenerated.
85200         * tests/unictype/test-pr_id_start.c: Regenerated.
85201         * tests/unictype/test-pr_ideographic.c: Regenerated.
85202         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85203         * tests/unictype/test-pr_lowercase.c: Regenerated.
85204         * tests/unictype/test-pr_math.c: Regenerated.
85205         * tests/unictype/test-pr_numeric.c: Regenerated.
85206         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85207         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85208         Regenerated.
85209         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
85210         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
85211         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
85212         * tests/unictype/test-pr_other_math.c: Regenerated.
85213         * tests/unictype/test-pr_punctuation.c: Regenerated.
85214         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
85215         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
85216         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
85217         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
85218         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
85219         * tests/unictype/test-pr_uppercase.c: Regenerated.
85220         * tests/unictype/test-pr_xid_continue.c: Regenerated.
85221         * tests/unictype/test-pr_xid_start.c: Regenerated.
85222         * tests/unictype/test-pr_zero_width.c: Regenerated.
85224         Update to Unicode 5.1.0.
85225         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
85226         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
85227         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
85228         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
85229         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
85230         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
85231         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
85232         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
85233         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
85234         (nonspacing_table_ind): Update.
85235         * tests/uniwidth/test-uc_width2.sh: Update expected result.
85237         Update to Unicode 5.1.0.
85238         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
85239         code transform.
85240         * lib/uniname/uniname.c (unicode_character_name,
85241         unicode_name_character): Add the range 0x1Fxxx to the code transform.
85242         * lib/uniname/uninames.h: Regenerated.
85243         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
85245 2009-02-07  Bruno Haible  <bruno@clisp.org>
85247         Merge gen-ctype and gen-lbrk into a single program.
85248         * lib/gen-uni-tables.c: New file, incorporating
85249         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85250         Add directory prefixes to the names of the generated files.
85251         * lib/unictype/gen-ctype.c: Remove file.
85252         * lib/unilbrk/gen-lbrk.c: Remove file.
85253         * modules/gen-uni-tables: New file.
85254         * modules/unictype/gen-ctype: Remove file.
85255         * modules/unilbrk/gen-lbrk: Remove file.
85257 2009-02-07  Bruno Haible  <bruno@clisp.org>
85259         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85261         New module 'unistr/u32-strcoll'.
85262         * modules/unistr/u32-strcoll: New file.
85263         * lib/unistr/u32-strcoll.c: New file.
85265         New module 'unistr/u16-strcoll'.
85266         * modules/unistr/u16-strcoll: New file.
85267         * lib/unistr/u16-strcoll.c: New file.
85269         New module 'unistr/u8-strcoll'.
85270         * modules/unistr/u8-strcoll: New file.
85271         * lib/unistr/u8-strcoll.c: New file.
85272         * lib/unistr/u-strcoll.h: New file.
85274 2009-02-07  Bruno Haible  <bruno@clisp.org>
85276         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85277         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85278         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85279         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85280         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85281         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85283 2009-02-07  Bruno Haible  <bruno@clisp.org>
85285         Make 64-bit clean.
85286         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85287         output_combclass, output_bidi_category, output_decimal_digit,
85288         output_digit, output_numeric, output_mirror, output_scripts,
85289         output_ident_category): Use proper width specifier in format strings.
85291 2009-02-07  Bruno Haible  <bruno@clisp.org>
85293         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85294         failure behaviour.
85296 2009-02-07  Jim Meyering  <meyering@redhat.com>
85298         regex: avoid compilation failure with upcoming gcc-4.4
85299         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85300         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85301         "... error: integer overflow in preprocessor expression".
85303 2009-02-05  Ben Pfaff  <blp@gnu.org>
85305         Fix link errors on Windows when close module is used.
85306         * modules/close: Add $(LIB_CLOSE) to Link section.
85307         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85308         $(LIB_CLOSE) on Windows.
85310 2009-02-05  Jim Meyering  <meyering@redhat.com>
85312         still avoid unused-parameter warnings, but do it cleanly
85313         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85314         (get_fs_usage): Cast to void instead.
85315         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85316         (dev_from_mount_options, read_file_system_list): Cast to void.
85317         Prompted by Bruno Haible.
85319 2009-02-04  Jim Meyering  <meyering@redhat.com>
85321         fsusage.c: correct copyright year
85322         * lib/fsusage.c: Reflect year in which the change is pushed into
85324         avoid misc. warnings
85325         * lib/fsusage.c (UNUSED_PARAM): Define.
85326         (get_fs_usage): Mark parameter "disk" as unused.
85327         * lib/getugroups.c (getgrent): Use "void" in prototype.
85328         * lib/mountlist.c: Mark unused parameters.
85329         (read_file_system_list): Declare a local with "const".
85330         * lib/nanosleep.c (getnow): Declare static.
85331         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85333         dirfd: set errno upon failure
85334         * lib/dirfd.c: Include <errno.h>.
85335         Set errno to ENOTSUP when returning -1.
85336         * modules/dirfd (Depends-on): Add errno.
85337         Suggested by John Kodis <kodis@comcast.net>.
85339 2009-02-01  Bruno Haible  <bruno@clisp.org>
85341         Don't assume sizeof (long) >= sizeof (void *).
85342         * lib/memcmp.c: Include stdint.h.
85343         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85344         srcp2 to 'const byte *'.
85345         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85346         types to uintptr_t.
85347         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85348         * modules/memcmp (Depends-on): Add stdint.
85349         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85351 2009-01-30  Eric Blake  <ebb9@byu.net>
85353         fix more require-before-expand issues
85354         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85355         expand, AC_PROG_AWK.
85356         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85358 2009-01-28  Eric Blake  <ebb9@byu.net>
85360         version-etc: use consistent URL formatting
85361         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85362         Improve formatting.  Use fputs for string without %.
85364 2009-01-28  Jim Meyering  <meyering@redhat.com>
85366         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85367         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85368         "underquoted definition of NAME" from autoconf-2.59.
85370 2009-01-28  Bruno Haible  <bruno@clisp.org>
85372         * doc/gnulib.texi: Add "Obsolete modules" to index.
85374 2009-01-28  Jim Meyering  <meyering@redhat.com>
85376         useless-if-before-free: recognize more variants
85377         * build-aux/useless-if-before-free: Also recognize e.g.,
85378         if (NULL != p) free (p);
85380 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
85382         test-getaddrinfo: skip (don't fail) this test when there's no network
85383         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
85384         on the presumption that it means you lack network access.
85386 2009-01-26  Jim Meyering  <meyering@redhat.com>
85388         fflush: avoid warnings on modern systems
85389         * lib/fflush.c (rpl_fflush): Move declarations of locals,
85390         pos and result, into scopes where they're used.
85392 2009-01-26  Eric Blake  <ebb9@byu.net>
85394         Silence warning reintroduced by recent extensions patch.
85395         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
85396         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
85397         autoconf.
85399         Backport improved autoconf semantics of AC_DEFUN_ONCE.
85400         * m4/00gnulib.m4: New file.
85401         * gnulib-tool (func_get_filelist): Always use it.
85402         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
85403         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
85405 2009-01-25  Bruno Haible  <bruno@clisp.org>
85407         Make test-quotearg work on MacOS X and AIX.
85408         * tests/test-quotearg.sh: New file.
85409         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
85410         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
85411         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
85412         include <libintl.h>.
85413         (fake_locale): Remove variable.
85414         (gettext, dgettext, dcgettext): Remove functions.
85415         (main): Instead of setting a fake locale, set a real locale. Call
85416         textdomain and bindtextdomain.
85417         * modules/quotearg-tests (Files): Add the new files.
85418         (Depends-on): Add gettext, setenv, unsetenv.
85419         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85420         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
85421         Augment TESTS_ENVIRONMENT.
85423 2009-01-25  Bruno Haible  <bruno@clisp.org>
85425         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
85426         fr_FR.ISO8859-1 locale on MacOS X.
85427         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
85428         ja_JP.eucJP locale on MacOS X.
85429         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
85430         zh_CN.GB18030 locale on MacOS X.
85432 2009-01-25  Bruno Haible  <bruno@clisp.org>
85434         Avoid link errors on MacOS X 10.3.
85435         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
85436         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
85438 2009-01-25  Bruno Haible  <bruno@clisp.org>
85440         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85441         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
85442         * modules/pipe (Files): Remove m4/posix_spawn.m4.
85443         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85444         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
85445         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85446         posix_spawnattr_init, posix_spawnattr_setsigmask,
85447         posix_spawnattr_setflags, posix_spawnattr_destroy.
85449         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85450         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
85451         * modules/execute (Files): Remove m4/posix_spawn.m4.
85452         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85453         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85454         posix_spawnattr_init, posix_spawnattr_setsigmask,
85455         posix_spawnattr_setflags, posix_spawnattr_destroy.
85457 2009-01-25  Bruno Haible  <bruno@clisp.org>
85459         * lib/glthread/threadlib.c: Include <stdlib.h>.
85461 2009-01-25  Bruno Haible  <bruno@clisp.org>
85463         * lib/glthread/threadlib.c (dummy): New declaration.
85465 2009-01-25  Bruno Haible  <bruno@clisp.org>
85467         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
85468         multibyte characters also for the GB18030 encoding. Don't crash when
85469         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
85471 2009-01-25  Bruno Haible  <bruno@clisp.org>
85473         Avoid redefining 'struct random_data' on OSF/1 5.1.
85474         * lib/stdlib.in.h: Include <random.h> if it exists.
85475         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
85476         HAVE_RANDOM_H. Include <random.h> when testing whether
85477         'struct random_data' exists.
85478         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
85480 2009-01-25  Bruno Haible  <bruno@clisp.org>
85482         Don't install charset.alias on MacOS X >= 10.3.
85483         * lib/localcharset.c (DARWIN7): New macro.
85484         (get_charset_aliases): Hardcode the result for Darwin7.
85485         * modules/localcharset (install-exec-local): Don't install
85486         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
85488 2009-01-25  Bruno Haible  <bruno@clisp.org>
85490         Don't install charset.alias on mingw and Cygwin.
85491         * modules/localcharset (install-exec-local): Don't install
85492         charset.alias on mingw and Cygwin, if the file does not yet exist.
85493         The result for these platforms is hardcoded in localcharset.c.
85495 2009-01-25  Bruno Haible  <bruno@clisp.org>
85497         Make it possible again to use AC_GNU_SOURCE together with gnulib.
85498         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
85499         before requiring AC_USE_SYSTEM_EXTENSIONS.
85501 2009-01-25  Jim Meyering  <meyering@redhat.com>
85503         c-strtod: avoid warnings
85504         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
85505         "assignment discards qualifiers from pointer target type" warnings.
85507 2009-01-24  Bruno Haible  <bruno@clisp.org>
85509         Add support for non-UTF-8 locales on MacOS X.
85510         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
85511         canonical encodings. For Darwin 7 and newer, don't map traditional
85512         encodings to UTF-8.
85513         Reported by Vincent Lefevre <vincent@vinc17.org>
85514         at <http://savannah.gnu.org/bugs/?25235>.
85516 2009-01-24  Bruno Haible  <bruno@clisp.org>
85518         * doc/gnulib.texi (Obsolete modules): New section.
85519         Reported by Mike Frysinger <vapier@gentoo.org>.
85521 2009-01-24  Bruno Haible  <bruno@clisp.org>
85523         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
85524         (%.dvi): New rule.
85526 2009-01-24  Bruno Haible  <bruno@clisp.org>
85528         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
85529         Reported by Eric Blake.
85531 2009-01-24  Bruno Haible  <bruno@clisp.org>
85533         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
85534         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
85535         Reported by Gary V. Vaughan <gary@gnu.org>.
85537 2009-01-24  Bruno Haible  <bruno@clisp.org>
85539         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
85541 2009-01-23  Bruno Haible  <bruno@clisp.org>
85543         Make c-strtod, c-strtold usable in libraries.
85544         * lib/c-strtod.c: Include string.h instead of xalloc.h.
85545         (C_STRTOD): Call strdup instead of xstrdup.
85546         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
85547         * modules/c-strtold (Depends-on): Likewise.
85548         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
85549         * NEWS: Mention the change.
85550         Reported by Michael Gold <mgold@ncf.ca>.
85552 2009-01-23  Jim Meyering  <meyering@redhat.com>
85554         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
85555         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
85556         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
85558 2009-01-23  Simon Josefsson  <simon@josefsson.org>
85560         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
85561         GNU CoreUtils.
85562         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
85563         * modules/version-etc (Description): Update.
85565 2009-01-22  Bruno Haible  <bruno@clisp.org>
85567         Cache the C locale object.
85568         * lib/c-strtod.c (c_locale_cache): New variable.
85569         (c_locale): New function.
85570         (C_STRTOD): Use it, and don't call freelocale.
85571         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
85572         Suggested by Paolo Bonzini.
85574 2009-01-21  Bruno Haible  <bruno@clisp.org>
85576         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
85577         conditions other than overflow.
85579 2009-01-21  Bruno Haible  <bruno@clisp.org>
85581         * lib/c-strtod.c: Include errno.h.
85582         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
85583         value from STRTOD_L and STRTOD.
85585 2009-01-21  Bruno Haible  <bruno@clisp.org>
85586         and Jim Meyering  <meyering@redhat.com>
85588         nanosleep: skip configure test (fail it) for apple universal builds
85589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
85590         universal builds, assume that nanosleep does not work.
85591         * modules/nanosleep (Depends-on): Add multiarch.
85593         mktime: skip configure test (fail it) for apple universal builds
85594         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
85595         universal builds, assume that mktime does not work.
85596         * modules/mktime (Depends-on): Add multiarch.
85598 2009-01-21  Eric Blake  <ebb9@byu.net>
85600         multiarch: avoid expand-before-require warning
85601         * modules/multiarch (configure.ac): Require, rather than expand,
85602         gl_MULTIARCH.
85603         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
85604         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
85605         enforce that all clients require it.  Partial reversion of
85606         2008-12-29 patch.
85608         error: avoid expand-before-require warning
85609         * modules/errno (configure.ac): Require, rather than expand,
85610         gl_HEADER_ERRNO_H.
85611         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
85612         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
85613         enforce that all clients require it.
85615         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
85616         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
85617         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
85618         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
85620 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
85622         Revert:
85623         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85625         regex: do not depend on obsolete modules.
85626         * modules/regex: Remove memcmp and memmove.
85628 2009-01-20  Bruno Haible  <bruno@clisp.org>
85630         Make the 'link' module link on Windows NT 4.
85631         * lib/link.c (_WIN32_WINNT): Don't define.
85632         (CreateHardLinkFuncType): New type.
85633         (CreateHardLinkFunc, initialized): New variables.
85634         (initialize): New function.
85635         (link): Invoke CreateHardLink indirectly through the function pointer.
85637 2009-01-20  Bruno Haible  <bruno@clisp.org>
85639         Fix compilation failure on mingw.
85640         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
85642 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
85644         * doc/c-strtod.texi: Mention a couple of restrictions.
85646 2009-01-20  Jim Meyering  <meyering@redhat.com>
85648         gettimeofday: move more declarations out of functions
85649         * lib/gettimeofday.c: Move extern declarations of tzset and
85650         gmtime out of containing functions.  Prompted by Bruno Haible.
85652 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85654         regex: do not depend on obsolete modules.
85655         * modules/regex: Remove memcmp and memmove.
85657 2009-01-19  Bruno Haible  <bruno@clisp.org>
85659         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85660         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
85661         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85662         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
85663         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
85665 2009-01-19  Bruno Haible  <bruno@clisp.org>
85667         * tests/test-link.c: Include <errno.h>.
85668         (main): Exit with code 77 when a hard link cannot be created due to
85669         the file system.
85670         * tests/test-link.sh: Skip test when a hard link cannot be created due
85671         to the file system.
85672         Suggested by Eric Blake.
85674 2009-01-19  Martin Lambers  <marlam@marlam.de>
85676         * modules/link-tests: New file.
85677         * tests/test-link.sh: New file.
85678         * tests/test-link.c: New file.
85680 2009-01-19  Eric Blake  <ebb9@byu.net>
85682         doc: mention another function added in cygwin 1.7.0
85683         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
85684         Another new function in cygwin 1.7.
85686 2009-01-19  Bruno Haible  <bruno@clisp.org>
85688         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85689         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
85690         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
85691         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85692         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
85693         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
85694         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
85695         * m4/md4.m4 (gl_MD4): Likewise.
85696         * m4/md5.m4 (gl_MD5): Likewise.
85697         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
85698         * m4/sha1.m4 (gl_SHA1): Likewise.
85699         * m4/sha256.m4 (gl_SHA256): Likewise.
85700         * m4/sha512.m4 (gl_SHA512): Likewise.
85702 2009-01-19  Bruno Haible  <bruno@clisp.org>
85704         * modules/uniname/uniname-tests (Depends-on): Add progname.
85705         * tests/uniname/test-uninames.c: Include progname.h.
85706         (main): Call set_program_name.
85708         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
85709         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
85710         (main): Call set_program_name.
85712         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
85713         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
85714         (main): Call set_program_name.
85716         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
85717         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
85718         (main): Call set_program_name.
85720         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
85721         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
85722         (main): Call set_program_name.
85724         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
85725         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
85726         (main): Call set_program_name.
85728         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
85729         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
85730         (main): Call set_program_name.
85732         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
85733         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
85734         (main): Call set_program_name.
85736         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
85737         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
85738         (main): Call set_program_name.
85740 2009-01-19  Eric Blake  <ebb9@byu.net>
85742         test-unistd: test previous patch
85743         * tests/test-unistd.c: Test *_FILENO macros.
85745         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
85746         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85747         Guarantee a definition.
85748         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
85749         * modules/unistd-safer (Depends-on): Add dependency on unistd.
85750         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
85751         * lib/dup-safer.c (STDERR_FILENO): Likewise.
85752         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85753         Likewise.
85754         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
85755         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
85756         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85757         Likewise.
85758         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
85759         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
85760         (STDERR_FILENO): Likewise.
85761         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
85762         (STDERR_FILENO): Likewise.
85763         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
85764         (STDERR_FILENO): Likewise.
85765         Reported by Elbert Pol.
85767 2009-01-19  Eric Blake  <ebb9@byu.net>
85769         doc: mention more functions added in cygwin 1.7.0
85770         * doc/posix-functions/abort.texi (abort): Update wording related
85771         to cygwin.
85772         * doc/posix-functions/daylight.texi (daylight): Likewise.
85773         * doc/posix-functions/optarg.texi (optarg): Likewise.
85774         * doc/posix-functions/optarg.texi (opterr): Likewise.
85775         * doc/posix-functions/optarg.texi (optind): Likewise.
85776         * doc/posix-functions/optarg.texi (optopt): Likewise.
85777         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
85778         worked in 1.5.x, and was withdrawn in 1.7.
85779         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
85780         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
85781         cygwin versions.
85782         * doc/posix-functions/perror.texi (perror): Likewise.
85783         * doc/posix-functions/printf.texi (printf): Likewise.
85784         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
85785         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
85786         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
85787         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
85788         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
85789         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
85790         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85791         Likewise.
85792         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85793         Likewise.
85794         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
85795         this function.
85796         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
85797         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
85798         Likewise.
85799         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
85800         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
85801         * doc/posix-functions/confstr.texi (confstr): Likewise.
85802         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
85803         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
85804         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
85805         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
85806         * doc/posix-functions/fputws.texi (fputws): Likewise.
85807         * doc/posix-functions/fwide.texi (fwide): Likewise.
85808         * doc/posix-functions/getwc.texi (getwc): Likewise.
85809         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
85810         * doc/posix-functions/putwc.texi (putwc): Likewise.
85811         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
85812         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
85813         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
85814         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
85815         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
85816         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
85817         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
85818         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
85819         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
85820         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
85821         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
85823 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85825         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
85826         * lib/ioctl.c: Include <sys/ioctl.h>.
85828 2009-01-19  Simon Josefsson  <simon@josefsson.org>
85830         * modules/getdate-tests (Depends-on): Add progname.
85831         * tests/test-getdate.c: Use progname module, to avoid link errors
85832         on non-glibc systems.
85834 2009-01-18  Simon Josefsson  <simon@josefsson.org>
85836         * modules/filenamecat-tests (Depends-on): Add progname.
85837         * modules/fstrcmp-tests (Depends-on): Likewise.
85839         * tests/test-filenamecat.c: Use progname module, to avoid link
85840         errors on non-glibc systems.
85841         * tests/test-fstrcmp.c: Likewise.
85843 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85845         gettimeofday: avoid warning: nested extern declaration of 'localtime'
85846         * lib/gettimeofday.c: Move extern declaration out of function.
85848 2009-01-18  Bruno Haible  <bruno@clisp.org>
85850         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
85851         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
85852         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
85854 2009-01-18  Bruno Haible  <bruno@clisp.org>
85856         * lib/strftime.c (MEMPCPY): Remove unused macro.
85857         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
85859 2009-01-18  Martin Lambers  <marlam@marlam.de>
85861         New module 'link'.
85862         * lib/unistd.in.h (link): New declaration.
85863         * lib/link.c: New file.
85864         * m4/link.m4: New file.
85865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
85866         HAVE_LINK.
85867         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
85868         * modules/link: New file.
85869         * doc/posix-functions/link.texi: Mention the new module.
85871 2009-01-18  Bruno Haible  <bruno@clisp.org>
85873         * tests/test-avltree_list.c (main): Call set_program_name.
85874         * tests/test-avltree_oset.c (main): Likewise.
85875         * tests/test-obstack-printf.c: Include progname.h.
85876         (main): Call set_program_name.
85877         * tests/test-quotearg.c: Include progname.h.
85878         (main): Call set_program_name.
85879         * tests/test-xmemdup0.c: Include progname.h.
85880         (main): Call set_program_name.
85882 2009-01-18  Bruno Haible  <bruno@clisp.org>
85884         New module 'alphasort'.
85885         * lib/dirent.in.h (alphasort): New declaration.
85886         * lib/alphasort.c: New file, from glibc with modifications.
85887         * m4/alphasort.m4: New file.
85888         * modules/alphasort: New file.
85889         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
85890         HAVE_ALPHASORT.
85891         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
85892         HAVE_ALPHASORT.
85893         * doc/posix-functions/alphasort.texi: Mention the new module and the
85894         portability problems.
85896 2009-01-18  Bruno Haible  <bruno@clisp.org>
85898         New module 'scandir'.
85899         * lib/dirent.in.h (scandir): New declaration.
85900         * lib/scandir.c: New file, from glibc with modifications.
85901         * m4/scandir.m4: New file.
85902         * modules/scandir: New file.
85903         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
85904         HAVE_SCANDIR.
85905         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
85906         HAVE_SCANDIR.
85907         * doc/posix-functions/scandir.texi: Mention the new module and the
85908         portability problems.
85910 2009-01-17  Bruno Haible  <bruno@clisp.org>
85912         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
85913         Update documentation.
85914         (func_remove_suffix): Escape all dots in the suffix. Update
85915         documentation.
85916         (func_filter_filelist): Update documentation.
85917         Reported by Ralf Wildenhues.
85919 2009-01-17  Bruno Haible  <bruno@clisp.org>
85921         * modules/dprintf-posix-tests: New file.
85922         * tests/test-dprintf-posix.sh: New file.
85923         * tests/test-dprintf-posix.c: New file.
85925         New modules 'dprintf', 'dprintf-posix'.
85926         * lib/stdio.in.h (dprintf): New declaration.
85927         * lib/dprintf.c: New file.
85928         * m4/dprintf.m4: New file.
85929         * m4/dprintf-posix.m4: New file.
85930         * modules/dprintf: New file.
85931         * modules/dprintf-posix: New file.
85932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
85933         HAVE_DPRINTF, REPLACE_DPRINTF.
85934         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
85935         HAVE_DPRINTF, REPLACE_DPRINTF.
85936         * doc/posix-functions/dprintf.texi: Mention the new modules.
85938 2009-01-17  Bruno Haible  <bruno@clisp.org>
85940         * modules/vdprintf-posix-tests: New file.
85941         * tests/test-vdprintf-posix.sh: New file.
85942         * tests/test-vdprintf-posix.c: New file.
85944         New modules 'vdprintf', 'vdprintf-posix'.
85945         * lib/stdio.in.h (vdprintf): New declaration.
85946         * lib/vdprintf.c: New file.
85947         * m4/vdprintf.m4: New file.
85948         * m4/vdprintf-posix.m4: New file.
85949         * modules/vdprintf: New file.
85950         * modules/vdprintf-posix: New file.
85951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
85952         HAVE_VDPRINTF, REPLACE_VDPRINTF.
85953         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
85954         HAVE_VDPRINTF, REPLACE_VDPRINTF.
85955         * doc/posix-functions/vdprintf.texi: Mention the new modules.
85957 2009-01-17  Bruno Haible  <bruno@clisp.org>
85959         Fix replacement of fopen on mingw.
85960         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
85961         mingw.
85963 2009-01-17  Bruno Haible  <bruno@clisp.org>
85965         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
85966         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
85968 2009-01-17  Bruno Haible  <bruno@clisp.org>
85970         Avoid test-fflush2.sh failure on mingw.
85971         * tests/test-fflush2.c: Include binary-io.h.
85972         (main): Put standard input into binary mode.
85973         * modules/fflush-tests (Depends-on): Add binary-io.
85975 2009-01-17  Bruno Haible  <bruno@clisp.org>
85977         * lib/wchar.in.h: In another particular situation, include only the
85978         system's <wchar.h> file.
85979         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
85980         Reported by Albert Chin-A-Young <china@thewrittenword.com>
85981         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
85983 2009-01-17  Bruno Haible  <bruno@clisp.org>
85985         Support for stripping executables in --enable-relocatable.
85986         * build-aux/install-reloc: Expect one more argument, or an environment
85987         variable RELOC_STRIP_PROG. If set, strip the destination program and
85988         its wrapper.
85989         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
85990         RELOC_STRIP_PROG.
85991         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
85992         to set RELOCATABLE_STRIP.
85993         * NEWS: Mention the new Makefile requirement.
85995 2009-01-17  Bruno Haible  <bruno@clisp.org>
85997         * build-aux/install-reloc: Remove debugging information left over by
85998         C compiler on MacOS X.
86000 2009-01-17  Bruno Haible  <bruno@clisp.org>
86002         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86003         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86004         _NSGetExecutablePath.
86006 2009-01-16  Jim Meyering  <meyering@redhat.com>
86008         strerror: avoid warnings about discarding "const"
86009         * lib/strerror.c (rpl_strerror): Instead of returning a const
86010         string from each and every "case", use a variable, and add a single
86011         cast after the switch.
86013 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86015         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86017 2009-01-16  Bruno Haible  <bruno@clisp.org>
86019         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86020         array initializer syntax that also works in C++ mode.
86021         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86023 2009-01-16  Jim Meyering  <meyering@redhat.com>
86025         poll: suppress a warning
86026         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86027         to ignore "...unsigned expression < 0 is always false" warnings.
86029 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86031         poll: remove declarations of unused variables
86032         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86033         sockbuf and optlen.
86035 2009-01-15  Bruno Haible  <bruno@clisp.org>
86037         Make fflush-after-ungetc POSIX compliant on BSD systems.
86038         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86039         (clear_ungetc_buffer): Implement also for other systems.
86040         (rpl_fflush): On glibc systems, invoke
86041         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86042         clear_ungetc_buffer after fetching the stream's position, not before.
86044 2009-01-15  Bruno Haible  <bruno@clisp.org>
86046         Make fflush-after-ungetc POSIX compliant on glibc systems.
86047         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86048         after ungetc.
86049         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86050         (rpl_fflush): On glibc systems, simply call the system's fflush
86051         function after clearing the ungetc buffer.
86052         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86053         Instead, lseek only to the end of file, then use the system's fseeko
86054         for the rest. On glibc systems, reset the EOF indicator bit.
86056 2009-01-15  Jim Meyering  <meyering@redhat.com>
86058         openmp.m4: revert quote-adding change, for portability to older autoconf
86059         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86060         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86061         Simon Josefsson noticed the problem when using autoconf-2.61.
86063 2009-01-15  Bruno Haible  <bruno@clisp.org>
86065         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86066         * tests/test-fflush2.c (ASSERT): Always fail.
86067         (main): Add two tests for fflush() after ungetc(), taking into account
86068         the Austin Group's clarification.
86069         Suggested by Eric Blake.
86071 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86073         mktime.m4: remove K&R-style function prototypes
86074         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86075         for the Sun C++ compiler.
86077 2009-01-14  Bruno Haible  <bruno@clisp.org>
86079         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86080         while including <wchar.h>.
86081         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86082         the system's <wchar.h> file.
86083         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86085 2009-01-14  Bruno Haible  <bruno@clisp.org>
86087         * m4/csharp.m4: Don't mention gettext on the serial number line.
86088         * m4/csharpexec.m4: Likewise.
86089         * m4/eaccess.m4: Likewise.
86090         * m4/javaexec.m4: Likewise.
86091         * m4/sig_atomic_t.m4: Likewise.
86092         * m4/tmpdir.m4: Likewise.
86093         * m4/intldir.m4: Bump gettext version.
86094         * m4/lib-ld.m4: Likewise.
86096 2009-01-14  Bruno Haible  <bruno@clisp.org>
86098         * lib/progname.c (set_program_name): Add more comments.
86099         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86101 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86103         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86104         were sys/stat.h does not define it.
86106 2009-01-14  Jim Meyering  <meyering@redhat.com>
86108         many *.m4 files: improve m4 quoting
86109         99% of this change was performed by running the following commands:
86110         git ls-files | grep '\.m4$' | xargs perl -pi \
86111           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86112           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86113           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86114           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86115         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86116         The remainder were to add Copyright dates, increment serial numbers,
86117         undo some changes in comments, exclude m4/intl.m4, and add quotes
86118         around the "1" in ",1" where the unusual spacing prohibited the
86119         above regexps from doing the job.  For more details, see
86120         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86121         * m4/acl.m4: Modified.
86122         * m4/afs.m4: Likewise.
86123         * m4/alloca.m4: Likewise.
86124         * m4/argp.m4: Likewise.
86125         * m4/argz.m4: Likewise.
86126         * m4/atexit.m4: Likewise.
86127         * m4/bison-i18n.m4: Likewise.
86128         * m4/bison.m4: Likewise.
86129         * m4/byteswap.m4: Likewise.
86130         * m4/c-stack.m4: Likewise.
86131         * m4/c-strtod.m4: Likewise.
86132         * m4/calloc.m4: Likewise.
86133         * m4/canonicalize-lgpl.m4: Likewise.
86134         * m4/chown.m4: Likewise.
86135         * m4/clock_time.m4: Likewise.
86136         * m4/codeset.m4: Likewise.
86137         * m4/copy-file.m4: Likewise.
86138         * m4/csharp.m4: Likewise.
86139         * m4/csharpcomp.m4: Likewise.
86140         * m4/csharpexec.m4: Likewise.
86141         * m4/d-ino.m4: Likewise.
86142         * m4/d-type.m4: Likewise.
86143         * m4/dirfd.m4: Likewise.
86144         * m4/double-slash-root.m4: Likewise.
86145         * m4/eaccess.m4: Likewise.
86146         * m4/eealloc.m4: Likewise.
86147         * m4/environ.m4: Likewise.
86148         * m4/errno_h.m4: Likewise.
86149         * m4/euidaccess.m4: Likewise.
86150         * m4/execute.m4: Likewise.
86151         * m4/fatal-signal.m4: Likewise.
86152         * m4/fchdir.m4: Likewise.
86153         * m4/fcntl_h.m4: Likewise.
86154         * m4/fileblocks.m4: Likewise.
86155         * m4/filenamecat.m4: Likewise.
86156         * m4/findprog.m4: Likewise.
86157         * m4/flexmember.m4: Likewise.
86158         * m4/fnmatch.m4: Likewise.
86159         * m4/fopen.m4: Likewise.
86160         * m4/fpending.m4: Likewise.
86161         * m4/fprintf-posix.m4: Likewise.
86162         * m4/free.m4: Likewise.
86163         * m4/frexp.m4: Likewise.
86164         * m4/frexpl.m4: Likewise.
86165         * m4/fsusage.m4: Likewise.
86166         * m4/ftruncate.m4: Likewise.
86167         * m4/gc-camellia.m4: Likewise.
86168         * m4/gc-random.m4: Likewise.
86169         * m4/gc.m4: Likewise.
86170         * m4/getaddrinfo.m4: Likewise.
86171         * m4/getcwd-abort-bug.m4: Likewise.
86172         * m4/getcwd-path-max.m4: Likewise.
86173         * m4/getdate.m4: Likewise.
86174         * m4/getdomainname.m4: Likewise.
86175         * m4/getgroups.m4: Likewise.
86176         * m4/gethostname.m4: Likewise.
86177         * m4/gethrxtime.m4: Likewise.
86178         * m4/getline.m4: Likewise.
86179         * m4/getloadavg.m4: Likewise.
86180         * m4/getndelim2.m4: Likewise.
86181         * m4/getpass.m4: Likewise.
86182         * m4/gettext.m4: Likewise.
86183         * m4/gettime.m4: Likewise.
86184         * m4/gettimeofday.m4: Likewise.
86185         * m4/gnulib-common.m4: Likewise.
86186         * m4/group-member.m4: Likewise.
86187         * m4/host-os.m4: Likewise.
86188         * m4/iconv.m4: Likewise.
86189         * m4/iconv_open.m4: Likewise.
86190         * m4/inet_ntop.m4: Likewise.
86191         * m4/inet_pton.m4: Likewise.
86192         * m4/inline.m4: Likewise.
86193         * m4/intldir.m4: Likewise.
86194         * m4/intlmacosx.m4: Likewise.
86195         * m4/intmax.m4: Likewise.
86196         * m4/intmax_t.m4: Likewise.
86197         * m4/inttypes.m4: Likewise.
86198         * m4/inttypes_h.m4: Likewise.
86199         * m4/inttypes-pri.m4: Likewise.
86200         * m4/isapipe.m4: Likewise.
86201         * m4/isnand.m4: Likewise.
86202         * m4/isnanf.m4: Likewise.
86203         * m4/isnanl.m4: Likewise.
86204         * m4/javacomp.m4: Likewise.
86205         * m4/javaexec.m4: Likewise.
86206         * m4/jm-winsz1.m4: Likewise.
86207         * m4/jm-winsz2.m4: Likewise.
86208         * m4/lchown.m4: Likewise.
86209         * m4/lcmessage.m4: Likewise.
86210         * m4/ldexpl.m4: Likewise.
86211         * m4/lib-ld.m4: Likewise.
86212         * m4/lib-link.m4: Likewise.
86213         * m4/libsigsegv.m4: Likewise.
86214         * m4/link-follow.m4: Likewise.
86215         * m4/localcharset.m4: Likewise.
86216         * m4/locale-fr.m4: Likewise.
86217         * m4/locale-ja.m4: Likewise.
86218         * m4/locale-tr.m4: Likewise.
86219         * m4/locale-zh.m4: Likewise.
86220         * m4/lock.m4: Likewise.
86221         * m4/longlong.m4: Likewise.
86222         * m4/ls-mntd-fs.m4: Likewise.
86223         * m4/lstat.m4: Likewise.
86224         * m4/malloc.m4: Likewise.
86225         * m4/mathl.m4: Likewise.
86226         * m4/mbrtowc.m4: Likewise.
86227         * m4/mbstate_t.m4: Likewise.
86228         * m4/mbswidth.m4: Likewise.
86229         * m4/memchr.m4: Likewise.
86230         * m4/memcmp.m4: Likewise.
86231         * m4/memcpy.m4: Likewise.
86232         * m4/memmem.m4: Likewise.
86233         * m4/memmove.m4: Likewise.
86234         * m4/mempcpy.m4: Likewise.
86235         * m4/memrchr.m4: Likewise.
86236         * m4/memset.m4: Likewise.
86237         * m4/minmax.m4: Likewise.
86238         * m4/mkdir-slash.m4: Likewise.
86239         * m4/mkdtemp.m4: Likewise.
86240         * m4/mktime.m4: Likewise.
86241         * m4/mmap-anon.m4: Likewise.
86242         * m4/mountlist.m4: Likewise.
86243         * m4/nanosleep.m4: Likewise.
86244         * m4/nls.m4: Likewise.
86245         * m4/nocrash.m4: Likewise.
86246         * m4/open.m4: Likewise.
86247         * m4/openat.m4: Likewise.
86248         * m4/openmp.m4: Likewise.
86249         * m4/pathmax.m4: Likewise.
86250         * m4/perl.m4: Likewise.
86251         * m4/physmem.m4: Likewise.
86252         * m4/pipe.m4: Likewise.
86253         * m4/po.m4: Likewise.
86254         * m4/poll.m4: Likewise.
86255         * m4/posixtm.m4: Likewise.
86256         * m4/posixver.m4: Likewise.
86257         * m4/printf-frexp.m4: Likewise.
86258         * m4/printf-frexpl.m4: Likewise.
86259         * m4/printf-posix.m4: Likewise.
86260         * m4/printf-posix-rpl.m4: Likewise.
86261         * m4/printf.m4: Likewise.
86262         * m4/progtest.m4: Likewise.
86263         * m4/putenv.m4: Likewise.
86264         * m4/readline.m4: Likewise.
86265         * m4/readlink.m4: Likewise.
86266         * m4/readutmp.m4: Likewise.
86267         * m4/realloc.m4: Likewise.
86268         * m4/regex.m4: Likewise.
86269         * m4/relocatable.m4: Likewise.
86270         * m4/relocatable-lib.m4: Likewise.
86271         * m4/rename-dest-slash.m4: Likewise.
86272         * m4/rename.m4: Likewise.
86273         * m4/rmdir-errno.m4: Likewise.
86274         * m4/rmdir.m4: Likewise.
86275         * m4/roundf.m4: Likewise.
86276         * m4/roundl.m4: Likewise.
86277         * m4/rpmatch.m4: Likewise.
86278         * m4/save-cwd.m4: Likewise.
86279         * m4/selinux-selinux-h.m4: Likewise.
86280         * m4/setenv.m4: Likewise.
86281         * m4/settime.m4: Likewise.
86282         * m4/sig2str.m4: Likewise.
86283         * m4/sig_atomic_t.m4: Likewise.
86284         * m4/signalblocking.m4: Likewise.
86285         * m4/signbit.m4: Likewise.
86286         * m4/sigpipe.m4: Likewise.
86287         * m4/sockets.m4: Likewise.
86288         * m4/sockpfaf.m4: Likewise.
86289         * m4/st_dm_mode.m4: Likewise.
86290         * m4/stat-time.m4: Likewise.
86291         * m4/stdbool.m4: Likewise.
86292         * m4/stdint.m4: Likewise.
86293         * m4/stdint_h.m4: Likewise.
86294         * m4/stpcpy.m4: Likewise.
86295         * m4/stpncpy.m4: Likewise.
86296         * m4/strcase.m4: Likewise.
86297         * m4/strchrnul.m4: Likewise.
86298         * m4/strcspn.m4: Likewise.
86299         * m4/strdup.m4: Likewise.
86300         * m4/strftime.m4: Likewise.
86301         * m4/strndup.m4: Likewise.
86302         * m4/strnlen.m4: Likewise.
86303         * m4/strpbrk.m4: Likewise.
86304         * m4/strptime.m4: Likewise.
86305         * m4/strsep.m4: Likewise.
86306         * m4/strtod.m4: Likewise.
86307         * m4/strtoimax.m4: Likewise.
86308         * m4/strtok_r.m4: Likewise.
86309         * m4/strtol.m4: Likewise.
86310         * m4/strtoll.m4: Likewise.
86311         * m4/strtoul.m4: Likewise.
86312         * m4/strtoull.m4: Likewise.
86313         * m4/strtoumax.m4: Likewise.
86314         * m4/strverscmp.m4: Likewise.
86315         * m4/threadlib.m4: Likewise.
86316         * m4/timegm.m4: Likewise.
86317         * m4/tm_gmtoff.m4: Likewise.
86318         * m4/tmpdir.m4: Likewise.
86319         * m4/tmpfile.m4: Likewise.
86320         * m4/tzset.m4: Likewise.
86321         * m4/uintmax_t.m4: Likewise.
86322         * m4/unlinkdir.m4: Likewise.
86323         * m4/unlocked-io.m4: Likewise.
86324         * m4/uptime.m4: Likewise.
86325         * m4/userspec.m4: Likewise.
86326         * m4/utimbuf.m4: Likewise.
86327         * m4/utime.m4: Likewise.
86328         * m4/utimes-null.m4: Likewise.
86329         * m4/utimes.m4: Likewise.
86330         * m4/vararrays.m4: Likewise.
86331         * m4/vasnprintf.m4: Likewise.
86332         * m4/vfprintf-posix.m4: Likewise.
86333         * m4/vprintf-posix.m4: Likewise.
86334         * m4/wait-process.m4: Likewise.
86335         * m4/wchar_t.m4: Likewise.
86336         * m4/wint_t.m4: Likewise.
86337         * m4/write-any-file.m4: Likewise.
86338         * m4/yield.m4: Likewise.
86340 2009-01-13  Bruno Haible  <bruno@clisp.org>
86342         Avoid test-copy-file.sh failures when ACL support insufficient.
86343         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86344         TESTS_ENVIRONMENT.
86345         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86346         Reported by Jim Meyering.
86348 2009-01-13  Bruno Haible  <bruno@clisp.org>
86350         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86351         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86352         * modules/unistdio/u8-printf-parse (Files): Likewise.
86353         * modules/unistdio/u32-printf-parse (Files): Likewise.
86354         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86356 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86358         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86359         and m4/inttypes_h.m4 too.
86361 2009-01-12  Eric Blake  <ebb9@byu.net>
86363         tests: IRIX 6.2 cc can't compile -0.0 into .data
86364         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86365         rather than at compile-time.
86366         * tests/test-floorl.c (minus_zero): Likewise.
86367         * tests/test-frexpl.c (minus_zero): Likewise.
86368         * tests/test-isnan.c (minus_zerol): Likewise.
86369         * tests/test-isnanl.h (minus_zero): Likewise.
86370         * tests/test-ldexpl.c (minus_zero): Likewise.
86371         * tests/test-roundl.c (minus_zero): Likewise.
86372         * tests/test-signbit.c (minus_zerol): Likewise.
86373         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86374         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86375         * tests/test-truncl.c (minus_zero): Likewise.
86376         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86377         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86378         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86380 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86382         regex: fix glibc bug 9697
86383         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
86384         handling.
86386 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86388         regex: fix glibc bug 697
86389         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
86390         being NULL also if there are no backreferences.
86392 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86394         regex: merge glibc changes
86395         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
86396         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
86397         re_string_skip_chars, re_string_reconstruct): Likewise.
86398         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
86400 2009-01-07  Jim Meyering  <meyering@redhat.com>
86402         poll: filter through cppi
86403         * lib/poll.c: Indent cpp directives to reflect nesting.
86405 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
86407         poll: don't return uninitialized
86408         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
86410 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
86412         avoid compile failure on AIX 6.1
86413         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
86414         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
86416 2009-01-04  Jim Meyering  <meyering@redhat.com>
86418         remove duplicate inclusion of <stdio.h>
86419         * tests/test-fprintf-posix.c: Likewise.
86420         * tests/test-printf-posix.c: Likewise.
86421         * tests/test-snprintf-posix.c: Likewise.
86422         * tests/test-sprintf-posix.c: Likewise.
86423         * tests/test-vasprintf-posix.c: Likewise.
86424         * tests/test-vfprintf-posix.c: Likewise.
86425         * tests/test-vprintf-posix.c: Likewise.
86426         * tests/test-vsnprintf-posix.c: Likewise.
86427         * tests/test-vsprintf-posix.c: Likewise.
86429 2009-01-03  Jim Meyering  <meyering@redhat.com>
86431         gnulib-tool: fix sed-based filtering
86432         * gnulib-tool (func_filter_filelist): Remove extra backslash
86433         in sed_fff_filter definition.
86435 2009-01-02  Jim Meyering  <meyering@redhat.com>
86437         strftime: avoid compilation failure on Solaris 2.6
86438         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
86439         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
86440         Don't #define mbrlen or mbsinit, since now they're guaranteed to
86441         be available.  Reported by Tom G. Christensen.  Details in
86442         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
86444 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86445             Bruno Haible  <bruno@clisp.org>
86447         Speed up gnulib-tool by doing more string processing through shell
86448         built-ins.
86449         * gnulib-tool (fast_func_append): New variable.
86450         (func_remove_prefix, func_remove_suffix): New functions.
86451         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
86452         (func_filter_filelist): New function.
86453         (func_get_dependencies): Use func_remove_suffix instead of sed.
86454         (func_get_automake_snippet): Use func_filter_filelist instead of a
86455         subshell and sed invocation.
86457 2009-01-01  Bruno Haible  <bruno@clisp.org>
86459         Fix a security bug.
86460         * gnulib-tool (func_import, import, update): Don't allow the characters
86461         '"', '$', '`', '\' in macro arguments that become part of commands that
86462         are evaluated.
86464 2009-01-01  Bruno Haible  <bruno@clisp.org>
86466         * gnulib-tool (func_reset_sigpipe): Add more comments.
86468 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86470         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
86471         func_emit_tests_Makefile_am, func_import): Abort loops early if we
86472         already know the answer.
86474 2009-01-01  Jim Meyering  <meyering@redhat.com>
86476         * lib/version-etc.c (version_etc_va): Update copyright year.
86478 2008-12-30  Bruno Haible  <bruno@clisp.org>
86480         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
86481         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
86482         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
86484 2008-12-29  Eric Blake  <ebb9@byu.net>
86486         multiarch: avoid autoconf AC_REQUIRE bug
86487         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
86488         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
86489         2.63 and older.
86490         Reported by Bruno Haible, and analyzed in
86491         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
86493 2008-12-29  Bruno Haible  <bruno@clisp.org>
86495         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
86496         files in subdirectories correctly.
86497         Reported by Ralf Wildenhues.
86499 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86501         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
86502         rather than 'join FILE -', for Solaris join.
86504 2008-12-29  Bruno Haible  <bruno@clisp.org>
86506         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
86507         quoting.
86508         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86509         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
86510         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
86511         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
86512         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
86513         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
86514         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
86515         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
86516         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
86517         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
86518         * m4/nls.m4 (AM_NLS): Likewise.
86519         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
86520         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
86521         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86522         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
86523         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
86524         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
86525         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
86526         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
86527         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
86528         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86529         * m4/xsize.m4 (gl_XSIZE): Likewise.
86530         Suggested by Jim Meyering.
86532 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86534         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
86535         * lib/parse-duration.c: use a switch instead of cascading if's.
86537 2008-12-29  Eric Blake  <ebb9@byu.net>
86539         wchar.h: supply WEOF on Irix 5.3
86540         * lib/wchar.in.h (wint_t): Also supply WEOF.
86541         * lib/wctype.in.h (wint_t): Likewise.
86542         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
86543         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
86544         Reported by Tom G. Christensen.
86546 2008-12-26  Bruno Haible  <bruno@clisp.org>
86548         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
86549         i486, i586, i686.
86551 2008-12-26  Bruno Haible  <bruno@clisp.org>
86553         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
86555 2008-12-26  Bruno Haible  <bruno@clisp.org>
86557         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
86558         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
86559         not __STDC_CONSTANT_MACROS.
86560         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86562 2008-12-25  Bruno Haible  <bruno@clisp.org>
86564         Add support for universal builds to vasnprintf.
86565         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
86566         universal builds, guess no.
86567         * modules/vasnprintf-posix (Depends-on): Add multiarch.
86568         * modules/vasprintf-posix (Depends-on): Likewise.
86569         * modules/fprintf-posix (Depends-on): Likewise.
86570         * modules/vfprintf-posix (Depends-on): Likewise.
86571         * modules/snprintf-posix (Depends-on): Likewise.
86572         * modules/vsnprintf-posix (Depends-on): Likewise.
86573         * modules/sprintf-posix (Depends-on): Likewise.
86574         * modules/vsprintf-posix (Depends-on): Likewise.
86575         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86576         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86577         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86578         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86579         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86580         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86581         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86583         Add support for universal builds to <inttypes.h>.
86584         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
86585         _SCNu64_PREFIX): In Apple
86586         universal builds, define directly, using _LP64.
86587         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
86588         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
86589         * modules/inttypes (Depends-on): Add multiarch.
86590         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86592         Add support for universal builds to <stdint.h>.
86593         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
86594         universal builds, define directly, using _LP64.
86595         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
86596         Apple universal builds, don't test for the size and suffix of ptrdiff_t
86597         and size_t.
86598         * modules/stdint (Depends-on): Add multiarch.
86599         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86601         New module 'multiarch'.
86602         * modules/multiarch: New file.
86603         * m4/multiarch.m4: New file.
86605 2008-12-25  Bruno Haible  <bruno@clisp.org>
86607         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
86609 2008-12-25  Bruno Haible  <bruno@clisp.org>
86611         * modules/btowc (License): Relicense under LGPLv2+.
86612         * modules/mbsinit (License): Likewise.
86613         * modules/mbrtowc (License): Likewise.
86614         * modules/wcrtomb (License): Likewise.
86615         * modules/streq (License): Likewise.
86616         Reported by David Lutterkort <lutter@redhat.com>.
86618 2008-12-23  Bruno Haible  <bruno@clisp.org>
86620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
86622 2008-12-23  Bruno Haible  <bruno@clisp.org>
86624         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
86625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
86626         GETADDRINFO_LIB, not in LIBS.
86627         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
86628         * modules/canon-host (Link): Likewise.
86629         * NEWS: Mention the change.
86630         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
86631         GETADDRINFO_LIB.
86633 2008-12-22  Bruno Haible  <bruno@clisp.org>
86635         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
86636         * doc/posix-functions/iswalpha_l.texi: Likewise.
86637         * doc/posix-functions/iswblank_l.texi: Likewise.
86638         * doc/posix-functions/iswcntrl_l.texi: Likewise.
86639         * doc/posix-functions/iswctype_l.texi: Likewise.
86640         * doc/posix-functions/iswdigit_l.texi: Likewise.
86641         * doc/posix-functions/iswgraph_l.texi: Likewise.
86642         * doc/posix-functions/iswlower_l.texi: Likewise.
86643         * doc/posix-functions/iswprint_l.texi: Likewise.
86644         * doc/posix-functions/iswpunct_l.texi: Likewise.
86645         * doc/posix-functions/iswspace_l.texi: Likewise.
86646         * doc/posix-functions/iswupper_l.texi: Likewise.
86647         * doc/posix-functions/iswxdigit_l.texi: Likewise.
86648         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
86649         * doc/posix-functions/open_wmemstream.texi: Likewise.
86650         * doc/posix-functions/swscanf.texi: Likewise.
86651         * doc/posix-functions/towctrans_l.texi: Likewise.
86652         * doc/posix-functions/towlower.texi: Likewise.
86653         * doc/posix-functions/towlower_l.texi: Likewise.
86654         * doc/posix-functions/towupper.texi: Likewise.
86655         * doc/posix-functions/towupper_l.texi: Likewise.
86656         * doc/posix-functions/vfwprintf.texi: Likewise.
86657         * doc/posix-functions/vfwscanf.texi: Likewise.
86658         * doc/posix-functions/vswscanf.texi: Likewise.
86659         * doc/posix-functions/vwprintf.texi: Likewise.
86660         * doc/posix-functions/vwscanf.texi: Likewise.
86661         * doc/posix-functions/wcpcpy.texi: Likewise.
86662         * doc/posix-functions/wcpncpy.texi: Likewise.
86663         * doc/posix-functions/wcscasecmp.texi: Likewise.
86664         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
86665         * doc/posix-functions/wcscoll_l.texi: Likewise.
86666         * doc/posix-functions/wcsdup.texi: Likewise.
86667         * doc/posix-functions/wcsncasecmp.texi: Likewise.
86668         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
86669         * doc/posix-functions/wcsnlen.texi: Likewise.
86670         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86671         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
86672         * doc/posix-functions/wctrans_l.texi: Likewise.
86673         * doc/posix-functions/wctype_l.texi: Likewise.
86674         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
86675         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
86676         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
86677         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
86678         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
86679         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
86680         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
86681         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
86682         * doc/glibc-functions/wcschrnul.texi: Likewise.
86683         * doc/glibc-functions/wcsftime_l.texi: Likewise.
86684         * doc/glibc-functions/wcstod_l.texi: Likewise.
86685         * doc/glibc-functions/wcstof_l.texi: Likewise.
86686         * doc/glibc-functions/wcstol_l.texi: Likewise.
86687         * doc/glibc-functions/wcstold_l.texi: Likewise.
86688         * doc/glibc-functions/wcstoll_l.texi: Likewise.
86689         * doc/glibc-functions/wcstoq.texi: Likewise.
86690         * doc/glibc-functions/wcstoul_l.texi: Likewise.
86691         * doc/glibc-functions/wcstoull_l.texi: Likewise.
86692         * doc/glibc-functions/wcstouq.texi: Likewise.
86693         * doc/glibc-functions/wmempcpy.texi: Likewise.
86695 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
86696             Eric Blake  <ebb9@byu.net>
86697             Paolo Bonzini  <bonzini@gnu.org>
86698             Bruno Haible  <bruno@clisp.org>
86700         Make c-stack work on Haiku.
86701         * lib/c-stack.c (SA_ONSTACK): Define fallback.
86702         (c_stack_action): Use SA_ONSTACK flag.
86704 2008-12-22  Bruno Haible  <bruno@clisp.org>
86706         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
86708 2008-12-22  Bruno Haible  <bruno@clisp.org>
86710         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
86711         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
86712         being overridden.
86713         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
86714         New macros.
86715         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
86716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
86717         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
86718         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
86720 2008-12-22  Bruno Haible  <bruno@clisp.org>
86722         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
86723         from test code.
86725 2008-12-22  Eric Blake  <ebb9@byu.net>
86727         Avoid gcc warnings on cygwin.
86728         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
86729         Avoid unused variable.
86730         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
86731         Likewise.
86733 2008-12-22  Bruno Haible  <bruno@clisp.org>
86735         Remove HAVE_MBRTOWC conditionals.
86736         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
86737         (mbscasecmp): Assume mbrtowc function.
86738         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
86739         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
86740         * lib/mbschr.c: Include mbuiter.h unconditionally.
86741         (mbschr): Assume mbrtowc function.
86742         * lib/mbscspn.c: Include mbuiter.h unconditionally.
86743         (mbscspn): Assume mbrtowc function.
86744         * lib/mbslen.c: Include mbuiter.h unconditionally.
86745         (mbslen): Assume mbrtowc function.
86746         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
86747         (mbsncasecmp): Assume mbrtowc function.
86748         * lib/mbsnlen.c: Include mbiter.h unconditionally.
86749         (mbsnlen): Assume mbrtowc function.
86750         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
86751         (mbspbrk): Assume mbrtowc function.
86752         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
86753         (mbspcasecmp): Assume mbrtowc function.
86754         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
86755         (mbsrchr): Assume mbrtowc function.
86756         * lib/mbssep.c: Include mbuiter.h unconditionally.
86757         (mbssep): Assume mbrtowc function.
86758         * lib/mbsspn.c: Include mbuiter.h unconditionally.
86759         (mbsspn): Assume mbrtowc function.
86760         * lib/mbsstr.c: Include mbuiter.h unconditionally.
86761         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
86762         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
86763         (mbstok_r): Assume mbrtowc function.
86764         * lib/propername.c: Include mbuiter.h unconditionally.
86765         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
86766         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
86767         (trim2): Assume mbrtowc function.
86768         * lib/mbswidth.c (mbsinit): Remove fallback definition.
86769         (mbsnwidth): Assume mbrtowc function.
86770         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
86771         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
86772         fallback definitions.
86773         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
86775 2008-12-22  Bruno Haible  <bruno@clisp.org>
86777         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
86779 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
86781         * modules/regex: Request emulations for the mb*/wc* functions we need.
86782         * m4/regex.m4: Don't look for those functions here.
86783         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
86785 2008-12-22  Bruno Haible  <bruno@clisp.org>
86787         * modules/fnmatch (Depends-on): Remove duplicated dependency.
86789 2008-12-21  Bruno Haible  <bruno@clisp.org>
86791         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
86792         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
86793         (Include): Remove conditionalization.
86794         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
86795         (Include): Remove conditionalization.
86796         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
86797         (Include): Remove conditionalization.
86798         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
86799         * m4/mbfile.m4 (gl_MBFILE): Likewise.
86800         * NEWS: Mention the change.
86801         Reported by Alan Hourihane <alanh@fairlite.co.uk>
86802         via Sergey Poznyakoff <gray@gnu.org.ua>.
86804 2008-12-21  Bruno Haible  <bruno@clisp.org>
86806         * MODULES.html.sh (Extended multibyte and wide character utilities
86807         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
86808         wcrtomb, wcsrtombs.
86809         (Support for systems lacking POSIX:2008): Add accept, bind, close,
86810         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
86811         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
86812         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
86814 2008-12-21  Bruno Haible  <bruno@clisp.org>
86816         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
86818 2008-12-21  Bruno Haible  <bruno@clisp.org>
86820         * modules/wcsnrtombs-tests: New file.
86821         * tests/test-wcsnrtombs1.sh: New file.
86822         * tests/test-wcsnrtombs2.sh: New file.
86823         * tests/test-wcsnrtombs3.sh: New file.
86824         * tests/test-wcsnrtombs4.sh: New file.
86825         * tests/test-wcsnrtombs.c: New file.
86827         New module 'wcsnrtombs'.
86828         * lib/wchar.in.h (wcsnrtombs): New declaration.
86829         * lib/wcsnrtombs.c: New file.
86830         * lib/wcsrtombs-state.c: New file.
86831         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
86832         (internal_state): Remove variable.
86833         * m4/wcsnrtombs.m4: New file.
86834         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
86835         compilation units.
86836         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
86837         HAVE_WCSNRTOMBS.
86838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
86839         HAVE_WCSNRTOMBS.
86840         * modules/wcsnrtombs: New file.
86841         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
86842         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
86844 2008-12-21  Bruno Haible  <bruno@clisp.org>
86846         * modules/wcsrtombs-tests: New file.
86847         * tests/test-wcsrtombs1.sh: New file.
86848         * tests/test-wcsrtombs2.sh: New file.
86849         * tests/test-wcsrtombs3.sh: New file.
86850         * tests/test-wcsrtombs4.sh: New file.
86851         * tests/test-wcsrtombs.c: New file.
86853         New module 'wcsrtombs'.
86854         * lib/wchar.in.h (wcsrtombs): New declaration.
86855         * lib/wcsrtombs.c: New file.
86856         * m4/wcsrtombs.m4: New file.
86857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
86858         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
86860         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86861         * modules/wcsrtombs: New file.
86862         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
86863         bugs.
86865 2008-12-21  Bruno Haible  <bruno@clisp.org>
86867         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
86868         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
86869         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
86870         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
86871         if not correct.
86872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
86873         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
86874         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86875         m4/locale-zh.m4, m4/codeset.m4.
86876         * doc/posix-functions/wcrtomb.texi: Document the bug.
86878 2008-12-21  Bruno Haible  <bruno@clisp.org>
86880         Work around a btowc() bug on IRIX 6.5.
86881         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
86882         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
86883         REPLACE_WTOBC if not.
86884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
86885         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
86886         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
86888 2008-12-21  Bruno Haible  <bruno@clisp.org>
86890         * modules/wcrtomb-tests: New file.
86891         * tests/test-wcrtomb.sh: New file.
86892         * tests/test-wcrtomb.c: New file.
86894         New module 'wcrtomb'.
86895         * lib/wchar.in.h (wcrtomb): New declaration.
86896         * lib/wcrtomb.c: New file.
86897         * m4/wcrtomb.m4: New file.
86898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
86899         HAVE_WCRTOMB.
86900         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
86901         HAVE_WCRTOMB.
86902         * modules/wcrtomb: New file.
86903         * doc/posix-functions/wcrtomb.texi: Mention the new module.
86905 2008-12-21  Bruno Haible  <bruno@clisp.org>
86907         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
86908         * modules/mbsrtowcs (Files): Likewise.
86909         * modules/wctob (Files): Likewise.
86910         * modules/c-strcase-tests (Files): Likewise.
86911         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
86912         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
86913         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
86914         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
86915         * modules/vasnprintf-posix-tests (Files): Likewise.
86917 2008-12-21  William Pursell  <bill.pursell@gmail.com>
86919         gitlog-to-changelog: pass all command-line arguments to git-log
86920         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
86921         it is sometimes convenient to filter the commits in various ways.
86922         gitlog-to-changelog only allows --since to specify a start date,
86923         but git-log itself supports many other filtering mechanisms.
86924         At the moment, I want to filter by branch name.  Rather than
86925         adding a --branch option to gitlog-to-changelog, it seems more
86926         flexible to simply pass all options directly to git-log and let
86927         git do the work.  Notice that this effectively makes --since a
86928         redundant option for gitlog-to-changelog, but removing it would
86929         require current usage to change since calls would then require
86930         an additional '--'.
86932 2008-12-21  Bruno Haible  <bruno@clisp.org>
86934         * modules/mbsnrtowcs-tests: New file.
86935         * tests/test-mbsnrtowcs1.sh: New file.
86936         * tests/test-mbsnrtowcs2.sh: New file.
86937         * tests/test-mbsnrtowcs3.sh: New file.
86938         * tests/test-mbsnrtowcs4.sh: New file.
86939         * tests/test-mbsnrtowcs.c: New file.
86941         New module 'mbsnrtowcs'.
86942         * lib/wchar.in.h (mbsnrtowcs): New declaration.
86943         * lib/mbsnrtowcs.c: New file.
86944         * lib/mbsrtowcs-state.c: New file.
86945         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
86946         (internal_state): Remove variable.
86947         * m4/mbsnrtowcs.m4: New file.
86948         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
86949         compilation units.
86950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
86951         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
86952         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
86953         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
86954         * modules/mbsnrtowcs: New file.
86955         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
86956         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
86957         portability problem.
86959 2008-12-21  Bruno Haible  <bruno@clisp.org>
86961         Work around mbsrtowcs bug.
86962         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
86963         (gl_FUNC_MBSRTOWCS): Invoke it.
86964         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
86965         m4/locale-zh.m4.
86966         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
86968 2008-12-21  Bruno Haible  <bruno@clisp.org>
86970         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
86972 2008-12-21  Bruno Haible  <bruno@clisp.org>
86974         Update doc for AIX.
86975         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
86976         16-bit wchar_t type.
86977         * doc/posix-functions/btowc.texi: Likewise.
86978         * doc/posix-functions/fgetwc.texi: Likewise.
86979         * doc/posix-functions/fgetws.texi: Likewise.
86980         * doc/posix-functions/fputwc.texi: Likewise.
86981         * doc/posix-functions/fputws.texi: Likewise.
86982         * doc/posix-functions/fwide.texi: Likewise.
86983         * doc/posix-functions/fwprintf.texi: Likewise.
86984         * doc/posix-functions/fwscanf.texi: Likewise.
86985         * doc/posix-functions/getwchar.texi: Likewise.
86986         * doc/posix-functions/getwc.texi: Likewise.
86987         * doc/posix-functions/iswalnum.texi: Likewise.
86988         * doc/posix-functions/iswalpha.texi: Likewise.
86989         * doc/posix-functions/iswblank.texi: Likewise.
86990         * doc/posix-functions/iswcntrl.texi: Likewise.
86991         * doc/posix-functions/iswctype.texi: Likewise.
86992         * doc/posix-functions/iswdigit.texi: Likewise.
86993         * doc/posix-functions/iswgraph.texi: Likewise.
86994         * doc/posix-functions/iswlower.texi: Likewise.
86995         * doc/posix-functions/iswprint.texi: Likewise.
86996         * doc/posix-functions/iswpunct.texi: Likewise.
86997         * doc/posix-functions/iswspace.texi: Likewise.
86998         * doc/posix-functions/iswupper.texi: Likewise.
86999         * doc/posix-functions/iswxdigit.texi: Likewise.
87000         * doc/posix-functions/mbrtowc.texi: Likewise.
87001         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87002         * doc/posix-functions/mbstowcs.texi: Likewise.
87003         * doc/posix-functions/mbtowc.texi: Likewise.
87004         * doc/posix-functions/putwchar.texi: Likewise.
87005         * doc/posix-functions/putwc.texi: Likewise.
87006         * doc/posix-functions/swprintf.texi: Likewise.
87007         * doc/posix-functions/tolower.texi: Likewise.
87008         * doc/posix-functions/toupper.texi: Likewise.
87009         * doc/posix-functions/towctrans.texi: Likewise.
87010         * doc/posix-functions/ungetwc.texi: Likewise.
87011         * doc/posix-functions/vswprintf.texi: Likewise.
87012         * doc/posix-functions/wcrtomb.texi: Likewise.
87013         * doc/posix-functions/wcscat.texi: Likewise.
87014         * doc/posix-functions/wcschr.texi: Likewise.
87015         * doc/posix-functions/wcscmp.texi: Likewise.
87016         * doc/posix-functions/wcscoll.texi: Likewise.
87017         * doc/posix-functions/wcscpy.texi: Likewise.
87018         * doc/posix-functions/wcscspn.texi: Likewise.
87019         * doc/posix-functions/wcsftime.texi: Likewise.
87020         * doc/posix-functions/wcslen.texi: Likewise.
87021         * doc/posix-functions/wcsncat.texi: Likewise.
87022         * doc/posix-functions/wcsncmp.texi: Likewise.
87023         * doc/posix-functions/wcsncpy.texi: Likewise.
87024         * doc/posix-functions/wcspbrk.texi: Likewise.
87025         * doc/posix-functions/wcsrchr.texi: Likewise.
87026         * doc/posix-functions/wcsrtombs.texi: Likewise.
87027         * doc/posix-functions/wcsspn.texi: Likewise.
87028         * doc/posix-functions/wcsstr.texi: Likewise.
87029         * doc/posix-functions/wcstod.texi: Likewise.
87030         * doc/posix-functions/wcstof.texi: Likewise.
87031         * doc/posix-functions/wcstoimax.texi: Likewise.
87032         * doc/posix-functions/wcstok.texi: Likewise.
87033         * doc/posix-functions/wcstold.texi: Likewise.
87034         * doc/posix-functions/wcstoll.texi: Likewise.
87035         * doc/posix-functions/wcstol.texi: Likewise.
87036         * doc/posix-functions/wcstombs.texi: Likewise.
87037         * doc/posix-functions/wcstoull.texi: Likewise.
87038         * doc/posix-functions/wcstoul.texi: Likewise.
87039         * doc/posix-functions/wcstoumax.texi: Likewise.
87040         * doc/posix-functions/wcswidth.texi: Likewise.
87041         * doc/posix-functions/wcsxfrm.texi: Likewise.
87042         * doc/posix-functions/wctob.texi: Likewise.
87043         * doc/posix-functions/wctomb.texi: Likewise.
87044         * doc/posix-functions/wctrans.texi: Likewise.
87045         * doc/posix-functions/wctype.texi: Likewise.
87046         * doc/posix-functions/wcwidth.texi: Likewise.
87047         * doc/posix-functions/wmemchr.texi: Likewise.
87048         * doc/posix-functions/wmemcmp.texi: Likewise.
87049         * doc/posix-functions/wmemcpy.texi: Likewise.
87050         * doc/posix-functions/wmemmove.texi: Likewise.
87051         * doc/posix-functions/wmemset.texi: Likewise.
87052         * doc/posix-functions/wprintf.texi: Likewise.
87053         * doc/posix-functions/wscanf.texi: Likewise.
87055 2008-12-21  Bruno Haible  <bruno@clisp.org>
87057         Update doc for HP-UX 11.11.
87058         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87059         in HP-UX version 11.00, not in all versions of HP-UX 11.
87060         * doc/posix-functions/fwide.texi: Likewise.
87061         * doc/posix-functions/fwprintf.texi: Likewise.
87062         * doc/posix-functions/fwscanf.texi: Likewise.
87063         * doc/posix-functions/inet_ntop.texi: Likewise.
87064         * doc/posix-functions/inet_pton.texi: Likewise.
87065         * doc/posix-functions/mbrlen.texi: Likewise.
87066         * doc/posix-functions/mbrtowc.texi: Likewise.
87067         * doc/posix-functions/mbsinit.texi: Likewise.
87068         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87069         * doc/posix-functions/swprintf.texi: Likewise.
87070         * doc/posix-functions/swscanf.texi: Likewise.
87071         * doc/posix-functions/towctrans.texi: Likewise.
87072         * doc/posix-functions/vfwprintf.texi: Likewise.
87073         * doc/posix-functions/vswprintf.texi: Likewise.
87074         * doc/posix-functions/vwprintf.texi: Likewise.
87075         * doc/posix-functions/wcrtomb.texi: Likewise.
87076         * doc/posix-functions/wcsrtombs.texi: Likewise.
87077         * doc/posix-functions/wcsstr.texi: Likewise.
87078         * doc/posix-functions/wctob.texi: Likewise.
87079         * doc/posix-functions/wctrans.texi: Likewise.
87080         * doc/posix-functions/wmemchr.texi: Likewise.
87081         * doc/posix-functions/wmemcmp.texi: Likewise.
87082         * doc/posix-functions/wmemcpy.texi: Likewise.
87083         * doc/posix-functions/wmemmove.texi: Likewise.
87084         * doc/posix-functions/wmemset.texi: Likewise.
87085         * doc/posix-functions/wprintf.texi: Likewise.
87086         * doc/posix-functions/wscanf.texi: Likewise.
87088 2008-12-21  Bruno Haible  <bruno@clisp.org>
87090         Work around a portability problem.
87091         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87092         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87094 2008-12-20  Bruno Haible  <bruno@clisp.org>
87096         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87097         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87098         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87100         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87102         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87103         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87104         set.
87105         (GNULIB_defined_mbstate_t): New macro.
87106         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87107         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87108         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87109         reuses the system's mbrtowc function but works around the bugs.
87110         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87111         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87112         macros.
87113         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87114         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87115         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87116         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87117         REPLACE_MBSINIT if mbsinit needs to be overridden.
87118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87119         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87120         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87121         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87122         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87123         m4/locale-zh.m4.
87124         (Depends): Add mbsinit.
87125         * modules/mbsinit (Depends): Add mbrtowc.
87126         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87128 2008-12-20  Bruno Haible  <bruno@clisp.org>
87130         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87131         so that there are no conversion errors on AIX.
87132         * tests/test-mbsrtowcs.c (main): LIkewise.
87134 2008-12-20  Bruno Haible  <bruno@clisp.org>
87136         Work around wctob bug on Solaris <= 9.
87137         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87138         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87140         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87141         * modules/wctob (Files): Add m4/locale-fr.m4.
87142         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87144 2008-12-20  Bruno Haible  <bruno@clisp.org>
87146         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87147         /dev/null.
87148         * tests/test-select-in.sh: Likewise.
87149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87151 2008-12-20  Bruno Haible  <bruno@clisp.org>
87153         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87154         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87155         Cygwin 1.5.x.
87157 2008-12-20  Bruno Haible  <bruno@clisp.org>
87159         Ensure mbstate_t is defined on HP-UX 11.11.
87160         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87161         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87162         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87163         AC_USE_SYSTEM_EXTENSIONS.
87164         * modules/fnmatch (Depends-on): Add extensions.
87165         * modules/mbrlen (Depends-on): Likewise.
87166         * modules/mbrtowc (Depends-on): Likewise.
87167         * modules/mbsinit (Depends-on): Likewise.
87168         * modules/mbsrtowcs (Depends-on): Likewise.
87169         * modules/mbswidth (Depends-on): Likewise.
87170         * modules/quotearg (Depends-on): Likewise.
87171         * modules/strftime (Depends-on): Likewise.
87173 2008-12-20  Bruno Haible  <bruno@clisp.org>
87175         Ensure wctob is declared on IRIX 6.5.
87176         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87177         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87178         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87179         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87180         of HAVE_WCTOB.
87181         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87182         HAVE_WCTOB.
87183         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87185 2008-12-19  Bruno Haible  <bruno@clisp.org>
87187         * modules/mbsrtowcs-tests: New file.
87188         * tests/test-mbsrtowcs1.sh: New file.
87189         * tests/test-mbsrtowcs2.sh: New file.
87190         * tests/test-mbsrtowcs3.sh: New file.
87191         * tests/test-mbsrtowcs4.sh: New file.
87192         * tests/test-mbsrtowcs.c: New file.
87194         New module 'mbsrtowcs'.
87195         * lib/wchar.in.h (mbsrtowcs): New declaration.
87196         * lib/mbsrtowcs.c: New file.
87197         * m4/mbsrtowcs.m4: New file.
87198         * modules/mbsrtowcs: New file.
87199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87200         HAVE_MBSRTOWCS.
87201         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87202         HAVE_MBSRTOWCS.
87203         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87205 2008-12-19  Bruno Haible  <bruno@clisp.org>
87207         New module 'mbrlen'.
87208         * lib/wchar.in.h (mbrlen): New declaration.
87209         * lib/mbrlen.c: New file.
87210         * m4/mbrlen.m4: New file.
87211         * modules/mbrlen: New file.
87212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
87213         HAVE_MBRLEN.
87214         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
87215         HAVE_MBRLEN.
87216         * doc/posix-functions/mbrlen.texi: Document the new module.
87218 2008-12-19  Bruno Haible  <bruno@clisp.org>
87220         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
87221         * modules/mbrtowc (Depends-on): Add verify.
87222         Suggested by Paul Eggert.
87224 2008-12-18  Bruno Haible  <bruno@clisp.org>
87226         * modules/mbsinit-tests: New file.
87227         * tests/test-mbsinit.sh: New file.
87228         * tests/test-mbsinit.c: New file.
87230 2008-12-18  Bruno Haible  <bruno@clisp.org>
87232         * modules/mbrtowc-tests: New file.
87233         * tests/test-mbrtowc1.sh: New file.
87234         * tests/test-mbrtowc2.sh: New file.
87235         * tests/test-mbrtowc3.sh: New file.
87236         * tests/test-mbrtowc4.sh: New file.
87237         * tests/test-mbrtowc.c: New file.
87239         New module 'mbrtowc'.
87240         * lib/wchar.in.h (mbstate_t): Override when the system does not have
87241         mbsinit and mbrtowc.
87242         (mbrtowc): New declaration.
87243         * lib/mbrtowc.c: New file.
87244         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
87245         * modules/mbrtowc: New file.
87246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
87247         HAVE_MBRTOWC.
87248         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87249         HAVE_MBRTOWC.
87250         * doc/posix-functions/mbrtowc.texi: Document the new module.
87252 2008-12-18  Bruno Haible  <bruno@clisp.org>
87254         New module 'wctob'.
87255         * lib/wchar.in.h (wctob): New declaration.
87256         * lib/wctob.c: New file.
87257         * m4/wctob.m4: New file.
87258         * modules/wctob: New file.
87259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87260         HAVE_WCTOB.
87261         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87262         * doc/posix-functions/wctob.texi: Document the new module.
87264 2008-12-18  Bruno Haible  <bruno@clisp.org>
87266         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87267         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87269 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87271         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87272         G. Christensen" <tgc@jupiterrise.com>.
87274         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87275         G. Christensen" <tgc@jupiterrise.com>.
87277         * lib/flock.c: Need to include string.h.  Reported by "Tom
87278         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87279         <ebb9@byu.net>.
87281 2008-12-18  Bruno Haible  <bruno@clisp.org>
87283         * m4/locale-ja.m4: New file, from GNU gettext.
87285 2008-12-17  Bruno Haible  <bruno@clisp.org>
87287         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87288         Suggested by Eric Blake.
87290 2008-12-17  Bruno Haible  <bruno@clisp.org>
87292         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87294 2008-12-17  Bruno Haible  <bruno@clisp.org>
87296         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87297         * modules/mbsinit (Depends-on): Add verify.
87298         Suggested by Paul Eggert.
87300 2008-12-17  Bruno Haible  <bruno@clisp.org>
87302         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87303         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87304         gl_FUNC_MBRTOWC.
87305         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87306         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87307         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87308         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87309         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87310         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87311         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87312         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87313         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87314         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87315         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87316         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87317         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87318         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87319         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87320         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87321         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87322         * modules/trim (configure.ac): Likewise.
87324 2008-12-17  Bruno Haible  <bruno@clisp.org>
87326         * modules/btowc-tests: New file.
87327         * tests/test-btowc1.sh: New file.
87328         * tests/test-btowc2.sh: New file.
87329         * tests/test-btowc.c: New file.
87331         New module 'btowc'.
87332         * lib/wchar.in.h (btowc): New declaration.
87333         * lib/btowc.c: New file.
87334         * m4/btowc.m4: New file.
87335         * modules/btowc: New file.
87336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87337         HAVE_BTOWC.
87338         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87339         * doc/posix-functions/btowc.texi: Document the new module.
87341 2008-12-17  Bruno Haible  <bruno@clisp.org>
87343         New module 'mbsinit'.
87344         * lib/wchar.in.h (mbsinit): New declaration.
87345         * lib/mbsinit.c: New file.
87346         * m4/mbsinit.m4: New file.
87347         * modules/mbsinit: New file.
87348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87349         HAVE_MBSINIT.
87350         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87351         HAVE_MBSINIT.
87352         * doc/posix-functions/mbsinit.texi: Document the new module.
87354 2008-12-16  Bruno Haible  <bruno@clisp.org>
87356         * lib/unistd.in.h: Add comment.
87357         * tests/test-environ.c: Don't include <stdlib.h>.
87359 2008-12-16  Bruno Haible  <bruno@clisp.org>
87361         * lib/parse-duration.h (parse_duration): Document return value
87362         convention.
87363         * lib/parse-duration.c: Include specification header first. Add
87364         comments.
87365         (_): Remove macro.
87366         (parse_year_month_day, parse_hour_minute_second): Move side effects
87367         outside of strchr call.
87368         (parse_non_iso8601): Move side effects outside of isspace call.
87369         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87370         call.
87372 2008-12-16  Bruno Haible  <bruno@clisp.org>
87374         * tests/test-parse-duration.sh: Produce no output when the test
87375         succeeds.
87377 2008-12-16  Bruno Haible  <bruno@clisp.org>
87379         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87380         expressions.
87382 2008-12-15  Bruno Haible  <bruno@clisp.org>
87384         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
87385         * doc/glibc-functions/flistxattr.texi: Likewise.
87386         * doc/glibc-functions/fopencookie.texi: Likewise.
87387         * doc/glibc-functions/fremovexattr.texi: Likewise.
87388         * doc/glibc-functions/fsetxattr.texi: Likewise.
87389         * doc/glibc-functions/getxattr.texi: Likewise.
87390         * doc/glibc-functions/lgetxattr.texi: Likewise.
87391         * doc/glibc-functions/listxattr.texi: Likewise.
87392         * doc/glibc-functions/llistxattr.texi: Likewise.
87393         * doc/glibc-functions/lremovexattr.texi: Likewise.
87394         * doc/glibc-functions/lsetxattr.texi: Likewise.
87395         * doc/glibc-functions/removexattr.texi: Likewise.
87396         * doc/glibc-functions/setxattr.texi: Likewise.
87397         * doc/posix-functions/open_memstream.texi: Likewise.
87399 2008-12-15  Eric Blake  <ebb9@byu.net>
87401         Update doc for cygwin 1.7.
87402         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
87403         functions.
87404         * doc/posix-functions/fchmodat.texi: Likewise.
87405         * doc/posix-functions/fchownat.texi: Likewise.
87406         * doc/posix-functions/fdopendir.texi: Likewise.
87407         * doc/posix-functions/fmemopen.texi: Likewise.
87408         * doc/posix-functions/freeaddrinfo.texi: Likewise.
87409         * doc/posix-functions/fstatat.texi: Likewise.
87410         * doc/posix-functions/futimens.texi: Likewise.
87411         * doc/posix-functions/gai_strerror.texi: Likewise.
87412         * doc/posix-functions/getaddrinfo.texi: Likewise.
87413         * doc/posix-functions/getnameinfo.texi: Likewise.
87414         * doc/posix-functions/if_freenameindex.texi: Likewise.
87415         * doc/posix-functions/if_indextoname.texi: Likewise.
87416         * doc/posix-functions/if_nameindex.texi: Likewise.
87417         * doc/posix-functions/if_nametoindex.texi: Likewise.
87418         * doc/posix-functions/insque.texi: Likewise.
87419         * doc/posix-functions/linkat.texi: Likewise.
87420         * doc/posix-functions/llrint.texi: Likewise.
87421         * doc/posix-functions/llrintf.texi: Likewise.
87422         * doc/posix-functions/llrintl.texi: Likewise.
87423         * doc/posix-functions/lockf.texi: Likewise.
87424         * doc/posix-functions/lrintl.texi: Likewise.
87425         * doc/posix-functions/mkdirat.texi: Likewise.
87426         * doc/posix-functions/mkfifoat.texi: Likewise.
87427         * doc/posix-functions/mknodat.texi: Likewise.
87428         * doc/posix-functions/mq_close.texi: Likewise.
87429         * doc/posix-functions/mq_getattr.texi: Likewise.
87430         * doc/posix-functions/mq_notify.texi: Likewise.
87431         * doc/posix-functions/mq_open.texi: Likewise.
87432         * doc/posix-functions/mq_receive.texi: Likewise.
87433         * doc/posix-functions/mq_send.texi: Likewise.
87434         * doc/posix-functions/mq_setattr.texi: Likewise.
87435         * doc/posix-functions/mq_timedreceive.texi: Likewise.
87436         * doc/posix-functions/mq_timedsend.texi: Likewise.
87437         * doc/posix-functions/mq_unlink.texi: Likewise.
87438         * doc/posix-functions/open_memstream.texi: Likewise.
87439         * doc/posix-functions/openat.texi: Likewise.
87440         * doc/posix-functions/posix_fadvise.texi: Likewise.
87441         * doc/posix-functions/posix_fallocate.texi: Likewise.
87442         * doc/posix-functions/posix_madvise.texi: Likewise.
87443         * doc/posix-functions/posix_memalign.texi: Likewise.
87444         * doc/posix-functions/posix_openpt.texi: Likewise.
87445         * doc/posix-functions/readlinkat.texi: Likewise.
87446         * doc/posix-functions/remque.texi: Likewise.
87447         * doc/posix-functions/renameat.texi: Likewise.
87448         * doc/posix-functions/rintl.texi: Likewise.
87449         * doc/posix-functions/sem_unlink.texi: Likewise.
87450         * doc/posix-functions/shm_open.texi: Likewise.
87451         * doc/posix-functions/shm_unlink.texi: Likewise.
87452         * doc/posix-functions/signgam.texi: Likewise.
87453         * doc/posix-functions/sigset.texi: Likewise.
87454         * doc/posix-functions/stpcpy.texi: Likewise.
87455         * doc/posix-functions/stpncpy.texi: Likewise.
87456         * doc/posix-functions/strerror.texi: Likewise.
87457         * doc/posix-functions/strtod.texi: Likewise.
87458         * doc/posix-functions/symlinkat.texi: Likewise.
87459         * doc/posix-functions/unlinkat.texi: Likewise.
87460         * doc/posix-functions/utimensat.texi: Likewise.
87461         * doc/glibc-functions/bindresvport.texi: Likewise.
87462         * doc/glibc-functions/dn_expand.texi: Likewise.
87463         * doc/glibc-functions/exp10.texi: Likewise.
87464         * doc/glibc-functions/exp10f.texi: Likewise.
87465         * doc/glibc-functions/fgetxattr.texi: Likewise.
87466         * doc/glibc-functions/flistxattr.texi: Likewise.
87467         * doc/glibc-functions/fopencookie.texi: Likewise.
87468         * doc/glibc-functions/freeifaddrs.texi: Likewise.
87469         * doc/glibc-functions/fremovexattr.texi: Likewise.
87470         * doc/glibc-functions/fsetxattr.texi: Likewise.
87471         * doc/glibc-functions/getifaddrs.texi: Likewise.
87472         * doc/glibc-functions/getxattr.texi: Likewise.
87473         * doc/glibc-functions/lgetxattr.texi: Likewise.
87474         * doc/glibc-functions/listxattr.texi: Likewise.
87475         * doc/glibc-functions/llistxattr.texi: Likewise.
87476         * doc/glibc-functions/lremovexattr.texi: Likewise.
87477         * doc/glibc-functions/lsetxattr.texi: Likewise.
87478         * doc/glibc-functions/pow10.texi: Likewise.
87479         * doc/glibc-functions/pow10f.texi: Likewise.
87480         * doc/glibc-functions/rcmd_af.texi: Likewise.
87481         * doc/glibc-functions/removexattr.texi: Likewise.
87482         * doc/glibc-functions/res_init.texi: Likewise.
87483         * doc/glibc-functions/res_mkquery.texi: Likewise.
87484         * doc/glibc-functions/res_query.texi: Likewise.
87485         * doc/glibc-functions/res_querydomain.texi: Likewise.
87486         * doc/glibc-functions/res_send.texi: Likewise.
87487         * doc/glibc-functions/rresvport_af.texi: Likewise.
87488         * doc/glibc-functions/setxattr.texi: Likewise.
87489         * doc/glibc-functions/strcasestr.texi: Likewise.
87491 2008-12-15  Bruno Haible  <bruno@clisp.org>
87493         Fix compilation error on OSF/1 4.0.
87494         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
87495         <sys/time.h>, simply delegate to the system header.
87496         Reported by Daniel Richard G. <oss@teragram.com>.
87498 2008-12-15  Bruno Haible  <bruno@clisp.org>
87500         * doc/posix-functions/openat.texi: Mention the 'openat' module.
87501         * doc/posix-functions/fchmodat.texi: Likewise.
87502         * doc/posix-functions/fchownat.texi: Likewise.
87503         * doc/posix-functions/fdopendir.texi: Likewise.
87504         * doc/posix-functions/fstatat.texi: Likewise.
87505         * doc/posix-functions/mkdirat.texi: Likewise.
87506         * doc/posix-functions/unlinkat.texi: Likewise.
87508 2008-12-14  Bruno Haible  <bruno@clisp.org>
87510         Update doc for POSIX:2008.
87511         * doc/posix-functions/faccessat.texi: New file.
87512         * doc/posix-functions/fchmodat.texi: New file.
87513         * doc/posix-functions/fchownat.texi: New file.
87514         * doc/posix-functions/fdopendir.texi: New file.
87515         * doc/posix-functions/fstatat.texi: New file.
87516         * doc/posix-functions/futimens.texi: New file.
87517         * doc/posix-functions/linkat.texi: New file.
87518         * doc/posix-functions/mkdirat.texi: New file.
87519         * doc/posix-functions/mkfifoat.texi: New file.
87520         * doc/posix-functions/mknodat.texi: New file.
87521         * doc/posix-functions/open_wmemstream.texi: New file.
87522         * doc/posix-functions/openat.texi: New file.
87523         * doc/posix-functions/psiginfo.texi: New file.
87524         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
87525         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
87526         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
87527         * doc/posix-functions/readlinkat.texi: New file.
87528         * doc/posix-functions/renameat.texi: New file.
87529         * doc/posix-functions/strerror_l.texi: New file.
87530         * doc/posix-functions/symlinkat.texi: New file.
87531         * doc/posix-functions/unlinkat.texi: New file.
87532         * doc/posix-functions/utimensat.texi: New file.
87533         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87535 2008-12-14  Bruno Haible  <bruno@clisp.org>
87537         Update doc for POSIX:2008.
87538         * doc/posix-functions/alphasort.texi: Renamed from
87539         doc/glibc-functions/alphasort.texi.
87540         * doc/posix-functions/dirfd.texi: Renamed from
87541         doc/glibc-functions/dirfd.texi.
87542         * doc/posix-functions/dprintf.texi: Renamed from
87543         doc/glibc-functions/dprintf.texi.
87544         * doc/posix-functions/duplocale.texi: Renamed from
87545         doc/glibc-functions/duplocale.texi.
87546         * doc/posix-functions/fexecve.texi: Renamed from
87547         doc/glibc-functions/fexecve.texi.
87548         * doc/posix-functions/fmemopen.texi: Renamed from
87549         doc/glibc-functions/fmemopen.texi.
87550         * doc/posix-functions/freelocale.texi: Renamed from
87551         doc/glibc-functions/freelocale.texi.
87552         * doc/posix-functions/getdate_err.texi: Renamed from
87553         doc/glibc-functions/getdate_err.texi.
87554         * doc/posix-functions/isalnum_l.texi: Renamed from
87555         doc/glibc-functions/isalnum_l.texi.
87556         * doc/posix-functions/isalpha_l.texi: Renamed from
87557         doc/glibc-functions/isalpha_l.texi.
87558         * doc/posix-functions/isblank_l.texi: Renamed from
87559         doc/glibc-functions/isblank_l.texi.
87560         * doc/posix-functions/iscntrl_l.texi: Renamed from
87561         doc/glibc-functions/iscntrl_l.texi.
87562         * doc/posix-functions/isdigit_l.texi: Renamed from
87563         doc/glibc-functions/isdigit_l.texi.
87564         * doc/posix-functions/isgraph_l.texi: Renamed from
87565         doc/glibc-functions/isgraph_l.texi.
87566         * doc/posix-functions/islower_l.texi: Renamed from
87567         doc/glibc-functions/islower_l.texi.
87568         * doc/posix-functions/isprint_l.texi: Renamed from
87569         doc/glibc-functions/isprint_l.texi.
87570         * doc/posix-functions/ispunct_l.texi: Renamed from
87571         doc/glibc-functions/ispunct_l.texi.
87572         * doc/posix-functions/isspace_l.texi: Renamed from
87573         doc/glibc-functions/isspace_l.texi.
87574         * doc/posix-functions/isupper_l.texi: Renamed from
87575         doc/glibc-functions/isupper_l.texi.
87576         * doc/posix-functions/iswalnum_l.texi: Renamed from
87577         doc/glibc-functions/iswalnum_l.texi.
87578         * doc/posix-functions/iswalpha_l.texi: Renamed from
87579         doc/glibc-functions/iswalpha_l.texi.
87580         * doc/posix-functions/iswblank_l.texi: Renamed from
87581         doc/glibc-functions/iswblank_l.texi.
87582         * doc/posix-functions/iswcntrl_l.texi: Renamed from
87583         doc/glibc-functions/iswcntrl_l.texi.
87584         * doc/posix-functions/iswctype_l.texi: Renamed from
87585         doc/glibc-functions/iswctype_l.texi.
87586         * doc/posix-functions/iswdigit_l.texi: Renamed from
87587         doc/glibc-functions/iswdigit_l.texi.
87588         * doc/posix-functions/iswgraph_l.texi: Renamed from
87589         doc/glibc-functions/iswgraph_l.texi.
87590         * doc/posix-functions/iswlower_l.texi: Renamed from
87591         doc/glibc-functions/iswlower_l.texi.
87592         * doc/posix-functions/iswprint_l.texi: Renamed from
87593         doc/glibc-functions/iswprint_l.texi.
87594         * doc/posix-functions/iswpunct_l.texi: Renamed from
87595         doc/glibc-functions/iswpunct_l.texi.
87596         * doc/posix-functions/iswspace_l.texi: Renamed from
87597         doc/glibc-functions/iswspace_l.texi.
87598         * doc/posix-functions/iswupper_l.texi: Renamed from
87599         doc/glibc-functions/iswupper_l.texi.
87600         * doc/posix-functions/iswxdigit_l.texi: Renamed from
87601         doc/glibc-functions/iswxdigit_l.texi.
87602         * doc/posix-functions/isxdigit_l.texi: Renamed from
87603         doc/glibc-functions/isxdigit_l.texi.
87604         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
87605         doc/glibc-functions/mbsnrtowcs.texi.
87606         * doc/posix-functions/mkdtemp.texi: Renamed from
87607         doc/glibc-functions/mkdtemp.texi.
87608         * doc/posix-functions/newlocale.texi: Renamed from
87609         doc/glibc-functions/newlocale.texi.
87610         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
87611         doc/glibc-functions/nl_langinfo_l.texi.
87612         * doc/posix-functions/open_memstream.texi: Renamed from
87613         doc/glibc-functions/open_memstream.texi.
87614         * doc/posix-functions/opterr.texi: Renamed from
87615         doc/glibc-functions/opterr.texi.
87616         * doc/posix-functions/optind.texi: Renamed from
87617         doc/glibc-functions/optind.texi.
87618         * doc/posix-functions/optopt.texi: Renamed from
87619         doc/glibc-functions/optopt.texi.
87620         * doc/posix-functions/psignal.texi: Renamed from
87621         doc/glibc-functions/psignal.texi.
87622         * doc/posix-functions/scandir.texi: Renamed from
87623         doc/glibc-functions/scandir.texi.
87624         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
87625         doc/glibc-functions/sched_get_priority_min.texi.
87626         * doc/posix-functions/signgam.texi: Renamed from
87627         doc/glibc-functions/signgam.texi.
87628         * doc/posix-functions/stpcpy.texi: Renamed from
87629         doc/glibc-functions/stpcpy.texi.
87630         * doc/posix-functions/stpncpy.texi: Renamed from
87631         doc/glibc-functions/stpncpy.texi.
87632         * doc/posix-functions/strcasecmp_l.texi: Renamed from
87633         doc/glibc-functions/strcasecmp_l.texi.
87634         * doc/posix-functions/strcoll_l.texi: Renamed from
87635         doc/glibc-functions/strcoll_l.texi.
87636         * doc/posix-functions/strfmon_l.texi: Renamed from
87637         doc/glibc-functions/strfmon_l.texi.
87638         * doc/posix-functions/strftime_l.texi: Renamed from
87639         doc/glibc-functions/strftime_l.texi.
87640         * doc/posix-functions/strncasecmp_l.texi: Renamed from
87641         doc/glibc-functions/strncasecmp_l.texi.
87642         * doc/posix-functions/strndup.texi: Renamed from
87643         doc/glibc-functions/strndup.texi.
87644         * doc/posix-functions/strnlen.texi: Renamed from
87645         doc/glibc-functions/strnlen.texi.
87646         * doc/posix-functions/strsignal.texi: Renamed from
87647         doc/glibc-functions/strsignal.texi.
87648         * doc/posix-functions/strxfrm_l.texi: Renamed from
87649         doc/glibc-functions/strxfrm_l.texi.
87650         * doc/posix-functions/timer_gettime.texi: Renamed from
87651         doc/glibc-functions/timer_gettime.texi.
87652         * doc/posix-functions/tolower_l.texi: Renamed from
87653         doc/glibc-functions/tolower_l.texi.
87654         * doc/posix-functions/toupper_l.texi: Renamed from
87655         doc/glibc-functions/toupper_l.texi.
87656         * doc/posix-functions/towctrans_l.texi: Renamed from
87657         doc/glibc-functions/towctrans_l.texi.
87658         * doc/posix-functions/towlower_l.texi: Renamed from
87659         doc/glibc-functions/towlower_l.texi.
87660         * doc/posix-functions/towupper_l.texi: Renamed from
87661         doc/glibc-functions/towupper_l.texi.
87662         * doc/posix-functions/uselocale.texi: Renamed from
87663         doc/glibc-functions/uselocale.texi.
87664         * doc/posix-functions/vdprintf.texi: Renamed from
87665         doc/glibc-functions/vdprintf.texi.
87666         * doc/posix-functions/wcpcpy.texi:
87667         Renamed from doc/glibc-functions/wcpcpy.texi.
87668         * doc/posix-functions/wcpncpy.texi: Renamed from
87669         doc/glibc-functions/wcpncpy.texi.
87670         * doc/posix-functions/wcscasecmp.texi: Renamed from
87671         doc/glibc-functions/wcscasecmp.texi.
87672         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
87673         doc/glibc-functions/wcscasecmp_l.texi.
87674         * doc/posix-functions/wcscoll_l.texi: Renamed from
87675         doc/glibc-functions/wcscoll_l.texi.
87676         * doc/posix-functions/wcsdup.texi: Renamed from
87677         doc/glibc-functions/wcsdup.texi.
87678         * doc/posix-functions/wcsncasecmp.texi: Renamed from
87679         doc/glibc-functions/wcsncasecmp.texi.
87680         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
87681         doc/glibc-functions/wcsncasecmp_l.texi.
87682         * doc/posix-functions/wcsnlen.texi: Renamed from
87683         doc/glibc-functions/wcsnlen.texi.
87684         * doc/posix-functions/wcsnrtombs.texi: Renamed from
87685         doc/glibc-functions/wcsnrtombs.texi.
87686         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
87687         doc/glibc-functions/wcsxfrm_l.texi.
87688         * doc/posix-functions/wctrans_l.texi: Renamed from
87689         doc/glibc-functions/wctrans_l.texi.
87690         * doc/posix-functions/wctype_l.texi: Renamed from
87691         doc/glibc-functions/wctype_l.texi.
87692         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87693         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
87694         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
87695         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
87696         these subsections.
87697         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
87698         Remove sections.
87700 2008-12-14  Bruno Haible  <bruno@clisp.org>
87702         Update doc for POSIX:2008.
87703         * doc/posix-functions/*.texi: Update URL of POSIX specification.
87705 2008-12-14  Bruno Haible  <bruno@clisp.org>
87707         Update doc for POSIX:2008.
87708         * doc/pastposix-functions/bcmp.texi: Renamed from
87709         doc/posix-functions/bcmp.texi.
87710         * doc/pastposix-functions/bcopy.texi: Renamed from
87711         doc/posix-functions/bcopy.texi.
87712         * doc/pastposix-functions/bsd_signal.texi: Renamed from
87713         doc/posix-functions/bsd_signal.texi.
87714         * doc/pastposix-functions/bzero.texi: Renamed from
87715         doc/posix-functions/bzero.texi.
87716         * doc/pastposix-functions/ecvt.texi: Renamed from
87717         doc/posix-functions/ecvt.texi.
87718         * doc/pastposix-functions/fcvt.texi: Renamed from
87719         doc/posix-functions/fcvt.texi.
87720         * doc/pastposix-functions/ftime.texi: Renamed from
87721         doc/posix-functions/ftime.texi.
87722         * doc/pastposix-functions/gcvt.texi: Renamed from
87723         doc/posix-functions/gcvt.texi.
87724         * doc/pastposix-functions/getcontext.texi: Renamed from
87725         doc/posix-functions/getcontext.texi.
87726         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
87727         doc/posix-functions/gethostbyaddr.texi.
87728         * doc/pastposix-functions/gethostbyname.texi: Renamed from
87729         doc/posix-functions/gethostbyname.texi.
87730         * doc/pastposix-functions/getwd.texi: Renamed from
87731         doc/posix-functions/getwd.texi.
87732         * doc/pastposix-functions/h_errno.texi: Renamed from
87733         doc/posix-functions/h_errno.texi.
87734         * doc/pastposix-functions/index.texi: Renamed from
87735         doc/posix-functions/index.texi.
87736         * doc/pastposix-functions/makecontext.texi: Renamed from
87737         doc/posix-functions/makecontext.texi.
87738         * doc/pastposix-functions/mktemp.texi: Renamed from
87739         doc/posix-functions/mktemp.texi.
87740         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
87741         doc/posix-functions/pthread_attr_getstackaddr.texi.
87742         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
87743         doc/posix-functions/pthread_attr_setstackaddr.texi.
87744         * doc/pastposix-functions/rindex.texi: Renamed from
87745         doc/posix-functions/rindex.texi.
87746         * doc/pastposix-functions/scalb.texi: Renamed from
87747         doc/posix-functions/scalb.texi.
87748         * doc/pastposix-functions/setcontext.texi: Renamed from
87749         doc/posix-functions/setcontext.texi.
87750         * doc/pastposix-functions/swapcontext.texi: Renamed from
87751         doc/posix-functions/swapcontext.texi.
87752         * doc/pastposix-functions/ualarm.texi: Renamed from
87753         doc/posix-functions/ualarm.texi.
87754         * doc/pastposix-functions/usleep.texi: Renamed from
87755         doc/posix-functions/usleep.texi.
87756         * doc/pastposix-functions/vfork.texi: Renamed from
87757         doc/posix-functions/vfork.texi.
87758         * doc/pastposix-functions/wcswcs.texi: Renamed from
87759         doc/posix-functions/wcswcs.texi.
87760         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
87761         (Function Substitutes): Update.
87763 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87765         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
87766         m4/strerror.m4.
87768 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87769             Bruno Haible  <bruno@clisp.org>
87771         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
87773 2008-12-13  Bruno Haible  <bruno@clisp.org>
87775         * modules/strtoull (Depends-on): Remove unistd.
87777 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87779         * modules/strtoull (Depends-on): Add stdlib.
87781 2008-12-11  Simon Josefsson  <simon@josefsson.org>
87783         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
87785 2008-12-10  Jim Meyering  <meyering@redhat.com>
87787         gl_ASSERT: don't say assertions are disabled when they're not
87788         * m4/assert.m4 (gl_ASSERT): Do not make configure report
87789         "checking whether to enable assertions... no", when they are in
87790         fact enabled.  This is solely a bug in the output of configure.
87791         In spite of saying "no", NDEBUG was not defined in that case.
87792         Also, as noted by Eric Blake, leave assertions enabled upon
87793         --enable-assert=INVALID.
87795 2008-12-10  Bruno Haible  <bruno@clisp.org>
87797         Change MODULES.html to refer to POSIX:2008 where possible.
87798         * MODULES.html.sh (POSIX2008_URL): New variable.
87799         (posix_headers): Remove sys/timeb, ucontext.
87800         (posix2001_headers): New variable.
87801         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
87802         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
87803         index, makecontext, mktemp, pthread_attr_getstackaddr,
87804         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
87805         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
87806         (posix2001_functions): New variable.
87807         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
87808         otherwise.
87810 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87812         add missing include to parse-duration.c
87813         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
87814         * modules/parse-duration (Depends-on): Add xalloc.
87816         fix sed script reading maint.mk
87817         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
87818         (syntax-check-rules): Use it.
87820 2008-12-09  Bruno Haible  <bruno@clisp.org>
87822         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
87823         MacOS X 10.4/PowerPC.
87824         Reported by Simon Josefsson.
87826 2008-12-08  Jim Meyering  <meyering@redhat.com>
87828         work around mingw's lack of some S_IF definitions
87829         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
87830         Reported by Simon Josefsson.
87832 2008-12-08  Bruno Haible  <bruno@clisp.org>
87834         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
87835         applied to variables. Needed on MacOS X 10.4/PowerPC.
87836         Reported by Simon Josefsson.
87838 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
87839         and Eric Blake  <ebb9@byu.net>
87841         assert: honor --enable-assert
87842         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
87843         order to honor --enable-assert, rather than treating it as a
87844         synonym for --disable-assert.
87846 2008-12-08  Jim Meyering  <meyering@redhat.com>
87848         * lib/posixtm.c: Remove now-useless declaration of mktime.
87850         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
87852 2008-12-07  Bruno Haible  <bruno@clisp.org>
87854         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
87855         test_once): Mark functions as static.
87856         * tests/test-tls.c (test_tls): Likewise.
87858 2008-12-07  Bruno Haible  <bruno@clisp.org>
87860         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
87861         iconv_register_autodetect.
87863 2008-12-07  Jim Meyering  <meyering@redhat.com>
87865         posixtm.c: avoid a warning
87866         * lib/posixtm.c (posixtime): Don't initialize tm0.
87867         It's no longer needed to placate gcc4's -Wuninitialized,
87868         and the attempt to placate would elicit a new warning.
87870         unicodeio.c: mark unused parameters
87871         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
87872         (fallback_failure_callback): Likewise.
87874 2008-12-07  Bruno Haible  <bruno@clisp.org>
87876         * gnulib-tool (func_create_testdir): When building the tests
87877         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
87878         Reported by Simon Josefsson.
87880 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87882         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
87884 2008-12-06  Bruno Haible  <bruno@clisp.org>
87886         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
87887         Suggested by Eric Blake.
87889 2008-12-06  Bruno Haible  <bruno@clisp.org>
87891         Fix a c-stack test failure on MacOS X.
87892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
87893         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
87894         handler for SIGBUS as well.
87895         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
87896         install a signal handler for SIGBUS as well.
87897         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
87899 2008-12-06  Bruno Haible  <bruno@clisp.org>
87901         Advocacy documentation.
87902         * doc/gnulib-intro.texi (Benefits): New section.
87903         * doc/gnulib.texi: Update.
87905 2008-12-06  Bruno Haible  <bruno@clisp.org>
87907         Document the 'manywarnings' module.
87908         * doc/manywarnings.texi: New file.
87909         * doc/gnulib.texi: Include it.
87911 2008-12-05  Eric Blake  <ebb9@byu.net>
87913         tests: silence some gcc warnings
87914         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
87915         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
87916         type mismatches.
87918 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87919             Bruno Haible  <bruno@clisp.org>
87921         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
87923 2008-11-29  Jim Meyering  <meyering@redhat.com>
87925         unicodeio.c: mark unused parameters
87926         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
87927         (fallback_failure_callback): Likewise.
87929         fts: fix a thinko
87930         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
87931         (set_stat_type): Return S_IF*-valued "type" directly.
87932         Prompted by James Youngman's spotting a related bug.
87933         Confirmed by further testing through find.
87935         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
87936         * lib/fts.c (D_TYPE): Define.
87937         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
87938         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
87939         (s_ifmt_shift_bits): New function.
87940         (set_stat_type): New function.
87941         (fts_build): When not calling fts_stat, call set_stat_type
87942         to propagate dirent.d_type info to fts_read caller.
87943         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
87944         fts_statp->st_mode type information may be valid.
87946 2008-11-28  Simon Josefsson  <simon@josefsson.org>
87948         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
87949         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
87950         <sds@gnu.org>.
87952 2008-11-20  Bruno Haible  <bruno@clisp.org>
87954         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
87955         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
87956         INCLUDE_NEXT.
87957         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
87958         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
87959         * modules/math (Makefile.am): Substitute
87960         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
87961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87963 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
87964             Bruno Haible  <bruno@clisp.org>
87966         * lib/stdint.in.h: Define all type macros so that their expansion is
87967         a single typedef'ed token. Fixes a compilation failure in Boost which
87968         does "using ::int8_t;".
87970 2008-11-18  Simon Josefsson  <simon@josefsson.org>
87972         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
87973         gl_MANYWARN_ALL_GCC.
87974         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
87975         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
87976         * modules/manywarnings: New file.
87977         * MODULES.html.sh: Mention manywarnings module.
87979 2008-11-18  Bruno Haible  <bruno@clisp.org>
87981         * doc/gnulib-tool.texi (Unit tests): New section.
87983 2008-11-18  Simon Josefsson  <simon@josefsson.org>
87985         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
87986         paths like 'lib/po/foo.po'.
87988 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87990         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
87991         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
87993 2008-11-17  Simon Josefsson  <simon@josefsson.org>
87995         * m4/warnings.m4: Use CPPFLAGS to really check whether the
87996         parameter works.
87998 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88000         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88002 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88004         * modules/parse-duration-tests: New file.
88005         * tests/test-parse-duration.sh: New file.
88006         * tests/test-parse-duration.c: New file.
88008         New module 'parse-duration'.
88009         * lib/parse-duration.h: New file.
88010         * lib/parse-duration.c: New file.
88011         * modules/parse-duration: New file.
88013 2008-11-17  Bruno Haible  <bruno@clisp.org>
88015         * tests/test-select-out.sh: Comment out the first pipe test.
88016         Reported by Simon Josefsson.
88018 2008-11-17  Bruno Haible  <bruno@clisp.org>
88020         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88022         gl_HOSTENT.
88024 2008-11-17  Bruno Haible  <bruno@clisp.org>
88026         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88027         -lnetwork and -lnet. Needed for Haiku and BeOS.
88029 2008-11-16  Bruno Haible  <bruno@clisp.org>
88031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88033 2008-11-16  Bruno Haible  <bruno@clisp.org>
88035         Avoid test failure on Haiku.
88036         * tests/test-fsync.c: Include <errno.h>.
88037         (main): Don't require that fsync (0) fails.
88039 2008-11-15  Bruno Haible  <bruno@clisp.org>
88041         New module 'hostent'.
88042         * modules/hostent: New file.
88043         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88045 2008-11-15  Bruno Haible  <bruno@clisp.org>
88047         New module 'servent'.
88048         * modules/servent: New file.
88049         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88051 2008-11-15  Bruno Haible  <bruno@clisp.org>
88053         Avoid generating same test program with two different rules.
88054         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88055         test-frexp to test-frexp-nolibm.
88056         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88057         test-frexpl to test-frexpl-nolibm.
88059 2008-11-15  Bruno Haible  <bruno@clisp.org>
88061         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88062         $(FREXPL_LIBM).
88064 2008-11-15  Bruno Haible  <bruno@clisp.org>
88066         * lib/netdb.in.h: Activate the definitions also when the system's
88067         <netdb.h> has 'struct addrinfo'.
88068         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88069         EAI_OVERFLOW or AI_NUMERICSERV.
88070         * doc/posix-headers/netdb.texi: Document the problem.
88072 2008-11-15  Bruno Haible  <bruno@clisp.org>
88074         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88076         Make the 'sched' module work on platforms where <sched.h> exists but
88077         is incomplete (such as Haiku).
88078         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88079         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88080         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88081         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88082         HAVE_STRUCT_SCHED_PARAM.
88083         * modules/sched (Depends-on): Add include_next.
88084         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88085         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88086         * doc/posix-headers/sched.texi: Document the issue.
88088 2008-11-13  Jim Meyering  <meyering@redhat.com>
88090         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88091         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88092         test would fail due to the difference in the Report bugs to ...
88093         line.  The expected address is empty, "<>", while the actual
88094         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88096 2008-11-12  Bruno Haible  <bruno@clisp.org>
88098         lstat: don't compile lstat.c on systems lacking lstat
88099         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88100         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88101         Reported by Daniel P. Berrange via Jim Meyering.
88103 2008-11-12  Jim Meyering  <meyering@redhat.com>
88105         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88107 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88109         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88110         instead.
88112 2008-11-12  Bruno Haible  <bruno@clisp.org>
88114         * lib/unicodeio.c: Include unistr.h.
88115         (utf8_wctomb): Remove function.
88116         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88118 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88120         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88121         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88122         <bruno@clisp.org>.
88123         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88125 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88127         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88128         * doc/gnulib.texi: Add section for warnings.
88130 2008-11-11  Bruno Haible  <bruno@clisp.org>
88132         * lib/sockets.h: Add a comment.
88134 2008-11-11  Karl Berry  <karl@gnu.org>
88136         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88138 2008-11-11  Eric Blake  <ebb9@byu.net>
88140         fdl.texi: avoid git symlinks
88141         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88143 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88145         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88147 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88149         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88150         (gl_WARN_ADD): Substitute $2 if literal.
88152 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88154         * m4/warning.m4: Remove.
88156 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88158         * m4/warnings.m4: Almost complete rewrite. :-)
88160 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88162         * modules/warnings: New module.
88163         * m4/warnings.m4: New file.
88164         * MODULES.html.sh: Mention warnings module.
88165         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88166         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88168 2008-11-10  Eric Blake  <ebb9@byu.net>
88170         fdl.texi: make a symlink to the latest version
88171         * doc/standards.texi: Revert today's earlier change.
88172         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88173         * doc/fdl.texi: ...and replace this with a symlink to the newer
88174         fdl-1.3.texi.
88176 2008-11-10  Bruno Haible  <bruno@clisp.org>
88178         * tests/test-select-fd.c (main): Accept the result file name as fourth
88179         argument.
88180         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88181         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88183 2008-11-10  Bruno Haible  <bruno@clisp.org>
88185         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88186         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88187         as autoconf-substituted macros.
88188         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88190         gl_NETDB_H_DEFAULTS. Set these variables.
88191         * modules/netdb (Makefile.am): Substitute these variables.
88193 2008-11-10  Eric Blake  <ebb9@byu.net>
88195         standards.texi: include correct file for FDL 1.3
88196         * doc/standards.texi (GNU Free Documentation License): Change
88197         include file to pull in FDL 1.3, not 1.2.
88199         fdl.texi: revert accidental change to license
88200         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88202 2008-11-10  Bruno Haible  <bruno@clisp.org>
88204         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88205         cross-compiling guesses also when the native compile gives no result.
88207 2008-11-10  Bruno Haible  <bruno@clisp.org>
88209         * lib/spawni.c (__spawni): Force variable into the stack.
88211 2008-11-10  Bruno Haible  <bruno@clisp.org>
88213         Add support for Haiku.
88214         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
88215         glibc and BeOS, but also on Haiku.
88216         * lib/fpurge.c (fpurge): Likewise.
88217         * lib/freadable.c (freadable): Likewise.
88218         * lib/freadahead.c (freadahead): Likewise.
88219         * lib/freading.c (freading): Likewise.
88220         * lib/freadptr.c (freadptr): Likewise.
88221         * lib/freadseek.c (freadptrinc): Likewise.
88222         * lib/fseeko.c (rpl_fseeko): Likewise.
88223         * lib/fseterr.c (fseterr): Likewise.
88224         * lib/fwritable.c (fwritable): Likewise.
88225         * lib/fwriting.c (fwriting): Likewise.
88226         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
88228 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88230         * lib/config.charset: Treat Haiku like BeOS.
88232 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88234         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
88235         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
88237 2008-11-08  Bruno Haible  <bruno@clisp.org>
88239         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
88240         AC_CACHE_CHECK.
88242 2008-11-08  Bruno Haible  <bruno@clisp.org>
88244         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
88246 2008-11-08  Bruno Haible  <bruno@clisp.org>
88248         * tests/test-select-fd.c: New file.
88249         * tests/test-select-in.sh: New file.
88250         * tests/test-select-out.sh: New file.
88251         * tests/test-select-stdin.c: New file.
88252         * modules/select-tests (Files): Add the new files.
88253         (Depends-on): Add gettimeofday.
88254         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88255         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88256         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88258 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88259             Bruno Haible  <bruno@clisp.org>
88261         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88263 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88265         * build-aux/pmccabe2html: Added support for C++ source files.
88267 2008-11-05  Ben Pfaff  <blp@gnu.org>
88269         Fix lib/close.c build on Windows.
88270         * modules/close (Files): Add lib/w32sock.h.
88272 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88274         Accept Bison's NEWS format.
88275         * build-aux/announce-gen (print_news_deltas): Tweak
88276         $re_prefix.
88278 2008-11-04  Bruno Haible  <bruno@clisp.org>
88280         * modules/random_r (Maintainer): Add glibc.
88282 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88284         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88285         by karl@freefriends.org (Karl Berry).
88286         * doc/alloca.texi: Likewise.
88287         * doc/c-ctype.texi: Likewise.
88288         * doc/c-strcase.texi: Likewise.
88289         * doc/c-strcaseeq.texi: Likewise.
88290         * doc/c-strcasestr.texi: Likewise.
88291         * doc/c-strstr.texi: Likewise.
88292         * doc/c-strtod.texi: Likewise.
88293         * doc/c-strtold.texi: Likewise.
88294         * doc/ctime.texi: Likewise.
88295         * doc/error.texi: Likewise.
88296         * doc/fdl.texi: Likewise.
88297         * doc/gcd.texi: Likewise.
88298         * doc/getdate.texi: Likewise.
88299         * doc/gnulib-intro.texi: Likewise.
88300         * doc/gnulib-tool.texi: Likewise.
88301         * doc/gnulib.texi: Likewise.
88302         * doc/inet_ntoa.texi: Likewise.
88303         * doc/maintain.texi: Likewise.
88304         * doc/make-stds.texi: Likewise.
88305         * doc/quote.texi: Likewise.
88306         * doc/regexprops-generic.texi: Likewise.
88307         * doc/standards.texi: Likewise.
88308         * doc/verify.texi: Likewise.
88309         * doc/visibility.texi: Likewise.
88310         * doc/gnulib.texi (GNU Free Documentation License): Include
88311         fdl-1.3.texi instead of fdl.texi.
88313 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88315         * doc/fdl-1.3.texi: New file, from
88316         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88317         * modules/fdl-1.3: Add.
88318         * MODULES.html.sh: Add fdl-1.3.
88320 2008-11-03  Bruno Haible  <bruno@clisp.org>
88322         Make determination of absolute name of header file work with AIX xlc.
88323         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88324         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88325         preprocessing.
88326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88327         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88329 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88331         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88332         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88333         <ludo@gnu.org>.
88335 2008-11-02  Bruno Haible  <bruno@clisp.org>
88337         Mark 'strpbrk' obsolete.
88338         * modules/strpbrk (Status, Notice): New sections.
88339         * modules/strtok_r (Depends-on): Add strpbrk.
88341 2008-11-02  Bruno Haible  <bruno@clisp.org>
88343         Mark 'strdup' obsolete.
88344         * modules/strdup (Status, Notice): New sections.
88345         * modules/findprog (Depends-on): Add strdup.
88346         * modules/getaddrinfo (Depends-on): Likewise.
88347         * modules/localename (Depends-on): Likewise.
88348         * modules/relocatable-lib (Depends-on): Likewise.
88349         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88350         * modules/relocatable-prog (Depends-on): Likewise.
88351         * modules/trim (Depends-on): Likewise.
88352         * modules/unictype/gen-ctype (Depends-on): Likewise.
88353         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88355 2008-11-02  Bruno Haible  <bruno@clisp.org>
88357         Mark 'strcspn' obsolete.
88358         * modules/strcspn (Status, Notice): New sections.
88360 2008-11-02  Bruno Haible  <bruno@clisp.org>
88362         Mark 'rmdir' obsolete.
88363         * modules/rmdir (Status, Notice): New sections.
88364         * modules/clean-temp (Depends-on): Add rmdir.
88365         * modules/openat (Depends-on): Likewise.
88367 2008-11-02  Bruno Haible  <bruno@clisp.org>
88369         Mark 'raise' obsolete.
88370         * modules/raise (Status, Notice): New sections.
88371         (Include): Specify <signal.h>.
88372         * modules/stdio (Depends-on): Add raise.
88373         * modules/write (Depends-on): Likewise.
88375 2008-11-02  Bruno Haible  <bruno@clisp.org>
88377         Mark 'memset' obsolete.
88378         * modules/memset (Status, Notice): New sections.
88380 2008-11-02  Bruno Haible  <bruno@clisp.org>
88382         Mark 'memmove' obsolete.
88383         * modules/memmove (Status, Notice): New sections.
88384         * modules/argp (Depends-on): Add memmove.
88385         * modules/argz (Depends-on): Likewise.
88386         * modules/canonicalize (Depends-on): Likewise.
88387         * modules/canonicalize-lgpl (Depends-on): Likewise.
88388         * modules/fts (Depends-on): Likewise.
88389         * modules/getcwd (Depends-on): Likewise.
88390         * modules/human (Depends-on): Likewise.
88391         * modules/regex (Depends-on): Likewise.
88392         * modules/striconveh (Depends-on): Likewise.
88393         * modules/trim (Depends-on): Likewise.
88394         * modules/unistr/u8-move (Depends-on): Likewise.
88395         * modules/unistr/u16-move (Depends-on): Likewise.
88396         * modules/unistr/u32-move (Depends-on): Likewise.
88398 2008-11-02  Bruno Haible  <bruno@clisp.org>
88400         Mark 'memcpy' obsolete.
88401         * modules/memcpy (Status, Notice): New sections.
88403 2008-11-02  Bruno Haible  <bruno@clisp.org>
88405         Mark 'memcmp' obsolete.
88406         * modules/memcmp (Status, Notice): New sections.
88407         * modules/argmatch (Depends-on): Add memchr.
88408         * modules/backupfile (Depends-on): Likewise.
88409         * modules/c-strcasestr (Depends-on): Likewise.
88410         * modules/crypto/des (Depends-on): Likewise.
88411         * modules/csharpcomp (Depends-on): Likewise.
88412         * modules/fnmatch (Depends-on): Likewise.
88413         * modules/git-merge-changelog (Depends-on): Likewise.
88414         * modules/isnand (Depends-on): Likewise.
88415         * modules/isnand-nolibm (Depends-on): Likewise.
88416         * modules/isnanf (Depends-on): Likewise.
88417         * modules/isnanf-nolibm (Depends-on): Likewise.
88418         * modules/isnanl (Depends-on): Likewise.
88419         * modules/isnanl-nolibm (Depends-on): Likewise.
88420         * modules/mbchar (Depends-on): Likewise.
88421         * modules/memcoll (Depends-on): Likewise.
88422         * modules/quotearg (Depends-on): Likewise.
88423         * modules/regex (Depends-on): Likewise.
88424         * modules/relocatable-prog (Depends-on): Likewise.
88425         * modules/same (Depends-on): Likewise.
88426         * modules/signbit (Depends-on): Likewise.
88427         * modules/strcasestr-simple (Depends-on): Likewise.
88428         * modules/unictype/gen-ctype (Depends-on): Likewise.
88429         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88430         * modules/uniname/uniname (Depends-on): Likewise.
88431         * modules/unistr/u8-cmp (Depends-on): Likewise.
88433 2008-11-02  Bruno Haible  <bruno@clisp.org>
88435         Mark 'memchr' obsolete.
88436         * modules/memchr (Status, Notice): New sections.
88437         * modules/argp (Depends-on): Add memchr.
88438         * modules/base64 (Depends-on): Likewise.
88439         * modules/c-strcasestr (Depends-on): Likewise.
88440         * modules/chdir-long (Depends-on): Likewise.
88441         * modules/fnmatch (Depends-on): Likewise.
88442         * modules/getsubopt (Depends-on): Likewise.
88443         * modules/git-merge-changelog (Depends-on): Likewise.
88444         * modules/glob (Depends-on): Likewise.
88445         * modules/strcasestr-simple (Depends-on): Likewise.
88446         * modules/strnlen (Depends-on): Likewise.
88448 2008-11-02  Bruno Haible  <bruno@clisp.org>
88450         Mark 'atexit' obsolete.
88451         * modules/atexit (Status, Notice): New sections.
88452         * modules/chdir-long (Depends-on): Add atexit.
88453         * modules/wait-process (Depends-on): Likewise.
88455 2008-11-02  Bruno Haible  <bruno@clisp.org>
88457         * gnulib-tool: New option --with-obsolete.
88458         (func_usage): Document it.
88459         (func_modules_transitive_closure): Drop obsolete dependencies if
88460         incobsolete is not true.
88461         (func_import): Read and save the incobsolete variable to the cache.
88463 2008-11-02  Bruno Haible  <bruno@clisp.org>
88465         * modules/TEMPLATE-EXTENDED: New field 'Status'.
88466         * gnulib-tool: New option --extract-status.
88467         (func_usage): Document it.
88468         (sed_extract_prog): Recognize it.
88469         (func_get_status): New function.
88471 2008-10-30  Simon Josefsson  <simon@josefsson.org>
88473         * modules/sockets (License): Change from LGPL to LGPLv2+.
88475 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88477         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
88479 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88481         * MODULES.html.sh (Support for systems lacking POSIX:2001):
88482         Mention times and sys_times.
88483         * modules/sys_times, modules/sys_times-tests: New modules.
88484         * modules/times, modules/times-tests: Likewise
88485         * m4/sys_times_h.m4: New file.
88486         * lib/sys_times.in.h: Likewise
88487         * lib/times.c: Likewise.
88488         * tests/test-sys_times.c: Likewise.
88489         * tests/test-times.c: Likewise.
88490         * doc/posix-headers/sys_times.texi: Update.
88491         * doc/posix-functions/times.texi: Update.
88493 2008-10-28  Jim Meyering  <meyering@redhat.com>
88495         * modules/tempname (Depends-on): Add lstat.
88497         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
88499 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88501         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
88502         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
88503         using idiom used elsewhere in gnulib.
88505 2008-10-27  Jim Meyering  <meyering@redhat.com>
88507         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
88509 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88511         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
88512         TESTS_ENVIRONMENT, for shell scripts that needs to call built
88513         programs.
88514         * tests/test-argp-2.sh: Use $EXEEXT when needed.
88516 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88518         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
88520 2008-10-27  Bruno Haible  <bruno@clisp.org>
88522         * tests/test-lstat.c: Include <stdio.h>.
88524 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88526         * modules/lstat-tests: New module.
88527         * tests/test-lstat.c: New file.
88529 2008-10-26  Jim Meyering  <meyering@redhat.com>
88531         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
88533 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88534             Bruno Haible  <bruno@clisp.org>
88536         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
88537         * modules/configmake (Include): Add a note that the include must come
88538         after all system headers.
88539         * lib/javaversion.c: Include configmake.h after all other includes.
88541 2008-10-26  Bruno Haible  <bruno@clisp.org>
88543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
88544         HAVE_STRUCT_RANDOM_DATA to 1.
88545         (gl_STDLIB_H): Simplify.
88547 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88549         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
88550         substitute HAVE_STRUCT_RANDOM_DATA.
88551         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
88552         random_data.
88553         * modules/stdlib (Makefile.am): Substitute
88554         HAVE_STRUCT_RANDOM_DATA.
88556 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88558         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
88559         * doc/gnulib-intro.texi (Copyright): Likewise.
88561 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88563         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
88564         findings.
88566 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
88567             Bruno Haible  <bruno@clisp.org>
88569         * lib/unistd.in.h: Include <winsock2.h>.
88570         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
88571         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
88572         Provide dummy declarations.
88573         (gethostname): Override.
88574         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
88575         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
88576         gl_PREREQ_SYS_H_WINSOCK2.
88577         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
88578         * doc/posix-functions/gethostname.texi: More details.
88580 2008-10-25  Bruno Haible  <bruno@clisp.org>
88582         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
88583         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
88584         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
88586         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
88587         here ...
88588         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
88589         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
88590         gl_UNISTD_H_DEFAULTS.
88592 2008-10-25  Eric Blake  <ebb9@byu.net>
88594         signbit: avoid spurious compiler failure
88595         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
88596         declarations inside function.
88598 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88599             Bruno Haible  <bruno@clisp.org>
88601         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
88602         * modules/random_r (Depends-on): Add stdint.
88604 2008-10-24  Bruno Haible  <bruno@clisp.org>
88606         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
88607         Eggert.
88608         * modules/strerror (License): Likewise.
88610 2008-10-24  Jim Meyering  <meyering@redhat.com>
88612         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
88613         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
88615 2008-10-24  Eric Blake  <ebb9@byu.net>
88617         getgroups: fix compilation when getgroups is available
88618         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
88619         but with <config.h> override of getgroups disabled.
88621 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88623         * doc/gnulib.texi (Header files): Add note about C++ problems.
88624         Explained by Bruno Haible <bruno@clisp.org>.
88626 2008-10-23  Bruno Haible  <bruno@clisp.org>
88628         Define a dummy SA_NODEFER macro on Interix.
88629         * lib/signal.in.h (SA_NODEFER): Define fallback.
88630         Reported by Aleksey Cheusov <cheusov@tut.by> via
88631         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
88633 2008-10-23  Bruno Haible  <bruno@clisp.org>
88635         * modules/freadahead (License): Change to LGPLv2+.
88636         Suggested by Simon Josefsson.
88638 2008-10-23  Jim Meyering  <meyering@redhat.com>
88640         random_r: new module
88641         * modules/random_r: New file.
88642         * m4/random_r.m4: New file.
88643         * lib/random_r.c: New file, from glibc.
88644         * modules/random_r-tests: New file.
88645         * tests/test-random_r.c: New file.
88646         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
88647          Declare.
88648         (RAND_MAX): Define.
88649         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
88650         * modules/stdlib: Substitute them, too.
88651         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
88652         * doc/glibc-functions/initstate_r.texi: Mention the new module.
88653         * doc/glibc-functions/random_r.texi: Likewise.
88654         * doc/glibc-functions/setstate_r.texi: Likewise.
88655         * doc/glibc-functions/srandom_r.texi: Likewise.
88656         * config/srclist.txt: Mention it.
88658 2008-10-23  David Lutterkort  <lutter@redhat.com>
88660         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
88661         link requirement
88663 2008-10-23  Jim Meyering  <meyering@redhat.com>
88665         selinux-h: mark parameters of stub functions as intentionally unused
88666         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
88667         * lib/se-context.in.h: Likewise.
88669 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88671         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
88673 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88675         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
88677 2008-10-22  Eric Blake  <ebb9@byu.net>
88679         glthread/thread: avoid compiler warning
88680         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
88681         Add unreachable abort to silence compiler.
88683 2008-10-22  Eric Blake  <ebb9@byu.net>
88685         netdb: also supply struct addrinfo for cygwin 1.5.x
88686         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
88687         older cygwin.
88688         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
88689         cygwin.
88690         * doc/posix-headers/netdb.texi (netdb.h): Document this.
88692 2008-10-22  Bruno Haible  <bruno@clisp.org>
88694         * users.txt: Update entry about pspp.
88696 2008-10-21  Bruno Haible  <bruno@clisp.org>
88698         Simplification.
88699         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
88700         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
88702         Simplification.
88703         * lib/ioctl.c (ioctl): Don't undefine.
88704         * lib/socket.c (socket): Don't undefine.
88706         Remove unused module indicator macros.
88707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
88708         GNULIB_$1 as a C macro.
88710         * doc/posix-functions/close.texi: Undo last change.
88711         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
88712         Windows platforms.
88714 2008-10-21  Bruno Haible  <bruno@clisp.org>
88716         Add gethostname() declaration to <unistd.h>.
88717         * lib/unistd.in.h (gethostname): New declaration.
88718         * lib/gethostname.c: Include <unistd.h>.
88719         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
88720         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
88721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
88722         and HAVE_GETHOSTNAME.
88723         * modules/gethostname (Depends-on): Add unistd.
88724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88725         (Include): Specify <unistd.h>.
88726         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
88727         HAVE_GETHOSTNAME.
88728         * tests/test-gethostname.c: Include <unistd.h> first.
88730 2008-10-21  Bruno Haible  <bruno@clisp.org>
88732         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
88733         * modules/select-tests (Depends-on): Likewise.
88734         Reported by Simon Josefsson.
88736 2008-10-21  Simon Josefsson  <simon@josefsson.org>
88738         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
88739         * lib/accept.c: New file, based on winsock.c.
88740         * lib/bind.c: New file, based on winsock.c.
88741         * lib/connect.c: New file, based on winsock.c.
88742         * lib/getpeername.c: New file, based on winsock.c.
88743         * lib/getsockname.c: New file, based on winsock.c.
88744         * lib/getsockopt.c: New file, based on winsock.c.
88745         * lib/ioctl.c: New file, based on winsock.c.
88746         * lib/listen.c: New file, based on winsock.c.
88747         * lib/recv.c: New file, based on winsock.c.
88748         * lib/recvfrom.c: New file, based on winsock.c.
88749         * lib/send.c: New file, based on winsock.c.
88750         * lib/sendto.c: New file, based on winsock.c.
88751         * lib/setsockopt.c: New file, based on winsock.c.
88752         * lib/shutdown.c: New file, based on winsock.c.
88753         * lib/socket.c: New file, based on winsock.c.
88754         * lib/w32sock.h: New file, based on winsock.c.
88755         * lib/winsock.c: Remove file.
88756         * modules/accept: Likewise.
88757         * modules/bind: Likewise.
88758         * modules/connect: Likewise.
88759         * modules/getpeername: Likewise.
88760         * modules/getsockname: Likewise.
88761         * modules/getsockopt: Likewise.
88762         * modules/ioctl: Likewise.
88763         * modules/listen: Likewise.
88764         * modules/recv: Likewise.
88765         * modules/recvfrom: Likewise.
88766         * modules/send: Likewise.
88767         * modules/sendto: Likewise.
88768         * modules/setsockopt: Likewise.
88769         * modules/shutdown: Likewise.
88770         * modules/socket: Use socket.c instead of winsock.c.
88771         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
88772         * doc/posix-functions/accept.texi: Doc fix.
88773         * doc/posix-functions/bind.texi: Doc fix.
88774         * doc/posix-functions/close.texi: Doc fix.
88775         * doc/posix-functions/connect.texi: Doc fix.
88776         * doc/posix-functions/getpeername.texi: Doc fix.
88777         * doc/posix-functions/getsockname.texi: Doc fix.
88778         * doc/posix-functions/getsockopt.texi: Doc fix.
88779         * doc/posix-functions/ioctl.texi: Doc fix.
88780         * doc/posix-functions/listen.texi: Doc fix.
88781         * doc/posix-functions/recv.texi: Doc fix.
88782         * doc/posix-functions/recvfrom.texi: Doc fix.
88783         * doc/posix-functions/send.texi: Doc fix.
88784         * doc/posix-functions/sendto.texi: Doc fix.
88785         * doc/posix-functions/setsockopt.texi: Doc fix.
88786         * doc/posix-functions/shutdown.texi: Doc fix.
88787         * doc/posix-functions/socket.texi: Doc fix.
88789 2008-10-20  Bruno Haible  <bruno@clisp.org>
88791         Take into account the role of SIGABRT_COMPAT on Windows 2008.
88792         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
88793         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
88794         as an alias for SIGABRT.
88795         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
88796         (sigaction): Map it to SIGABRT.
88797         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
88799 2008-10-20  Bruno Haible  <bruno@clisp.org>
88801         * lib/fts.c: Don't include lstat.h.
88802         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
88804         Move the lstat() declaration to <sys/stat.h>.
88805         * lib/lstat.h: Remove file.
88806         * lib/sys_stat.in.h: Add special invocation convention.
88807         (lstat): New declaration.
88808         * lib/lstat.c (orig_lstat): New function.
88809         (rpl_lstat): Use orig_lstat instead of lstat.
88810         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
88811         AC_C_INLINE. Set REPLACE_LSTAT.
88812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
88813         and REPLACE_LSTAT.
88814         * modules/lstat (Files): Remove lib/lstat.h.
88815         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
88816         (Include): Specify <sys/stat.h> instead of lstat.h.
88817         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
88818         REPLACE_LSTAT.
88819         * NEWS: Mention the change.
88821 2008-10-20  Bruno Haible  <bruno@clisp.org>
88823         * modules/posix_spawn-tests: New file.
88824         * tests/test-posix_spawn3.c: New file.
88826 2008-10-20  Bruno Haible  <bruno@clisp.org>
88828         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
88829         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88830         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
88831         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88832         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
88834 2008-10-20  Bruno Haible  <bruno@clisp.org>
88836         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
88837         of posix_spawn on AIX 5.3.
88839 2008-10-20  Bruno Haible  <bruno@clisp.org>
88841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
88843 2008-10-20  Bruno Haible  <bruno@clisp.org>
88845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
88846         of AC_LANG_PROGRAM.
88848 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88850         * lib/netdb.in.h: Don't define GNU specific constants until they
88851         are supported or needed.  Reported by Bruno Haible
88852         <bruno@clisp.org>.
88854 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88856         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
88858 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88860         * lib/getaddrinfo.h: Remove file.
88861         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
88862         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
88863         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
88864         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
88865         * modules/netdb: Substitute GNULIB_GETADDRINFO.
88866         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
88867         * tests/test-getaddrinfo.c: Likewise.
88868         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
88869         * NEWS: Mention change.
88871 2008-10-19  Bruno Haible  <bruno@clisp.org>
88873         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
88875 2008-10-19  Bruno Haible  <bruno@clisp.org>
88877         * lib/wait-process.c: Include simply <sys/wait.h>.
88878         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
88879         WIFSTOPPED): Remove fallback definitions.
88880         * modules/wait-process (Depends-on): Add sys_wait.
88882         New module 'sys_wait'.
88883         * modules/sys_wait: New file.
88884         * lib/sys_wait.in.h: New file, partially copied from
88885         lib/wait-process.c.
88886         * m4/sys_wait_h.m4: New file.
88887         * doc/posix-headers/sys_wait.texi: Mention the new module.
88889 2008-10-19  Bruno Haible  <bruno@clisp.org>
88891         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
88893 2008-10-19  Bruno Haible  <bruno@clisp.org>
88895         Assume that waitpid() fills an 'int' status, not a 'union wait'.
88896         * lib/wait-process.c (WAIT_T): Remove type.
88897         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
88898         (wait_subprocess): Update.
88900 2008-10-19  Bruno Haible  <bruno@clisp.org>
88902         New module 'atoll'.
88903         * modules/atoll: New file.
88904         * lib/stdlib.in.h (atoll): New declaration.
88905         * lib/atoll.c: New file, from glibc with modifications.
88906         * m4/atoll.m4: New file.
88907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
88908         HAVE_ATOLL.
88909         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
88910         * doc/posix-functions/atoll.texi: Mention the new module.
88912 2008-10-19  Bruno Haible  <bruno@clisp.org>
88914         Add strtoull() declaration to <stdlib.h>.
88915         * lib/stdlib.in.h (strtoull): New declaration.
88916         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
88917         Set HAVE_STRTOULL.
88918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
88919         HAVE_STRTOULL.
88920         * modules/strtoull (Depends-on): Add stdlib.
88921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88922         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
88923         HAVE_STRTOULL.
88925 2008-10-19  Bruno Haible  <bruno@clisp.org>
88927         Add strtoll() declaration to <stdlib.h>.
88928         * lib/stdlib.in.h (strtoll): New declaration.
88929         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
88930         Set HAVE_STRTOLL.
88931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
88932         HAVE_STRTOLL.
88933         * modules/strtoll (Depends-on): Add stdlib.
88934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88935         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
88937 2008-10-19  Bruno Haible  <bruno@clisp.org>
88939         * modules/bcopy (Depends-on): Add strings.
88940         (Include): Specify <strings.h>.
88942 2008-10-19  Bruno Haible  <bruno@clisp.org>
88944         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
88946 2008-10-19  Bruno Haible  <bruno@clisp.org>
88948         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
88949         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
88950         mingw.
88952 2008-10-19  Bruno Haible  <bruno@clisp.org>
88954         * lib/atanl.c: Don't include isnanl.h.
88955         * lib/cosl.c: Likewise.
88956         * lib/ldexpl.c: Likewise.
88957         * lib/logl.c: Likewise.
88958         * lib/sinl.c: Likewise.
88959         * lib/sqrtl.c: Likewise.
88960         * lib/tanl.c: Likewise.
88962         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
88963         * lib/isnanf.h: Remove file.
88964         * lib/isnand.h: Remove file.
88965         * lib/isnanl.h: Remove file.
88966         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
88967         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
88968         macros.
88969         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
88970         HAVE_ISNANF, don't define it as a C macro.
88971         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
88972         HAVE_ISNAND, don't define it as a C macro.
88973         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
88974         HAVE_ISNANL, don't define it as a C macro.
88975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
88976         HAVE_ISNAN[FDL].
88977         * modules/isnanf (Files): Remove lib/isnanf.h.
88978         (Depends-on): Add math.
88979         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88980         (Include): Specify <math.h> instead of isnanf.h.
88981         * modules/isnand (Files): Remove lib/isnand.h.
88982         (Depends-on): Add math.
88983         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88984         (Include): Specify <math.h> instead of isnand.h.
88985         * modules/isnanl (Files): Remove lib/isnanl.h.
88986         (Depends-on): Add math.
88987         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
88988         (Include): Specify <math.h> instead of isnanl.h.
88989         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
88990         HAVE_ISNAN[FDL].
88991         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
88992         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
88993         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
88994         * NEWS: Mention the change.
88996 2008-10-18  Bruno Haible  <bruno@clisp.org>
88998         Add getusershell(), setusershell(), endusershell() declarations to
88999         <unistd.h>.
89000         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89001         declarations.
89002         * lib/getusershell.c: Include unistd.h.
89003         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89004         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89005         HAVE_GETUSERSHELL.
89006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89007         and HAVE_GETUSERSHELL.
89008         * modules/getusershell (Depends-on): Add unistd, extensions.
89009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89010         (Include): Specify <unistd.h>.
89011         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89012         HAVE_GETUSERSHELL.
89014 2008-10-18  Bruno Haible  <bruno@clisp.org>
89016         Add a getloadavg() declaration to <stdlib.h>.
89017         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89018         getloadavg declaration.
89019         (getloadavg): New declaration.
89020         * lib/getloadavg.c: Include <stdlib.h> first.
89021         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89022         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89023         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89025         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89026         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89028         (Include): Specify <stdlib.h>.
89029         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89030         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89032 2008-10-18  Bruno Haible  <bruno@clisp.org>
89034         * lib/dirchownmod.c: Don't include lchmod.h.
89036         Move the lchmod() declaration to <sys/stat.h>.
89037         * lib/lchmod.h: Remove file.
89038         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89039         (lchmod): New declaration, moved here from lib/lchown.h.
89040         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89041         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89043         and HAVE_LCHMOD.
89044         * modules/lchmod (Files): Remove lib/lchmod.h.
89045         (Depends-on): Add sys_stat, extensions.
89046         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89047         (Include): Specify <sys/stat.h> instead of lchmod.h.
89048         * modules/sys_stat (Depends-on): Add link-warning.
89049         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89050         definition of GL_LINK_WARNING.
89051         * NEWS: Mention the change.
89053 2008-10-18  Bruno Haible  <bruno@clisp.org>
89055         * lib/fchdir.c: Don't include dirfd.h.
89056         * lib/fts.c: Likewise.
89057         * lib/getcwd.c: Likewise.
89058         * lib/glob.c: Likewise.
89060         Move the dirfd() declaration to <dirent.h>.
89061         * lib/dirfd.h: Remove file.
89062         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89063         (dirfd): New declaration.
89064         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89065         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89066         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89067         HAVE_DECL_DIRFD.
89068         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89069         HAVE_DECL_DIRFD.
89070         * modules/dirfd (Files): Remove lib/dirfd.h.
89071         (Depends-on): Add dirent, extensions.
89072         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89073         (Include): Specify <dirent.h> instead of dirfd.h.
89074         * modules/dirent (Depends-on): Add link-warning.
89075         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89076         definition of GL_LINK_WARNING.
89077         * NEWS: Mention the change.
89079 2008-10-18  Bruno Haible  <bruno@clisp.org>
89081         Move the euidaccess() declaration to <unistd.h>.
89082         * lib/euidaccess.h: Remove file.
89083         * lib/unistd.in.h (euidaccess): New declaration.
89084         * lib/euidaccess.c: Don't include euidaccess.h.
89085         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89086         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89088         and HAVE_EUIDACCESS.
89089         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89090         (Depends-on): Add unistd.
89091         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89092         (Include): Specify <unistd.h> instead of euidaccess.h.
89093         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89094         HAVE_EUIDACCESS.
89095         * NEWS: Mention the change.
89097 2008-10-18  Bruno Haible  <bruno@clisp.org>
89099         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89101         Move the getdomainname() declaration to <unistd.h>.
89102         * lib/getdomainname.h: Remove file.
89103         * lib/unistd.in.h (getdomainname): New declaration.
89104         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89105         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89106         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89107         HAVE_GETDOMAINNAME.
89108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89109         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89110         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89111         (Depends-on): Add unistd, extensions.
89112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89113         (Includes): Specify <unistd.h> instead of getdomainname.h.
89114         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89115         HAVE_GETDOMAINNAME.
89116         * NEWS: Mention the change.
89118 2008-10-18  Bruno Haible  <bruno@clisp.org>
89120         * modules/dirent: New file.
89121         * m4/dirent_h.m4: New file.
89122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89123         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89124         * modules/fchdir (Files): Remove lib/dirent.in.h.
89125         (Depends-on): Add dirent.
89126         (Makefile.am): Move rules to modules/dirent.
89127         * doc/posix-headers/dirent.texi: Mention the new module.
89129 2008-10-18  Bruno Haible  <bruno@clisp.org>
89131         Avoid -Wunused-parameter warnings in public gnulib header files.
89132         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89133         macro.
89134         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89136 2008-10-18  Bruno Haible  <bruno@clisp.org>
89138         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89139         * doc/glibc-functions/error.texi: Mention the module 'error'.
89140         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89141         * doc/glibc-functions/getdomainname.texi: Mention the module
89142         'getdomainname'.
89143         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89144         * doc/glibc-functions/getpagesize.texi: Mention the module
89145         'getpagesize'.
89146         * doc/glibc-functions/getusershell.texi: Mention the module
89147         'getusershell'.
89148         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89149         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89150         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89151         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89152         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89153         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89154         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89155         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89156         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89157         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89158         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89159         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89160         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89161         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89163 2008-10-17  Bruno Haible  <bruno@clisp.org>
89165         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89166         HP-UX and IRIX, use -0.0L.
89167         * tests/test-ceill.c (minus_zero): Likewise.
89168         * tests/test-floorl.c (minus_zero): Likewise.
89169         * tests/test-frexpl.c (minus_zero): Likewise.
89170         * tests/test-isnan.c (minus_zerol): Likewise.
89171         * tests/test-isnanl.h (minus_zero): Likewise.
89172         * tests/test-ldexpl.c (minus_zero): Likewise.
89173         * tests/test-roundl.c (minus_zero): Likewise.
89174         * tests/test-signbit.c (minus_zerol): Likewise.
89175         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89176         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89177         * tests/test-truncl.c (minus_zero): Likewise.
89178         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89179         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89180         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89181         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89183 2008-10-17  Bruno Haible  <bruno@clisp.org>
89185         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89186         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89187         that it gets activated only for gcc >= 3.0.
89188         * lib/dirent.in.h: Likewise.
89189         * lib/errno.in.h: Likewise.
89190         * lib/fcntl.in.h: Likewise.
89191         * lib/float.in.h: Likewise.
89192         * lib/iconv.in.h: Likewise.
89193         * lib/inttypes.in.h: Likewise.
89194         * lib/locale.in.h: Likewise.
89195         * lib/math.in.h: Likewise.
89196         * lib/netdb.in.h: Likewise.
89197         * lib/netinet_in.in.h: Likewise.
89198         * lib/search.in.h: Likewise.
89199         * lib/signal.in.h: Likewise.
89200         * lib/spawn.in.h: Likewise.
89201         * lib/stdarg.in.h: Likewise.
89202         * lib/stdint.in.h: Likewise.
89203         * lib/stdio.in.h: Likewise.
89204         * lib/stdlib.in.h: Likewise.
89205         * lib/string.in.h: Likewise.
89206         * lib/strings.in.h: Likewise.
89207         * lib/sys_file.in.h: Likewise.
89208         * lib/sys_ioctl.in.h: Likewise.
89209         * lib/sys_select.in.h: Likewise.
89210         * lib/sys_socket.in.h: Likewise.
89211         * lib/sys_stat.in.h: Likewise.
89212         * lib/sys_time.in.h: Likewise.
89213         * lib/sysexits.in.h: Likewise.
89214         * lib/time.in.h: Likewise.
89215         * lib/unistd.in.h: Likewise.
89216         * lib/wchar.in.h: Likewise.
89217         * lib/wctype.in.h: Likewise.
89218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89220 2008-10-17  Jim Meyering  <meyering@redhat.com>
89222         ignore-value: don't depend on inline module
89223         * modules/ignore-value (Depends-on): Remove 'inline'.
89224         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
89225         Suggestion from Bruno Haible.
89227 2008-10-17  Bruno Haible  <bruno@clisp.org>
89229         New implementation of condition variables for Win32.
89230         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
89231         (gl_linked_waitqueue_t): New type.
89232         (gl_cond_t): Use it.
89233         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
89234         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
89235         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
89236         (glthread_cond_init_func, glthread_cond_wait_func,
89237         glthread_cond_timedwait_func, glthread_cond_signal_func,
89238         glthread_cond_broadcast_func, glthread_cond_destroy_func):
89239         Reimplemented on the basis of gl_linked_waitqueue_t.
89240         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
89241         gl_waitqueue_t.
89242         (gl_rwlock_t): Update.
89243         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
89245 2008-10-17  Simon Josefsson  <simon@josefsson.org>
89247         * modules/recvfrom (Depends-on): Add dependency on getpeername.
89248         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89250 2008-10-17  Jim Meyering  <meyering@redhat.com>
89252         ignore-value: new module
89253         * modules/ignore-value: New file.
89254         * lib/ignore-value.h: New file.
89255         * MODULES.html.sh (Compiler warning management): New section,
89256         just for this module.  More to come.
89258 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89260         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89261         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89262         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89264 2008-10-16  Jim Meyering  <meyering@redhat.com>
89266         openat-die.c: avoid 'no previous prototype' warning
89267         * lib/openat-die.c: Include "openat.h".
89268         Reported by Reuben Thomas <rrt@sc3d.org>.
89270 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89272         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89273         * lib/netdb.in.h: Fix typo.
89274         Reported by Bruno Haible  <bruno@clisp.org>
89276         * lib/netdb.in.h: Include sys/socket.h for platforms without
89277         netdb.h, to get structures like hostent on MinGW.
89278         * modules/netdb (Depends-on): Add sys_socket.
89280 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89282         * modules/netdb, modules/netdb-tests: New file.
89283         * m4/netdb_h.m4: New file.
89284         * lib/netdb.in.h: Add, currently just an empty file pending
89285         definitions.
89286         * tests/test-netdb.c: New file.
89287         * doc/posix-headers/netdb.texi: Mention that we replace it if
89288         needed.
89289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89290         netdb.
89292 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89294         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89295         with code.
89297 2008-10-13  Bruno Haible  <bruno@clisp.org>
89299         * lib/glthread/cond.c (glthread_cond_wait_func,
89300         glthread_cond_timedwait_func): Add a comment.
89302 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89304         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89305         * tests/test-select.c: Likewise,
89307 2008-10-13  Bruno Haible  <bruno@clisp.org>
89309         * lib/glthread/cond.c (glthread_cond_wait_func,
89310         glthread_cond_timedwait_func): Fix variable name.
89311         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89313 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89315         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89316         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89317         struct sockaddr.sa_len.
89318         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89320 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89322         * build-aux/pmccabe2html: Add css and css_url parameters.
89324 2008-10-12  Bruno Haible  <bruno@clisp.org>
89326         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89327         calling aclx_get.
89328         Reported by Rainer Tammer <tammer@tammer.net>.
89330 2008-10-12  Bruno Haible  <bruno@clisp.org>
89332         Use msvcrt aware primitives for creation/termination of Win32 threads.
89333         * lib/glthread/thread.c: Include <process.h>.
89334         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89335         (wrapper_func): Update signature.
89336         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89338 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89339             Bruno Haible  <bruno@clisp.org>
89341         Provide a Win32 implementation of the 'cond' module.
89342         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89343         * lib/glthread/cond.c (glthread_cond_init_func,
89344         glthread_cond_wait_func, glthread_cond_timedwait_func,
89345         glthread_cond_signal_func, glthread_cond_broadcast_func,
89346         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89347         * modules/cond (Dependencies): Add gettimeofday.
89349 2008-10-11  Bruno Haible  <bruno@clisp.org>
89351         Make sleep work on older versions of mingw.
89352         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89353         only whether it exists.
89354         * doc/posix-functions/sleep.texi: Mention the problem with older
89355         versions of mingw.
89357 2008-10-11  Bruno Haible  <bruno@clisp.org>
89359         New module 'shutdown'.
89360         * modules/shutdown: New file.
89361         * lib/sys_socket.in.h (shutdown): New declaration.
89362         * lib/winsock.c (shutdown): New function.
89363         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89364         GNULIB_SHUTDOWN.
89365         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89366         * doc/posix-functions/shutdown.texi: Document the new module.
89368 2008-10-11  Jim Meyering  <meyering@redhat.com>
89370         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89372 2008-10-11  Bruno Haible  <bruno@clisp.org>
89374         New module 'fclose'.
89375         * modules/fclose: New file.
89376         * lib/stdio.in.h (fclose): New declaration.
89377         * lib/fclose.c: New file.
89378         * m4/fclose.m4: New file.
89379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89380         REPLACE_FCLOSE.
89381         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
89382         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
89383         REPLACE_FCLOSE.
89384         * modules/close (Depends-on): fclose.
89385         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
89387 2008-10-11  Bruno Haible  <bruno@clisp.org>
89389         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
89390         set errno and don't call _close.
89392 2008-10-10  Bruno Haible  <bruno@clisp.org>
89394         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
89395         ACL, not afterwards. Fixes test failure on Cygwin.
89397 2008-10-09  Ben Pfaff  <blp@gnu.org>
89399         * build-aux/announce-gen: Fix gnulib version related part of usage
89400         message.  Die with a useful error message if no tarballs are
89401         found.
89403 2008-10-10  Jim Meyering  <meyering@redhat.com>
89405         bootstrap: use git's --depth=N option only if it's supported
89406         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
89407         recognize the --depth option.  Reported by Pádraig Brady.
89409 2008-10-09  Bruno Haible  <bruno@clisp.org>
89411         New module 'ioctl'.
89412         * modules/ioctl: New file.
89413         * lib/sys_socket.in.h (ioctl): Remove declaration.
89414         * lib/winsock.c: Include <sys/ioctl.h>.
89415         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
89416         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89417         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
89418         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
89419         * doc/posix-functions/ioctl.texi: Mention the new module.
89421 2008-10-09  Bruno Haible  <bruno@clisp.org>
89423         New module 'sys_ioctl'.
89424         * lib/sys_ioctl.in.h: New file.
89425         * m4/sys_ioctl_h.m4: New file.
89426         * modules/sys_ioctl: New file.
89427         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
89429 2008-10-09  Bruno Haible  <bruno@clisp.org>
89431         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
89432         * lib/winsock.c: Include <stdarg.h>.
89433         (rpl_ioctl): Change to second argument 'int' and then varargs.
89435 2008-10-09  Bruno Haible  <bruno@clisp.org>
89437         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
89438         when the sys_socket module is present and the system has <winsock2.h>.
89440 2008-10-09  Bruno Haible  <bruno@clisp.org>
89442         * doc/posix-functions/close.texi: Mention module 'close' instead of
89443         module 'sys_socket'.
89445 2008-10-09  Bruno Haible  <bruno@clisp.org>
89447         * doc/glibc-headers/sys_ioctl.texi: New file.
89448         * doc/gnulib.texi: Include it.
89450 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89451             Bruno Haible  <bruno@clisp.org>
89453         Combine the two replacements of 'close'.
89454         * lib/sys_socket.in.h (close): Define to a reminder to include
89455         <unistd.h>.
89456         (_gl_close_fd_maybe_socket): New declaration.
89457         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
89458         * lib/winsock.c (close): Remove undefinition.
89459         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
89460         needed for the gnulib module 'close'.
89461         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
89462         define to an error symbol or to a warning, if suitable.
89463         * lib/close.c: Include <sys/socket.h>.
89464         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
89465         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
89466         UNISTD_H_HAVE_WINSOCK2_H.
89467         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
89468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89469         UNISTD_H_HAVE_WINSOCK2_H.
89470         * modules/sys_socket (Files): Add m4/unistd_h.m4.
89471         (configure.ac): Set a module indicator.
89472         (Makefile.am): Substitute GNULIB_CLOSE.
89473         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
89474         * modules/poll-tests (Depends-on): Add close.
89475         * modules/select-tests (Depends-on): Likewise.
89477 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89478             Bruno Haible  <bruno@clisp.org>
89480         New module 'close'.
89481         * modules/close: New file.
89482         * lib/unistd.in.h (close): Move declaration out of the
89483         FCHDIR_REPLACEMENT scope.
89484         (_gl_unregister_fd): New declaration.
89485         * lib/close.c: New file.
89486         * lib/fchdir.c (rpl_close): Remove function.
89487         * m4/close.m4: New file.
89488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89489         close.
89490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
89491         REPLACE_CLOSE.
89492         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
89493         REPLACE_CLOSE.
89494         * modules/fchdir (Depends-on): Add close.
89496 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89497             Bruno Haible  <bruno@clisp.org>
89499         * lib/fcntl.in.h (open): Simplify conditionals.
89500         (_gl_register_fd): New declaration.
89501         * lib/fchdir.c (rpl_open): Remove function.
89502         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
89503         also.
89504         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
89505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89506         open.
89508 2008-10-09  Jim Meyering  <meyering@redhat.com>
89510         GNUmakefile: use the more name-space-friendly "_version"
89511         * top/GNUmakefile (_dummy): Update.
89512         (_version): Rename from "version".
89514 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89515             Bruno Haible  <bruno@clisp.org>
89517         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
89518         rpl_close.
89519         (_gl_register_fd): New function, extracted from rpl_open.
89520         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
89521         (rpl_open, rpl_opendir): Use _gl_register_fd.
89523 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89525         Fix organization of 'open' replacement.
89526         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
89527         (gl_FUNC_OPEN): Use it.
89528         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
89530 2008-10-08  Bruno Haible  <bruno@clisp.org>
89532         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
89534 2008-10-08  Simon Josefsson  <simon@josefsson.org>
89536         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
89537         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
89538         listen).
89540 2008-10-08  Eric Blake  <ebb9@byu.net>
89542         GNUmakefile: add 'make version' target
89543         * top/GNUmakefile (_curr-ver): Split version update rules...
89544         (version): ...into a target.
89546 2008-10-07  Bruno Haible  <bruno@clisp.org>
89548         Use a more portable replacement expression for -0.0L.
89549         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
89550         instead of -0.0L. Fix m4 quotation.
89552         * tests/test-signbit.c: Include <float.h>.
89553         (minus_zero): New variable.
89554         (test_signbitl): Use minus_zero instead of -zero.
89555         * modules/signbit-tests (Depends-on): Add float.
89557         * tests/test-ceill.c: Include <float.h>.
89558         (zero): Remove variable.
89559         (minus_zero): New variable.
89560         (main): Use minus_zero instead of -zero.
89561         * modules/ceill-tests (Depends-on): Add float.
89563         * tests/test-floorl.c: Include <float.h>.
89564         (zero): Remove variable.
89565         (minus_zero): New variable.
89566         (main): Use minus_zero instead of -zero.
89567         * modules/floorl-tests (Depends-on): Add float.
89569         * tests/test-roundl.c: Include <float.h>.
89570         (zero): Remove variable.
89571         (minus_zero): New variable.
89572         (main): Use minus_zero instead of -zero.
89573         * modules/roundl-tests (Depends-on): Add float.
89575         * tests/test-truncl.c: Include <float.h>.
89576         (zero): Remove variable.
89577         (minus_zero): New variable.
89578         (main): Use minus_zero instead of -zero.
89579         * modules/truncl-tests (Depends-on): Add float.
89581         * tests/test-frexpl.c (zero): Remove variable.
89582         (minus_zero): New variable.
89583         (main): Use minus_zero instead of -zero.
89584         * modules/frexpl-tests (Depends-on): Add float.
89586         * tests/test-isnan.c (zerol): Remove variable.
89587         (minus_zerol): New variable.
89588         (test_long_double): Use minus_zerol instead of -zerol.
89589         * modules/isnan-tests (Depends-on): Add float.
89591         * tests/test-isnanl.h (zero): Remove variable.
89592         (minus_zero): New variable.
89593         (main): Use minus_zero instead of -zero.
89594         * modules/isnanl-nolibm-tests (Depends-on): Add float.
89595         * modules/isnanl-tests (Depends-on): Add float.
89597         * tests/test-ldexpl.c (zero): Remove variable.
89598         (minus_zero): New variable.
89599         (main): Use minus_zero instead of -zero.
89600         * modules/ldexpl-tests (Depends-on): Add float.
89602         * tests/test-snprintf-posix.h (zerol): Remove variable.
89603         (minus_zerol): New variable.
89604         (test_function): Use minus_zerol instead of -zerol.
89605         * modules/snprintf-posix-tests (Depends-on): Add float.
89606         * modules/vsnprintf-posix-tests (Depends-on): Add float.
89608         * tests/test-sprintf-posix.h (zerol): Remove variable.
89609         (minus_zerol): New variable.
89610         (test_function): Use minus_zerol instead of -zerol.
89611         * modules/sprintf-posix-tests (Depends-on): Add float.
89612         * modules/vsprintf-posix-tests (Depends-on): Add float.
89614         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
89615         (minus_zerol): New variable.
89616         (test_function): Use minus_zerol instead of -zerol.
89617         * modules/vasnprintf-posix-tests (Depends-on): Add float.
89619         * tests/test-vasprintf-posix.c (zerol): Remove variable.
89620         (minus_zerol): New variable.
89621         (test_function): Use minus_zerol instead of -zerol.
89622         * modules/vasprintf-posix-tests (Depends-on): Add float.
89624 2008-10-07  Simon Josefsson  <simon@josefsson.org>
89626         * MODULES.html.sh (Support for building documentation): Mention
89627         pmccabe2html.  Sort entries.
89629         Add pmccabe2html module, from gnupdf.
89630         * build-aux/pmccabe.css: New file.
89631         * build-aux/pmccabe2html: New file.
89632         * m4/pmccabe2html.m4: New file.
89633         * modules/pmccabe2html: New file.
89635 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
89637         flock: new module
89638         * MODULES.html.sh: Add to list of modules.
89639         * lib/flock.c: flock implementation for Windows and Unix systems
89640         which have fcntl.
89641         * doc/glibc-functions/flock.texi: Update documentation.
89642         * lib/sys_file.in.h: <sys/file.h> header file.
89643         * m4/flock.m4: M4 macros.
89644         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
89645         * modules/flock: flock module.
89646         * modules/flock-tests: flock tests module.
89647         * modules/sys_file: sys/file.h module.
89648         * tests/test-flock.c: test suite for flock.
89650 2008-10-06  Jim Meyering  <meyering@redhat.com>
89652         bootstrap: check for LT_INIT more portably still ;-)
89653         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
89654         Spotted by Bruno Haible.
89656 2008-10-06  Eric Blake  <ebb9@byu.net>
89658         test-signbit: avoid tripping Irix cc bug on -0.0L
89659         * tests/test-signbit.c (minus_zerol): Delete, and replace with
89660         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
89661         entire testsuite consistent and avoids an Irix 6.2 bug.
89663 2008-10-05  Bruno Haible  <bruno@clisp.org>
89664             Jim Meyering  <jim@meyering.net>
89666         Add an option for ignoring EPIPE during close_stdout.
89667         * lib/closeout.h: Include <stdbool.h>.
89668         (close_stdout_set_ignore_EPIPE): New declaration.
89669         * lib/closeout.c: Include <stdbool.h>.
89670         (ignore_EPIPE): New variable.
89671         (close_stdout_set_ignore_EPIPE): New function.
89672         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
89673         * lib/close-stream.c (close_stream): Mention the possible EPIPE
89674         failure.
89675         * modules/closeout (Depends-on): Add stdbool.
89677 2008-10-05  Bruno Haible  <bruno@clisp.org>
89679         * modules/accept: New file.
89680         * modules/bind: New file.
89681         * modules/connect: New file.
89682         * modules/getpeername: New file.
89683         * modules/getsockname: New file.
89684         * modules/getsockopt: New file.
89685         * modules/listen: New file.
89686         * modules/recv: New file.
89687         * modules/recvfrom: New file.
89688         * modules/send: New file.
89689         * modules/sendto: New file.
89690         * modules/setsockopt: New file.
89691         * modules/socket: New file.
89692         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
89693         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
89694         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
89695         the particular module is requested. Add a link warning when the
89696         particular module is not requested.
89697         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
89698         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
89699         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
89700         the particular module is requested.
89701         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
89702         gl_SYS_SOCKET_H_DEFAULTS): New macros.
89703         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
89704         * modules/sys_socket (Depends-on): Add link-warning.
89705         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
89706         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
89707         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
89708         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
89709         GL_LINK_WARNING.
89710         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
89711         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
89712         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
89713         * doc/posix-functions/getpeername.texi: Mention the new module
89714         'getpeername'.
89715         * doc/posix-functions/getsockname.texi: Mention the new module
89716         'getsockname'.
89717         * doc/posix-functions/getsockopt.texi: Mention the new module
89718         'getsockopt'.
89719         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
89720         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
89721         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
89722         * doc/posix-functions/send.texi: Mention the new module 'send'.
89723         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
89724         * doc/posix-functions/setsockopt.texi: Mention the new module
89725         'setsockopt'.
89726         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
89727         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
89728         listen, connect, accept.
89729         * modules/select-tests (Depends-on): Likewise.
89731 2008-10-05  Bruno Haible  <bruno@clisp.org>
89733         * lib/winsock.c (strerror): Remove unused #undef.
89734         (rpl_close): Remove unused local variable.
89736         * modules/sys_socket (Depends-on); Add errno.
89738 2008-10-05  Bruno Haible  <bruno@clisp.org>
89740         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
89741         (select): Add a link warning when the 'select' module is not used.
89742         * modules/sys_select (Depends-on): Add link-warning.
89743         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
89744         Suggested by Paolo Bonzini.
89746 2008-10-05  Jim Meyering  <meyering@redhat.com>
89748         bootstrap: check for LT_INIT more portably
89749         * build-aux/bootstrap: Avoid using grep -E, since it's not
89750         portable enough.  Suggestion from Bruno Haible.
89752 2008-10-05  Bruno Haible  <bruno@clisp.org>
89754         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
89755         as being fixed by gnulib.
89757 2008-10-05  Bruno Haible  <bruno@clisp.org>
89759         * modules/select-tests: New file, mostly copied from
89760         modules/sys_select-tests.
89761         * tests/test-select.c: New file, mostly copied from
89762         tests/test-sys_select.c.
89763         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
89764         * modules/sys_select-tests (Depends-on): Remove all dependencies.
89765         (Makefile.am): Remove test_sys_select_LDADD.
89767         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
89768         to an undefined symbol, for an error message.
89769         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
89770         (gl_SYS_SELECT_H_DEFAULTS): New macro.
89771         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
89772         winsock-select.c here.
89773         * modules/sys_select (Files): Remove lib/winsock-select.c.
89774         (Depends-on): Remove alloca.
89775         (Makefile.am): Substitute GNULIB_SELECT.
89776         * modules/select: New file.
89777         * doc/posix-functions/select.texi: Update.
89779 2008-10-05  Bruno Haible  <bruno@clisp.org>
89781         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
89782         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
89783         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
89784         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
89785         getdtablesize.
89786         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
89787         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
89789 2008-10-05  Bruno Haible  <bruno@clisp.org>
89791         * modules/getdtablesize-tests: New file.
89792         * tests/test-getdtablesize.c: New file.
89794         New module 'getdtablesize'.
89795         * lib/unistd.in.h (getdtablesize): New declaration.
89796         * lib/getdtablesize.c: New file.
89797         * m4/getdtablesize.m4: New file.
89798         * modules/getdtablesize: New file.
89799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89800         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
89801         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
89802         HAVE_GETDTABLESIZE.
89803         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
89805 2008-10-05  Bruno Haible  <bruno@clisp.org>
89807         * modules/sched (Makefile.am): Fix typo.
89808         Reported by Simon Josefsson.
89810 2008-10-05  Jim Meyering  <meyering@redhat.com>
89812         bootstrap: check for LT_INIT, too
89813         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
89814         are deprecated.  Suggestion from Ralf Wildenhues.
89816 2008-10-05  Bruno Haible  <bruno@clisp.org>
89818         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
89819         overriding them by ours.
89820         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
89822 2008-10-05  Jim Meyering  <meyering@redhat.com>
89824         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
89825         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
89826         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
89828 2008-10-04  Bruno Haible  <bruno@clisp.org>
89830         * modules/dup2 (License): Change to LGPLv2+.
89831         * modules/sleep (License): Likewise.
89832         * modules/perror (License): Likewise.
89833         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
89834         Blake.
89835         * modules/signal (License): Likewise.
89836         * modules/sigprocmask (License): Likewise.
89837         * modules/raise (License): Change to LGPLv2+, with approval by Jim
89838         Meyering.
89840 2008-10-04  Bruno Haible  <bruno@clisp.org>
89842         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
89843         Reported by Rainer Tammer <tammer@tammer.net>.
89845 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
89846             Bruno Haible  <bruno@clisp.org>
89848         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
89849         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
89850         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
89852 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
89854         filevercmp: new module
89855         * lib/filevercmp.h: New function filevercmp comparing version strings.
89856         * lib/filevercmp.c: Implementation of filevercmp function.
89857         * modules/filevercmp: Module metadata.
89858         * tests/test-filevercmp.c: Unit test for new module.
89859         * modules/filevercmp-tests: Unit test metadata.
89860         * MODULES.html.sh: Add filevercmp module.
89862 2008-10-03  Bruno Haible  <bruno@clisp.org>
89864         * lib/c-ctype.h: Add comment.
89865         Reported by Jim Meyering.
89867 2008-10-02  Bruno Haible  <bruno@clisp.org>
89869         * modules/posix_spawn-internal (Depends-on): Add 'open'.
89871 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89873         * build-aux/bootstrap: Allow renaming bootstrap, and change the
89874         name of bootstrap.conf accordingly.
89876 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89878         * build-aux/bootstrap: Install git-merge-changelog configuration
89879         items into .gitconfig if needed.
89881 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
89883         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
89884         git repository, and initialize/update it accordingly.
89886 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
89888         * modules/fsync-tests: New file.
89889         * tests/test-fsync.c: New file.
89891         New module 'fsync'.
89892         * lib/fsync.c: New file.
89893         * m4/fsync.m4: New file.
89894         * modules/fsync: New file.
89895         * lib/unistd.in.h (fsync): New declaration.
89896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
89897         GNULIB_FSYNC and HAVE_FSYNC.
89898         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
89899         * MODULES.html.sh (posix_functions): Add fsync.
89900         * doc/posix-functions/fsync.texi: Mention the new module.
89902 2008-10-02  Jim Meyering  <meyering@redhat.com>
89904         fts.c: sync with similar code from coreutils' remove.c
89905         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
89906         Guard also with "#if defined __linux__", since for now at least,
89907         this code is Linux-kernel-specific.
89909 2008-10-02  Jim Meyering  <meyering@redhat.com>
89911         fts: bug fixes
89912         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
89913         Include <sys/vfs.h>, not <sys/statfs.h>.
89915         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
89916         Include <sys/vfs.h>, not <sys/statfs.h>.
89918 2008-10-01  Bruno Haible  <bruno@clisp.org>
89920         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
89921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
89922         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
89923         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
89924         * doc/posix-functions/posix_spawnp.texi: Likewise.
89925         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
89926         whether posix_spawn actually works.
89927         * m4/pipe.m4 (gl_PIPE): Likewise.
89928         * modules/execute (Files): Add m4/posix_spawn.m4.
89929         * modules/pipe (Files): Add m4/posix_spawn.m4.
89930         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
89932 2008-10-01  Jim Meyering  <meyering@redhat.com>
89934         remove trailing spaces
89935         * NEWS: Likewise.
89936         * lib/poll.c (poll): Likewise.
89937         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
89938         * lib/winsock.c (rpl_close): Likewise.
89939         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
89940         * modules/yield: Likewise.
89941         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
89942         * tests/test-sys_select.c (connect_to_socket): Likewise.
89944         fts.c: adjust a new interface to be more generally useful
89945         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
89946         (fts_build): Adjust caller.
89948 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89950         * modules/cond-tests: New file.
89951         * tests/test-cond.c: New file.
89953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89954             Bruno Haible  <bruno@clisp.org>
89956         * modules/cond (Dependencies): Add errno, time.
89957         * lib/glthread/cond.h: Include <time.h>.
89958         (gl_cond_define, gl_cond_define_initialized): Use the same definition
89959         across platforms.
89961 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89962             Bruno Haible  <bruno@clisp.org>
89964         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
89966 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89967             Bruno Haible  <bruno@clisp.org>
89969         * modules/tls-tests (Depends-on): Add thread, yield.
89970         (configure.ac): Remove all checks.
89971         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
89972         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
89973         gl_thread_self): Remove definitions. Include glthread/thread.h and
89974         glthread/yield.h instead.
89975         (test_tls): Pass an additional NULL argument to gl_thread_join.
89977 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89978             Bruno Haible  <bruno@clisp.org>
89980         * modules/lock-tests (Depends-on): Add thread, yield.
89981         (configure.ac): Remove all checks.
89982         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
89983         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
89984         gl_thread_self): Remove definitions. Include glthread/thread.h and
89985         glthread/yield.h instead.
89986         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
89987         additional NULL argument to gl_thread_join.
89989 2008-09-30  Bruno Haible  <bruno@clisp.org>
89991         Fix the Win32 implementation of the 'thread' module.
89992         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
89993         pointer type.
89994         (gl_thread_self): Invoke gl_thread_self_func.
89995         (gl_thread_self_func): New declaration.
89996         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
89997         (do_init_self_key, init_self_key): New functions.
89998         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
89999         Remove some fields.
90000         (running_threads, running_lock): Remove variables.
90001         (get_current_thread_handle): New function.
90002         (gl_thread_self_func, wrapper_func, glthread_create_func,
90003         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90004         simplified.
90006 2008-09-30  Bruno Haible  <bruno@clisp.org>
90008         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90009         files.
90011 2008-09-30  Jim Meyering  <meyering@redhat.com>
90013         fts.m4: correct the test for statfs.f_type
90014         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90015         when checking for statfs.f_type.
90017 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90019         tests: avoid some compiler warnings
90020         * tests/test-memchr.c (main): Pass NULL indirectly.
90021         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90023 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90025         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90026         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90027         exactly specified dayshifts.
90028         (dayshift): New rule.
90029         (rel): Add dayshift.
90030         (relative_time_table) [tomorrow, yesterday, today, now]:
90031         Use tDAY_SHIFT in place of tDAY_UNIT.
90032         * tests/test-getdate.c: Add tests for now-disallowed countable
90033         dayshifts, e.g., "4 yesterday ago".
90035 2008-09-29  Bruno Haible  <bruno@clisp.org>
90037         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90038         * tests/test-posix_spawn1.in.sh: Renamed from
90039         tests/test-posix_spawn.in.sh.
90040         * tests/test-posix_spawn2.c: New file.
90041         * tests/test-posix_spawn2.in.sh: New file.
90042         * modules/posix_spawnp-tests (Files): Update.
90043         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90045 2008-09-29  Bruno Haible  <bruno@clisp.org>
90047         Propagate effects of putenv/setenv/unsetenv to child processes.
90048         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90049         * lib/pipe.c (create_pipe): Likewise.
90051 2008-09-29  Bruno Haible  <bruno@clisp.org>
90053         Enable use of shell scripts as executables in mingw.
90054         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90055         run the program as a shell script.
90056         * lib/pipe.c (create_pipe): Likewise.
90057         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90058         resulting array.
90060 2008-09-29  Eric Blake  <ebb9@byu.net>
90062         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90064 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90066         * doc/posix-functions/accept.texi: Update mingw problems.
90067         * doc/posix-functions/bind.texi: Update mingw problems.
90068         * doc/posix-functions/close.texi: Update mingw problems.
90069         * doc/posix-functions/connect.texi: Update mingw problems.
90070         * doc/posix-functions/getpeername.texi: Update mingw problems.
90071         * doc/posix-functions/getsockname.texi: Update mingw problems.
90072         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90073         * doc/posix-functions/ioctl.texi: Update mingw problems.
90074         * doc/posix-functions/listen.texi: Update mingw problems.
90075         * doc/posix-functions/recv.texi: Update mingw problems.
90076         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90077         * doc/posix-functions/select.texi: Update mingw problems.
90078         * doc/posix-functions/send.texi: Update mingw problems.
90079         * doc/posix-functions/sendto.texi: Update mingw problems.
90080         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90081         * doc/posix-functions/socket.texi: Update mingw problems.
90083 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90084             Bruno Haible  <bruno@clisp.org>
90086         * lib/sys_select.in.h: Include sys/time.h.
90087         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90088         * modules/sys_select: Depend on sys_time.
90089         * tests/test-sys_select.c: Test that sys/select.h defines struct
90090         timeval fully.
90092 2008-09-29  Bruno Haible  <bruno@clisp.org>
90094         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90095         * lib/sys_select.in.h: Likewise.
90097 2008-09-29  Bruno Haible  <bruno@clisp.org>
90099         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90101 2008-09-29  Bruno Haible  <bruno@clisp.org>
90103         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90104         Set LIBSOCKET instead of augmenting LIBS.
90105         * modules/sockets (Link): New section.
90106         * modules/sockets-tests (test_sockets_LDADD): New variable.
90107         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90108         * modules/poll-tests (test_poll_LDADD): New variable.
90109         * NEWS: Document the change.
90111 2008-09-29  Bruno Haible  <bruno@clisp.org>
90113         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90114         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90115         ARPA_INET_H directly.
90116         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90118 2008-09-28  Bruno Haible  <bruno@clisp.org>
90120         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90121         from gl_HEADER_SYS_SOCKET.
90122         (gl_HEADER_SYS_SOCKET): Invoke it.
90123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90125 2008-09-28  Bruno Haible  <bruno@clisp.org>
90127         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90128         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90129         Needed on OSF/1 4.0.
90131 2008-09-28  Bruno Haible  <bruno@clisp.org>
90133         Override open more carefully.
90134         * lib/open.c (orig_open): New function.
90135         (rpl_open): Use orig_open instead of open.
90136         * lib/fcntl.in.h: Add special invocation convention.
90137         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90138         (gl_FUNC_OPEN): Invoke it.
90140         Override freopen more carefully.
90141         * lib/freopen.c (orig_freopen): New function.
90142         (rpl_freopen): Use orig_freopen instead of freopen.
90143         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90144         (gl_FUNC_FREOPEN): Invoke it.
90146         Override fopen more carefully.
90147         * lib/fopen.c (orig_fopen): New function.
90148         (rpl_fopen): Use orig_fopen instead of fopen.
90149         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90150         (gl_FUNC_FOPEN): Invoke it.
90151         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90153 2008-09-28  Bruno Haible  <bruno@clisp.org>
90155         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90156         SIGPIPE.
90158 2008-09-28  Bruno Haible  <bruno@clisp.org>
90160         * tests/test-sigaction.c (handler, main): Disable the check whether
90161         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90162         glibc systems with LinuxThreads.
90164 2008-09-28  Bruno Haible  <bruno@clisp.org>
90166         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90168         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90169         with AIX xlc.
90170         * lib/fcntl.in.h (open): Likewise.
90171         Reported by Rainer Tammer <tammer@tammer.net>.
90173 2008-09-28  Bruno Haible  <bruno@clisp.org>
90175         * modules/posix_spawnp-tests: New file.
90176         * tests/test-posix_spawn.c: New file.
90177         * tests/test-posix_spawn.in.sh: New file.
90179         New module 'posix_spawnp'.
90180         * modules/posix_spawnp: New file.
90181         * lib/spawnp.c: New file, from GNU libc with modifications.
90182         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90184         New module 'posix_spawn'.
90185         * modules/posix_spawn: New file.
90186         * lib/spawn.c: New file, from GNU libc with modifications.
90187         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90189         New module 'posix_spawnattr_destroy'.
90190         * modules/posix_spawnattr_destroy: New file.
90191         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90192         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90193         module.
90195         New module 'posix_spawnattr_setsigmask'.
90196         * modules/posix_spawnattr_setsigmask: New file.
90197         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90198         modifications.
90199         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90200         new module.
90202         New module 'posix_spawnattr_getsigmask'.
90203         * modules/posix_spawnattr_getsigmask: New file.
90204         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90205         modifications.
90206         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90207         new module.
90209         New module 'posix_spawnattr_setsigdefault'.
90210         * modules/posix_spawnattr_setsigdefault: New file.
90211         * lib/spawnattr_setdefault.c: New file, from GNU libc with
90212         modifications.
90213         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
90214         new module.
90216         New module 'posix_spawnattr_getsigdefault'.
90217         * modules/posix_spawnattr_getsigdefault: New file.
90218         * lib/spawnattr_getdefault.c: New file, from GNU libc with
90219         modifications.
90220         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
90221         new module.
90223         New module 'posix_spawnattr_setschedpolicy'.
90224         * modules/posix_spawnattr_setschedpolicy: New file.
90225         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
90226         modifications.
90227         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
90228         new module.
90230         New module 'posix_spawnattr_getschedpolicy'.
90231         * modules/posix_spawnattr_getschedpolicy: New file.
90232         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
90233         modifications.
90234         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
90235         new module.
90237         New module 'posix_spawnattr_setschedparam'.
90238         * modules/posix_spawnattr_setschedparam: New file.
90239         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
90240         modifications.
90241         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
90242         new module.
90244         New module 'posix_spawnattr_getschedparam'.
90245         * modules/posix_spawnattr_getschedparam: New file.
90246         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
90247         modifications.
90248         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90249         new module.
90251         New module 'posix_spawnattr_setpgroup'.
90252         * modules/posix_spawnattr_setpgroup: New file.
90253         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90254         modifications.
90255         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90256         module.
90258         New module 'posix_spawnattr_getpgroup'.
90259         * modules/posix_spawnattr_getpgroup: New file.
90260         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90261         modifications.
90262         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90263         module.
90265         New module 'posix_spawnattr_setflags'.
90266         * modules/posix_spawnattr_setflags: New file.
90267         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90268         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90269         module.
90271         New module 'posix_spawnattr_getflags'.
90272         * modules/posix_spawnattr_getflags: New file.
90273         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90274         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90275         module.
90277         New module 'posix_spawnattr_init'.
90278         * modules/posix_spawnattr_init: New file.
90279         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90280         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90281         module.
90283         New module 'posix_spawn_file_actions_destroy'.
90284         * modules/posix_spawn_file_actions_destroy: New file.
90285         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90286         modifications.
90287         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90288         the new module.
90290         New module 'posix_spawn_file_actions_addopen'.
90291         * modules/posix_spawn_file_actions_addopen: New file.
90292         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90293         modifications.
90294         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90295         the new module.
90297         New module 'posix_spawn_file_actions_adddup2'.
90298         * modules/posix_spawn_file_actions_adddup2: New file.
90299         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90300         modifications.
90301         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90302         the new module.
90304         New module 'posix_spawn_file_actions_addclose'.
90305         * modules/posix_spawn_file_actions_addclose: New file.
90306         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90307         modifications.
90308         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90309         the new module.
90311         New module 'posix_spawn_file_actions_init'.
90312         * modules/posix_spawn_file_actions_init: New file.
90313         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90314         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90315         new module.
90317         New module 'posix_spawn-internal'.
90318         * modules/posix_spawn-internal: New file.
90319         * lib/spawn_int.h: New file, from GNU libc with modifications.
90320         * lib/spawni.c: New file, from GNU libc with modifications.
90321         * m4/posix_spawn.m4: New file.
90323         New module 'spawn'.
90324         * modules/spawn: New file.
90325         * lib/spawn.in.h: New file, from GNU libc with modifications.
90326         * m4/spawn_h.m4: New file.
90327         * doc/posix-headers/spawn.texi: Mention the new module.
90329 2008-09-28  Bruno Haible  <bruno@clisp.org>
90331         * modules/sched-tests: New file.
90332         * tests/test-sched.c: New file.
90334         New module 'sched'.
90335         * modules/sched: New file.
90336         * lib/sched.in.h: New file.
90337         * m4/sched_h.m4: New file.
90338         * doc/posix-headers/sched.texi: Mention the new module.
90340 2008-09-27  Eric Blake  <ebb9@byu.net>
90342         Fix previous patch, and tweak references to $0.
90343         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90344         (func_version, func_gnulib_dir): Don't call this program
90345         gnulib-tool.
90346         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90347         with using $0 in function.
90348         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90349         (func_fatal_error): Reuse the name the user invoked us with.
90351 2008-09-27  Bruno Haible  <bruno@clisp.org>
90353         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90354         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90355         (gl_ICONV_H): Not here.
90356         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90357         instead of assigning ICONV_H directly.
90359         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90361         WCHAR_H directly.
90363 2008-09-27  Bruno Haible  <bruno@clisp.org>
90365         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90366         * modules/arpa_inet (Depends-on): Add link-warning.
90367         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90368         * modules/unistd (Makefile.am): Likewise.
90370 2008-09-26  Bruno Haible  <bruno@clisp.org>
90372         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90373         variables.
90374         (func_version): Essentially copied from gnulib-tool.
90375         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90376         func_readlink): Copied from gnulib-tool.
90378 2008-09-26  Bruno Haible  <bruno@clisp.org>
90380         * gnulib-tool (func_version): Change directory to $gnulib_dir before
90381         invoking git-version-gen.
90383 2008-09-26  Bruno Haible  <bruno@clisp.org>
90385         * posix-modules: Update to directory names changed on 2008-01-19.
90386         Remove commas in output before splitting into words. No more need to
90387         avoid 'ftruncate' since 2007-02-19.
90389 2008-09-26  Bruno Haible  <bruno@clisp.org>
90391         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
90393 2008-09-26  Bruno Haible  <bruno@clisp.org>
90395         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
90396         * modules/fwriteerror (Depends-on): Add errno.
90398 2008-09-26  Bruno Haible  <bruno@clisp.org>
90400         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
90401         * tests/test-vc-list-files-cvs.sh: Likewise.
90403 2008-09-26  Bruno Haible  <bruno@clisp.org>
90405         * doc/posix-headers/sys_resource.texi: Reorder items.
90407 2008-09-26  Jim Meyering  <meyering@redhat.com>
90409         fts: tweak inode comparison function
90410         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
90411         inode numbers, as documented.
90413         fts: sort dirent entries on inode number before traversing
90414         This avoids a quadratic, seek-related performance penalty when
90415         operating on a directory containing many entries (measurable at 10k;
90416         3.5 hours at 2 million entries with a cold cache) on certain types
90417         of file systems, including ext3 and ext4, but not tmpfs.
90418         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
90419         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
90420         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90421         (fs_handles_readdir_ordered_dirents_efficiently): New function.
90422         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
90423         (fts_build): Set the stat.st_ino member from D_INO.
90424         If it is likely to be useful, sort dirent entries on inode number.
90426         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
90427         and the struct statfs.f_type member.
90428         * modules/fts (Depends-on): Add d-ino.
90430 2008-09-26  Bruno Haible  <bruno@clisp.org>
90432         * modules/sigpipe-die (Depends-on): Add sigpipe.
90434         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
90435         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
90436         and GNULIB_STDIO_H_SIGPIPE are set.
90437         * lib/stdio-write.c: New file.
90438         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
90439         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90440         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90441         REPLACE_STDIO_WRITE_FUNCS.
90442         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
90443         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90444         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90445         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90446         * modules/stdio (Files): Add lib/stdio-write.c.
90447         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
90448         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90449         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90450         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90451         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
90452         REPLACE_FPRINTF_POSIX.
90453         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
90454         REPLACE_PRINTF_POSIX.
90455         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
90456         REPLACE_VFPRINTF_POSIX.
90457         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
90458         REPLACE_VPRINTF_POSIX.
90459         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
90460         SIGPIPE issue.
90461         * doc/posix-functions/fputc.texi: Likewise.
90462         * doc/posix-functions/fputs.texi: Likewise.
90463         * doc/posix-functions/fwrite.texi: Likewise.
90464         * doc/posix-functions/printf.texi: Likewise.
90465         * doc/posix-functions/putc.texi: Likewise.
90466         * doc/posix-functions/putchar.texi: Likewise.
90467         * doc/posix-functions/puts.texi: Likewise.
90468         * doc/posix-functions/vfprintf.texi: Likewise.
90469         * doc/posix-functions/vprintf.texi: Likewise.
90471         * modules/safe-write (Depends-on): Add write.
90473         * modules/sigpipe-tests: New file.
90474         * tests/test-sigpipe.c: New file.
90475         * tests/test-sigpipe.sh: New file.
90477         * modules/write: New file.
90478         * lib/unistd.in.h: Include <sys/types.h>.
90479         (write): New declaration.
90480         * lib/write.c: New file.
90481         * m4/write.m4: New file.
90482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90483         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
90484         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
90485         GNULIB_WRITE, REPLACE_WRITE.
90486         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
90487         and the SIGPIPE issue.
90489         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
90490         (raise): New declaration.
90491         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
90492         (ext_signal): New function.
90493         (rpl_raise): New function.
90494         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
90495         GNULIB_SIGNAL_H_SIGPIPE.
90496         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
90497         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
90499         * modules/sigpipe: New file.
90500         * m4/sigpipe.m4: New file.
90502 2008-09-25  Derek Price  <derek@ximbiot.com>
90503             Bruno Haible  <bruno@clisp.org>
90505         * gnulib-tool (func_import): Report all license incompatibilities, not
90506         just the first one.
90508 2008-09-25  Bruno Haible  <bruno@clisp.org>
90510         * gnulib-tool (func_import): When computing the edits, consider not
90511         only the Makefile.ams that exist but also those that will be generated.
90513 2008-09-25  Simon Josefsson  <simon@josefsson.org>
90515         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
90516         fixes gnulib-tool --test warning about duplicate dependency.
90518 2008-09-25  Bruno Haible  <bruno@clisp.org>
90520         * gnulib-tool: Don't ask the user to perform edits in the generated
90521         Makefile.ams.
90522         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
90523         apply to the Makefile.am being generated.
90524         (func_emit_tests_Makefile_am): Execute edits that apply to the
90525         Makefile.am being generated.
90526         (func_import): Setup list of Makefile.am edits before emitting the
90527         Makefile.ams, not at the end.
90528         (func_create_testdir): Update.
90529         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90531 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90533         * gnulib-tool (func_import): Store the --tests-base option in the
90534         comment in gnulib-cache.m4.
90536 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
90538         * NEWS: Document increased portability that sys_select now provides.
90540         * lib/sys_select.in.h: Install select wrapper.
90541         * lib/sys_socket.in.h: Use more descriptive name when there is no
90542         select wrapper.
90543         * lib/winsock-select.c: New.
90544         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
90545         Require gl_HEADER_SYS_SOCKET.
90546         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
90547         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
90548         * tests/test-sys_select.c: Add functional tests.
90550 2008-09-24  Eric Blake  <ebb9@byu.net>
90552         open, fopen: close fd leak in last patch
90553         * lib/open.c (rpl_open): Close fd before returning error.
90554         * lib/fopen.c (rpl_fopen): Close fd before returning error.
90555         * doc/posix-functions/open.texi (open): Document that Irix also
90556         has the bug.
90557         * doc/posix-functions/fopen.texi (fopen): Likewise.
90558         Reported by Paolo Bonzini.
90560 2008-09-24  Bruno Haible  <bruno@clisp.org>
90562         Ensure that a filename ending in a slash cannot be used to access a
90563         non-directory.
90564         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
90565         to check whether it's really a directory.
90566         * lib/fopen.c: Include fcntl.h, unistd.h.
90567         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
90568         and fdopen().
90569         * modules/fopen (Depends-on): Add unistd.
90570         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
90571         * tests/test-fopen.c (main): Likewise.
90572         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
90573         * doc/posix-functions/fopen.texi: Likewise.
90574         Reported by Eric Blake.
90576 2008-09-23  Eric Blake  <ebb9@byu.net>
90578         c-stack: avoid compiler optimizations when provoking overflow
90579         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
90580         recursion harder to optimize, to ensure a stack overflow occurs.
90581         * tests/test-c-stack.c (recurse): Likewise.
90582         Borrowed from libsigsegv.
90584         c-stack: work around Irix sigaltstack bug
90585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
90586         whether sigaltstack uses wrong end of stack_t (copied in part from
90587         libsigsegv).
90588         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
90589         Irix bug, without requiring an over-allocation.
90590         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
90591         bug.
90593         fopen: document mingw bug on directories
90594         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
90595         not allowing a stream visiting a directory, even though reading
90596         from such a stream is not portable.
90598 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90600         * lib/poll.c: Rewrite.
90601         * modules/poll: Depend on alloca.
90603 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90605         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
90606         instead define prototypes for a full set of wrappers.  Ensure
90607         that Cygwin does not use the compatibility code, which is only
90608         for MinGW.
90609         * lib/winsock.c: New.
90610         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
90611         * modules/sys_socket: Add lib/winsock.c.
90613         * modules/poll-tests: Add errno and perror.
90614         * tests/test-poll.c: Use ioctl, not ioctlsocket.
90616 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90618         * tests/test-poll.c: Downgrade minimum needed Winsock version.
90620 2008-09-23  Bruno Haible  <bruno@clisp.org>
90622         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
90623         * doc/glibc-functions/*: Likewise.
90625 2008-09-23  Simon Josefsson  <simon@josefsson.org>
90627         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
90628         success.
90630 2008-09-22  Eric Blake  <ebb9@byu.net>
90631             Bruno Haible  <bruno@clisp.org>
90633         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
90634         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
90635         supply %A but mishandle pseudo-NaN.
90636         Reported by Simon Josefsson.
90638 2008-09-21  Bruno Haible  <bruno@clisp.org>
90640         * tests/test-lock.c (main): Tweak skip message.
90641         * tests/test-tls.c (main): Likewise.
90643 2008-09-21  Bruno Haible  <bruno@clisp.org>
90645         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
90646         whether 'struct sigaction' has sa_sigaction here...
90647         (gl_PREREQ_SIG_HANDLER_H): ... not here.
90648         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
90650 2008-09-21  Bruno Haible  <bruno@clisp.org>
90652         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
90653         section.
90654         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
90655         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
90656         the new section.
90657         (Support for obsolete systems lacking POSIX:2001): New section.
90658         (String handling <string.h>): Move strdup to the new section.
90659         Suggested by Simon Josefsson and Paolo Bonzini.
90661 2008-09-21  Bruno Haible  <bruno@clisp.org>
90663         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
90664         exponents in %e and %g results on 'long double'. Needed for mingw's
90665         improved *printf functions.
90666         * tests/test-vasprintf-posix.c (test_function): Likewise.
90667         * tests/test-snprintf-posix.h (test_function): Likewise.
90668         * tests/test-sprintf-posix.h (test_function): Likewise.
90669         Reported by Eric Blake.
90671 2008-09-21  Bruno Haible  <bruno@clisp.org>
90673         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
90674         * tests/test-sprintf-posix.h (test_function): Likewise.
90676 2008-09-21  Bruno Haible  <bruno@clisp.org>
90678         * modules/getpass (Depends-on): Add strdup-posix.
90680         New module 'strdup-posix'.
90681         * modules/strdup-posix: New file.
90682         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
90683         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
90684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90685         REPLACE_STRDUP.
90686         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
90687         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
90688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90689         strdup-posix.
90691         * modules/strdup (Depends-on): Remove malloc-posix.
90693 2008-09-20  Bruno Haible  <bruno@clisp.org>
90695         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
90696         Wildenhues.
90698 2008-09-20  Bruno Haible  <bruno@clisp.org>
90700         Ensure that wint_t gets defined on IRIX 5.3.
90701         * lib/wchar.in.h (wint_t): Define if not defined by the system.
90702         * lib/wctype.in.h (wint_t): Likewise.
90703         (__wctype_wint_t): Remove type.
90704         (isw*): Use wint_t instead of __wctype_wint_t.
90705         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
90706         * modules/wchar (Files): Add m4/wint_t.m4.
90707         (Makefile.am): Substitute HAVE_WINT_T.
90708         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
90709         * tests/test-wctype.c: Check that wint_t is defined.
90710         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
90711         * doc/posix-headers/wctype.texi: Likewise.
90712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
90714 2008-09-18  Bruno Haible  <bruno@clisp.org>
90716         * gnulib-tool (func_exit): Update comment.
90718 2008-09-18  Simon Josefsson  <simon@josefsson.org>
90720         * modules/getaddrinfo (Depends-on): Remove strdup, this module
90721         assumes strdup exists and does not depend on strdup to return
90722         ENOMEM on out of memory conditions.
90724 2008-09-18  Bruno Haible  <bruno@clisp.org>
90726         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
90727         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
90728         digits for the exponent.
90730 2008-09-18  Jim Meyering  <meyering@redhat.com>
90731             Bruno Haible  <bruno@clisp.org>
90733         * lib/vasnprintf.c (decimal_point_char): Define also if
90734         NEED_PRINTF_INFINITE_LONG_DOUBLE.
90736 2008-09-16  Bruno Haible  <bruno@clisp.org>
90737         and Eric Blake  <ebb9@byu.net>
90739         vasnprintf: support Irix 5.3
90740         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
90741         that mishandle long double infinity.
90742         Reported by Tom G. Christensen.
90744 2008-09-16  Bruno Haible  <bruno@clisp.org>
90746         * doc/glibc-functions/scandir.texi: Mention the function is missing on
90747         Solaris 9.
90748         * doc/glibc-functions/alphasort.texi: Likewise.
90749         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
90751 2008-09-16  Jim Meyering  <meyering@redhat.com>
90753         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
90754         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
90755         a umask modification leak out of a subshell.  Otherwise, the
90756         opensolaris /bin/sh would be accepted and thus cause unwarranted
90757         failures in the coreutils test suite.
90759 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
90761         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
90762         to succeed.
90764 2008-09-16  Jim Meyering  <meyering@redhat.com>
90766         avoid spurious test failure when library is built without ACL support
90767         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
90768         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
90769         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
90770         * tests/test-copy-acl.sh: Likewise.
90772 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90774         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
90775         based on character occurrence counts.
90777 2008-09-15  Eric Blake  <ebb9@byu.net>
90779         tests: avoid some compiler warnings
90780         * tests/test-memchr.c (main): Pass NULL indirectly.
90781         * tests/test-closein.c (main): Avoid unused variable.
90783 2008-09-15  Bruno Haible  <bruno@clisp.org>
90785         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
90786         are missing on OpenBSD 4.0 individually.
90787         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90789 2008-09-15  Bruno Haible  <bruno@clisp.org>
90791         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
90792         * doc/posix-functions/strerror.texi: Mention also Cygwin.
90793         * doc/posix-functions/perror.texi: Likewise.
90794         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
90795         is missing.
90796         Reported by Eric Blake.
90798         * lib/errno.in.h: Use replacement values >= 2000.
90799         Reported by Eric Blake.
90801 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90803         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
90804         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
90805         limit.
90806         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
90807         compareseq was aborted.
90809 2008-09-14  Bruno Haible  <bruno@clisp.org>
90811         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
90812         yvec_edit_count.
90813         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
90814         (fstrcmp_bounded): Simplify result computation accordingly.
90816 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90818         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
90819         (fstrcmp): Define in terms of fstrcmp_bounded.
90820         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
90821         lower_bound argument.
90822         Return quickly if the result is certainly < lower_bound.
90823         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
90825 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90827         * lib/diffseq.h (EARLY_ABORT): New macro.
90828         (compareseq): Change return type to bool. Return true when EARLY_ABORT
90829         evaluates to true.
90831 2008-09-14  Bruno Haible  <bruno@clisp.org>
90833         * modules/perror-tests: New file.
90834         * tests/test-perror.sh: New file.
90835         * tests/test-perror.c: New file.
90837         New module 'perror'.
90838         * lib/stdio.in.h (perror): New declaration.
90839         * lib/perror.c: New file.
90840         * m4/perror.m4: New file.
90841         * modules/perror: New file.
90842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
90843         * doc/posix-functions/perror.texi: Mention the perror module.
90844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
90845         REPLACE_PERROR.
90846         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
90847         REPLACE_PERROR.
90849 2008-09-14  Bruno Haible  <bruno@clisp.org>
90851         * modules/stdio (Makefile.am): Reorder to match the order in
90852         lib/stdio.in.h.
90853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90855 2008-09-13  Bruno Haible  <bruno@clisp.org>
90857         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
90859 2008-09-13  Bruno Haible  <bruno@clisp.org>
90861         Extend strerror to cover the added errno values.
90862         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
90863         (rpl_strerror): Provide error messages for the added errno values and
90864         for the WSA* values.
90865         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
90866         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
90867         strerror.
90868         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
90869         * modules/strerror (Depends-on): Add errno.
90870         * doc/posix-functions/strerror.texi: Document the change.
90871         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
90872         and EOVERFLOW.
90874 2008-09-13  Bruno Haible  <bruno@clisp.org>
90876         * modules/EOVERFLOW: Remove file.
90877         * m4/eoverflow.m4: Remove file.
90878         * modules/EOVERFLOW-tests: Remove file.
90879         * tests/test-EOVERFLOW.c: Remove file.
90880         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
90881         * modules/ftell (Depends-on): Likewise.
90882         * modules/getdelim (Depends-on): Likewise.
90883         * modules/getugroups (Depends-on): Likewise.
90884         * modules/poll (Depends-on): Likewise.
90885         * modules/snprintf (Depends-on): Likewise.
90886         * modules/sprintf-posix (Depends-on): Likewise.
90887         * modules/vasnprintf (Depends-on): Likewise.
90888         * modules/vasprintf (Depends-on): Likewise.
90889         * modules/vfprintf-posix (Depends-on): Likewise.
90890         * modules/vsnprintf (Depends-on): Likewise.
90891         * modules/vsprintf-posix (Depends-on): Likewise.
90892         * modules/xvasprintf (Depends-on): Likewise.
90893         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
90894         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
90895         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
90896         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
90897         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
90898         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
90899         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
90900         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
90901         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
90902         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
90903         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
90904         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
90905         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
90906         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
90907         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
90908         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
90909         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
90910         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
90911         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
90912         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
90913         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
90914         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
90915         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
90916         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
90917         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
90918         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
90919         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
90920         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
90921         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
90922         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
90923         * MODULES.html.sh: Remove EOVERFLOW.
90924         * NEWS: Mention the change.
90926 2008-09-13  Bruno Haible  <bruno@clisp.org>
90928         * modules/errno-tests: New file.
90929         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
90931         * lib/errno.in.h: New file.
90932         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
90933         * modules/errno: New file.
90934         * doc/posix-headers/errno.texi: Update documentation.
90935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
90937 2008-09-13  Bruno Haible  <bruno@clisp.org>
90939         * tests/test-poll.c: Use #if for native Windows, rather than testing
90940         __MSVCRT__.
90942 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90943             Bruno Haible  <bruno@clisp.org>
90945         * lib/glob.c: Don't include <pwd.h> on native Windows.
90946         (WINDOWS32): New macro.
90947         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
90949 2008-09-13  Bruno Haible  <bruno@clisp.org>
90951         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
90952         (ETIMEDOUT): Remove macro.
90953         (glthread_cond_timedwait_multithreaded): New declaration.
90954         (glthread_cond_timedwait): Use it.
90955         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
90956         (glthread_cond_timedwait_multithreaded): New function.
90958 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90960         * modules/poll-tests: Do not check for io.h.
90961         * tests/test-poll.c: Check for __MSVCRT__ instead.
90963 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90965         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
90966         * modules/poll-tests: Add inet_pton, stdbool, sockets.
90967         * tests/test-poll.c: Use them.  Use _pipe on Windows.
90969 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
90971         * modules/poll-tests: New.
90972         * tests/test-poll.c: New.
90974 2008-09-12  Eric Blake  <ebb9@byu.net>
90976         frexp: test for NetBSD failure on -0.0
90977         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
90978         not all, bugs from NetBSD 3.0 have been fixed.
90979         * doc/posix-functions/frexp.texi (frexp): Document bug.
90980         Reported by Thomas Klausner.
90982         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
90983         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
90984         literal -0.0.
90985         Reported by Jonathan C. Patschke <jp@centtech.com>.
90987 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90989         * lib/glthread/cond.h: Use dummy implementation also if
90990         USE_WIN32_THREADS.
90992 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90994         * modules/fnmatch-posix (License): Change to LGPLv2+.
90995         * modules/fnmatch-gnu (License): Likewise.
90997 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90999         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91001 2008-09-11  Jim Meyering  <meyering@redhat.com>
91003         * users.txt: Add gtk-vnc.
91005 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91007         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91008         rotate amounts.
91010         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91011         required for 16-bit and 8-bit rotates.
91012         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91013         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91014         UINT8_MAX instead of hard-coded constants.
91015         Suggested by Paul Eggert.
91017 2008-09-07  Bruno Haible  <bruno@clisp.org>
91019         * tests/test-striconveh.c (main): Check behaviour when converting from
91020         UTF-7.
91022         Make striconveh work better with stateful encodings.
91023         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91024         that iconv does not increment the inptr when returning -1/EINVAL.
91026 2008-09-07  Bruno Haible  <bruno@clisp.org>
91028         * build-aux/config.rpath: Update according to libtool-2.2.6.
91029         * build-aux/config.libpath: Likewise.
91031 2008-09-06  Bruno Haible  <bruno@clisp.org>
91033         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91034         * lib/freadptr.c (freadptr): Likewise.
91035         * lib/freadseek.c (freadptrinc): Likewise.
91036         Reported by Simon Josefsson.
91038 2008-09-06  Bruno Haible  <bruno@clisp.org>
91040         * modules/freadptr (License): Change to LGPLv2+.
91041         * modules/freadseek (License): Likewise.
91042         Suggested by Eric Blake.
91044         * modules/memchr2 (License): Change to LGPLv2+.
91045         Approved by Eric Blake.
91047 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91048             Bruno Haible  <bruno@clisp.org>
91050         Make gnulib-tool work with native 'sed' on AIX.
91051         * gnulib-tool (sed_noop): New variable.
91052         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91053         func_add_or_update, func_create_testdir): Use it to initialize sed
91054         script variables.
91055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91057 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91058             Bruno Haible  <bruno@clisp.org>
91060         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91061         also works after #include directives.
91063 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91065         getdate.y: reject an out-of-range timezone value
91066         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91067         the range [-24...+24].  When specified with only one or two digits,
91068         * tests/test-getdate.c: Tests for the fix.
91069         * doc/getdate.texi: Document this change.
91071 2008-09-03  Bruno Haible  <bruno@clisp.org>
91073         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91075 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91077         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91078         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91079         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91080         Blake <ebb9@byu.net>.
91082         * tests/test-bitrotate.c: Add more test vectors.
91084 2008-09-02  Eric Blake  <ebb9@byu.net>
91086         vasnprintf-posix: handle large precision via %.*d
91087         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91088         when handling it ourselves.
91089         * tests/test-vasnprintf-posix.c (test_function): Add test.
91090         * tests/test-snprintf-posix.h (test_function): Likewise.
91091         * tests/test-sprintf-posix.h (test_function): Likewise.
91092         * tests/test-vasprintf-posix.c (test_function): Likewise.
91093         Reported by Alain Guibert.
91095 2008-09-01  Eric Blake  <ebb9@byu.net>
91097         c-stack: make configure-time check more robust
91098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91099         successful sigaction call.
91100         Reported by Tom G. Christensen.
91102 2008-09-01  Bruno Haible  <bruno@clisp.org>
91104         New module 'findprog-lgpl'.
91105         * modules/findprog-lgpl: New file.
91106         * lib/findprog-lgpl.c: New file.
91107         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91108         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91109         to decide whether to use strdup or xstrdup, concatenated_filename or
91110         xconcatenated_filename.
91112 2008-09-01  Bruno Haible  <bruno@clisp.org>
91114         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91115         'xconcat-filename' (GPL).
91116         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91117         (License): Change to LGPLv2+.
91118         * modules/xconcat-filename: New file.
91119         * lib/concat-filename.h (concatenated_filename): Change specification.
91120         (xconcatenated_filename): New declaration.
91121         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91122         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91123         memory situations.
91124         * lib/xconcat-filename.c: New file.
91125         * NEWS: Mention the change.
91126         * lib/findprog.c: Include concat-filename.h, not filename.h.
91127         (find_in_path): Use xconcatenated_filename instead of
91128         concatenated_filename.
91129         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91130         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91131         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91132         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91133         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91134         instead of concatenated_filename.
91135         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91136         (execute_java_class): Use xconcatenated_filename instead of
91137         concatenated_filename.
91138         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91139         * modules/javacomp (Depends-on): Likewise.
91140         * modules/javaexec (Depends-on): Likewise.
91142 2008-09-01  Bruno Haible  <bruno@clisp.org>
91144         Split module 'filename' into 'filename' and 'concat-filename'.
91145         * modules/filename: Keep only lib/filename.h.
91146         (License): Change to LGPLv2+.
91147         * modules/concat-filename: New file, extracted from modules/filename.
91148         * lib/filename.h (concatenated_filename): Remove declaration.
91149         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91150         * lib/concat-filename.c: Include concat-filename.h.
91151         * NEWS: Mention the change.
91153 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91155         * lib/bitrotate.h (rotl8, rotr8): Add.
91157         * modules/bitrotate (configure.ac): Need
91158         AC_REQUIRE([AC_C_INLINE]).
91159         (Description): Mention stdint.h.  Reported by Bruno Haible
91160         <bruno@clisp.org>.
91162         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91163         Paolo Bonzini <bonzini@gnu.org>.
91165 2008-08-31  Bruno Haible  <bruno@clisp.org>
91167         Assume Solaris specific bi-arch conventions on Solaris systems.
91168         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91169         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91171         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91172         like acl_libdirstem.
91173         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91174         acl_libdirstem.
91175         * NEWS: Mention the change.
91176         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91178 2008-08-31  Jim Meyering  <meyering@redhat.com>
91180         * lib/strftime.h: Add comments describing the two added arguments.
91182         remove duplicate #include directives
91183         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91184         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91186 2008-08-31  Bruno Haible  <bruno@clisp.org>
91188         New module 'sigpipe-die'.
91189         * modules/sigpipe-die: New file.
91190         * lib/sigpipe-die.h: New file.
91191         * lib/sigpipe-die.c: New file.
91192         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91194 2008-08-31  Bruno Haible  <bruno@clisp.org>
91196         Don't override previously installed signal handlers.
91197         * lib/fatal-signal.c (saved_sigactions): New variable.
91198         (uninstall_handlers): Reset the signal to the saved handler, not
91199         to SIG_DFL (except when ignored).
91200         (install_handlers): Save the previous handlers.
91202 2008-08-30  Bruno Haible  <bruno@clisp.org>
91204         * gnulib-tool (func_reset_sigpipe): New function.
91205         (func_get_automake_snippet, func_modules_transitive_closure,
91206         func_import): Invoke it before a join command that reads from stdin,
91207         to avoid "echo: write error: Broken pipe" error messages on stderr.
91208         Reported by Sam Steingold <sds@gnu.org>.
91210 2008-08-30  Bruno Haible  <bruno@clisp.org>
91212         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
91213         Code copied from m4/open.m4.
91214         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
91215         access and the filename ends in a slash. Code copied from lib/open.c.
91216         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
91217         * tests/test-fopen.c (main): Check against bug with trailing slash.
91219 2008-08-29  Bruno Haible  <bruno@clisp.org>
91221         Avoid some "gcc -pedantic" warnings.
91222         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
91223         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
91224         * lib/dirent.in.h: Likewise.
91225         * lib/fcntl.in.h: Likewise.
91226         * lib/float.in.h: Likewise.
91227         * lib/iconv.in.h: Likewise.
91228         * lib/inttypes.in.h: Likewise.
91229         * lib/locale.in.h: Likewise.
91230         * lib/math.in.h: Likewise.
91231         * lib/netinet_in.in.h: Likewise.
91232         * lib/search.in.h: Likewise.
91233         * lib/signal.in.h: Likewise.
91234         * lib/stdarg.in.h: Likewise.
91235         * lib/stdint.in.h: Likewise.
91236         * lib/stdio.in.h: Likewise.
91237         * lib/stdlib.in.h: Likewise.
91238         * lib/string.in.h: Likewise.
91239         * lib/strings.in.h: Likewise.
91240         * lib/sys_select.in.h: Likewise.
91241         * lib/sys_socket.in.h: Likewise.
91242         * lib/sys_stat.in.h: Likewise.
91243         * lib/sys_time.in.h: Likewise.
91244         * lib/sysexits.in.h: Likewise.
91245         * lib/time.in.h: Likewise.
91246         * lib/unistd.in.h: Likewise.
91247         * lib/wchar.in.h: Likewise.
91248         * lib/wctype.in.h: Likewise.
91249         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91250         * modules/fchdir (Makefile.am): Likewise.
91251         * modules/fcntl (Makefile.am): Likewise.
91252         * modules/float (Makefile.am): Likewise.
91253         * modules/iconv_open (Makefile.am): Likewise.
91254         * modules/inttypes (Makefile.am): Likewise.
91255         * modules/locale (Makefile.am): Likewise.
91256         * modules/math (Makefile.am): Likewise.
91257         * modules/netinet_in (Makefile.am): Likewise.
91258         * modules/search (Makefile.am): Likewise.
91259         * modules/signal (Makefile.am): Likewise.
91260         * modules/stdarg (Makefile.am): Likewise.
91261         * modules/stdint (Makefile.am): Likewise.
91262         * modules/stdio (Makefile.am): Likewise.
91263         * modules/stdlib (Makefile.am): Likewise.
91264         * modules/string (Makefile.am): Likewise.
91265         * modules/strings (Makefile.am): Likewise.
91266         * modules/sys_select (Makefile.am): Likewise.
91267         * modules/sys_socket (Makefile.am): Likewise.
91268         * modules/sys_stat (Makefile.am): Likewise.
91269         * modules/sys_time (Makefile.am): Likewise.
91270         * modules/sysexits (Makefile.am): Likewise.
91271         * modules/time (Makefile.am): Likewise.
91272         * modules/unistd (Makefile.am): Likewise.
91273         * modules/wchar (Makefile.am): Likewise.
91274         * modules/wctype (Makefile.am): Likewise.
91275         Reported by Reuben Thomas <rrt@sc3d.org>.
91277 2008-08-29  Bruno Haible  <bruno@clisp.org>
91279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91280         any more.
91282 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91284         * MODULES.html.sh (Misc): Add bitrotate.
91286         * modules/bitrotate: New file.
91288         * lib/bitrotate.h: New file.
91290         * modules/bitrotate-tests: New file.
91292         * tests/test-bitrotate.c: New file.
91294         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91295         on the bitrotate module.
91297         * lib/arctwo.c: Use new bitrotate module.
91299 2008-08-29  Jim Meyering  <meyering@redhat.com>
91301         bootstrap: merge changes from coreutils
91302         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91303         of copied files.  Remove a kludge, now that this is fixed.
91304         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91305         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91306         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91308 2008-08-29  Bruno Haible  <bruno@clisp.org>
91310         * MODULES.html.sh: Remove --cvs-urls option.
91312 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91314         maint.mk: adjust to file name change
91315         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91317 2008-08-28  Jim Meyering  <meyering@redhat.com>
91319         * modules/getndelim2 (License): Relicense to LGPLv2+.
91320         Approved by Richard Stallman for the version of 1995, and by
91321         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91323 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91325         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91326         dummy if one is not available.  Do not touch them if
91327         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91328         (getc_maybe_unlocked): New.
91329         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91331 2008-08-26  Eric Blake  <ebb9@byu.net>
91333         doc/INSTALL: resync from autoconf
91334         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91335         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91336         moving...
91337         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91338         * INSTALL: Regenerate.
91339         * INSTALL.ISO: New file.
91340         * INSTALL.UTF-8: Likewise.
91342 2008-08-26  Jim Meyering  <meyering@redhat.com>
91344         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91345         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91346         these definitions conditional, so that they may be overridden, too.
91348 2008-08-26  Bruno Haible  <bruno@clisp.org>
91350         Generate INSTALL file variants with prettier quotes.
91351         * doc/Makefile (INSTALL_PRELUDE): New macro.
91352         (INSTALL): Use it.
91353         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91355 2008-08-26  Bruno Haible  <bruno@clisp.org>
91357         Run makeinfo in an English locale.
91358         * doc/Makefile (MAKEINFO): New variable.
91360 2008-08-26  Bruno Haible  <bruno@clisp.org>
91362         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91363         Suggested by Eric Blake.
91365 2008-08-25  Bruno Haible  <bruno@clisp.org>
91367         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91369 2008-08-25  Eric Blake  <ebb9@byu.net>
91371         c-stack: test that stack overflow can be caught
91372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91373         that platform allows handling stack overflow; at least OS/2 EMX
91374         has sigaltstack, but crashes before transferring control to
91375         handler on stack overflow.
91376         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91377         check for HAVE_STACK_OVERFLOW_HANDLING.
91378         Reported by Elbert Pol.
91380 2008-08-25  Bruno Haible  <bruno@clisp.org>
91382         * doc/posix-functions/strftime.texi: Fix description of strftime
91383         module.
91385 2008-08-24  Bruno Haible  <bruno@clisp.org>
91387         * tests/uniwidth/test-uc_width2.c: New file.
91388         * tests/uniwidth/test-uc_width2.sh: New file.
91389         * modules/uniwidth/width-tests (Files): Add the new files.
91390         (TESTS): Add uniwidth/test-uc_width2.sh.
91391         (TESTS_ENVIRONMENT): New variable.
91392         (check_PROGRAMS): Add test-uc_width2.
91393         (test_uc_width2_SOURCES): New variable.
91395         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
91396         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
91397         not 0x00AB.
91398         Reported by Alexander V. Lukyanov <lav@netis.ru>.
91400 2008-08-22  Eric Blake  <ebb9@byu.net>
91402         test-lock, test-tls: mention why a test is skipped
91403         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
91404         skipped.
91405         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
91407         count-one-bits: relax license
91408         * modules/count-one-bits (License): Relicense to LGPLv2+.
91409         Suggested by Ludovic Courtès, approved by Ben Pfaff.
91411 2008-08-22  Andreas Schwab  <schwab@suse.de>
91413         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
91414         Remove spurious space in assignment.
91416 2008-08-21  Simon Josefsson  <simon@josefsson.org>
91418         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
91419         Paul Eggert <eggert@CS.UCLA.EDU>.
91421 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
91423         * modules/gettext: Add m4/threadlib.m4.
91425 2008-08-19  Eric Blake  <ebb9@byu.net>
91427         test-c-stack: fix compilation failure on FreeBSD 5.0
91428         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
91429         headers before <sys/resource.h>.
91430         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
91431         the bug.
91432         Reported by Nelson H. F. Beebe.
91434         strverscmp: migrate from "strverscmp.h" to <string.h>
91435         * modules/string (Makefile.am): Add new hooks.
91436         * modules/strverscmp (Files): Remove strverscmp.h.
91437         (Depends-on): Add string.
91438         (configure.ac): Add indicator.
91439         (Include): Mention new header.
91440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
91441         defaults.
91442         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
91443         results.
91444         * lib/strverscmp.h: Delete.
91445         * lib/string.in.h (strverscmp): Provide declaration, when needed.
91446         * tests/test-strverscmp.c (includes): Adjust client.
91447         * lib/check-version.c (includes): Likewise.
91448         * NEWS: Document the change.
91450         strverscmp: add unit test
91451         * modules/strverscmp-tests: New file.
91452         * tests/test-strverscmp.c: Likewise.
91454 2008-08-19  Simon Josefsson  <simon@josefsson.org>
91456         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
91457         regarding Windows crypto stuff, from Mono.
91459 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
91461         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
91462         if present, for intel RND.  Return error on failures.
91464 2008-08-18  Ben Pfaff  <blp@gnu.org>
91466         gitlog-to-changelog: give better diagnostic for failed pipe-open
91467         * build-aux/gitlog-to-changelog: Improve error message: suggest
91468         that the version of Git may be too old.
91470 2008-08-18  Simon Josefsson  <simon@josefsson.org>
91472         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
91473         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
91475 2008-08-18  Bruno Haible  <bruno@clisp.org>
91477         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
91478         pthread_in_use().
91480 2008-08-18  Bruno Haible  <bruno@clisp.org>
91482         * lib/glthread/threadlib.c: Include <pthread.h>.
91484 2008-08-18  Bruno Haible  <bruno@clisp.org>
91486         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
91487         glthread_recursive_lock_* macros.
91488         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
91489         Fix syntax error.
91491 2008-08-18  Bruno Haible  <bruno@clisp.org>
91493         * lib/glthread/thread.c: Avoid forcing a context switch right after
91494         thread creation.
91496 2008-08-17  Bruno Haible  <bruno@clisp.org>
91498         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
91499         * lib/glthread/thread.h: Provide Win32 specific implementation.
91500         * modules/thread (Files): Add lib/glthread/thread.c.
91501         (Depends-on): Add lock.
91502         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
91504 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91506         New module 'yield'.
91507         * modules/yield: New file.
91508         * lib/glthread/yield.h: New file.
91509         * m4/yield.m4: New file.
91510         * MODULES.html.sh (Multithreading): Add yield.
91512 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91514         New module 'thread'.
91515         * modules/thread: New file.
91516         * lib/glthread/thread.h: New file.
91517         * m4/thread.m4: New file.
91518         * MODULES.html.sh (Multithreading): Add thread.
91520 2008-08-17  Bruno Haible  <bruno@clisp.org>
91522         * lib/glthread/lock.h: Include <stdlib.h> always.
91523         * lib/glthread/tls.h: Likewise.
91524         * lib/glthread/cond.h: Likewise.
91526 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91528         New module 'cond'.
91529         * modules/cond: New file.
91530         * lib/glthread/cond.h: New file.
91531         * lib/glthread/cond.c: New file.
91532         * m4/cond.m4: New file.
91533         * MODULES.html.sh (Multithreading): Add cond.
91535 2008-08-16  Eric Blake  <ebb9@byu.net>
91537         c-stack: fix regression on Irix 5.3 from 2008-06-21
91538         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
91539         sa_sigaction...
91540         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
91541         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
91542         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
91543         * modules/signal (Makefile.am): Use the value.
91544         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
91545         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
91546         * doc/posix-headers/signal.texi (signal.h): Document this
91547         portability issue.
91548         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
91549         Reported by Tom G. Christensen.
91551 2008-08-17  Bruno Haible  <bruno@clisp.org>
91553         New module 'threadlib'.
91554         * modules/threadlib: New file.
91555         * lib/glthread/threadlib.c: New file, extracted from
91556         lib/glthread/lock.c.
91557         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
91558         functions.
91559         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
91560         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
91561         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
91562         macros.
91563         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
91564         (gl_DISABLE_THREADS): Remove macro.
91565         * modules/lock (Files): Remove build-aux/config.rpath.
91566         (Depends-on): Remove havelib. Add threadlib.
91567         (configure.ac-early): Remove section.
91568         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
91569         * modules/tls (Depends-on): Remove lock. Add threadlib.
91570         (Link): New section, copied from threadlib.
91571         * MODULES.html.sh (Multithreading): Add threadlib.
91573 2008-08-14  Bruno Haible  <bruno@clisp.org>
91575         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
91576         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
91577         glthread_rwlock_unlock, glthread_rwlock_destroy,
91578         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
91579         glthread_recursive_lock_destroy): Define as macros always.
91580         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
91581         glthread_lock_lock.
91582         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
91583         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
91584         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
91585         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
91586         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
91587         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
91588         (glthread_recursive_lock_lock_func): Renamed from
91589         glthread_recursive_lock_lock.
91590         (glthread_recursive_lock_unlock_func): Renamed from
91591         glthread_recursive_lock_unlock.
91592         (glthread_recursive_lock_destroy_func): Renamed from
91593         glthread_recursive_lock_destroy.
91595 2008-08-14  Bruno Haible  <bruno@clisp.org>
91597         * lib/glthread/lock.h: Renamed from lib/lock.h.
91598         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
91599         * lib/glthread/tls.h: Renamed from lib/tls.h.
91600         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
91601         * lib/fstrcmp.c: Update includes.
91602         * lib/strsignal.c: Update includes.
91603         * modules/lock (Files, Makefile.am): Update.
91604         (Include): Change to "glthread/lock.h".
91605         * modules/tls (Files, Makefile.am): Update.
91606         (Include): Change to "glthread/tls.h".
91607         * tests/test-lock.c: Update includes.
91608         * tests/test-tls.c: Update includes.
91609         * NEWS: Mention the renamed header files.
91611 2008-08-11  Jim Meyering  <meyering@redhat.com>
91613         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
91615 2008-08-11  Eric Blake  <ebb9@byu.net>
91617         test-c-stack: avoid C99-ism
91618         * tests/test-c-stack.c (main): Fix whitespace, move declaration
91619         before statement.
91620         Reported by Alain Guibert.
91622 2008-08-10  Jim Meyering  <meyering@redhat.com>
91624         ensure that return value of uinttostr et al are not ignored
91625         * lib/inttostr.h (__GNUC_PREREQ): Define.
91626         (__attribute_warn_unused_result__): Define.
91627         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
91629 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
91631         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
91632         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
91634 2008-08-07  Jim Meyering  <meyering@redhat.com>
91636         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
91638         * modules/mkstemp (License): Relicense under LGPLv2+.
91639         * modules/tempname (License): Likewise.
91641 2008-08-06  Bruno Haible  <bruno@clisp.org>
91643         * lib/poll.c (poll): Further micro-optimization.
91645 2008-08-06  Jim Meyering  <meyering@redhat.com>
91647         inet_pton.c: use locale-independent tolower
91648         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
91649         (inet_pton6): Use c_tolower rather than tolower.
91650         * modules/inet_pton (Depends-on): Add c-ctype.
91652 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
91654         * lib/poll.c (poll): Avoid division when timeout is 0, cache
91655         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
91657 2008-08-06  Jim Meyering  <meyering@redhat.com>
91659         * modules/inet_pton (License): Relicense under LGPLv2+.
91661 2008-08-03  Bruno Haible  <bruno@clisp.org>
91663         Additional non-aborting API for lock and tls.
91664         * lib/lock.h: Include <errno.h>.
91665         (glthread_lock_init): New macro/function.
91666         (gl_lock_init): Define as wrapper around glthread_lock_init.
91667         (glthread_lock_lock): New macro/function.
91668         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
91669         (glthread_lock_unlock): New macro/function.
91670         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
91671         (glthread_lock_destroy): New macro/function.
91672         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
91673         (glthread_rwlock_init): New macro/function.
91674         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
91675         (glthread_rwlock_rdlock): New macro/function.
91676         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
91677         (glthread_rwlock_wrlock): New macro/function.
91678         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
91679         (glthread_rwlock_unlock): New macro/function.
91680         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
91681         (glthread_rwlock_destroy): New macro/function.
91682         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
91683         (glthread_recursive_lock_init): New macro/function.
91684         (gl_recursive_lock_init): Define as wrapper around
91685         glthread_recursive_lock_init.
91686         (glthread_recursive_lock_lock): New macro/function.
91687         (gl_recursive_lock_lock): Define as wrapper around
91688         glthread_recursive_lock_lock.
91689         (glthread_recursive_lock_unlock): New macro/function.
91690         (gl_recursive_lock_unlock): Define as wrapper around
91691         glthread_recursive_lock_unlock.
91692         (glthread_recursive_lock_destroy): New macro/function.
91693         (gl_recursive_lock_destroy): Define as wrapper around
91694         glthread_recursive_lock_destroy.
91695         (glthread_once): New macro/function.
91696         (gl_once): Define as wrapper around glthread_once.
91697         Update function declarations.
91698         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
91699         glthread_rwlock_init. Return error code.
91700         (glthread_rwlock_rdlock_multithreaded): Renamed from
91701         glthread_rwlock_rdlock. Return error code.
91702         (glthread_rwlock_wrlock_multithreaded): Renamed from
91703         glthread_rwlock_wrlock. Return error code.
91704         (glthread_rwlock_unlock_multithreaded): Renamed from
91705         glthread_rwlock_unlock. Return error code.
91706         (glthread_rwlock_destroy_multithreaded): Renamed from
91707         glthread_rwlock_destroy. Return error code.
91708         (glthread_recursive_lock_init_multithreaded): Renamed from
91709         glthread_recursive_lock_init. Return error code.
91710         (glthread_recursive_lock_lock_multithreaded): Renamed from
91711         glthread_recursive_lock_lock. Return error code.
91712         (glthread_recursive_lock_unlock_multithreaded): Renamed from
91713         glthread_recursive_lock_unlock. Return error code.
91714         (glthread_recursive_lock_destroy_multithreaded): Renamed from
91715         glthread_recursive_lock_destroy. Return error code.
91716         (glthread_once_call): Make static.
91717         (glthread_once_multithreaded): Renamed from glthread_once.
91718         * lib/tls.h: Include <errno.h>.
91719         (glthread_tls_key_init): New macro/function.
91720         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
91721         (glthread_tls_set): New macro/function.
91722         (gl_tls_set): Define as wrapper around glthread_tls_set.
91723         (glthread_tls_key_destroy): New macro/function.
91724         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
91725         Update function declarations.
91726         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
91727         glthread_tls_get.
91728         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91730 2008-08-04  Eric Blake  <ebb9@byu.net>
91732         gnumakefile: use space, not TAB, outside of targets
91733         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
91735 2008-08-02  Jim Meyering  <meyering@redhat.com>
91737         getdate.y: avoid locale-dependent date parsing failure
91738         In Turkish locales, getdate would fail to recognize keywords
91739         containing a lowercase "i".  The solution is not to rely on
91740         locale-sensitive case-conversion.
91741         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
91742         (lookup_word): Use c_toupper in place of toupper.
91743         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
91744         Reported by Vefa Bicakci <bicave@superonline.com> in
91745         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
91746         * modules/getdate (Depends-on): Add c-ctype.
91748 2008-08-02  Bruno Haible  <bruno@clisp.org>
91750         * gnulib-tool (func_import): When updating or creating a .gitignore
91751         file, prepend each added line with a slash, and ignore leading slashes
91752         from the existing lines.
91753         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
91755 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91757         Portability fix for GNU make 3.79.1.
91758         * top/GNUmakefile: Avoid 'else COND', which older GNU make
91759         versions do not understand.
91761 2008-08-01  Bruno Haible  <bruno@clisp.org>
91763         Work around bug of HP-UX 10.20 cc with -0.0 literal.
91764         * tests/test-isnanf.h (zero): New variable.
91765         (main): Avoid literal -0.0f.
91766         * tests/test-isnand.h (zero): New variable.
91767         (main): Avoid literal -0.0.
91768         * tests/test-isnanl.h (zero): New variable.
91769         (main): Avoid literal -0.0L.
91770         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
91771         (test_float, test_double, test_long_double): Avoid literals -0.0f,
91772         -0.0, -0.0L.
91773         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
91774         (test_signbitd): Avoid literal -0.0.
91775         (test_signbitl): Avoid literal -0.0L.
91776         * tests/test-ceilf1.c (zero): New variable.
91777         (main): Avoid literal -0.0f.
91778         * tests/test-ceill.c (zero): New variable.
91779         (main): Avoid literal -0.0L.
91780         * tests/test-floorf1.c (zero): New variable.
91781         (main): Avoid literal -0.0f.
91782         * tests/test-floorl.c (zero): New variable.
91783         (main): Avoid literal -0.0L.
91784         * tests/test-roundf1.c (zero): New variable.
91785         (main): Avoid literal -0.0f.
91786         * tests/test-round1.c (zero): New variable.
91787         (main): Avoid literal -0.0.
91788         * tests/test-roundl.c (zero): New variable.
91789         (main): Avoid literal -0.0L.
91790         * tests/test-truncf1.c (zero): New variable.
91791         (main): Avoid literal -0.0f.
91792         * tests/test-trunc1.c (zero): New variable.
91793         (main): Avoid literal -0.0.
91794         * tests/test-truncl.c (zero): New variable.
91795         (main): Avoid literal -0.0L.
91796         * tests/test-frexp.c (zero): New variable.
91797         (main): Avoid literal -0.0.
91798         * tests/test-frexpl.c (zero): New variable.
91799         (main): Avoid literal -0.0L.
91800         * tests/test-ldexpl.c (zero): New variable.
91801         (main): Avoid literal -0.0L.
91802         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91803         (zerod, zerol): New variables.
91804         (test_function): Avoid literals -0.0, -0.0L.
91805         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91806         (zerod, zerol): New variables.
91807         (test_function): Avoid literals -0.0, -0.0L.
91808         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91809         (zerod, zerol): New variables.
91810         (test_function): Avoid literals -0.0, -0.0L.
91811         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91812         (zerod, zerol): New variables.
91813         (test_function): Avoid literals -0.0, -0.0L.
91814         * tests/test-strtod.c (zero): New variable.
91815         (main): Avoid literal -0.0.
91816         Reported by Jonathan C. Patschke <jp@centtech.com>.
91818 2008-07-31  Jim Meyering  <meyering@redhat.com>
91820         sha256.h: correct definition of SHA224_DIGEST_SIZE
91821         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
91822         Reported by Paulie Pena IV <paulie4@gmail.com>.
91823         Define as 224 / 8, rather than as a literal.
91824         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
91825         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
91826         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
91828 2008-07-31  Bruno Haible  <bruno@clisp.org>
91830         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
91831         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
91832         Reported by Jonathan Patschke <jp@centtech.com>.
91834 2008-07-31  Bruno Haible  <bruno@clisp.org>
91836         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
91837         Reported by Paolo Bonzini <bonzini@gnu.org>.
91839 2008-07-30  Eric Blake  <ebb9@byu.net>
91841         test-strtod: allow compilation without -lm
91842         * tests/test-strtod.c (main): Avoid link dependence on fabs.
91843         Reported by Dennis Clarke <blastwave@gmail.com>.
91845 2008-07-28  Jim Meyering  <meyering@redhat.com>
91847         bootstrap: work also when there are no .po files in po/
91848         * build-aux/bootstrap (update_po_files): Complete the change
91849         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
91851 2008-07-27  Jim Meyering  <meyering@redhat.com>
91853         * users.txt: Add zile.
91855 2008-07-26  Ben Pfaff  <blp@gnu.org>
91857         Add missing dependencies on new m4/exponent[fdl].m4 files.
91858         * modules/isnanf-nolibm: Add m4/exponentf.m4.
91859         * modules/isnand-nolibm: Add m4/exponentd.m4.
91860         * modules/isnanl-nolibm: Add m4/exponentl.m4.
91861         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
91862         m4/isnan[fdl].m4, because the macros actually used moved.
91863         Reported by Jim Meyering.
91865 2008-07-14  Ben Pfaff  <blp@gnu.org>
91867         Add isinf module.
91868         * lib/isinf.c: New file.
91869         * lib/math.in.h: Define isinf macro if we have decided to replace
91870         it.
91871         * m4/isinf.m4: New file.
91872         * m4/math_h.m4: Initialize and substitute variables for isinf
91873         module.
91874         * modules/isinf: New file.
91875         * modules/isinf-tests: New file.
91876         * modules/math: Add substitutions for new module.
91877         * tests/test-isinf.c: New file.
91878         * doc/posix-functions/isinf.texi: Mention new module.
91879         * MODULES.html.sh: Mention new module.
91881 2008-07-14  Ben Pfaff  <blp@gnu.org>
91883         Factor out some macros for use by additional modules.
91884         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
91885         exponentf.m4.
91886         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
91887         exponentd.m4.
91888         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
91889         file exponentl.m4.
91890         * m4/exponentf.m4: New file.
91891         * m4/exponentd.m4: New file.
91892         * m4/exponentl.m4: New file.
91893         * modules/isnanf: Use new file m4/exponentf.m4.
91894         * modules/isnand: Use new file m4/exponentd.m4.
91895         * modules/isnanl: Use new file m4/exponentl.m4.
91897 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
91899         mktime.c: normalize tp->tm_isdst value to -1/0/1.
91900         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
91901         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
91902         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
91904         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
91905         readlink on platforms without PATH_MAX.
91907 2008-07-21  Eric Blake  <ebb9@byu.net>
91909         Warn, not fail, on stale version.
91910         * top/GNUmakefile (_curr-ver): Tone down previous patch.
91912         Don't allow installation with stale devel version number.
91913         * top/GNUmakefile (_is-install-target): New macro.
91914         (_curr-ver): Forbid installation with stale version number.
91916 2008-07-20  Bruno Haible  <bruno@clisp.org>
91918         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
91919         TESTS_ENVIRONMENT.
91920         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
91922 2008-07-20  Bruno Haible  <bruno@clisp.org>
91924         * lib/c-stack.h (c_stack_action): Add documentation.
91925         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
91927 2008-07-20  Bruno Haible  <bruno@clisp.org>
91929         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
91930         * modules/readlink (License): Likewise.
91932 2008-07-17  Eric Blake  <ebb9@byu.net>
91934         * modules/c-stack (Link): Fix typo.
91936         Make c-stack use libsigsegv, when available.
91937         * modules/c-stack (Depends-on): Add libsigsegv.
91938         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
91939         needed.
91940         * lib/c-stack.c (SIGSTKSZ): Define fallback.
91941         (segv_handler, overflow_handler, c_stack_action)
91942         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
91943         implementation when libsigsegv is available, but only when using
91944         the library is necessary.
91945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
91946         comment, explaining why XSI check fails on Linux.
91947         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
91948         * tests/test-c-stack2.sh: Tweak skip message.
91949         * NEWS: Document new link-time requirements.
91951 2008-07-16  Eric Blake  <ebb9@byu.net>
91953         c-stack: Expose false positives when not using libsigsegv.
91954         * modules/c-stack-tests (Files): Expand test.
91955         * tests/test-c-stack.c (main): Add means to conditionally trigger
91956         non-overflow SIGSEGV.
91957         * tests/test-c-stack2.sh: New file.
91959 2008-07-14  Bruno Haible  <bruno@clisp.org>
91961         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
91962         Reported by Eric Blake.
91964 2008-07-14  Sam Steingold  <sds@gnu.org>
91965             Bruno Haible  <bruno@clisp.org>
91967         New module libsigsegv.
91968         * modules/libsigsegv: New file.
91969         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
91970         modifications.
91971         * MODULES.html.sh (Signal handling): New section.
91973 2008-07-14  Bruno Haible  <bruno@clisp.org>
91975         * modules/unictype/ctype-* (Description): Add the word "function".
91976         Improves the resulting doc in MODULES.html.
91978 2008-07-12  Ben Pfaff  <blp@gnu.org>
91980         Add longlong module.
91981         * modules/longlong: New file.
91983 2008-07-12  Bruno Haible  <bruno@clisp.org>
91985         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
91986         to empty.
91988 2008-07-10  Ben Pfaff  <blp@gnu.org>
91990         Add isnan module.
91991         * doc/posix-functions/isnan.texi: Mention new module.
91992         * lib/math.in.h: Define isnan macro if we have decided to replace
91993         it.
91994         * m4/isnan.m4: New file.
91995         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
91996         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
91997         also.
91998         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
91999         redundancy.
92000         * m4/math_h.m4: Initialize and substitute variables for isnan
92001         module.
92002         * modules/isnan: New file.
92003         * modules/isnan-tests: New file.
92004         * modules/math: Add substitutions for new module.
92005         * tests/test-isnan.c: New file.
92006         * MODULES.html.sh: Mention new module.
92008 2008-07-10  Ben Pfaff  <blp@gnu.org>
92010         Add isnanf module.
92011         * lib/isnanf.m4: New file.
92012         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92013         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92014         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92015         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92016         * modules/isnanf: New file.
92017         * modules/isnanf-tests: New file.
92018         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92019         files.
92020         * tests/test-isnanf-nolibm.c: factored most of its contents into
92021         new file tests/test-isnanf.h.
92022         * tests/test-isnanf.h: New file.
92023         * tests/test-isnanf.c: New file.
92024         * MODULES.html.sh: Mention new module.
92025         * doc/glibc-functions/isnanf.texi: Mention new module.
92027 2008-07-10  Ben Pfaff  <blp@gnu.org>
92029         Add isnand module.
92030         * lib/isnand.h: New file.
92031         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92032         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92033         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92034         functionality also.
92035         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92036         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92037         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92038         * modules/isnand: New file.
92039         * modules/isnand-tests: New file.
92040         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92041         files.
92042         * tests/test-isnand-nolibm.c: factored most of its contents into
92043         new file tests/test-isnand.h.
92044         * tests/test-isnand.h: New file.
92045         * tests/test-isnand.c: New file.
92046         * MODULES.html.sh: Mention new module.
92048 2008-07-10  Ben Pfaff  <blp@gnu.org>
92050         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92051         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92052         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92053         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92054         * modules/isnanf-nolibm: Update references to renamed files.
92055         * modules/isnand-nolibm: Likewise.
92056         * modules/isnanf-nolibm-tests: Likewise.
92057         * modules/isnand-nolibm-tests: Likewise.
92058         * lib/frexp.c: Likewise.
92059         * lib/isfinite.c: Likewise.
92060         * lib/signbitd.c: Likewise.
92061         * lib/signbitf.c: Likewise.
92062         * lib/vasnprintf.c: Likewise.
92063         * tests/test-ceilf1.c: Likewise.
92064         * tests/test-ceilf2.c: Likewise.
92065         * tests/test-floorf1.c: Likewise.
92066         * tests/test-floorf2.c: Likewise.
92067         * tests/test-frexp.c: Likewise.
92068         * tests/test-round1.c: Likewise.
92069         * tests/test-round2.c: Likewise.
92070         * tests/test-roundf1.c: Likewise.
92071         * tests/test-strtod.c: Likewise.
92072         * tests/test-trunc1.c: Likewise.
92073         * tests/test-trunc2.c: Likewise.
92074         * tests/test-truncf1.c: Likewise.
92075         * tests/test-truncf2.c: Likewise.
92076         * NEWS: Mention the renamed header files.
92078 2008-07-11  Jim Meyering  <meyering@redhat.com>
92080         vc-list-files: make the last-resort awk code more portable
92081         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92082         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92083         does not support it.
92085 2008-07-10  Eric Blake  <ebb9@byu.net>
92087         Work with tar's bootstrap.
92088         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92089         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92090         an m4 comment.
92092 2008-07-09  Jim Meyering  <meyering@redhat.com>
92094         posix-shell.m4: fix typo that made this test malfunction
92095         * m4/posix-shell.m4: Remove capitalization in variable name.
92097 2008-07-08  Bruno Haible  <bruno@clisp.org>
92099         * m4/onceonly.m4: Update comments.
92100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92102 2008-07-04  Jim Meyering  <meyering@redhat.com>
92104         * users.txt: Add vc-dwim.
92105         (bison, coreutils): Use the gitweb URL.
92107 2008-07-03  Jim Meyering  <meyering@redhat.com>
92109         * users.txt: Add libffcall.  From Sam Steingold.
92111 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92113         getdate.y: do not ignore TZ with relative day, month or year offset
92114         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92115         relative-date-handling, since otherwise, the latter would clobber the
92116         sole output (an updated Start value) of the tz-handling block.
92117         * tests/test-getdate.c: Tests for the fix
92119 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92121         Recognize 'foo_LIBRARIES += libgnu.a'.
92122         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92123         makefile snippet has already specified an installation location,
92124         also using '+='.
92126 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92128         getdate.y: factor out common actions
92129         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92130         Use them in place of open-coded actions.
92132 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92134         Add self-test for getdate module.
92135         * modules/getdate-tests: New file.
92136         * tests/test-getdate.c: New file.
92138 2008-06-29  Bruno Haible  <bruno@clisp.org>
92140         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92141         .gitignore.
92142         Reported by Sylvain Beucler <beuc@beuc.net>.
92144 2008-06-29  Bruno Haible  <bruno@clisp.org>
92146         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92147         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92149 2008-06-29  Bruno Haible  <bruno@clisp.org>
92151         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92152         EXTRA_DIST.
92153         Reported by Sylvain Beucler <beuc@beuc.net>.
92155 2008-06-26  Jim Meyering  <meyering@redhat.com>
92157         make several modules depend on the "open" module
92158         This provides slightly increased consistency when opening-for-write
92159         the name of a non-directory spelled with a trailing slash.
92160         * modules/chdir-safer: Likewise.
92161         * modules/chown: Likewise.
92162         * modules/clean-temp: Likewise.
92163         * modules/copy-file: Likewise.
92164         * modules/fchdir: Likewise.
92165         * modules/fcntl-safer: Likewise.
92166         * modules/pipe: Likewise.
92167         * modules/utime: Likewise.
92168         Prompted by Eric Blake and Bruno Haible.
92170 2008-06-24  Andreas Schwab  <schwab@suse.de>
92172         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92173         literals can be used as initializers for global variables.
92175 2008-06-23  Eric Blake  <ebb9@byu.net>
92177         Make gnulib-cache.m4 easier to diff.
92178         * gnulib-tool (func_import): Allow newlines when reading cached
92179         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92181 2008-06-23  Bruno Haible  <bruno@clisp.org>
92183         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92184         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92185         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92186         m4/signalblocking.m4.
92187         (gl_PREREQ_SIGACTION): Don't invoke it.
92188         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92189         gl_PREREQ_SIG_HANDLER_H.
92190         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92191         Don't check for sigaction here.
92193 2008-06-23  Bruno Haible  <bruno@clisp.org>
92195         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92196         (install_handlers): Don't set the SA_RESETHAND flag.
92198 2008-06-23  Bruno Haible  <bruno@clisp.org>
92200         * m4/sigaction.m4: Comment fixes.
92201         * lib/signal.in.h: Likewise.
92203 2008-06-23  Eric Blake  <ebb9@byu.net>
92205         Fix typo.
92206         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92208         Avoid SA_ namespace.
92209         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
92210         Reported by Ralf Wildenhues.
92212         Avoid test failure due to SA_RESTORER.
92213         * tests/test-sigaction.c (SA_MASK): New macro.
92214         (main): Avoid failing due to extension flags being set.
92215         Reported by Jim Meyering.
92217         Revert use of sig-handler.h in sigprocmask.c.
92218         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
92219         it requires the existence of struct sigaction.
92220         * lib/sigprocmask.c (handler_t): Restore typedef.
92221         (rpl_signal, old_handlers): Use local type.
92223 2008-06-22  Bruno Haible  <bruno@clisp.org>
92225         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
92226         conditionally.
92227         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92229 2008-06-22  Bruno Haible  <bruno@clisp.org>
92231         * doc/posix-functions/siginterrupt.texi: Move note.
92233         * lib/signal.in.h (SA_RESTART): New macro.
92234         * lib/sigaction.c: Update comment.
92236         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
92238         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
92239         (gl_PREREQ_SIGPROCMASK): Invoke it.
92240         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
92242         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
92244         * lib/sigprocmask.c: Update a comment.
92246 2008-06-21  Eric Blake  <ebb9@byu.net>
92248         Use sigaction module rather than signal().
92249         * modules/c-stack (Depends-on): Add sigaction.
92250         * modules/fatal-signal (Depends-on): Likewise.
92251         * modules/nanosleep (Depends-on): Likewise.
92252         * modules/sigprocmask (Files): Add sig-handler.h.
92253         * modules/sigaction (Files): Likewise.
92254         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92255         Eggert.
92256         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92257         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92258         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92259         (init_fatal_signals): Likewise.
92260         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92261         (siginterrupt): Delete fallback.
92262         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92263         instead.
92264         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92265         siginterrupt.
92267         New module sigaction, for mingw.
92268         * modules/sigaction: New module...
92269         * modules/sigaction-tests: ...and its test.
92270         * m4/sigaction.m4: New file.
92271         * lib/sigaction.c: Likewise.
92272         * tests/test-sigaction.c: Likewise.
92273         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92274         * modules/signal (Makefile.am): Likewise.
92275         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92276         needed.
92277         * doc/posix-headers/signal.texi (signal.h): Mention provided
92278         types.
92279         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92280         that sigaction is preferable.
92281         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92282         module.
92283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92284         sigaction.
92286         Improve robustness of sigprocmask by overriding signal.
92287         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92288         is in use.
92289         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92290         (SIGKILL, SIGSTOP): Provide fallbacks.
92291         (rpl_signal): Implement.
92292         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92293         signal can be called inside handlers.
92295         Fix nanosleep module on mingw.
92296         * modules/nanosleep (Depends-on): Add sys_select.
92297         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92299         Fix licensing of sigprocmask.
92300         * modules/raise (License): Relicense as LGPL.
92302 2008-06-21  Bruno Haible  <bruno@clisp.org>
92304         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92305         result if it contains question marks.
92306         Reported by Michael Geng <linux@michaelgeng.de>.
92308 2008-06-19  Bruno Haible  <bruno@clisp.org>
92310         Fix CVS-ism.
92311         * doc/gnulib.texi: Include updated-stamp.texi.
92312         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92313         (updated-stamp.texi): New rule.
92314         (gnulib.info): Depend on it.
92315         * doc/.gitignore: Add updated-stamp.texi.
92316         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92318 2008-06-19  Bruno Haible  <bruno@clisp.org>
92320         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92321         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92323 2008-06-19  Eric Blake  <ebb9@byu.net>
92325         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92326         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92327         Reported by Stepan Kasal.
92329 2008-06-18  Bruno Haible  <bruno@clisp.org>
92331         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92332         Reported by Eric Blake.
92334 2008-06-18  Eric Blake  <ebb9@byu.net>
92336         Work around cygwin 1.5.25 strsignal bug.
92337         * tests/test-strsignal.c: Allow for const char *.
92338         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92340 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92342         * users.txt: Update URL to article and add author/date
92343         information.
92345 2008-06-17  Bruno Haible  <bruno@clisp.org>
92347         New macro gl_DISABLE_THREADS.
92348         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92349         if the user did not pass --enable-threads or --disable-threads option.
92350         (gl_DISABLE_THREADS): New macro.
92351         Reported by Eric Blake <ebb9@byu.net>.
92353 2008-06-17  Bruno Haible  <bruno@clisp.org>
92355         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92356         when the macro ignores it.
92357         Based on a patch by Eric Blake <ebb9@byu.net>.
92359 2008-06-17  Bruno Haible  <bruno@clisp.org>
92361         * modules/tls (License): Change to LGPLv2+.
92362         Reported by Eric Blake.
92364 2008-06-17  Eric Blake  <ebb9@byu.net>
92366         Simplify c-stack prerequisites.
92367         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92369         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92370         check.
92371         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92372         <sys/resource.h>.
92374         Move c-stack test into testsuite.
92375         * modules/c-stack-tests: New file.
92376         * lib/c-stack.c [DEBUG]: Move test program...
92377         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92378         fail test if sigaltstack is lacking.
92379         * tests/test-c-stack.sh: New driver file.
92381 2008-06-16  Eric Blake  <ebb9@byu.net>
92383         Use raise module consistently.
92384         * modules/fatal-signal (Depends-on): Add raise.
92385         * modules/sigprocmask (Depends-on): Likewise.
92386         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
92387         * lib/sigprocmask.c (sigprocmask): Likewise.
92388         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92389         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
92391         Fix compliance bug in sigpending.
92392         * lib/sigprocmask.c (sigpending): Return pending array via
92393         parameter, not return value.
92395 2008-06-14  Eric Blake  <ebb9@byu.net>
92397         Improve obstack-printf test code.
92398         * tests/test-obstack-printf.c (test_function): Fix comment, and
92399         simplify usage of obstack_* in macros.  Add a test for coverage.
92400         Reported by Bruno Haible.
92402 2008-06-14  Bruno Haible  <bruno@clisp.org>
92404         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
92405         array size as a constant, not as a const variable.
92406         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
92407         AC_USE_SYSTEM_EXTENSIONS.
92408         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92409         Test whether the obstack_printf function actually exists.
92410         * modules/obstack-printf (Depends-on): Add extensions.
92411         (Include): Remove obstack.h.
92412         * modules/obstack-printf-posix (Depends-on): Add extensions.
92413         (Include): Remove obstack.h.
92415 2008-06-13  Eric Blake  <ebb9@byu.net>
92417         Add obstack-printf and obstack-printf-posix modules.
92418         * modules/obstack-printf: New file.
92419         * modules/obstack-printf-posix: Likewise.
92420         * MODULES.html.sh (Misc): Mention them.
92421         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
92422         Likewise.
92423         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
92424         Likewise.
92425         * modules/stdio (Makefile.am): Accomodate new modules.
92426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92427         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
92428         Declare.
92429         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
92430         functions.
92431         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
92432         (gl_REPLACE_OBSTACK_PRINTF): New macros
92433         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
92434         * tests/test-obstack-printf.c: New file.
92435         * modules/obstack-printf-tests: Likewise.
92436         * modules/obstack-printf-posix-tests: Likewise.
92438 2008-06-11  Bruno Haible  <bruno@clisp.org>
92440         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
92441         * lib/open.c: Include errno.h.
92442         (open): Fail when attempting to write to a file that has a trailing
92443         slash.
92444         * tests/test-open.c (main): Test against trailing slash bug.
92445         * doc/posix-functions/open.texi: Mention the trailing slash bug.
92447 2008-06-10  Bruno Haible  <bruno@clisp.org>
92449         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
92450         for $? to work inside the trap command, with various /bin/sh-s.
92451         * tests/test-vc-list-files-cvs.sh: Likewise.
92453 2008-06-10  Bruno Haible  <bruno@clisp.org>
92455         * lib/acl-internal.h: Don't include gettext.h here.
92456         * lib/set-mode-acl.c: Include gettext.h here.
92457         * lib/copy-acl.c: Likewise.
92459 2008-06-10  Bruno Haible  <bruno@clisp.org>
92461         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
92462         * lib/wait-process.c (wait_subprocess): Likewise.
92463         * lib/execute.h (execute): Add termsigp argument.
92464         * lib/execute.c (execute): Likewise.
92465         * lib/csharpcomp.c (compile_csharp_using_pnet,
92466         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
92467         * lib/csharpexec.c (execute_csharp_using_pnet,
92468         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
92469         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
92470         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
92471         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
92472         is_jikes_present): Update.
92473         * lib/javaexec.c (execute_java_class): Update.
92474         * lib/javaversion.c (execute_and_read_line): Update.
92475         * NEWS: Document the changes.
92476         Reported by Eric Blake.
92478 2008-06-10  Eric Blake  <ebb9@byu.net>
92480         Add missing include.
92481         * tests/test-strstr.c (includes): Add <signal.h>.
92482         * tests/test-strcasestr.c (includes): Likewise.
92483         * tests/test-memmem.c (includes): Likewise.
92485 2008-06-10  Bruno Haible  <bruno@clisp.org>
92487         * lib/wait-process.c (wait_subprocess): Add an assertion.
92489 2008-06-10  Bruno Haible  <bruno@clisp.org>
92491         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
92493 2008-06-10  Bruno Haible  <bruno@clisp.org>
92495         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
92496         using alarm().
92497         * tests/test-strcasestr.c (main): Likewise.
92498         * tests/test-strstr.c (main): Likewise.
92500 2008-06-09  Bruno Haible  <bruno@clisp.org>
92502         Work around the Solaris 10 ACE ACLs ABI change.
92503         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
92504         declare if ACL_NO_TRIVIAL is present.
92505         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92506         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
92507         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
92508         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
92509         define if ACL_NO_TRIVIAL is present.
92510         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
92511         and use the current ABI.
92512         (file_has_acl): Use same #if condition as elsewhere.
92513         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
92514         in use, and use the current ABI.
92515         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
92516         Reported by Jim Meyering.
92518 2008-06-09  Eric Blake  <ebb9@byu.net>
92520         Work around environments that (stupidly) ignore SIGALRM.
92521         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
92522         before using alarm().
92523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92524         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92525         Reported by Ian Beckwith <ianb@erislabs.net>.
92527         Produce autobuild blurb earlier in log.
92528         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92530 2008-06-09  Jim Meyering  <meyering@redhat.com>
92531         and Ondřej Vašík  <ovasik@redhat.com>
92533         utimens.c: correct kernel bug work-around
92534         Ondřej Vašík found that the invalid return value of 280 indicates
92535         failure, not success, and the kernel bug we're trying to work
92536         around affects not just the utimensat call, but also the fallback
92537         futimens call.
92538         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
92539         not success.
92540         [HAVE_FUTIMENS]: Use the same work-around, here.
92542 2008-06-09  Jim Meyering  <meyering@redhat.com>
92544         add more guards around definition of ACE_-related code
92545         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
92546         ALLOW and ACE_OWNER are also defined.
92548 2008-06-08  Bruno Haible  <bruno@clisp.org>
92550         * lib/acl-internal.h: Add me as co-author.
92551         * lib/file-has-acl.c: Likewise.
92552         * lib/set-mode-acl.c: Likewise.
92553         * lib/copy-acl.c: Likewise.
92555 2008-06-08  Bruno Haible  <bruno@clisp.org>
92557         Add support for AIX ACLs.
92558         * lib/acl-internal.h (acl_nontrivial): New declaration.
92559         * lib/file-has-acl.c (acl_nontrivial): New function.
92560         (file_has_acl): Add implementation using AIX 4 ACL API.
92561         * lib/set-mode-acl.c (qset_acl): Likewise.
92562         * lib/copy-acl.c (qcopy_acl): Likewise.
92564 2008-06-08  Bruno Haible  <bruno@clisp.org>
92566         Add support for HP-UX ACLs.
92567         * lib/acl-internal.h (acl_nontrivial): New declaration.
92568         * lib/file-has-acl.c (acl_nontrivial): New function.
92569         (file_has_acl): Add implementation using HP-UX 11 ACL API.
92570         * lib/set-mode-acl.c (qset_acl): Likewise.
92571         * lib/copy-acl.c (qcopy_acl): Likewise.
92573 2008-06-08  Bruno Haible  <bruno@clisp.org>
92575         Add support for Cygwin ACLs.
92576         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
92577         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
92578         the chmod_or_fchmod call.
92579         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
92581 2008-06-08  Bruno Haible  <bruno@clisp.org>
92583         Fix bug with setuid modes in Solaris 10+ code.
92584         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
92585         succeeded, when the mode contains some special bits.
92587 2008-06-08  Bruno Haible  <bruno@clisp.org>
92589         Add support for Solaris 7..10 ACLs.
92590         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
92591         declarations.
92592         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
92593         functions.
92594         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
92595         * lib/set-mode-acl.c (qset_acl): Likewise.
92596         * lib/copy-acl.c (qcopy_acl): Likewise.
92598 2008-06-08  Bruno Haible  <bruno@clisp.org>
92600         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
92601         declaration.
92602         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
92603         (acl_access_nontrivial): Remove MacOS X case.
92604         (file_has_acl): Use acl_extended_nontrivial.
92605         * lib/copy-acl.c (qcopy_acl): Likewise.
92607 2008-06-08  Bruno Haible  <bruno@clisp.org>
92609         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
92611 2008-06-08  Jim Meyering  <meyering@redhat.com>
92613         * modules/acl (Maintainer): Add Bruno Haible.
92615 2008-06-07  Bruno Haible  <bruno@clisp.org>
92617         Improve support for Tru64 ACLs.
92618         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
92619         ACL on OSF/1.
92621 2008-06-07  Bruno Haible  <bruno@clisp.org>
92623         Add support for MacOS X ACLs.
92624         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
92625         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
92626         * lib/set-mode-acl.c (qset_acl): Likewise.
92627         * lib/copy-acl.c (qcopy_acl): Likewise.
92629 2008-06-07  Bruno Haible  <bruno@clisp.org>
92631         Fix memory leak introduced on 2008-05-22.
92632         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
92633         use.
92635 2008-06-07  Bruno Haible  <bruno@clisp.org>
92637         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
92638         to construct an empty ACL.
92640 2008-06-07  Bruno Haible  <bruno@clisp.org>
92642         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
92643         precisely.
92644         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
92646 2008-06-07  Bruno Haible  <bruno@clisp.org>
92648         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
92649         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
92651 2008-06-07  Bruno Haible  <bruno@clisp.org>
92653         * doc/posix-functions/_setjmp.texi: Explain the use of this function
92654         regardless of POSIX.
92655         * doc/posix-functions/_longjmp.texi: Likewise.
92656         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
92657         SystemV platform in this case.
92659 2008-06-06  Eric Blake  <ebb9@byu.net>
92661         Document abort() bugs.
92662         * doc/posix-functions/abort.texi (abort): Mention anomalies.
92664         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
92665         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
92666         sigsetjmp.
92667         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
92668         siglongjmp, but only as a macro.
92669         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
92670         is obsolete.
92671         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
92673         Tweak documentation to cover cygwin argz bugs.
92674         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
92675         argz bug fix; no code change needed since no cygwin releases
92676         occurred between the last fix and the bug being tested.
92677         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
92678         module and recently fixed cygwin bugs.
92679         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
92680         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
92681         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
92682         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
92683         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
92684         Likewise.
92685         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
92686         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
92687         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
92688         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
92689         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
92690         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
92691         Likewise.
92693         Avoid gcc warning on cygwin.
92694         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
92695         !ACL_NO_TRIVIAL]: Avoid unused variable.
92697 2008-06-05  Eric Blake  <ebb9@byu.net>
92699         Be tolerant of UNKNOWN version in gnulib-tool test dir.
92700         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
92701         git-version-gen fails to come up with a version.
92702         Reported by Simon Josefsson.
92704 2008-06-05  Jim Meyering  <meyering@redhat.com>
92705             Paul Eggert  <eggert@cs.ucla.edu>
92707         utimens.c: work around a probable Linux kernel bug
92708         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
92709         appears to be a kernel bug that causes utimensat to return 280
92710         instead of 0, indicating success.
92712 2008-06-04  Bruno Haible  <bruno@clisp.org>
92714         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
92715         2008-06-01 commit.
92717 2008-06-04  Bruno Haible  <bruno@clisp.org>
92719         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
92720         * lib/file-has-acl.c (acl_access_nontrivial): New function.
92721         (file_has_acl): Use it. Save errno afterwards.
92722         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
92724 2008-06-03  Bruno Haible  <bruno@clisp.org>
92726         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
92727         draft code. Simplify #ifs.
92728         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
92729         Put Solaris code after POSIX-draft code. Fix comments regarding
92730         Solaris 10, HP-UX. Mention Cygwin.
92731         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
92733 2008-06-03  Eric Blake  <ebb9@byu.net>
92735         Provide fallback for older kernels.
92736         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
92737         Provide runtime fallback if kernel lacks support.
92738         Reported by Mike Frysinger.
92740 2008-06-02  Bruno Haible  <bruno@clisp.org>
92742         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
92743         it exists.
92745 2008-06-02  Bruno Haible  <bruno@clisp.org>
92747         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
92748         * lib/copy-acl.c (qcopy_acl): Update comment.
92750 2008-06-02  Bruno Haible  <bruno@clisp.org>
92752         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
92753         like ACL APIs.
92755 2008-06-02  Bruno Haible  <bruno@clisp.org>
92757         * tests/test-file-has-acl.sh: Use different code for Cygwin.
92758         * tests/test-set-mode-acl.sh: Likewise.
92759         * tests/test-copy-acl.sh: Likewise.
92760         * tests/test-copy-file.sh: Likewise.
92762 2008-06-02  Bruno Haible  <bruno@clisp.org>
92764         * tests/test-file-has-acl.sh: Remove unused code.
92766 2008-06-01  Bruno Haible  <bruno@clisp.org>
92768         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
92769         (copy_acl): Just a wrapper around qcopy_acl that emits the error
92770         messages.
92771         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
92773 2008-06-01  Bruno Haible  <bruno@clisp.org>
92775         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
92776         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
92777         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
92778         APIs.
92779         * modules/acl-tests (configure.ac): Remove tests now contained in
92780         m4/acl.m4.
92782 2008-06-02  Jim Meyering  <meyering@redhat.com>
92784         announce-gen: use a better key-server host name
92785         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
92786         it may be more consistently reliable.  Suggested by Werner Koch
92787         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
92789 2008-06-01  Bruno Haible  <bruno@clisp.org>
92791         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
92792         Reported by Voroskoi Andras <voroskoi@gmail.com>.
92794 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
92796         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
92798 2008-06-01  Bruno Haible  <bruno@clisp.org>
92800         New ACL tests.
92801         * tests/test-file-has-acl.sh: New file.
92802         * tests/test-file-has-acl.c: New file.
92803         * tests/test-set-mode-acl.sh: New file.
92804         * tests/test-set-mode-acl.c: New file.
92805         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
92806         * tests/test-copy-acl.c: New file.
92807         * modules/acl-tests: New file, based on modules/copy-file-tests.
92808         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
92809         (Depends-on): Add acl-tests.
92810         (configure.ac): Remove checks.
92811         (Makefile.am): Don't create test-sameacls program here any more.
92813 2008-06-01  Bruno Haible  <bruno@clisp.org>
92815         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
92816         * tests/test-sameacls.c: Include progname.h.
92817         (main): Invoke set_program_name. Portability fixes for MacOS X,
92818         Solaris, HP-UX.
92820 2008-06-01  Bruno Haible  <bruno@clisp.org>
92822         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
92823         function.
92824         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
92826 2008-06-01  Bruno Haible  <bruno@clisp.org>
92828         * modules/rpmatch (Depends-on): Add strdup.
92830 2008-06-01  Bruno Haible  <bruno@clisp.org>
92832         * lib/pipe.c: Include unistd-safer.h.
92833         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
92834         * modules/pipe (Depends-on): Add unistd-safer.
92836 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92838         * modules/autobuild (configure.ac): Call AB_INIT.
92840 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92842         * tests/test-getaddrinfo.c: Don't print debug messages by default.
92843         Suggested by Bruno Haible <bruno@clisp.org>.
92845 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92847         * tests/test-base64.c: Cast size_t to unsigned long when invoking
92848         printf.  Use %lu instead of %d.  Reported by Bruno Haible
92849         <bruno@clisp.org>.
92851 2008-05-29  Eric Blake  <ebb9@byu.net>
92853         Prefer new POSIX 200x interfaces over futimesat.
92854         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
92855         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
92856         when available.
92857         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
92859 2008-05-28  Bruno Haible  <bruno@clisp.org>
92861         * modules/stpcpy (License): Change to LGPLv2+.
92862         Requested by David Lutterkort <dlutter@redhat.com>.
92864 2008-05-27  Bruno Haible  <bruno@clisp.org>
92866         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
92867         current mingw.
92868         Reported by Jose E. Marchesi <jemarch@gnu.org>.
92870 2008-05-27  Bruno Haible  <bruno@clisp.org>
92872         * modules/iconv_open (Link): New section, from module 'iconv'.
92873         * modules/striconv (Link): Likewise.
92874         * modules/striconveh (Link): Likewise.
92875         * modules/xstriconv (Link): Likewise.
92876         * modules/unicodeio (Link): Likewise.
92877         * modules/propername (Link): Likewise.
92878         Reported by Jim Meyering.
92880 2008-05-26  Jim Meyering  <meyering@redhat.com>
92882         sha256: do not artificially restrict buffer length to be < 2^32
92883         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
92884         uint32_t to size_t.
92885         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
92886         to match.
92888         avoid unaligned access errors, e.g., on sparc
92889         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
92890         direct access through a possibly-unaligned uint64* pointer.
92891         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
92892         direct access through a possibly-unaligned uint32* pointer.
92893         Prompted by this patch from Tom "spot" Callaway:
92894         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
92896         sha512.c: fix typo in comment
92897         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
92899 2008-05-25  Bruno Haible  <bruno@clisp.org>
92901         * lib/set-mode-acl.c: Renamed from lib/acl.c.
92902         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
92903         (Makefile.am): Update lib_SOURCES.
92905 2008-05-25  Bruno Haible  <bruno@clisp.org>
92907         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
92909 2008-05-25  Jim Meyering  <meyering@redhat.com>
92911         useless-if-before-free: freed expr may have white-space differences
92912         * build-aux/useless-if-before-free: Recognize cases in which the
92913         freed expression differs from the tested one in embedded white
92914         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
92915         $1 was used, so we can't make any regexp shy.  Improved tests now
92916         detect this.
92918         useless-if-before-free: accept white space in the expression.
92919         * build-aux/useless-if-before-free: For now, any white space
92920         in the expression must be identical in the free argument.
92922         useless-if-before-free: efficiency tweak
92923         * build-aux/useless-if-before-free: Make the expression-matching
92924         regexp "shy".
92925         Make the *outer* regexp shy, not the expr-matching one.
92927         update code-in-comment to accept cast of free arg
92928         * build-aux/useless-if-before-free: Update regexp.
92930 2008-05-25  Bruno Haible  <bruno@clisp.org>
92932         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
92933         * modules/copy-file-tests (Files, Makefile.am): Update.
92934         * tests/test-copy-file.c (func_test_copy): Update.
92936 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
92938         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
92940 2008-05-23  Bruno Haible  <bruno@clisp.org>
92942         Improve support for ACLs on OSF/1.
92943         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
92944         Remove fallback for unknown flavors of ACLs.
92946 2008-05-22  Bruno Haible  <bruno@clisp.org>
92948         Add support for ACLs on OSF/1.
92949         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
92950         replacements.
92951         (acl_free_text): New macro fallback.
92952         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
92953         acl_free.
92954         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
92955         acl_free_text function. Require AC_C_INLINE.
92957 2008-05-22  Bruno Haible  <bruno@clisp.org>
92959         Make copy_acl work on MacOS X 10.5.
92960         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
92961         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
92962         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
92963         If MODE_INSIDE_ACL, don't assume that every system has the same text
92964         representation for ACLs as FreeBSD.
92965         * lib/copy-acl.c (copy_acl): Add support for platforms with
92966         !MODE_INSIDE_ACL.
92967         * lib/file-has-acl.c (file_has_acl): Likewise.
92968         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
92969         FreeBSD, MacOS X, or IRIX, respectively.
92971 2008-05-22  Bruno Haible  <bruno@clisp.org>
92973         * lib/acl.h: Don't include <sys/acl.h>.
92974         (GETACLCNT): Move fallback to lib/acl-internal.h.
92975         * lib/acl-internal.h: Include <sys/acl.h> here.
92976         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
92978 2008-05-22  Bruno Haible  <bruno@clisp.org>
92980         Split off copy_acl function to separate file.
92981         * lib/copy-acl.c: New file, extracted from lib/acl.c.
92982         * lib/acl.c (copy_acl): Moved function to separate file.
92983         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
92984         * modules/acl (Files): Add lib/copy-acl.c.
92985         (Makefiles.am): Augment lib_SOURCES.
92987 2008-05-22  Bruno Haible  <bruno@clisp.org>
92989         * modules/copy-file-tests: New file.
92990         * tests/test-copy-file.sh: New file.
92991         * tests/test-copy-file.c: New file.
92992         * tests/test-copy-file-sameacls.c: New file.
92994 2008-05-22  Eric Blake  <ebb9@byu.net>
92996         Avoid gcc warning.
92997         * tests/test-memcmp.c (main): Pass NULL indirectly.
92999 2008-05-21  Bruno Haible  <bruno@clisp.org>
93001         Add reference doc about ACLs.
93002         * doc/acl-resources.txt: New file.
93003         * doc/acl-cygwin.txt: New file.
93005 2008-05-21  Bruno Haible  <bruno@clisp.org>
93007         Avoid one more warning from gcc.
93008         * lib/vasnprintf.c (IF_LINT): Update comments.
93009         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93011 2008-05-21  Jim Meyering  <meyering@redhat.com>
93013         avoid a warning from gcc
93014         * lib/vasnprintf.c (IF_LINT): Define.
93015         (scale10_round_decimal_long_double):
93016         Use it to avoid a "may be used uninitialized" warning.
93017         (scale10_round_decimal_double): Likewise.
93019 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93021         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93022         declared.
93024 2008-05-20  Bruno Haible  <bruno@clisp.org>
93026         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93027         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93029 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93031         * modules/memcmp-tests: New file.
93032         * tests/test-memcmp.c: New file.
93034 2008-05-19  Bruno Haible  <bruno@clisp.org>
93036         * modules/propername (Notice, configure.ac): Put quoted "..." into
93037         --keyword option.
93038         * lib/propername.h: Update comments accordingly.
93039         Reported by Eric Blake.
93041 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93043         * modules/getpass-gnu (Depends-on): Add fseeko.
93045 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93047         * modules/base64-tests: New file.
93049 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93051         * lib/base64.c (base64_decode_ctx): If a decode context structure
93052         was passed in use it to ignore newlines.  If a context structure
93053         was _not_ passed in, continue to treat newlines as garbage (this
93054         is the historical behavior).  Formerly base64_decode.
93055         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93056         takes a decode context structure.
93057         * lib/base64.h (base64_decode): Macro for four-argument calls.
93058         (base64_decode_alloc): Likewise.
93059         * lib/base64.c (base64_decode_ctx): If a decode context structure
93060         was passed in use it to ignore newlines.  If a context structure
93061         was _not_ passed in, continue to treat newlines as garbage (this
93062         is the historical behavior).  Formerly base64_decode.
93063         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93064         takes a decode context structure.
93065         * lib/base64.h (base64_decode): Macro for four-argument calls.
93066         (base64_decode_alloc): Likewise.
93068 2008-05-19  Jim Meyering  <meyering@redhat.com>
93070         avoid a warning from gcc
93071         * lib/trim.c (IF_LINT): Define.
93072         (trim2): Use it to avoid a "may be used uninitialized" warning.
93074         Fix doc typo.
93075         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93077 2008-05-19  Bruno Haible  <bruno@clisp.org>
93079         * doc/glibc-functions/getpass.texi: Document limits of other
93080         implementations.
93082 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93083             Bruno Haible <bruno@clisp.org>
93085         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93087 2008-05-18  Bruno Haible  <bruno@clisp.org>
93089         * modules/propername: New file, from GNU gettext.
93090         * lib/propername.h: New file, from GNU gettext.
93091         * lib/propername.c: New file, from GNU gettext.
93092         * MODULES.html.sh (Internationalization functions): Add propername.
93094 2008-05-16  Jim Meyering  <meyering@redhat.com>
93095             Bruno Haible  <bruno@clisp.org>
93097         Avoid some warnings from "gcc -Wshadow".
93098         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93100 2008-05-15  Eric Blake  <ebb9@byu.net>
93102         Extend previous patch to cygwin 1.7.0.
93103         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93104         fast implementation in cygwin >= 1.7.0.
93105         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93108 2008-05-15  Bruno Haible  <bruno@clisp.org>
93110         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93111         implementation in glibc >= 2.9.
93112         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93113         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93115 2008-05-15  Bruno Haible  <bruno@clisp.org>
93117         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93118         (Unicode string functions): Add unilbrk/*.
93119         Reported by Karl Berry.
93121 2008-05-15  Eric Blake  <ebb9@byu.net>
93123         Fix violation of <stdbool.h> replacement in regex.
93124         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93125         * lib/regexec.c (re_search_internal): Likewise.
93126         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93128 2008-05-15  Jim Meyering  <meyering@redhat.com>
93130         avoid distracting test output when git or cvs is not found
93131         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93132         * tests/test-vc-list-files-git.sh: Likewise.
93134 2008-05-15  Eric Blake  <ebb9@byu.net>
93136         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93137         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93138         glibc version.
93139         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93140         * doc/posix-functions/strstr.texi (strstr): Likewise.
93141         * lib/str-two-way.h (MAX): Sychronize with glibc.
93143 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93145         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93146         opr.ctx_type.
93147         (calc_first): Initialize constraint field.
93148         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93149         Fix grammar.
93150         (duplicate_node): Merge constraint field for all node types.
93151         (calc_eclosure_iter): Look at constraint field for all node types.
93152         * lib/regex_internal.c (create_cd_newstate): Don't look at
93153         opr.ctx_type.
93155 2008-05-14  Bruno Haible  <bruno@clisp.org>
93157         Help GCC to do better code generation.
93158         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93159         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93160         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93161         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93162         Declare with attribute 'malloc' if supported.
93164 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93166         use "echo STR|wc -c" rather than unportable "expr length STR"
93167         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93168         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93170 2008-05-14  Jim Meyering  <meyering@redhat.com>
93172         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93173         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93174         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93175         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93176         via Collin Lasse.
93178 2008-05-14  Eric Blake  <ebb9@byu.net>
93180         Avoid quadratic growth in gl_LIBSOURCES.
93181         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93182         Suggested by Bruno Haible.
93184         Test xmemdup0.
93185         * modules/xmemdup0-tests: New file.
93186         * tests/test-xmemdup0.c: Likewise.
93188 2008-05-13  Eric Blake  <ebb9@byu.net>
93190         Split xmemdup0 into its own module.
93191         * modules/xmemdup0: New file.
93192         * lib/xmemdup0.h: Likewise.
93193         * lib/xmemdup0.c: Likewise.
93194         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93195         * lib/xalloc.h (xmemdup0): Remove.
93196         * lib/xmalloc.c (xmemdup0): Likewise.
93198 2008-05-13  Eric Blake  <ebb9@byu.net>
93199             Bruno Haible  <bruno@clisp.org>
93201         Reduce number of forks required during autoconf.
93202         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93203         and gl_LIBSOURCES_DIR.
93204         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93205         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93206         m4_syscmd per file.
93207         <m4_foreach_w>: Move...
93208         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
93210 2008-05-13  Eric Blake  <ebb9@byu.net>
93212         * gnulib-tool: Fix various comment typos.
93214 2008-05-12  Bruno Haible  <bruno@clisp.org>
93216         Tailor the linebreaking algorithm.
93217         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
93219 2008-05-12  Bruno Haible  <bruno@clisp.org>
93221         Update to Unicode 5.0.0.
93222         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93223         LBP_JV, LBP_JT. Redistribute values.
93224         (unilbrk_table): Change size.
93225         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
93226         Unicode TR#14 rev. 22.
93227         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93228         LBP_JV, LBP_JT. Redistribute values.
93229         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
93230         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
93231         Update.
93232         * lib/unilbrk/lbrkprop1.h: Regenerated.
93233         * lib/unilbrk/lbrkprop2.h: Regenerated.
93234         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
93235         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
93236         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
93237         Likewise.
93238         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
93239         Likewise.
93240         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
93241         result.
93242         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
93243         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
93244         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
93245         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
93246         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
93247         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93249 2008-05-11  Bruno Haible  <bruno@clisp.org>
93251         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93253 2008-05-11  Bruno Haible  <bruno@clisp.org>
93255         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93256         * modules/unilbrk/gen-lbrk: New file.
93258 2008-05-11  Bruno Haible  <bruno@clisp.org>
93260         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93261         * m4/sha512.m4 (gl_SHA512): Likewise.
93263 2008-05-11  Jim Meyering  <meyering@redhat.com>
93265         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93266         * modules/crypto/sha256: New file.
93267         * modules/crypto/sha512: Likewise.
93268         * lib/sha256.c: Likewise.
93269         * lib/sha256.h: Likewise.
93270         * lib/sha512.c: Likewise.
93271         * lib/sha512.h: Likewise.
93272         * lib/u64.h: Likewise.
93273         * m4/sha256.m4: Likewise.
93274         * m4/sha512.m4: Likewise.
93275         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93277 2008-05-10  Bruno Haible  <bruno@clisp.org>
93279         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93280         (Input/Output <stdio.h>): Add xprintf.
93281         (Signal handling <signal.h>): Add strsignal.
93282         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93283         (Core language properties): Add func.
93284         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93285         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93286         strings.
93287         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93288         (Input/output): New section.
93289         (File system functions): Add openat-die, stat-macros.
93290         (Networking functions): Add sockets.
93291         (Unicode string functions): Add unictype/*.
93292         (Support for building libraries and executables): Add gperf.
93293         (Support for building documentation): Add agpl-3.0.
93294         (Misc): Add nocrash.
93296 2008-05-10  Bruno Haible  <bruno@clisp.org>
93298         * modules/unictype/gen-ctype: New file.
93300 2008-05-10  Jim Meyering  <meyering@redhat.com>
93302         Make chdir-safer.c more efficient on a system with no symlinks.
93303         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93304         also if ELOOP is zero.  Suggested by Bruno Haible.
93306         Make chdir-safer.c slightly safer.
93307         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93308         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93310         Avoid compile failure on systems without ELOOP (like mingw).
93311         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93312         Reported by Bruno Haible.
93314 2008-05-10  Bruno Haible  <bruno@clisp.org>
93316         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93317         (is_utf8_encoding): Use a case-insensitive comparison.
93318         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93319         streq.
93321 2008-05-10  Bruno Haible  <bruno@clisp.org>
93323         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93324         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93325         * lib/unilbrk/ulc-common.h (iconv_string_length,
93326         iconv_string_keeping_offsets): Remove declarations.
93327         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93328         Don't include <iconv.h>, streq.h, xsize.h.
93329         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93330         conversion.
93331         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93332         <iconv.h>, streq.h, xsize.h.
93333         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93334         conversion.
93335         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93336         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93337         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93338         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93340 2008-05-10  Bruno Haible  <bruno@clisp.org>
93342         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93343         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93345         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93346         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93348         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93349         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93351         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93352         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93354         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93355         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93357         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93358         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93360         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93361         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93363         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93364         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93366 2008-05-10  Bruno Haible  <bruno@clisp.org>
93368         Split up 'linebreak' module.
93369         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93370         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93371         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93372         modifications.
93373         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93374         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93375         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93376         lib/linebreak.c.
93377         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93378         lib/linebreak.c.
93379         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93380         lib/linebreak.c.
93381         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
93382         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
93383         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
93384         lib/linebreak.c.
93385         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
93386         lib/linebreak.c.
93387         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
93388         lib/linebreak.c.
93389         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
93390         lib/linebreak.c.
93391         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
93392         lib/linebreak.c.
93393         * modules/unilbrk/base: New file.
93394         * modules/unilbrk/tables: New file.
93395         * modules/unilbrk/u8-possible-linebreaks: New file.
93396         * modules/unilbrk/u16-possible-linebreaks: New file.
93397         * modules/unilbrk/u32-possible-linebreaks: New file.
93398         * modules/unilbrk/ulc-common: New file.
93399         * modules/unilbrk/ulc-possible-linebreaks: New file.
93400         * modules/unilbrk/u8-width-linebreaks: New file.
93401         * modules/unilbrk/u16-width-linebreaks: New file.
93402         * modules/unilbrk/u32-width-linebreaks: New file.
93403         * modules/unilbrk/ulc-width-linebreaks: New file.
93404         * lib/linebreak.h: Remove file.
93405         * lib/linebreak.c: Remove file.
93406         * m4/linebreak.m4: Remove file.
93407         * modules/linebreak: Remove file.
93408         * NEWS: Mention the changes.
93410 2008-05-09  Eric Blake  <ebb9@byu.net>
93412         Add xmemdup0.
93413         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
93414         implementation.
93415         * lib/xmalloc.c (xmemdup0): New C implementation.
93417 2008-05-08  Bruno Haible  <bruno@clisp.org>
93419         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
93421 2008-05-07  Eric Blake  <ebb9@byu.net>
93423         Support cross-compilation of <wctype.h>.
93424         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
93425         AC_CACHE_CHECK.
93427 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
93429         * build-aux/vc-list-files: Add support for bzr.
93431 2008-05-03  Jim Meyering  <meyering@redhat.com>
93433         avoid failed assertion with tight malloc
93434         * tests/test-getndelim2.c: Correct an off-by-one assertion.
93436 2008-05-03  Simon Josefsson  <simon@josefsson.org>
93438         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
93439         are needed from arpa/inet.h.
93440         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
93441         Reported by Bruno Haible.
93443 2008-05-02  Jim Meyering  <meyering@redhat.com>
93445         avoid compilation error on FreeBSD 6
93446         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
93448 2008-05-01  Jim Meyering  <meyering@redhat.com>
93450         useless-if-before-free: correct --help's exit status description
93451         * build-aux/useless-if-before-free (usage): Like grep, exit 0
93452         for one or more matches, etc.  Reported by Bruno Haible.
93454         vc-list-files: make the stand-alone gnulib test work
93455         * modules/vc-list-files-tests (configure.ac):
93456         Define and AC_SUBST abs_aux_dir.
93457         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
93458         $(abs_top_srcdir) to each script and having each of them
93459         duplicate the work of setting PATH, set PATH here, using
93460         the new variable, abs_aux_dir instead.
93461         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
93462         * tests/test-vc-list-files-git.sh: Likewise.
93463         Reported by Bruno Haible.
93465 2008-05-01  Bruno Haible  <bruno@clisp.org>
93467         * lib/getndelim2.c (getndelim2): Fix newsize computation during
93468         reallocation. Rename 'done' to 'found_delimiter'.
93470 2008-05-01  Jim Meyering  <meyering@redhat.com>
93472         vc-list-files: accommodate /bin/sh like the one from Solaris 10
93473         * build-aux/vc-list-files: Use `...`, not $(...).
93475 2008-04-30  Jim Meyering  <meyering@redhat.com>
93477         add tests for vc-list-files
93478         * modules/vc-list-files-tests: New module.
93479         * tests/test-vc-list-files-cvs.sh: New file.
93480         * tests/test-vc-list-files-git.sh: New file.
93482         avoid a warning from gcc
93483         * lib/getndelim2.c (IF_LINT): Define.
93484         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
93486         vc-list-files: work properly with build-aux/cvsu, too
93487         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
93488         to all cvs-based clauses.
93490         vc-list-files: work properly in the CVS+awk case, too
93491         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
93493         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
93494         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
93495         take more than one file argument, so .  Add quotes, just in case $dir
93496         ever contains a shell meta-character.  Prompted by Soren Hansen in
93497         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
93499 2008-04-29  Eric Blake  <ebb9@byu.net>
93501         Optimize getndelim2 to use block operations when possible.
93502         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
93503         freadseek, and memchr2.
93504         * lib/getndelim2.c (getndelim2): Use them for block reads.
93506 2008-04-29  Bruno Haible  <bruno@clisp.org>
93508         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
93509         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93510         * modules/inet_ntop (Depends-on): Add extensions.
93511         * modules/inet_pton (Depends-on): Likewise.
93512         Reported by Simon Josefsson.
93514 2008-04-29  Jim Meyering  <meyering@redhat.com>
93516         When the is more than one match in a block, match all of them.
93517         * build-aux/useless-if-before-free: Iterate through each block
93518         until there are no more matches.
93520         Fix broken useless-if-before-free script.
93521         * build-aux/useless-if-before-free: Fix typo: missing "?" after
93522         the expression to match cast of argument to free-like function.
93524 2008-04-29  Eric Blake  <ebb9@byu.net>
93526         Use new header.
93527         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
93529 2008-04-29  Jim Meyering  <meyering@redhat.com>
93531         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
93532         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
93533         by gnulib to exist and to declare e.g., inet_ntop.
93534         Don't include "inet_ntop.h", now removed.
93536         * m4/arpa_inet_h.m4: Remove trailing blanks.
93538 2008-04-29  Eric Blake  <ebb9@byu.net>
93540         Silence valgrind on safe reads beyond potential array bounds.
93541         * lib/rawmemchr.valgrind: New file.
93542         * lib/strchrnul.valgrind: Likewise.
93543         * modules/rawmemchr (Files): Distribute new file.
93544         * modules/strchrnul (Files): Likewise.
93545         Suggested by Bruno Haible.
93547 2008-04-29  Bruno Haible  <bruno@clisp.org>
93549         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
93550         (inet_ntop, inet_pton): Change portability warning's wording.
93551         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
93552         Invoke gl_CHECK_NEXT_HEADERS.
93553         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
93554         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
93555         set ARPA_INET_H.
93556         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93557         * modules/arpa_inet (Description): No longer only for systems that
93558         lack it.
93559         (Depends-on): Add include_next.
93560         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
93561         HAVE_ARPA_INET_H.
93563 2008-04-29  Jim Meyering  <meyering@redhat.com>
93565         * modules/mkdir (License): Re-license as LGPLv2+.
93567 2008-04-29  Bruno Haible  <bruno@clisp.org>
93569         * modules/rawmemchr (Maintainer): Set to Eric.
93570         * modules/strchrnul (Maintainer): Likewise.
93572 2008-04-29  Simon Josefsson  <simon@josefsson.org>
93574         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
93575         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
93577         * modules/arpa_inet (arpa/inet.h): Use them.
93579 2008-04-28  Eric Blake  <ebb9@byu.net>
93581         Test getndelim2.
93582         * modules/getndelim2-tests: New file.
93583         * tests/test-getndelim2.c: Likewise.
93584         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
93585         stream.
93586         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
93588         * MODULES.html.sh: Document new module.
93590 2008-04-20  Bruno Haible  <bruno@clisp.org>
93592         * lib/c-stack.c (die): Use raise.
93593         * modules/c-stack (Depends-on): Add raise.
93595 2008-04-28  Bruno Haible  <bruno@clisp.org>
93597         Expect rpmatch to be declared.
93598         * lib/yesno.c (rpmatch): Remove declaration.
93600         Declare rpmatch.
93601         * lib/stdlib.in.h (rpmatch): New declaration.
93602         * lib/rpmatch.c: Include <stdlib.h> first.
93603         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
93604         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
93605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
93606         HAVE_RPMATCH.
93607         * modules/rpmatch (Depends-on): Add stdlib, extensions.
93608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
93609         (Include): Set to <stdlib.h>.
93610         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
93611         HAVE_RPMATCH.
93612         * NEWS: Document the change.
93614 2008-04-28  Bruno Haible  <bruno@clisp.org>
93616         Change rpmatch to use nl_langinfo when appropriate.
93617         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
93618         (N_): New macro.
93619         (localized_pattern): New function/macro.
93620         (try): Remove match, nomatch arguments. Copy the pattern into safe
93621         memory before caching it.
93622         (rpmatch): Use localized_pattern. Add translator comments.
93623         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
93624         Suggested by Eric Blake.
93625         * modules/rpmatch (Depends-on): Add stdbool.
93627 2008-04-28  Eric Blake  <ebb9@byu.net>
93629         Add rawmemchr module, matching glibc.
93630         * modules/string (Makefile.am): New indicator.
93631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
93632         * lib/string.in.h (rawmemchr): Declare when appropriate.
93633         * modules/rawmemchr: New file.
93634         * m4/rawmemchr.m4: Likewise.
93635         * lib/rawmemchr.c: Likewise.
93636         * modules/rawmemchr-tests: Likewise.
93637         * tests/test-rawmemchr.c: Likewise.
93638         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
93639         module.
93640         * modules/strchrnul (Depends-on): Add rawmemchr.
93641         * lib/strchrnul.c (strchrnul): Optimize a corner case.
93643         Whitespace cleanup.
93644         * tests/test-strchrnul.c: Reindent.
93645         * lib/strchrnul.c: Likewise.
93647         Optimize and test strchrnul.
93648         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
93649         * modules/strchrnul-tests: New file.
93650         * tests/test-strchrnul.c: Likewise.
93652         Remove intprops dependency.
93653         * modules/memchr (Depends-on): Remove intprops.
93654         * modules/memrchr (Depends-on): Likewise.
93655         * modules/memchr2 (Depends-on): Likewise.
93656         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
93657         * lib/memrchr.c (__memrchr): Likewise.
93658         * lib/memrchr2.c (memchr2): Likewise.
93659         Reported by Simon Josefsson.
93661 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93663         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
93664         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93666 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93668         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
93670         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
93672         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
93674         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
93675         declarations.
93676         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
93678         * m4/inet_pton.m4: Don't check for header files.
93680         * m4/inet_ntop.m4: Don't check for header files.
93682 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93684         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
93685         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
93686         trigger for cygwin).
93687         Reported by Bruno Haible  <bruno@clisp.org>.
93689 2008-04-28  Bruno Haible  <bruno@clisp.org>
93691         * doc/posix-functions/strdup.texi: Mention mingw problem.
93693 2008-04-27  Bruno Haible  <bruno@clisp.org>
93695         * modules/stat-time-tests (Depends-on): Add sleep.
93696         * tests/test-stat-time.c (force_unlink): New function.
93697         (cleanup): Use it.
93698         (test_mtime): Remove the ctime related tests.
93699         (test_ctime): New function, containing the ctime related tests.
93700         (main): Call test_ctime, except on native Windows platforms.
93702 2008-04-27  Bruno Haible  <bruno@clisp.org>
93704         * lib/rpmatch.c (rpmatch): Add some comments.
93705         Reported by James Youngman <jay@gnu.org>.
93707 2008-04-27  Bruno Haible  <bruno@clisp.org>
93709         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
93710         quiet NaNs.
93712 2008-04-27  Bruno Haible  <bruno@clisp.org>
93714         Make test-yesno.sh work on mingw.
93715         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
93716         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
93717         (main): Set stdin to binary mode.
93718         * modules/yesno-tests (Depends-on): Add binary-io.
93720 2008-04-27  Bruno Haible  <bruno@clisp.org>
93722         Fix 'isfinite' on x86, x86_64, ia64 platforms.
93723         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
93724         argument that lie outside the IEEE 854 domain.
93725         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
93726         (gl_ISFINITE): Use it.
93727         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
93729 2008-04-27  Bruno Haible  <bruno@clisp.org>
93731         Allow local renaming in config.h.
93732         * lib/memrchr.c (memrchr): Don't undefine outside libc.
93734 2008-04-27  Bruno Haible  <bruno@clisp.org>
93736         * lib/memchr.c (__memchr): Change type of 'i'.
93737         * lib/memchr2.c (memchr2): Likewise.
93739 2008-04-26  Eric Blake  <ebb9@byu.net>
93740         and Bruno Haible  <bruno@clisp.org>
93742         Optimize and test memrchr.
93743         * modules/memrchr (Depends-on): Add intprops.
93744         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
93745         * modules/memrchr-tests: New file.
93746         * tests/test-memrchr.c: New file.
93748 2008-04-26  Bruno Haible  <bruno@clisp.org>
93750         Add tentative support for DragonFly BSD.
93751         * lib/stdio-impl.h: Add macros for DragonFly BSD.
93752         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
93753         fp.
93754         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93755         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
93756         * lib/fpurge.c (fpurge): Likewise.
93757         * lib/freadable.c (freaadable): Likewise.
93758         * lib/freadahead.c (freadahead): Likewise.
93759         * lib/freading.c (freading): Likewise.
93760         * lib/freadptr.c (freadptr): Likewise.
93761         * lib/freadseek.c (freadptrinc): Likewise.
93762         * lib/fseeko.c (fseeko): Likewise.
93763         * lib/fseterr.c (fseterr): Likewise.
93764         * lib/fwritable.c (fwritable): Likewise.
93765         * lib/fwriting.c (fwriting): Likewise.
93767 2008-04-26  Bruno Haible  <bruno@clisp.org>
93769         * lib/stdio-impl.h: New file.
93770         * lib/fbufmode.c: Include stdio-impl.h.
93771         (fbufmode): Use fp_, remove redundant #defines.
93772         * lib/fflush.c: Include stdio-impl.h.
93773         (clear_ungetc_buffer): Remove redundant #defines.
93774         * lib/fpurge.c: Include stdio-impl.h.
93775         (fpurge): Remove redundant #defines.
93776         * lib/freadable.c: Include stdio-impl.h.
93777         (freadable): Remove redundant #defines.
93778         * lib/freadahead.c: Include stdio-impl.h.
93779         (freadahead): Remove redundant #defines.
93780         * lib/freading.c: Include stdio-impl.h.
93781         (freading): Remove redundant #defines.
93782         * lib/freadptr.c: Include stdio-impl.h.
93783         (freadptr): Remove redundant #defines.
93784         * lib/freadseek.c: Include stdio-impl.h.
93785         (freadptrinc): Remove redundant #defines.
93786         * lib/fseeko.c: Include stdio-impl.h.
93787         (rpl_fseeko): Remove redundant #defines.
93788         * lib/fseterr.c: Include stdio-impl.h.
93789         (fseterr): Remove redundant #defines.
93790         * lib/fwritable.c: Include stdio-impl.h.
93791         (fwritable: Remove redundant #defines.
93792         * lib/fwriting.c: Include stdio-impl.h.
93793         (fwriting): Remove redundant #defines.
93794         * modules/fbufmode (Files): Add lib/stdio-impl.h.
93795         * modules/fflush (Files): Likewise.
93796         * modules/fpurge (Files): Likewise.
93797         * modules/freadable (Files): Likewise.
93798         * modules/freadahead (Files): Likewise.
93799         * modules/freading (Files): Likewise.
93800         * modules/freadptr (Files): Likewise.
93801         * modules/freadseek (Files): Likewise.
93802         * modules/fseeko (Files): Likewise.
93803         * modules/fseterr (Files): Likewise.
93804         * modules/fwritable (Files): Likewise.
93805         * modules/fwriting (Files): Likewise.
93807 2008-04-26  Bruno Haible  <bruno@clisp.org>
93809         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93810         restore_seek_optimization, update_fpos_cache): New functions, extracted
93811         from rpl_fflush.
93812         (rpl_fflush): Use them.
93813         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
93814         (gl_REPLACE_FFLUSH): Use it.
93816 2008-04-26  Bruno Haible  <bruno@clisp.org>
93818         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
93819         on Solaris.
93820         * tests/test-xstrtoimax.sh: Likewise.
93821         * tests/test-xstrtoumax.sh: Likewise.
93822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93824 2008-04-26  Bruno Haible  <bruno@clisp.org>
93826         * modules/memchr-tests: New file.
93827         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
93829 2008-04-26  Eric Blake  <ebb9@byu.net>
93830             Bruno Haible  <bruno@clisp.org>
93832         * lib/memchr.c: Include intprops.h.
93833         (__memchr): Optimize parallel detection of matching bytes. Rename local
93834         variables. Add explanatory comments.
93836 2008-04-26  Bruno Haible  <bruno@clisp.org>
93838         Fix module 'memchr', broken since 2000-10-28.
93839         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
93841 2008-04-26  Bruno Haible  <bruno@clisp.org>
93843         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
93844         comments.
93846 2008-04-25  Eric Blake  <ebb9@byu.net>
93848         Use native fstatat on cygwin 1.7.0.
93849         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
93850         first.
93852 2008-04-23  Eric Blake  <ebb9@byu.net>
93854         Improve memchr2 performance.
93855         * lib/memchr2.c (memchr2): Further optimize parallel detection of
93856         NUL bytes.
93857         * modules/memchr2 (Depends-on): Use intprops.h.
93859 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93861         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
93862         an inline function instead of a CPP macro.  Patch by Ben Pfaff
93863         <blp@cs.stanford.edu>.
93865 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93867         * lib/arpa_inet.in.h: New file.
93869         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
93870         (Makefile.am): Sed in substitute header file.
93872         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
93873         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
93875         * modules/inet_ntop (configure.ac): Use
93876         gl_ARPA_INET_MODULE_INDICATOR.
93878         * modules/inet_pton (configure.ac): Use
93879         gl_ARPA_INET_MODULE_INDICATOR.
93881 2008-04-22  Jim Meyering  <meyering@redhat.com>
93883         * modules/verify (License): Re-license as LGPLv2+.
93885 2008-04-22  Simon Josefsson  <simon@josefsson.org>
93887         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
93888         parameter to void* as per POSIX standard (MinGW uses char*).
93890 2008-04-21  Bruno Haible  <bruno@clisp.org>
93892         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
93893         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
93894         Define to replacements if REPLACE_ISWCNTRL is 1.
93895         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
93896         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
93897         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
93898         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
93899         what it fixes.
93900         * doc/posix-functions/iswalpha.texi: Likewise.
93901         * doc/posix-functions/iswblank.texi: Likewise.
93902         * doc/posix-functions/iswcntrl.texi: Likewise.
93903         * doc/posix-functions/iswdigit.texi: Likewise.
93904         * doc/posix-functions/iswgraph.texi: Likewise.
93905         * doc/posix-functions/iswlower.texi: Likewise.
93906         * doc/posix-functions/iswprint.texi: Likewise.
93907         * doc/posix-functions/iswpunct.texi: Likewise.
93908         * doc/posix-functions/iswspace.texi: Likewise.
93909         * doc/posix-functions/iswupper.texi: Likewise.
93910         * doc/posix-functions/iswxdigit.texi: Likewise.
93911         Reported by Alain Guibert.
93913 2008-04-21  Bruno Haible  <bruno@clisp.org>
93915         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
93916         Patch by Alain Guibert.
93918 2008-04-21  Bruno Haible  <bruno@clisp.org>
93920         Fix test failures on mingw.
93921         * tests/test-xstrtol.c (print_no_progname): New function.
93922         (main): Install it in error_print_progname hook.
93923         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
93924         * tests/test-xstrtoimax.sh: Likewise.
93925         * tests/test-xstrtoumax.sh: Likewise.
93927 2008-04-21  Bruno Haible  <bruno@clisp.org>
93929         Fix test failure on mingw.
93930         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
93932 2008-04-21  Bruno Haible  <bruno@clisp.org>
93934         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
93935         Actually assign a value.
93937 2008-04-20  Bruno Haible  <bruno@clisp.org>
93939         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
93940         take 2.
93941         * lib/canonicalize.c (canonicalize_file_name): Elide if the
93942         'canonicalize-lgpl' module is also used.
93943         * lib/canonicalize-lgpl.c: Undo last change.
93944         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
93946 2008-04-20  Bruno Haible  <bruno@clisp.org>
93948         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
93949         config.h. Provide _mkdir based fallback for mingw.
93950         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
93951         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
93952         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
93953         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
93954         rather than defining mkdir in config.h.
93955         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
93956         (gl_SYS_STAT_H_DEFAULTS): New macro.
93957         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
93958         HAVE_IO_H any more.
93959         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
93960         HAVE_DECL_MKDIR and HAVE_IO_H.
93962 2008-04-20  Bruno Haible  <bruno@clisp.org>
93964         * lib/isapipe.c: Port to native Windows platforms.
93966 2008-04-20  Bruno Haible  <bruno@clisp.org>
93968         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
93970 2008-04-21  Eric Blake  <ebb9@byu.net>
93972         Work around preprocessors that don't handle UINTMAX_MAX.
93973         * lib/memchr2.c (memchr2): Avoid embedded #if.
93974         Reported by Alain Guibert, fix suggested by Bruno Haible.
93976 2008-04-21  Simon Josefsson  <simon@josefsson.org>
93978         * doc/posix-functions/strftime.texi (strftime): Explain better
93979         Windows incompatibility.  Suggested by Micah Cowan
93980         <micah@cowan.name>.
93982 2008-04-20  Bruno Haible  <bruno@clisp.org>
93984         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
93985         unistr/u8-mblen.
93987 2008-04-20  Bruno Haible  <bruno@clisp.org>
93989         Fix test failure on platforms with non-GNU iconv.
93990         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
93991         (U_TO_U8): Use it, rather than u16_to_u8.
93992         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
93993         units at the end of the input string.
93994         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
93996 2008-04-20  Bruno Haible  <bruno@clisp.org>
93998         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
93999         when the resulting length is 0.
94000         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94002 2008-04-20  Bruno Haible  <bruno@clisp.org>
94004         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94005         works.
94006         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94008 2008-04-20  Bruno Haible  <bruno@clisp.org>
94010         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94011         * modules/tsearch-tests (configure.ac): Test for initstate function.
94013 2008-04-20  Bruno Haible  <bruno@clisp.org>
94015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94016         for nlink_t if missing.
94017         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94019 2008-04-19  Bruno Haible  <bruno@clisp.org>
94021         Work around snprintf bug on Linux libc5.
94022         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94024         gl_SNPRINTF_SIZE1.
94025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94026         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94027         that test failed.
94028         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94029         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94030         * modules/snprintf (Files): Add m4/printf.m4.
94031         * modules/vsnprintf (Files): Likewise.
94032         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94033         * doc/posix-functions/vsnprintf.texi: Likewise.
94035 2008-04-19  Bruno Haible  <bruno@clisp.org>
94037         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94038         from 0.0058 to less than 10^-7.
94040 2008-04-19  Bruno Haible  <bruno@clisp.org>
94042         Fix rounding when a precision is given.
94043         * lib/vasnprintf.c (is_borderline): New function.
94044         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94045         9...9x.
94046         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94047         %e, %g.
94048         * tests/test-vasprintf-posix.c (test_function): Likewise.
94049         * tests/test-snprintf-posix.h (test_function): Likewise.
94050         * tests/test-sprintf-posix.h (test_function): Likewise.
94051         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94052         * tests/test-printf-posix.h (test_function): Likewise.
94053         * tests/test-printf-posix.output: Update.
94054         Reported by John Darrington <john@darrington.wattle.id.au> via
94055         Ben Pfaff <blp@cs.stanford.edu>.
94057 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94059         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94060         Suggested by Bruno Haible <bruno@clisp.org>.
94062 2008-04-17  Bruno Haible  <bruno@clisp.org>
94064         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94065         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94066         implementation.
94067         Patch by Bruce Merry <bmerry@gmail.com>.
94069 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94071         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94072         doesn't work under Windows.
94074 2008-04-16  Bruno Haible  <bruno@clisp.org>
94076         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94077         New macros.
94078         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94079         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94080         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94081         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94082         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94083         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94084         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94085         macros.
94086         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94087         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94088         Northern Sotho, Uighur.
94090 2008-04-16  Bruno Haible  <bruno@clisp.org>
94092         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94093         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94094         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94095         Reported by Daniel Bergström <daniel@octocode.com>.
94097 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94098             Bruno Haible  <bruno@clisp.org>
94100         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94101         function.
94102         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94103         New functions, mostly extracted from gl_locale_name_default.
94104         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94106 2008-04-16  Eric Blake  <ebb9@byu.net>
94108         Adjust strtod detection to catch glibc 2.7 bug.
94109         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94110         Reported by John Gatewood Ham.
94112 2008-04-16  Bruno Haible  <bruno@clisp.org>
94114         Add tentative support for Linux libc5.
94115         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94116         * lib/fpurge.c (fpurge): Likewise.
94117         * lib/freadable.c (freadable): Likewise.
94118         * lib/freadahead.c (freadahead): Likewise.
94119         * lib/freading.c (freading): Likewise.
94120         * lib/freadptr.c (freadptr): Likewise.
94121         * lib/freadseek.c (freadptrinc): Likewise.
94122         * lib/fseeko.c (rpl_fseeko): Likewise.
94123         * lib/fseterr.c (fseterr): Likewise.
94124         * lib/fwritable.c (fwritable): Likewise.
94125         * lib/fwriting.c (fwriting): Likewise.
94126         Reported by Alain Guibert <alguibert+bts@free.fr>.
94128 2008-04-15  Bruno Haible  <bruno@clisp.org>
94130         * modules/mathl (configure.ac): Define module indicator.
94132 2008-04-15  Bruno Haible  <bruno@clisp.org>
94134         * lib/logl.c (logl): Remove unused variables.
94136 2008-04-15  Bruno Haible  <bruno@clisp.org>
94138         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94139         fails.
94141 2008-04-15  Bruno Haible  <bruno@clisp.org>
94143         * lib/trim.c (trim2): Fix argument of isspace() macro.
94145 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94147         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94148         to 0.
94149         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94151 2008-04-14  Bruno Haible  <bruno@clisp.org>
94153         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94154         AC_LANG_PROGRAM argument.
94155         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94156         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94158         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94159         * m4/math_h.m4 (gl_MATH_H): Likewise.
94160         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94161         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94162         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94163         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94164         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94165         * m4/regex.m4 (gl_REGEX): Likewise.
94166         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94167         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94169         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94171         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94175 2008-04-14  Jim Meyering  <meyering@redhat.com>
94177         test-strtod: fix typos: s/abs/fabs/
94178         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94180 2008-04-13  Bruno Haible  <bruno@clisp.org>
94182         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94183         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94184         module is also used and while not building the reloc-wrapper.
94186 2008-04-13  Bruno Haible  <bruno@clisp.org>
94188         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94190 2008-04-13  Bruno Haible  <bruno@clisp.org>
94192         Fix AIX compilation failure introduced on 2008-04-02.
94193         * tests/test-frexp.c (exp): Undefine before redefining.
94194         * tests/test-frexpl.c (exp): Likewise.
94196 2008-04-13  Bruno Haible  <bruno@clisp.org>
94198         Work around a HP-UX stdio bug.
94199         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94200         * tests/test-ftello.c (main): Likewise.
94201         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94202         * doc/posix-functions/ftello.texi: Likewise.
94204 2008-04-13  Bruno Haible  <bruno@clisp.org>
94206         Make test-signbit pass on HP-UX/hppa.
94207         * tests/test-signbit.c (minus_zerol): New variable.
94208         (test_signbitl): Use it.
94210 2008-04-13  Bruno Haible  <bruno@clisp.org>
94212         Make truncl work on OSF/1 4.0.
94213         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
94214         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94215         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
94217         HAVE_DECL_TRUNCL.
94218         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
94219         HAVE_DECL_TRUNCL.
94220         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
94222 2008-04-13  Bruno Haible  <bruno@clisp.org>
94224         * lib/unictype.h: Remove trailing comma from enumeration definitions.
94226 2008-04-13  Bruno Haible  <bruno@clisp.org>
94228         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
94229         expression, so as to avoid HP-UX 11 cc compiler bug.
94231 2008-04-13  Bruno Haible  <bruno@clisp.org>
94233         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
94235 2008-04-13  Bruno Haible  <bruno@clisp.org>
94237         * lib/git-merge-changelog.c: Remove empty declaration outside of
94238         functions.
94240 2008-04-13  Bruno Haible  <bruno@clisp.org>
94242         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
94244 2008-04-13  Bruno Haible  <bruno@clisp.org>
94246         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
94247         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
94248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94249         also if it exists but lacks definitions of the SHUT_* macros.
94250         * modules/sys_socket (Description): Update.
94251         Reported by Elbert Pol <e.pol@chello.nl>.
94253 2008-04-13  Bruno Haible  <bruno@clisp.org>
94255         * lib/localcharset.c (OS2): Don't redefine if already defined.
94256         Reported by Elbert Pol <e.pol@chello.nl>.
94258 2008-04-13  Bruno Haible  <bruno@clisp.org>
94260         * lib/binary-io.h [__EMX__]: Include <io.h>.
94261         Reported by Elbert Pol <e.pol@chello.nl>.
94263 2008-04-12  Bruno Haible  <bruno@clisp.org>
94265         * lib/fpucw.h: Enable the definitions also for x86_64.
94266         Needed for NetBSD/x86_64.
94267         Reported by Thomas Klausner <tk@giga.or.at>.
94269 2008-04-12  Bruno Haible  <bruno@clisp.org>
94271         * tests/test-strtod.c: Include isnand.h.
94272         (main): Use isnand instead of isnan.
94273         Reported by Jim Meyering.
94275 2008-04-12  Bruno Haible  <bruno@clisp.org>
94277         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94278         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94280 2008-04-12  Jim Meyering  <meyering@redhat.com>
94282         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94284 2008-04-12  Bruno Haible  <bruno@clisp.org>
94286         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94287         Reported by Elbert Pol <e.pol@chello.nl>.
94289 2008-04-12  Eric Blake  <ebb9@byu.net>
94291         Work around Solaris 10 math.h bug.
94292         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94293         (gl_MATH_H_DEFAULTS): Set up default.
94294         * modules/math (Makefile.am): Replace new indicators.
94295         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94296         * tests/test-math.c (main): Test this.
94297         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94298         * doc/posix-headers/math.texi (math.h): Mention bug.
94299         Reported by Nelson H. F. Beebe and Jim Meyering.
94301 2008-04-11  Bruno Haible  <bruno@clisp.org>
94303         Adapt to future versions of Apple GCC.
94304         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94305         Reported by Peter O'Gorman <peter@pogma.com>.
94307 2008-04-11  Bruno Haible  <bruno@clisp.org>
94309         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94311 2008-04-11  Bruno Haible  <bruno@clisp.org>
94313         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94315         * modules/getaddrinfo-tests (Makefile.am): Define
94316         test_getaddrinfo_LDADD.
94318 2008-04-11  Bruno Haible  <bruno@clisp.org>
94320         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94321         (init): Fix syntax error.
94322         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94323         is declared.
94325 2008-04-11  Bruno Haible  <bruno@clisp.org>
94327         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94328         * modules/glob (Depends-on): Add stdbool.
94330 2008-04-11  Bruno Haible  <bruno@clisp.org>
94332         * lib/trim.c: Include <string.h>.
94334 2008-04-11  Eric Blake  <ebb9@byu.net>
94336         Avoid compile failure on OS/2.
94337         * lib/regex_internal.h (internal_function): Disable optimization
94338         on OS/2 (__EMX__), where it caused compiler error.
94339         Reported by Elbert Pol.
94341 2008-04-11  Bruno Haible  <bruno@clisp.org>
94343         Flush the standard error stream before aborting. Needed on mingw.
94344         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94345         * tests/test-array_list.c (ASSERT): Likewise.
94346         * tests/test-array_oset.c (ASSERT): Likewise.
94347         * tests/test-avltree_list.c (ASSERT): Likewise.
94348         * tests/test-avltree_oset.c (ASSERT): Likewise.
94349         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94350         * tests/test-binary-io.c (ASSERT): Likewise.
94351         * tests/test-byteswap.c (ASSERT): Likewise.
94352         * tests/test-c-ctype.c (ASSERT): Likewise.
94353         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94354         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94355         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94356         * tests/test-c-strstr.c (ASSERT): Likewise.
94357         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94358         * tests/test-canonicalize.c (ASSERT): Likewise.
94359         * tests/test-carray_list.c (ASSERT): Likewise.
94360         * tests/test-ceilf1.c (ASSERT): Likewise.
94361         * tests/test-ceilf2.c (ASSERT): Likewise.
94362         * tests/test-ceill.c (ASSERT): Likewise.
94363         * tests/test-count-one-bits.c (ASSERT): Likewise.
94364         * tests/test-fbufmode.c (ASSERT): Likewise.
94365         * tests/test-fflush2.c (ASSERT): Likewise.
94366         * tests/test-floorf1.c (ASSERT): Likewise.
94367         * tests/test-floorf2.c (ASSERT): Likewise.
94368         * tests/test-floorl.c (ASSERT): Likewise.
94369         * tests/test-fopen.c (ASSERT): Likewise.
94370         * tests/test-fpending.c (ASSERT): Likewise.
94371         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94372         * tests/test-fpurge.c (ASSERT): Likewise.
94373         * tests/test-freadable.c (ASSERT): Likewise.
94374         * tests/test-freadahead.c (ASSERT): Likewise.
94375         * tests/test-freading.c (ASSERT): Likewise.
94376         * tests/test-freadptr.c (ASSERT): Likewise.
94377         * tests/test-freadptr2.c (ASSERT): Likewise.
94378         * tests/test-freadseek.c (ASSERT): Likewise.
94379         * tests/test-freopen.c (ASSERT): Likewise.
94380         * tests/test-frexp.c (ASSERT): Likewise.
94381         * tests/test-frexpl.c (ASSERT): Likewise.
94382         * tests/test-fseek.c (ASSERT): Likewise.
94383         * tests/test-fseeko.c (ASSERT): Likewise.
94384         * tests/test-fstrcmp.c (ASSERT): Likewise.
94385         * tests/test-ftell.c (ASSERT): Likewise.
94386         * tests/test-ftello.c (ASSERT): Likewise.
94387         * tests/test-func.c (ASSERT): Likewise.
94388         * tests/test-fwritable.c (ASSERT): Likewise.
94389         * tests/test-fwriting.c (ASSERT): Likewise.
94390         * tests/test-getdelim.c (ASSERT): Likewise.
94391         * tests/test-getline.c (ASSERT): Likewise.
94392         * tests/test-i-ring.c (ASSERT): Likewise.
94393         * tests/test-iconv-utf.c (ASSERT): Likewise.
94394         * tests/test-iconv.c (ASSERT): Likewise.
94395         * tests/test-isfinite.c (ASSERT): Likewise.
94396         * tests/test-isnand.c (ASSERT): Likewise.
94397         * tests/test-isnanf.c (ASSERT): Likewise.
94398         * tests/test-isnanl.h (ASSERT): Likewise.
94399         * tests/test-ldexpl.c (ASSERT): Likewise.
94400         * tests/test-linked_list.c (ASSERT): Likewise.
94401         * tests/test-linkedhash_list.c (ASSERT): Likewise.
94402         * tests/test-localename.c (ASSERT): Likewise.
94403         * tests/test-lseek.c (ASSERT): Likewise.
94404         * tests/test-mbscasecmp.c (ASSERT): Likewise.
94405         * tests/test-mbscasestr1.c (ASSERT): Likewise.
94406         * tests/test-mbscasestr2.c (ASSERT): Likewise.
94407         * tests/test-mbscasestr3.c (ASSERT): Likewise.
94408         * tests/test-mbscasestr4.c (ASSERT): Likewise.
94409         * tests/test-mbschr.c (ASSERT): Likewise.
94410         * tests/test-mbscspn.c (ASSERT): Likewise.
94411         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
94412         * tests/test-mbspbrk.c (ASSERT): Likewise.
94413         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
94414         * tests/test-mbsrchr.c (ASSERT): Likewise.
94415         * tests/test-mbsspn.c (ASSERT): Likewise.
94416         * tests/test-mbsstr1.c (ASSERT): Likewise.
94417         * tests/test-mbsstr2.c (ASSERT): Likewise.
94418         * tests/test-mbsstr3.c (ASSERT): Likewise.
94419         * tests/test-memchr2.c (ASSERT): Likewise.
94420         * tests/test-memmem.c (ASSERT): Likewise.
94421         * tests/test-open.c (ASSERT): Likewise.
94422         * tests/test-printf-frexp.c (ASSERT): Likewise.
94423         * tests/test-printf-frexpl.c (ASSERT): Likewise.
94424         * tests/test-printf-posix.c (ASSERT): Likewise.
94425         * tests/test-quotearg.c (ASSERT): Likewise.
94426         * tests/test-rbtree_list.c (ASSERT): Likewise.
94427         * tests/test-rbtree_oset.c (ASSERT): Likewise.
94428         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
94429         * tests/test-round1.c (ASSERT): Likewise.
94430         * tests/test-roundf1.c (ASSERT): Likewise.
94431         * tests/test-roundl.c (ASSERT): Likewise.
94432         * tests/test-signbit.c (ASSERT): Likewise.
94433         * tests/test-sleep.c (ASSERT): Likewise.
94434         * tests/test-snprintf-posix.c (ASSERT): Likewise.
94435         * tests/test-snprintf.c (ASSERT): Likewise.
94436         * tests/test-sprintf-posix.c (ASSERT): Likewise.
94437         * tests/test-stat-time.c (ASSERT): Likewise.
94438         * tests/test-strcasestr.c (ASSERT): Likewise.
94439         * tests/test-strerror.c (ASSERT): Likewise.
94440         * tests/test-striconv.c (ASSERT): Likewise.
94441         * tests/test-striconveh.c (ASSERT): Likewise.
94442         * tests/test-striconveha.c (ASSERT): Likewise.
94443         * tests/test-strsignal.c (ASSERT): Likewise.
94444         * tests/test-strstr.c (ASSERT): Likewise.
94445         * tests/test-strtod.c (ASSERT): Likewise.
94446         * tests/test-trunc1.c (ASSERT): Likewise.
94447         * tests/test-trunc2.c (ASSERT): Likewise.
94448         * tests/test-truncf1.c (ASSERT): Likewise.
94449         * tests/test-truncf2.c (ASSERT): Likewise.
94450         * tests/test-truncl.c (ASSERT): Likewise.
94451         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
94452         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
94453         * tests/test-vasnprintf.c (ASSERT): Likewise.
94454         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
94455         * tests/test-vasprintf.c (ASSERT): Likewise.
94456         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
94457         * tests/test-vprintf-posix.c (ASSERT): Likewise.
94458         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
94459         * tests/test-vsnprintf.c (ASSERT): Likewise.
94460         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
94461         * tests/test-wcwidth.c (ASSERT): Likewise.
94462         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
94463         * tests/test-xprintf-posix.c (ASSERT): Likewise.
94464         * tests/test-xvasprintf.c (ASSERT): Likewise.
94465         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
94466         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
94467         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
94468         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
94469         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
94470         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
94471         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
94472         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
94473         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
94474         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
94475         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
94476         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
94477         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
94478         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
94479         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
94480         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
94481         * tests/unictype/test-block_list.c (ASSERT): Likewise.
94482         * tests/unictype/test-block_of.c (ASSERT): Likewise.
94483         * tests/unictype/test-block_test.c (ASSERT): Likewise.
94484         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
94485         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
94486         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
94487         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
94488         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
94489         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
94490         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
94491         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
94492         * tests/unictype/test-combining.c (ASSERT): Likewise.
94493         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
94494         * tests/unictype/test-digit.c (ASSERT): Likewise.
94495         * tests/unictype/test-mirror.c (ASSERT): Likewise.
94496         * tests/unictype/test-numeric.c (ASSERT): Likewise.
94497         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
94498         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
94499         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
94500         * tests/unictype/test-scripts.c (ASSERT): Likewise.
94501         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
94502         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
94503         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
94504         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
94505         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
94506         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
94507         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
94508         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
94509         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
94510         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
94511         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
94512         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
94513         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
94514         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
94515         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
94516         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
94517         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
94518         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
94519         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
94520         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
94521         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
94522         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
94523         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
94524         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
94525         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
94526         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
94527         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
94528         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
94529         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
94530         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
94531         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
94532         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
94533         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
94534         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
94535         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
94536         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
94537         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
94538         Reported by Eric Blake.
94540 2008-04-11  Bruno Haible  <bruno@clisp.org>
94542         * lib/wchar.in.h: Tweak comment.
94544 2008-04-11  Bruno Haible  <bruno@clisp.org>
94546         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
94547         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
94548         gl_COMMON.
94549         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
94551 2008-04-11  Bruno Haible  <bruno@clisp.org>
94553         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
94555 2008-04-11  Simon Josefsson  <simon@josefsson.org>
94557         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
94558         of attempting to use non-existing /dev/*random.  Based on patch
94559         from Adam Strzelecki <ono@java.pl> in
94560         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
94562 2008-04-08  Bruno Haible  <bruno@clisp.org>
94564         Add tentative support for emx+gcc.
94565         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
94566         * lib/fpurge.c (fpurge): Likewise.
94567         * lib/freadable.c (freadable): Likewise.
94568         * lib/freadahead.c (freadahead): Likewise.
94569         * lib/freading.c (freading): Likewise.
94570         * lib/freadptr.c (freadptr): Likewise.
94571         * lib/freadseek.c (freadptrinc): Likewise.
94572         * lib/fseeko.c (rpl_fseeko): Likewise.
94573         * lib/fseterr.c (fseterr): Likewise.
94574         * lib/fwritable.c (fwritable): Likewise.
94575         * lib/fwriting.c (fwriting): Likewise.
94576         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
94578 2008-04-09  Eric Blake  <ebb9@byu.net>
94580         Avoid some autoconf warnings.
94581         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
94582         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
94583         * m4/afs.m4 (gl_AFS): Likewise.
94584         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
94585         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
94586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
94587         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
94588         (gl_INTEGER_TYPE_SUFFIX): Likewise.
94589         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
94590         (AC_CHECK_DECLS_ONCE): Likewise.
94591         Rename file...
94592         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
94593         gnulib-tool requires autoconf 2.59 or better.
94594         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
94596 2008-04-08  Eric Blake  <ebb9@byu.net>
94598         Use 'git describe --match' if present (added in git 1.5.5).
94599         * build-aux/git-version-gen: Limit result to tags that match 'v*'
94600         if possible.
94602 2008-04-08  Bruno Haible  <bruno@clisp.org>
94604         Add tentative support for OpenServer.
94605         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
94606         _ptr, _cnt.
94607         * lib/fpurge.c (fpurge): Likewise.
94608         * lib/freadable.c (freadable): Likewise.
94609         * lib/freadahead.c (freadahead): Likewise.
94610         * lib/freading.c (freading): Likewise.
94611         * lib/freadptr.c (freadptr): Likewise.
94612         * lib/freadseek.c (freadptrinc): Likewise.
94613         * lib/fseeko.c (rpl_fseeko): Likewise.
94614         * lib/fseterr.c (fseterr): Likewise.
94615         * lib/fwritable.c (fwritable): Likewise.
94616         * lib/fwriting.c (fwriting): Likewise.
94617         Reported by Roger Cornelius <rac@tenzing.org> and
94618         Brian K. White <brian@aljex.com>.
94620 2008-04-06  Jim Meyering  <meyering@redhat.com>
94622         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
94624 2008-04-06  Bruno Haible  <bruno@clisp.org>
94626         Avoid possible error with non-ASCII bytes in UTF-8 locales.
94627         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
94628         * tests/test-printf-posix.sh: Likewise.
94629         * tests/test-vfprintf-posix.sh: Likewise.
94630         * tests/test-vprintf-posix.sh: Likewise.
94631         * tests/test-xprintf-posix.sh: Likewise.
94633 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94635         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
94636         hide error from 'ls', needed on OS/2.
94637         Report by Elbert Pol <elbert.pol@gmail.com>.
94639 2008-04-04  Eric Blake  <ebb9@byu.net>
94641         Make test-fseeko.c failures meaningful.
94642         * tests/test-fseeko.c: Print line number on failure.
94643         * tests/test-fseek.c: Likewise.
94644         Reported by Nelson H. F. Beebe.
94646         Improve strtod bug detection check.
94647         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
94648         required for Solaris 10.
94649         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
94651 2008-04-04  Bruno Haible  <bruno@clisp.org>
94653         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
94654         by m4/setenv.m4.
94656 2008-04-03  Eric Blake  <ebb9@byu.net>
94658         Ensure sane .version contents.
94659         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
94660         version string.
94661         * build-aux/git-version-gen: Improve documentation.
94663         Make GNU make output nicer.
94664         * top/GNUmakefile [!_have-Makefile]: Add dependency on
94665         MAKECMDGOALS to enforce message for all command line targets.  Set
94666         srcdir for use in maint.mk.
94668         Another maintainer tweak.
94669         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
94670         a target that regenerates version.
94672 2008-04-03  Jim Meyering  <meyering@redhat.com>
94674         vc-list-files: don't cause coreutils "make po-check" failure
94675         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
94677 2008-04-03  Eric Blake  <ebb9@byu.net>
94679         Allow VPATH usage of vc-list-files.
94680         * build-aux/vc-list-files (scriptversion): Add timestamp.
94681         (options): Add --help, --version, -C.
94682         (CVS): Support installed cvsu.
94684 2008-04-02  Bruno Haible  <bruno@clisp.org>
94686         Avoid some "statement with no effect" warnings from gcc.
94687         * tests/test-wctype.c (main): Explicitly ignore unused values.
94688         Reported by Jim Meyering.
94690 2008-04-02  Jim Meyering  <meyering@redhat.com>
94692         Avoid some warnings from "gcc -Wshadow".
94693         * tests/test-frexp.c (exp): Define to a different identifier.
94694         * tests/test-frexpl.c (exp): Likewise.
94696 2008-04-03  Jim Meyering  <meyering@redhat.com>
94698         bootstrap: remove dangling *.[ch] symlinks from lib
94699         * build-aux/bootstrap [dangling symlink removal]: Move find's
94700         -depth option to precede all others, to avoid a warning.
94701         Remove *.[ch] files too, and from "$source_base" (usually lib/).
94703 2008-04-02  Bruno Haible  <bruno@clisp.org>
94705         Avoid some warnings from "gcc -Wshadow".
94706         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
94707         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
94708         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
94709         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
94710         Reported by Jim Meyering.
94712 2008-04-01  Bruno Haible  <bruno@clisp.org>
94714         Fix test to work on IRIX 6.5 with cc.
94715         * tests/test-math.c (numeric_equal): New function.
94716         (main): Use it.
94718 2008-04-01  Bruno Haible  <bruno@clisp.org>
94720         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
94722 2008-04-01  Bruno Haible  <bruno@clisp.org>
94724         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
94725         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94726         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
94727         (Depends-on): Remove math.
94729         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
94730         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94731         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
94732         (Depends-on): Remove math.
94734         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
94735         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94736         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
94737         (Depends-on): Remove math.
94738         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
94739         (Depends-on): Remove math.
94741         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
94742         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94743         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
94744         (Depends-on): Remove math.
94745         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
94746         (Depends-on): Remove math.
94748         * tests/test-round1.c: Include nan.h.
94749         (main): Use NaNd instead of NAN.
94750         * modules/round-tests (Files): Add tests/nan.h.
94752         * tests/test-trunc1.c: Include nan.h.
94753         (main): Use NaNd instead of NAN.
94754         * modules/trunc-tests (Files): Add tests/nan.h.
94756         * tests/test-roundf1.c: Include nan.h.
94757         (main): Use NaNf instead of NAN.
94758         * modules/roundf-tests (Files): Add tests/nan.h.
94760         * tests/test-truncf1.c: Include nan.h.
94761         (main): Use NaNf instead of NAN.
94762         * modules/truncf-tests (Files): Add tests/nan.h.
94764         * tests/test-ceilf1.c: Include nan.h.
94765         (main): Use NaNf instead of NAN.
94766         * modules/ceilf-tests (Files): Add tests/nan.h.
94768         * tests/test-floorf1.c: Include nan.h.
94769         (main): Use NaNf instead of NAN.
94770         * modules/floorf-tests (Files): Add tests/nan.h.
94772         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
94773         (main): Use NaNf instead of NAN.
94774         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
94776         * tests/test-isnand.c: Include nan.h instead of <math.h>.
94777         (main): Use NaNd instead of NAN.
94778         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
94780         * tests/test-frexp.c: Include nan.h.
94781         (main): Use NaNd instead of NAN.
94782         * modules/frexp-tests (Files): Add tests/nan.h.
94784         * lib/isnan.c: Don't include <math.h>.
94785         (FUNC): Don't use NAN macro.
94786         * modules/isnand-nolibm (Depends-on): Remove math.
94787         * modules/isnanf-nolibm (Depends-on): Remove math.
94788         * modules/isnanl (Depends-on): Remove math.
94789         * modules/isnanl-nolibm (Depends-on): Remove math.
94791         * tests/nan.h: New file.
94793 2008-04-01  Eric Blake  <ebb9@byu.net>
94795         Fix typos.
94796         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
94797         values to be the right type.
94799         For now, cater to gnulib strtod inaccuracies.
94800         * tests/test-strtod.c (main): Allow 1-ulp error on expected
94801         fractional results.  While not as nice from a QoI perspective, it
94802         is a quicker patch than correctly implementing decimal to binary
94803         rounding.
94805 2008-03-31  Eric Blake  <ebb9@byu.net>
94807         Guarantee a definition of NAN.
94808         * lib/math.in.h (NAN): Define if missing.
94809         * tests/test-math.c (main): Test it.
94810         * doc/posix-headers/math.texi (math.h): Document this.
94811         * lib/isnan.c (rpl_isnand): Use it.
94812         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
94813         * tests/test-floorf1.c (NaN): Likewise.
94814         * tests/test-frexp.c (NaN): Likewise.
94815         * tests/test-isnand.c (NaN): Likewise.
94816         * tests/test-isnanf.c (NaN): Likewise.
94817         * tests/test-round1.c (NaN): Likewise.
94818         * tests/test-roundf1.c (NaN): Likewise.
94819         * tests/test-snprintf-posix.h (NaN): Likewise.
94820         * tests/test-sprintf-posix.h (NaN): Likewise.
94821         * tests/test-trunc1.c (NaN): Likewise.
94822         * tests/test-truncf1.c (NaN): Likewise.
94823         * tests/test-vasnprintf-posix.c (NaN): Likewise.
94824         * tests/test-vasprintf-posix.c (NaN): Likewise.
94825         * modules/isnand-nolibm (Depends-on): Add math.
94826         * modules/isnanf-nolibm (Depends-on): Likewise.
94827         * modules/isnanl (Depends-on): Likewise.
94828         * modules/isnanl-nolibm (Depends-on): Likewise.
94829         * modules/snprintf-posix-tests (Depends-on): Likewise.
94830         * modules/sprintf-posix-tests (Depends-on): Likewise.
94831         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
94832         * modules/vsprintf-posix-tests (Depends-on): Likewise.
94833         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
94834         * modules/vasprintf-posix-tests (Depends-on): Likewise.
94836 2008-03-31  Bruno Haible  <bruno@clisp.org>
94838         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
94839         * doc/posix-functions/strtod.texi: Likewise.
94841 2008-03-31  Bruno Haible  <bruno@clisp.org>
94843         * tests/test-strtod.c (main): Don't use C99 syntax.
94845 2008-03-31  Bruno Haible  <bruno@clisp.org>
94847         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
94848         Reported by Eric Blake.
94850 2008-03-31  Jim Meyering  <meyering@redhat.com>
94852         Don't compare actual signbit return values.
94853         * tests/test-strtod.c (main): Rather, compare only their
94854         zero/non-zero nature.
94856 2008-03-31  Eric Blake  <ebb9@byu.net>
94858         More strtod documentation.
94859         * doc/posix-functions/strtod.texi (strtod): Interpret more test
94860         failures as distinct bugs.
94862 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
94864         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
94865         Problem reported by Erik Benada in
94866         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
94868 2008-03-30  Bruno Haible  <bruno@clisp.org>
94870         * tests/test-strtod.c: Add comments about which assertion fails on which
94871         platform.
94872         * doc/posix-functions/strtod.texi: Add info about many more platforms.
94874 2008-03-30  Eric Blake  <ebb9@byu.net>
94876         Test signbit behavior on zeros.
94877         * tests/test-signbit.c (test_signbitf): Add tests for zero.
94878         (test_signbitd, test_signbitl): Likewise.
94880         More strtod touchups.
94881         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
94882         sign of negative underflow, for now.  Use .5, not .1.
94883         * doc/posix-functions/strtod.texi (strtod): Mention these
94884         limitations.
94885         Reported by Jim Meyering.
94887 2008-03-30  Bruno Haible  <bruno@clisp.org>
94889         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
94890         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
94892 2008-03-30  Bruno Haible  <bruno@clisp.org>
94894         Avoid failure when attempting to return empty iconv results on some
94895         platforms.
94896         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
94897         allocation, don't report ENOMEM when the resulting string is empty.
94899 2008-03-30  Bruno Haible  <bruno@clisp.org>
94901         Fix buffer overrun.
94902         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
94903         Don't consider the width for tmp_length. Check count against tmp_length
94904         before doing the padding. Ensure enough allocation during padding.
94906 2008-03-30  Eric Blake  <ebb9@byu.net>
94908         strtod touchups.
94909         * lib/strtod.c (strtod): Avoid compiler warnings.
94910         Reported by Jim Meyering.
94912 2008-03-30  Bruno Haible  <bruno@clisp.org>
94914         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
94915         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
94916         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
94917         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
94918         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
94919         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
94920         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
94921         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
94923         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
94924         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
94925         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
94926         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
94927         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
94928         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
94929         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
94930         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
94932         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
94933         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
94934         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
94935         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
94936         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
94937         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
94938         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
94939         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
94941         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
94942         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
94944         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
94945         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
94947         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
94948         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
94950         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
94951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
94952         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
94954         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
94955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
94956         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
94958         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
94959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
94960         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
94962         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
94963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
94964         * modules/vasprintf (Depends-on): Add EOVERFLOW.
94966         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
94967         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
94968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
94969         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
94970         (Depends-on): Add EOVERFLOW.
94971         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
94972         (Depends-on): Add EOVERFLOW.
94973         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
94974         (Depends-on): Add EOVERFLOW.
94975         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
94976         (Depends-on): Add EOVERFLOW.
94977         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
94978         (Depends-on): Add EOVERFLOW.
94979         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
94980         (Depends-on): Add EOVERFLOW.
94981         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
94982         (Depends-on): Add EOVERFLOW.
94983         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
94984         (Depends-on): Add EOVERFLOW.
94986         * lib/sprintf.c (EOVERFLOW): Remove fallback.
94987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
94988         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
94990         * lib/snprintf.c (EOVERFLOW): Remove fallback.
94991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
94992         * modules/snprintf (Depends-on): Add EOVERFLOW.
94994         * lib/poll.c (EOVERFLOW): Remove fallback.
94995         * modules/poll (Depends-on): Add EOVERFLOW.
94997         * lib/getugroups.c (EOVERFLOW): Remove fallback.
94998         * modules/getugroups (Depends-on): Add EOVERFLOW.
95000         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95001         * modules/getdelim (Depends-on): Add EOVERFLOW.
95003         * lib/ftell.c (EOVERFLOW): Remove fallback.
95004         * modules/ftell (Depends-on): Add EOVERFLOW.
95006         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95008         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95010         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95012         * modules/EOVERFLOW-tests: New file.
95013         * tests/test-EOVERFLOW.c: New file.
95015         * modules/EOVERFLOW: New file.
95016         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95018 2008-03-30  Bruno Haible  <bruno@clisp.org>
95020         Fix bug introduced on 2007-06-10.
95021         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95022         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95024 2008-03-30  Bruno Haible  <bruno@clisp.org>
95026         Improve freadseek's efficiency after ungetc.
95027         * lib/freadseek.c: Include freadahead.h.
95028         (freadptrinc): New function, extracted from freadseek.
95029         (freadseek): Use it in a loop. Use freadahead to determine the number
95030         of loop iterations.
95031         * modules/freadseek (Depends-on): Add freadahead.
95032         (configure.ac): Require AC_C_INLINE.
95034 2008-03-30  Bruno Haible  <bruno@clisp.org>
95036         * lib/freadseek.c (freadseek): Don't ignore the return value of
95037         freadptr.
95039 2008-03-29  Eric Blake  <ebb9@byu.net>
95041         Add hex float support.
95042         * modules/strtod (Depends-on): Add c-ctype.
95043         (Link): Mention POW_LIB.
95044         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95045         whitespace between 'e' and exponent.
95046         * tests/test-strtod.c (main): Enable hex float tests.
95047         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95048         now provides.
95050         Document various strtod bugs, with some fixes.
95051         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95052         "-0x", "inf", "nan", and hex constants.
95053         * doc/posix-functions/atof.texi (atof): Likewise.
95054         * modules/stdlib (Makefile.am): Support strtod.
95055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95056         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95057         detect additional strtod bugs.
95058         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95059         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95060         bool where appropriate.  Parse 'inf' and 'nan'.
95061         * tests/test-strtod.c: New file.
95062         * modules/strtod (Depends-on): Add stdbool, stdlib.
95063         (configure.ac): Turn on module indicator.
95064         * modules/strtod-tests: New module.
95066 2008-03-29  Eric Blake  <ebb9@byu.net>
95068         Fix ftell on mingw.
95069         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95070         * modules/ftell-tests (Depends-on): Add binary-io.
95071         * modules/ftello-tests (Depends-on): Likewise.
95072         * tests/test-ftell.c (main): Enhance test to cover behavior after
95073         ungetc.  Enforce binary mode.
95074         * tests/test-ftello.c (main): Likewise.
95076         Pass test-freadseek on cygwin.
95077         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95078         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95079         ungetc buffer.
95081         * tests/test-fflush2.c (main): Fix typo.
95083 2008-03-29  Bruno Haible  <bruno@clisp.org>
95085         * tests/test-fflush2.c (main): Temporarily disable the contents of
95086         this test.
95087         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95088         Reported by Eric Blake.
95090 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95092         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95093         (GC_SHA224_DIGEST_SIZE): Add.
95095         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95096         (gc_hash_digest_length): Likewise.
95097         (gc_hash_buffer): Likewise.
95099 2008-03-25  Bruno Haible  <bruno@clisp.org>
95101         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95102         detail which gettext release to use.
95103         Reported by Simon Josefsson.
95105 2008-03-26  Jim Meyering  <meyering@redhat.com>
95107         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95108         * modules/gnumakefile (clean-GNUmakefile): Also, use
95109         test ... && ... || : syntax rather than if-then ... fi.
95111         gnumakefile: Don't double-quote-expand $(VPATH) value.
95112         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95114 2008-03-24  Eric Blake  <ebb9@byu.net>
95116         Alter GNUmakefile to install into top directory.
95117         * modules/maintainer-makefile: Split, and add dependency...
95118         * modules/gnumakefile: to this new module.
95119         * build-aux/GNUmakefile: Move...
95120         * top/GNUmakefile: ...here.
95121         * build-aux/maint.mk: Move...
95122         * top/maint.mk: ...here.
95123         * MODULES.html.sh (Support for maintaining...): Document new
95124         module.
95126 2008-03-23  Bruno Haible  <bruno@clisp.org>
95128         * gnulib-tool: New options --vc-files, --no-vc-files.
95129         (func_usage): Document them.
95130         (vc_files): New variable.
95131         (func_import): Consider vc_files.
95132         (func_create_testdir): Set vc_files to empty.
95133         Suggested by Jim Meyering and Karl Berry.
95135 2008-03-23  Bruno Haible  <bruno@clisp.org>
95137         Fix regex compilation error on HP-UX 11.
95138         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95139         * modules/regex (Files): Add m4/mbstate_t.m4.
95140         Reported by Ton Voon <ton.voon@altinity.com>.
95142 2008-03-23  Bruno Haible  <bruno@clisp.org>
95144         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95146 2008-03-23  Eric Blake  <ebb9@byu.net>
95147             Bruno Haible  <bruno@clisp.org>
95149         Install files from top/ in the destination directory.
95150         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95151         augmentation also for the files from top/.
95152         (func_import, func_create_testdir): Rewrite file names:
95153         top/filename -> filename.
95155 2008-03-23  Bruno Haible  <bruno@clisp.org>
95157         Tweak "gnulib --version" output.
95158         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95160 2008-03-23  Bruno Haible  <bruno@clisp.org>
95162         Tweak "gnulib --version" output.
95163         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95164         rather than contents of ChangeLog, when possible.
95166 2008-03-21  Eric Blake  <ebb9@byu.net>
95168         More --version tweaks.
95169         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95170         date of last ChangeLog entry.
95172 2008-03-21  Jim Meyering  <meyering@redhat.com>
95174         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95176 2008-03-20  Eric Blake  <ebb9@byu.net>
95178         VPATH fix.
95179         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95181 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95183         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95184         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95186 2008-03-20  Eric Blake  <ebb9@byu.net>
95188         Sync GNUmakefile with coreutils.
95189         * build-aux/GNUmakefile (have-Makefile): Rename...
95190         (_have-Makefile): ...to this, for namespace consideration.
95191         (GNUmakefile.cfg): Include, if present.
95192         (_autoreconf): Define a default.
95193         (_is-dist-target): New rule for rebuilds to pick up intra-release
95194         version.
95195         (maint-cfg.mk): Rename...
95196         (cfg.mk): ...to this.
95198 2008-03-18  Jim Meyering  <meyering@redhat.com>
95200         New script and module: mktempd
95201         * MODULES.html.sh (maint+release support): Add mktempd.
95202         * build-aux/mktempd: New file.
95203         * modules/mktempd: New file.
95205 2008-03-15  Jim Meyering  <meyering@redhat.com>
95207         Undo last change.
95208         * lib/sha1.c, lib/md5.c: 63 != ~63.
95209         Reported by Andreas Schwab.
95211         sha1.c, md5.c: Hoist a redundant expression.
95212         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
95213         "ctx->buflen" only once, before calling *_process_block.
95214         * lib/md5.c (md5_process_bytes): Likewise.
95216 2008-03-14  Eric Blake  <ebb9@byu.net>
95218         Bump copyright year in files generated by gnulib-tool.
95219         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
95220         gnulib-tool, rather than hard-coding it.
95222         Fix 'gnulib-tool --version' output to work with git.
95223         * gnulib-tool (func_gnulib_dir): New function, extracted from...
95224         (startup): ...here.
95225         (func_version): Use it to invoke git-version-gen, rather than
95226         relying on CVS keyword expansion.  Modernize wording.
95227         (cvsdatestamp, last_checkin_date, version): Kill unused
95228         variables.
95230 2008-03-12  Jim Meyering  <meyering@redhat.com>
95232         Recognize optional cast of the argument to free.
95233         * build-aux/useless-if-before-free: Update regexps.
95235         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
95237 2008-03-11  Bruno Haible  <bruno@clisp.org>
95239         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
95240         by a single package.
95241         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
95242         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
95243         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
95244         Reported by Sam Steingold <sds@gnu.org>.
95246 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95248         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95249         repositories.
95251 2008-03-11  Bruno Haible  <bruno@clisp.org>
95253         Avoid conflicts between local macro definitions.
95254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95255         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95257 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95258             Bruno Haible  <bruno@clisp.org>
95260         Make va_copy work with some version of xlc on AIX 5.1.
95261         * lib/stdarg.in.h: New file.
95262         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95263         On AIX, use a <stdarg.h> file substitute.
95264         * modules/stdarg (Files): Add lib/stdarg.in.h.
95265         (Depends-on): Add include_next.
95266         (Makefile.am): Build a stdarg.h substitute if requested.
95267         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95269 2008-03-10  Bruno Haible  <bruno@clisp.org>
95271         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95273         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95275 2008-03-10  Bruno Haible  <bruno@clisp.org>
95277         * modules/stdlib (Depends-on): Add include_next, remove
95278         absolute-header.
95280 2008-03-09  Bruno Haible  <bruno@clisp.org>
95282         * lib/freadahead.h (freadahead): Document more precisely.
95283         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95284         the sum of both buffer sizes.
95285         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95286         * NEWS: Document the change.
95288 2008-03-09  Bruno Haible  <bruno@clisp.org>
95290         Extend freadptr to return also the buffer size.
95291         * lib/freadptr.h (freadptr): Add sizep argument.
95292         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95293         (freadptr): Add sizep argument. Determine buffer size like freadahead
95294         does.
95295         * tests/test-freadptr.c: Don't include freadahead.h.
95296         (main): Adapt for new calling convention of freadptr.
95297         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95298         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95299         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95300         tests/test-freadptr2.sh.
95301         (Depends): Remove freadahead.
95302         (TESTS): Add test-freadptr2.sh.
95303         (check_PROGRAMS): Add test-freadptr2.
95305 2008-03-09  Bruno Haible  <bruno@clisp.org>
95307         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95308         Report and solution by Simon Josefsson.
95310 2008-03-06  Bruno Haible  <bruno@clisp.org>
95312         Make fflush after ungetc work on BSD platforms.
95313         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95314         * tests/test-fflush2.c: New file.
95315         * tests/test-fflush2.sh: New file.
95316         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95317         tests/test-fflush2.c.
95318         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95319         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95321 2008-03-06  Eric Blake  <ebb9@byu.net>
95323         Likewise for ftello.
95324         * modules/ftello (Dependencies): Add extensions.
95325         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95327 2008-03-06  Bruno Haible  <bruno@clisp.org>
95329         * modules/fseeko (Dependencies): Add extensions.
95330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95331         Needed on glibc systems.
95333 2008-03-06  Bruno Haible  <bruno@clisp.org>
95335         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95336         email address.
95337         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95339 2008-03-06  Bruno Haible  <bruno@clisp.org>
95341         * users.txt: Add libgnupdf.
95343 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95345         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95346         (Header File Substitutes, Function Substitutes,
95347         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95348         (Build robot for gnulib): Fix typo.
95350 2008-03-06  Bruno Haible  <bruno@clisp.org>
95352         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95353         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95355 2008-03-06  Bruno Haible  <bruno@clisp.org>
95357         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95358         * doc/gnulib.texi: Include it.
95360 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95362         * modules/func (License): Change license to unlimited; there was
95363         no LGPL parts in the module anyway.
95365 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95367         * modules/__func__: Renamed to modules/func.
95368         * modules/__func__-tests: Renamed to modules/func-tests.
95369         * tests/test-__func__.c: Renamed to tests/test-func.c.
95370         * m4/__func__.m4: Renamed to m4/func.m4.
95371         * doc/gnulib.texi (__func__): Section renamed to func.
95372         Suggested by Eric Blake <ebb9@byu.net>.
95374 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95376         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95377         about __func__.  Make example self-contained.  Suggested by Eric
95378         Blake <ebb9@byu.net>.
95380         * tests/test-__func__.c (main): Avoid extraneous () around __func.
95381         Suggested by Eric Blake <ebb9@byu.net>.
95383 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95385         * modules/__func__: New file.
95386         * modules/__func__-tests: New file.
95387         * tests/test-__func__.c: New file.
95388         * m4/__func__.m4: New file.
95389         * doc/gnulib.texi (__func__): Document __func__ module.
95391 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95393         * modules/byteswap (License): Re-license as LGPLv2+.
95395 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95397         * doc/Makefile: Add pdf target.
95399 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95401         * modules/inline (License): Use 'unlimited', since there are only
95402         *.m4 files in this module.
95404 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95405             Bruno Haible  <bruno@clisp.org>
95407         Add support for HP C 7.1 on OpenVMS 8.3.
95408         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
95410 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95412         Update VMS specifics.
95413         * lib/getopt.c [VMS]: Remove include of unixlib.h.
95415 2008-03-02  Jim Meyering  <meyering@redhat.com>
95417         Remove the last dependency on the "free" module.
95418         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
95419         Reported by Bob Proulx.
95421         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
95423         Remove useless "if" tests before free.  Deprecate "free" module.
95424         * doc/posix-functions/free.texi: Mention that this
95425         module is no longer useful.
95426         * modules/free (Notice): Say this module is obsolete.
95427         * modules/readutmp (Depends-on): Remove free.
95428         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
95429         * lib/putenv.c (putenv): Likewise.
95430         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
95431         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
95432         * tests/test-c-strcasestr.c (main): Likewise.
95433         * tests/test-c-strstr.c (main): Likewise.
95434         * tests/test-mbscasestr1.c (main): Likewise.
95435         * tests/test-mbscasestr2.c (main): Likewise.
95436         * tests/test-mbsstr1.c (main): Likewise.
95437         * tests/test-mbsstr2.c (main): Likewise.
95438         * tests/test-memmem.c (main): Likewise.
95439         * tests/test-strcasestr.c (main): Likewise.
95440         * tests/test-striconv.c (main): Likewise.
95441         * tests/test-striconveh.c (main): Likewise.
95442         * tests/test-striconveha.c (main): Likewise.
95443         * tests/test-strstr.c (main): Likewise.
95445         * build-aux/git-version-gen: Adjust a comment and the Usage string.
95447         bootstrap: sync from coreutils again
95448         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
95450 2008-03-01  Jim Meyering  <meyering@redhat.com>
95452         bootstrap: sync from coreutils
95453         * build-aux/bootstrap (update_po_files): Copy a .po file into place
95454         also when the target doesn't exist.
95456 2008-03-01  Eric Blake  <ebb9@byu.net>
95458         Fix bugs in last patch.
95459         * lib/memchr2.c (memchr2): Fix typo.
95460         * tests/test-memchr2.c: Test previous bug, and don't use GNU
95461         extension.
95462         Reported by Bruce Korb.
95464         New module 'memchr2'.
95465         * modules/memchr2: New file.
95466         * modules/memchr2-tests: Likewise.
95467         * lib/memchr2.h: Likewise.
95468         * lib/memchr2.c: Likewise, based on memchr.c.
95469         * tests/test-memchr2.c: New test.
95470         * MODULES.html.sh (String handling): Add memchr2.
95472 2008-02-29  Bruno Haible  <bruno@clisp.org>
95474         * modules/freadseek-tests: New file.
95475         * tests/test-freadseek.sh: New file.
95476         * tests/test-freadseek.c: New file.
95478         New module 'freadseek'.
95479         * modules/freadseek: New file.
95480         * lib/freadseek.h: New file.
95481         * lib/freadseek.c: New file.
95482         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
95484 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
95486         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
95487         wydawca.
95489         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
95490         program_invocation_name and program_invocation_short_name are
95491         present.
95493 2008-02-28  Bruno Haible  <bruno@clisp.org>
95495         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
95496         * tests/test-freadptr.sh: Also test non-seekable stdin.
95498 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
95500         * build-aux/bootstrap (source_base, m4_base)
95501         (doc_base, tests_base): New variables.
95502         (gnulib_tool_options): Do not hardcode base directories, use
95503         the above variables instead.
95505 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
95507         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
95509 2008-02-28  Bruno Haible  <bruno@clisp.org>
95511         * modules/freadptr-tests: New file.
95512         * tests/test-freadptr.sh: New file.
95513         * tests/test-freadptr.c: New file.
95515         New module 'freadptr'.
95516         * modules/freadptr: New file.
95517         * lib/freadptr.h: New file.
95518         * lib/freadptr.c: New file.
95519         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
95521 2008-02-26  Karl Berry  <karl@freefriends.org>
95523         Sync from Libtool:
95524         * libltdl/argz.c (argz_add, argz_count): New functions.
95525         * libltdl/argz.in.h: Declare them.
95526         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
95528 2008-02-22  Bruno Haible  <bruno@clisp.org>
95530         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
95531         is a pointer type.  Needed for HP-UX 10.
95532         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
95533         * doc/posix-functions/gmtime_r.texi: Likewise.
95534         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95536 2008-02-24  Bruno Haible  <bruno@clisp.org>
95538         * modules/environ-tests: New file.
95539         * tests/test-environ.c: New file.
95541         New module 'environ'.
95542         * modules/environ: New file.
95543         * lib/unistd.in.h (environ): New declaration.
95544         * m4/environ.m4: New file.
95545         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
95546         after use.
95547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
95548         HAVE_DECL_ENVIRON.
95549         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
95550         HAVE_DECL_ENVIRON.
95551         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
95552         wrong claim that 'environ' is missing on some systems.
95553         * modules/execute (Depends-on): Add environ.
95554         * lib/execute.c (environ): Remove fallback declaration.
95555         * modules/pipe (Depends-on): Add environ.
95556         * lib/pipe.c (environ): Remove fallback declaration.
95557         * modules/setenv (Depends-on): Add environ.
95558         * lib/setenv.c (environ): Remove fallback declaration.
95559         * modules/unsetenv (Depends-on): Add environ.
95560         * lib/unsetenv.c (environ): Remove fallback declaration.
95561         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
95562         m4/environ.m4.
95563         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
95564         (gl_PREREQ_UNSETENV): Likewise.
95566 2008-02-24  Bruno Haible  <bruno@clisp.org>
95568         * doc/posix-functions/environ.texi: Document the MacOS X problem.
95570 2008-02-20  Bob Proulx  <bob@proulx.com>
95572         Enable use of older two part flavor 'git describe'.
95573         * build-aux/git-version-gen: If using the older two part flavor of
95574         git version then recreate the third part now present in the
95575         newer three part flavor of git describe.
95577 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
95579         * lib/fts.c (fts_build): Typo correction to comment.
95581 2008-02-17  Bruno Haible  <bruno@clisp.org>
95583         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
95584         generating no-op conflicts.
95586 2008-02-17  Bruno Haible  <bruno@clisp.org>
95588         Speed up by 10%.
95589         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
95590         result_entries, rather than an index-based loop.
95592 2008-02-17  Bruno Haible  <bruno@clisp.org>
95594         Speed up by 25%.
95595         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
95596         'hashcode_cached'.
95597         (entry_create): New function.
95598         (entry_hashcode): Use the cached hashcode if possible.
95599         (read_changelog_file, try_split_merged_entry): Use entry_create.
95601 2008-02-17  Bruno Haible  <bruno@clisp.org>
95603         Speed up from O(n^2) to O(n) for long ChangeLog files.
95604         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
95605         (read_changelog_file): Change implementation of entries_reversed list
95606         to rbtreehash.
95607         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
95609 2008-02-17  Bruno Haible  <bruno@clisp.org>
95611         New option --split-merged-entry.
95612         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
95613         (find_paragraph_end, try_split_merged_entry): New functions.
95614         (long_options): Add option --split-merged-entry.
95615         (usage): Document option --split-merged-entry.
95616         (main): Implement option --split-merged-entry.
95617         Reported by Eric Blake.
95619 2008-02-17  Bruno Haible  <bruno@clisp.org>
95621         * lib/git-merge-changelog.c: Include c-strstr.h.
95622         (main): Support the "git pull --rebase" situation.
95623         * modules/git-merge-changelog (Depends-on): Add c-strstr.
95624         Reported by Eric Blake.
95626 2008-02-16  Eric Blake  <ebb9@byu.net>
95628         Avoid doubling \ in common case of "c-maybe" quoting style.
95629         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
95630         eliding outer quotes.
95631         * lib/quotearg.h: Document this.
95632         * tests/test-quotearg.c (result_strings, inputs, results_g)
95633         (flag_results, locale_results): Test it by adding a new string to
95634         each test group.
95635         (compare_strings): Test new string.
95637 2008-02-13  Eric Blake  <ebb9@byu.net>
95639         Avoid trigraph quoting in default output.
95640         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
95641         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
95642         unless explicitly requested.
95643         * tests/test-quotearg.c (flag_results, main): Add additional tests.
95645 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
95647         Don't rely on signed integer overflowing to negative value.
95648         * lib/getugroups.c (getugroups): Include <limits.h>.
95649         Instead, compare against INT_MAX, and increment only if the test passes.
95651 2008-02-13  Jim Meyering  <meyering@redhat.com>
95652         and Eric Blake  <ebb9@byu.net>
95654         Avoid shadowing warning and compile errors on Linux.
95655         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
95656         forwarding macros on Linux.
95657         (dcgettext): Define a stub, for Linux.
95658         (results_g, main): Avoid warnings.
95660 2008-02-12  Eric Blake  <ebb9@byu.net>
95662         Silence warning in last patch.
95663         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
95665         Quotearg part 4: add tests, fix c-maybe colon quoting.
95666         * lib/quotearg.h: Improve documentation.
95667         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
95668         escapes when adding outer quotes.  When quoting trigraphs, use
95669         valid C notation.  When quoting NUL, omit extra characters if next
95670         character is not digit.  Alter prototype.
95671         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
95672         callers.
95673         * modules/quotearg-tests: New module.
95674         * tests/test-quotearg.c: New test.
95676 2008-02-07  Eric Blake  <ebb9@byu.net>
95678         Quotearg part 3: add flag to control outer quote elision.
95679         * lib/quotearg.h (c_maybe_quoting_style): New style.
95680         (enum quoting_flags): Better documentation of flags.
95681         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
95682         c-maybe style.
95683         (quotearg_buffer_restyled): Handle new flag to elide outer
95684         quotes.
95686         Quotearg part 2: add flag that can control NUL elision.
95687         * lib/quotearg.h (set_quoting_flags): New prototype.
95688         * lib/quotearg.c (struct quoting_options): Add flag field.
95689         (set_quoting_flags): New function.
95690         (quotearg_buffer_restyled): Add flags parameter.
95691         (quotearg_alloc_mem): Set the flag if length cannot be returned.
95692         (quotearg_n_options): Set the flag, since length cannot be
95693         returned.
95694         (quoting_options_from_style): Default flags correctly.
95696         Quotearg part 1: more wrappers, restore quotearg_char state.
95697         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
95698         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
95699         (quotearg_colon_mem): New wrappers.
95700         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
95701         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
95702         functions.
95703         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
95704         (quotearg_colon_mem): New functions.
95706 2008-02-11  Bruno Haible  <bruno@clisp.org>
95708         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
95709         library in the current directory: it does not work with parallel make.
95710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95712 2008-02-11  Bruno Haible  <bruno@clisp.org>
95714         * .gitattributes: New file.
95716 2008-02-11  Jim Meyering  <meyering@redhat.com>
95718         useless-if-before-free: Fix reversed exit values.
95719         * build-aux/useless-if-before-free: Use correct values
95720         for EXIT_MATCH and EXIT_NO_MATCH.
95722         * build-aux/useless-if-before-free: Close stdout carefully.
95724 2008-02-10  Bruno Haible  <bruno@clisp.org>
95726         New module 'git-merge-changelog'.
95727         * modules/git-merge-changelog: New file.
95728         * lib/git-merge-changelog.c: New file.
95730 2008-02-10  Jim Meyering  <meyering@redhat.com>
95732         useless-if-before-free: New option: --list (-l).
95734         useless-if-before-free: Don't exit immediately upon open failure.
95735         * build-aux/useless-if-before-free: Exit 2 for errors.
95736         Upon failure to open a file, don't exit immediately.
95737         Rather, just warn and continue with any remaining files.
95739 2008-02-10  Bruno Haible  <bruno@clisp.org>
95741         New abstract list operation 'node_set_value'.
95742         * lib/gl_list.h (gl_list_node_set_value): New function.
95743         (struct gl_list_implementation): New field node_set_value.
95744         * lib/gl_list.c (gl_list_node_set_value): New function.
95745         * lib/gl_array_list.c (gl_array_node_set_value): New function.
95746         (gl_array_list_implementation): Update.
95747         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
95748         (gl_carray_list_implementation): Update.
95749         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
95750         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
95751         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
95752         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
95753         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
95754         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
95755         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
95756         Update.
95757         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
95758         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
95759         (gl_sublist_list_implementation): Update.
95761 2008-02-10  Bruno Haible  <bruno@clisp.org>
95763         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
95764         Needed when ELEMENT is #defined to 'some_type *'.
95766 2008-02-10  Jim Meyering  <meyering@redhat.com>
95768         New script and module: useless-if-before-free
95769         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
95770         * build-aux/useless-if-before-free: New file.
95771         * modules/useless-if-before-free: New file.
95773         * build-aux/gitlog-to-changelog: Use committer date, not author date.
95775         xstrtol_error: Fix typo.
95776         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
95777         s/exit_failure/exit_status/.
95779 2008-02-09  Jim Meyering  <meyering@redhat.com>
95781         New script and module: gitlog-to-changelog
95782         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
95783         * modules/gitlog-to-changelog: New file.
95784         * build-aux/gitlog-to-changelog: New file.
95786 2008-02-08  Jim Meyering  <meyering@redhat.com>
95788         Avoid two "parameter unused" warnings.
95789         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
95790         Mark "st" as used.
95792         Use "git COMMAND", not "git-COMMAND".
95793         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
95794         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
95795         * build-aux/git-version-gen: Use "git status", not "git-status".
95797 2008-02-07  Bruno Haible  <bruno@clisp.org>
95799         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
95800         Avoids a crash on Windows Vista.
95801         Reported by Adam Strzelecki <ono@java.pl> via
95802         Simon Josefsson <simon@josefsson.org>.
95804 2008-02-06  Bruno Haible  <bruno@clisp.org>
95806         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
95807         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
95808         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
95809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
95810         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95812         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
95813         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
95814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95816         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95821         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
95822         left-adjust flag.
95823         * tests/test-snprintf-posix.h (test_function): Likewise.
95824         * tests/test-sprintf-posix.h (test_function): Likewise.
95825         * tests/test-vasprintf-posix.c (test_function): Likewise.
95826         * doc/posix-functions/fprintf.texi: Update.
95827         * doc/posix-functions/printf.texi: Update.
95828         * doc/posix-functions/snprintf.texi: Update.
95829         * doc/posix-functions/sprintf.texi: Update.
95830         * doc/posix-functions/vfprintf.texi: Update.
95831         * doc/posix-functions/vprintf.texi: Update.
95832         * doc/posix-functions/vsnprintf.texi: Update.
95833         * doc/posix-functions/vsprintf.texi: Update.
95834         Reported by Peter Fales <psfales@alcatel-lucent.com>.
95836 2008-02-06  Bruno Haible  <bruno@clisp.org>
95838         Fix bug introduced on 2008-01-26.
95839         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
95841 2008-02-06  Bruno Haible  <bruno@clisp.org>
95843         Fix bug introduced on 2007-06-10.
95844         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
95845         !NEED_PRINTF_FLAG_ZERO.
95847 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
95849         getloadavg: use libperfstat on AIX5
95850         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
95852 2008-02-03  Bruno Haible  <bruno@clisp.org>
95854         * lib/diffseq.h: Add comments about required #includes.
95855         Reported by Michael Biggs <gnulib@doubleplum.net>.
95857 2008-02-01  Bruno Haible  <bruno@clisp.org>
95859         * users.txt: Add gnuit.
95861 2008-01-31  Bruno Haible  <bruno@clisp.org>
95863         * lib/md4.c (set_uint32): Mark as inline.
95864         * lib/md5.c (set_uint32): Likewise.
95865         * lib/sha1.c (set_uint32): Likewise.
95866         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
95867         * m4/md5.m4 (gl_MD5): Likewise.
95868         * m4/sha1.m4 (gl_SHA1): Likewise.
95870 2008-01-31  Jim Meyering  <meyering@redhat.com>
95872         Use "sizeof VAR", rather than a literal "4".
95873         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
95874         * lib/md4.c (md4_read_ctx): Likewise.
95875         * lib/sha1.c (sha1_read_ctx): Likewise.
95877 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95879         * tests/test-sha1.c: New file, based on test-md5.c.
95881         * modules/crypto/sha1-tests: New file.
95883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95885         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
95887 2008-01-31  Jim Meyering  <meyering@redhat.com>
95889         Prefer "sizeof v" over the equivalent "4".
95890         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
95891         * lib/md5.c (set_uint32): Likewise.
95892         * lib/sha1.c (set_uint32): Likewise.
95894 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95896         * lib/sha1.c (set_uint32): Mark function as static.
95898 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95900         md2: clarify comments to say that alignment is not required.
95901         * lib/md2.h: Remove warning about alignment in comment.
95902         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
95903         never been required.
95905 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95907         md4: adapt alignment constraint fix from sha1.
95908         * lib/md4.c (set_uint32): New function, from sha1.c
95909         (md4_read_ctx): Use it.
95910         (md4_finish_ctx): Doc fix.
95911         * lib/md4.h: Doc fix.
95913 2008-01-31  Simon Josefsson  <simon@josefsson.org>
95915         md5: adapt alignment constraint fix from sha1.
95916         * lib/md5.c (set_uint32): New function, from sha1.c
95917         (md5_read_ctx): Use it.
95918         (md5_finish_ctx): Doc fix.
95919         * lib/md5.h: Doc fix.
95921 2008-01-30  Peter Palfrader  <weasel@debian.org>
95923         sha1: remove the result buffer alignment constraint
95924         * lib/sha1.c (set_uint32): New function.
95925         (sha1_read_ctx): Rewrite to remove the result buffer alignment
95926         constraint.
95927         (sha1_finish_ctx): Remove comment warning about alignment constraint.
95928         * lib/sha1.h: Likewise.
95930 2008-01-30  Andreas Schwab  <schwab@suse.de>
95931             Bruno Haible  <bruno@clisp.org>
95933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
95934         correct definition of LDBL_MIN_EXP.
95936 2008-01-30  Karl Berry  <karl@gnu.org>
95938         * config/srclist-update: try to preserve x bit on updates.
95939         * config/srclistvars.sh: update for karl.
95941 2008-01-29  Jim Meyering  <meyering@redhat.com>
95943         vasnprintf.c: Avoid warning about unused label
95944         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
95945         "overflow" label definition and associated code with the
95946         same cpp condition that guards the sole use of that label.
95948 2008-01-26  Bruno Haible  <bruno@clisp.org>
95950         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
95951         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
95952         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
95953         * lib/isnanl-nolibm.h (isnanl): Likewise.
95954         Reported by Paul Eggert <eggert@cs.ucla.edu>.
95956 2008-01-26  Bruno Haible  <bruno@clisp.org>
95958         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
95959         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
95961 2008-01-26  Bruno Haible  <bruno@clisp.org>
95963         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
95964         GCC >= 4.0 built-in.
95965         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
95967 2008-01-26  Bruno Haible  <bruno@clisp.org>
95969         Rename isnan, applicable to 'double' only, to isnand.
95970         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
95971         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
95972         (configure.ac): Update.
95973         (Include): Replace "isnan.h" with "isnand.h".
95974         * m4/isnand.m4: Renamed from m4/isnan.m4.
95975         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
95976         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
95977         instead of isnan.c.
95978         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
95979         instead of HAVE_ISNAN_IN_LIBC.
95980         (isnand): Renamed from isnan.
95981         * lib/isnand.c: New file.
95982         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
95983         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
95984         (Makefile.am): Update.
95985         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
95986         Include isnand.h instead of isnan.h.
95987         (main): Test isnand instead of isnan.
95988         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
95989         isnan-nolibm.
95990         * modules/frexp (Depends-on): Likewise.
95991         * modules/frexp-tests (Depends-on): Likewise.
95992         * modules/frexp-nolibm (Depends-on): Likewise.
95993         * modules/frexp-nolibm-tests (Depends-on): Likewise.
95994         * modules/isfinite (Depends-on): Likewise.
95995         * modules/round-tests (Depends-on): Likewise.
95996         * modules/signbit (Depends-on): Likewise.
95997         * modules/signbit-tests (Depends-on): Likewise.
95998         * modules/snprintf-posix (Depends-on): Likewise.
95999         * modules/sprintf-posix (Depends-on): Likewise.
96000         * modules/trunc-tests (Depends-on): Likewise.
96001         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96002         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96003         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96004         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96005         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96006         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96007         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96008         * modules/vasnprintf-posix (Depends-on): Likewise.
96009         * modules/vasprintf-posix (Depends-on): Likewise.
96010         * modules/vfprintf-posix (Depends-on): Likewise.
96011         * modules/vsnprintf-posix (Depends-on): Likewise.
96012         * modules/vsprintf-posix (Depends-on): Likewise.
96013         * lib/frexp.c: Include isnand.h instead of isnan.h.
96014         (ISNAN): Set to isnand instead of isnan.
96015         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96016         (gl_isfinited): Use isnand instead of isnan.
96017         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96018         (gl_signbitd): Use isnand instead of isnan.
96019         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96020         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96021         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96022         (main): Use isnand instead of isnan.
96023         * tests/test-round1.c: Include isnand.h.
96024         (main): Use isnand instead of isnan.
96025         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96026         (ISNAN): Set to isnand instead of isnan.
96027         * tests/test-trunc1.c: Include isnand.h.
96028         (main): Use isnand instead of isnan.
96029         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96030         (equal): Use isnand instead of isnan.
96031         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96032         isnand-nolibm.
96033         * NEWS: Mention the change.
96035 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96036             Bruno Haible  <bruno@clisp.org>
96038         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96039         the GCC builtins for signbits are present and set
96040         REPLACE_SIGNBIT_USING_GCC if so.
96041         * lib/math.in.h (signbit): Define using GCC builtins if
96042         REPLACE_SIGNBIT_USING_GCC is set.
96043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96044         REPLACE_SIGNBIT_USING_GCC.
96045         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96047 2008-01-25  Jim Meyering  <meyering@redhat.com>
96049         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96050         * lib/poll.c: Include <config.h>, not "config.h".
96051         * tests/test-getaddrinfo.c: Likewise.
96053 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96055         * modules/sockets-tests: New file.
96057 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96059         * modules/sockets: New module, can be used to call WSA_Startup and
96060         WSA_Cleanup when needed.
96062         * lib/sockets.h, lib/sockets.c: New files.
96064         * m4/sockets.m4: New file.
96066         * tests/test-sockets.c: New file.
96068 2008-01-19  Bruno Haible  <bruno@clisp.org>
96070         * doc/posix-headers: Renamed from doc/headers.
96071         * doc/posix-functions: Renamed from doc/functions.
96072         * doc/gnulib.texi: Update.
96074 2008-01-19  Bruno Haible  <bruno@clisp.org>
96076         * doc/glibc-functions/strcasestr.texi: Include contents of
96077         doc/functions/strcasestr.texi, fixing the list of platforms.
96078         * doc/functions/strcasestr.texi: Remove file.
96080 2008-01-19  Bruno Haible  <bruno@clisp.org>
96082         * doc/glibc-functions/memmem.texi: Include contents of
96083         doc/functions/memmem.texi.
96084         * doc/functions/memmem.texi: Remove file.
96086 2008-01-18  Bruno Haible  <bruno@clisp.org>
96088         * doc/glibc-functions/*.texi: New files.
96089         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96090         to use the new files.
96092 2008-01-17  Bruno Haible  <bruno@clisp.org>
96094         * tests/test-gethostname.c (main): Fix printf statement.
96096 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96098         * modules/gethostname-tests: New file.
96100         * tests/test-gethostname.c: New file.
96102 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96104         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96105         used by the UNAME case.  Reported by Bruno Haible
96106         <bruno@clisp.org>.
96108 2008-01-17  Eric Blake  <ebb9@byu.net>
96110         Convert c-strcasestr to be more efficient.
96111         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96112         (Depends-on): Add c-strcase, remove malloca, strnlen.
96113         * tests/test-c-strcasestr.c (main): Enhance test.
96114         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96116 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96118         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96119         Use it in creating po/Makevars.
96121 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96123         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96124         Applications that requires it should initialize libgcrypt
96125         manually.
96127 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96129         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96131 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96133         Fix problem with getdate on mingw32 reported by Simon Josefsson
96134         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96135         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96136         tzname", when deciding whether to declare tzname.
96137         * lib/strftime.c (tzname): Likewise.
96139 2008-01-15  Bruno Haible  <bruno@clisp.org>
96141         Work around a MacOS X 10.5 bug in frexpl().
96142         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96143         * doc/functions/frexpl.texi: Document the bug.
96144         Reported by Elias Pipping <pipping@gentoo.org>.
96146 2008-01-14  Eric Blake  <ebb9@byu.net>
96148         Touch up previous patch.
96149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96150         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96152         Convert strcasestr module to use Two-Way algorithm.
96153         * modules/strcasestr-simple: New module, based on the old
96154         strcasestr, but with Two-Way rather than KMP.
96155         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96156         * lib/string.in.h (rpl_strcasestr): Declare.
96157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96158         performance.
96159         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96160         * modules/string (Makefile.am): Support strcasestr.
96161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96162         * modules/strcasestr-tests (Depends-on): Check for alarm.
96163         * tests/test-strcasestr.c: Augment test.
96164         * lib/str-two-way.h: Clean up stray macro.
96165         * NEWS: Document new module.
96166         * MODULES.html.sh (string handling): Likewise.
96167         * doc/functions/strcasestr.texi: New file.
96168         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96169         here, since it is not a POSIX function.
96171 2008-01-14  Colin Watson  <cjwatson@debian.org>
96172             Bruno Haible  <bruno@clisp.org>
96174         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96175         works fine; if not, set REPLACE_STRSIGNAL.
96176         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96178         REPLACE_STRSIGNAL.
96179         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96180         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96181         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96183 2008-01-14  Bruno Haible  <bruno@clisp.org>
96185         * modules/strsignal (Include): Change to <string.h>.
96187 2008-01-14  Colin Watson  <cjwatson@debian.org>
96189         * modules/argp (Notice): Add a notice recommending to change
96190         XGETTEXT_OPTIONS.
96191         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96193 2008-01-13  Colin Watson  <cjwatson@debian.org>
96195         * modules/strsignal-tests: New file.
96196         * tests/test-strsignal.c: New file.
96198         * lib/strsignal.c: New file, from glibc with modifications.
96199         * lib/siglist.h: New file, from glibc with modifications.
96200         * lib/string.in.h (strsignal): New declaration.
96201         * m4/strsignal.m4: New file.
96202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96203         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96204         * modules/strsignal: New file.
96205         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96206         HAVE_DECL_STRSIGNAL.
96208 2008-01-13  Bruno Haible  <bruno@clisp.org>
96210         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
96211         locale encoding is not ASCII. Needed for OpenBSD 4.0.
96212         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96213         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96215 2008-01-13  Bruno Haible  <bruno@clisp.org>
96217         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
96218         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
96219         * lib/argp.h (__attribute__): Likewise.
96220         * lib/c-stack.c (__attribute__): Likewise.
96221         * lib/error.h (__attribute__): Likewise.
96222         * lib/fts.c (__attribute__): Likewise.
96223         * lib/openat.h (__attribute__): Likewise.
96224         * lib/stdio.in.h (__attribute__): Likewise.
96225         * lib/string.in.h (__attribute__): Likewise.
96226         * lib/utimens.c (__attribute__): Likewise.
96227         * lib/vasnprintf.h (__attribute__): Likewise.
96228         * lib/xalloc.h (__attribute__): Likewise.
96229         * lib/xprintf.h (__attribute__): Likewise.
96230         * lib/xstrtol.h (__attribute__): Likewise.
96231         * lib/xvasprintf.h (__attribute__): Likewise.
96233 2008-01-12  Bruno Haible  <bruno@clisp.org>
96235         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
96236         * doc/glibc-headers/a.out.texi: New file.
96237         * doc/glibc-headers/aliases.texi: New file.
96238         * doc/glibc-headers/alloca.texi: New file.
96239         * doc/glibc-headers/ar.texi: New file.
96240         * doc/glibc-headers/argp.texi: New file.
96241         * doc/glibc-headers/argz.texi: New file.
96242         * doc/glibc-headers/byteswap.texi: New file.
96243         * doc/glibc-headers/crypt.texi: New file.
96244         * doc/glibc-headers/endian.texi: New file.
96245         * doc/glibc-headers/envz.texi: New file.
96246         * doc/glibc-headers/err.texi: New file.
96247         * doc/glibc-headers/error.texi: New file.
96248         * doc/glibc-headers/execinfo.texi: New file.
96249         * doc/glibc-headers/fpu_control.texi: New file.
96250         * doc/glibc-headers/fstab.texi: New file.
96251         * doc/glibc-headers/fts.texi: New file.
96252         * doc/glibc-headers/getopt.texi: New file.
96253         * doc/glibc-headers/ieee754.texi: New file.
96254         * doc/glibc-headers/ifaddrs.texi: New file.
96255         * doc/glibc-headers/libintl.texi: New file.
96256         * doc/glibc-headers/mcheck.texi: New file.
96257         * doc/glibc-headers/mntent.texi: New file.
96258         * doc/glibc-headers/obstack.texi: New file.
96259         * doc/glibc-headers/paths.texi: New file.
96260         * doc/glibc-headers/printf.texi: New file.
96261         * doc/glibc-headers/pty.texi: New file.
96262         * doc/glibc-headers/resolv.texi: New file.
96263         * doc/glibc-headers/shadow.texi: New file.
96264         * doc/glibc-headers/sysexits.texi: New file.
96265         * doc/glibc-headers/ttyent.texi: New file.
96267 2008-01-12  Jim Meyering  <meyering@redhat.com>
96269         announce-gen: emit Gnulib's git-based version string.
96270         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96271         New option --gnulib-version=V, where V is expected to be
96272         the output of running git describe in the gnulib directory.
96273         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96274         not useful, and plan to stop publishing an xdelta file with each
96275         coreutils release.
96277         * build-aux/announce-gen: Also check for lzma-compressed files.
96279 2008-01-11  Bruno Haible  <bruno@clisp.org>
96281         * tests/test-memmem.c (main): Increase maximum allowed time.
96282         * tests/test-strstr.c (main): Likewise.
96284 2008-01-11  Bruno Haible  <bruno@clisp.org>
96286         * doc/functions/memmem.texi: Add more precisions about platforms.
96287         * doc/functions/strstr.texi: Likewise.
96289 2008-01-10  Eric Blake  <ebb9@byu.net>
96291         * m4/strstr.m4: Delete cruft from copy-n-paste.
96292         Reported by Bruno Haible.
96294 2008-01-10  Bruno Haible  <bruno@clisp.org>
96296         Make c-strstr rely on strstr.
96297         * lib/c-strstr.c: Don't include str-kmp.h.
96298         (c_strstr): Define in terms of strstr.
96299         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96300         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96302 2008-01-10  Bruno Haible  <bruno@clisp.org>
96304         * doc/gnulib.texi (String Functions in C Locale): New section.
96305         * doc/c-ctype.texi: New file.
96306         * doc/c-strcase.texi: New file.
96307         * doc/c-strcaseeq.texi: New file.
96308         * doc/c-strcasestr.texi: New file.
96309         * doc/c-strstr.texi: New file.
96310         * doc/c-strtod.texi: New file.
96311         * doc/c-strtold.texi: New file.
96313 2008-01-10  Eric Blake  <ebb9@byu.net>
96315         * lib/relocatable.h: Fix a comment.
96317 2008-01-10  Eric Blake  <ebb9@byu.net>
96319         Share two-way algorithm.
96320         * lib/str-two-way.h: New file, merged from...
96321         * lib/memmem.c: ...here...
96322         * lib/strstr.c: ...and here.
96323         * modules/memmem (Files): Use it.
96324         * modules/strstr (Files): Likewise.
96326         Avoid quadratic strstr implementations.
96327         * lib/strstr.c: New file.
96328         * m4/strstr.m4: Likewise.
96329         * modules/strstr: Likewise.
96330         * modules/strstr-tests: Likewise.
96331         * tests/test-strstr.c: Likewise.
96332         * lib/string.in.h (rpl_strstr): Declare.
96333         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96335         * modules/string (Makefile.am): Likewise.
96336         * MODULES.html.sh (string handling): Mention new module.
96337         * doc/functions/strstr.texi (strstr): Document the bug.
96339 2008-01-10  Bruno Haible  <bruno@clisp.org>
96341         * lib/relocatable.h (relocate): State whether result is freshly
96342         allocated or not.
96343         * lib/relocatable.c (relocate): Return a freshly allocated string
96344         instead of a pointer to a privately held string.
96345         Reported by Sylvain Beucler <beuc@gnu.org>.
96347 2008-01-10  Colin Watson  <cjwatson@debian.org>
96349         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96350         s/S_ISNLK/S_ISLNK/.
96352 2008-01-09  Bruno Haible  <bruno@clisp.org>
96354         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96355         and other files.
96356         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96357         if it's only a guess.
96358         * modules/memmem: Simplify by depending on memmem-simple.
96360 2008-01-09  Bruno Haible  <bruno@clisp.org>
96362         Work around OpenBSD 4.0 tdelete() bug.
96363         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96364         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96365         macros and don't redefine the enum values.
96366         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96367         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96368         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96370 2008-01-09  Bruno Haible  <bruno@clisp.org>
96372         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96373         (main): Don't perform the tests if setlocale did not install a UTF-8
96374         locale. Needed on OpenBSD 4.0.
96375         * modules/wcwidth-tests (Depends-on): Add localcharset.
96377 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96379         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96380         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
96381         * NEWS: announce this.
96382         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
96384 2008-01-09  Simon Josefsson  <simon@josefsson.org>
96385         and Eric Blake  <ebb9@byu.net>
96387         Add memmem-simple module.
96388         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
96389         (gl_FUNC_MEMMEM): Separate performance from presence checks.
96390         * modules/memmem-simple: New file.
96391         * modules/memmem (Description): Tweak.
96392         * MODULES.html.sh (string handling): Mention new module.
96393         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
96394         addressed by memmem-simple.
96395         * NEWS: Document the difference.
96397 2008-01-09  Eric Blake  <ebb9@byu.net>
96399         Give gcc some memmem optimization hints.
96400         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
96401         (strcasestr): Declare as pure.
96402         * modules/memmem (Maintainer): Claim my implementation.
96404 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96406         Support AIX 6.1 and higher.
96407         * build-aux/config.libpath: Likewise.
96408         * build-aux/config.rpath: Likewise.
96410 2008-01-08  Jim Meyering  <meyering@redhat.com>
96411             Bruno Haible  <bruno@clisp.org>
96413         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
96414         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
96415         Reported by Peter Fales in
96416         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
96418 2008-01-08  Bruno Haible  <bruno@clisp.org>
96420         * modules/unictype/category-of (Depends-on): Add
96421         unictype/category-none.
96422         * modules/unictype/category-and-tests (Depends-on): Add
96423         unictype/category-{L,N,Lu,Nd}.
96424         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
96425         * modules/unictype/category-or-tests (Depends-on): Add
96426         unictype/category-{L,N}.
96427         * modules/unictype/category-name-tests (Depends-on): Add
96428         unictype/category-{Z,Nl}.
96429         Reported by Simon Josefsson.
96431 2008-01-08  Bruno Haible  <bruno@clisp.org>
96433         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
96434         convention better.
96435         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
96436         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
96437         Reported by Peter Miller <millerp@canb.auug.org.au>.
96439 2008-01-08  Eric Blake  <ebb9@byu.net>
96441         Rewrite memmem to guarantee linear complexity without malloc.
96442         * lib/memmem.c (memmem): Use Two-Way rather than
96443         Knuth-Morris-Pratt, to allow O(1) space usage.
96444         (critical_factorization, two_way_short_needle)
96445         (two_way_long_needle): New functions.
96446         (knuth_morris_pratt): Delete.
96447         * modules/memmem (Depends-on): No longer need malloca or stdbool.
96448         Add stdint.
96449         * tests/test-memmem.c (main): Add tests for periodic needle and
96450         sublinear performance.
96451         * doc/functions/memmem.texi (memmem): Document other deficiencies
96452         in cygwin and older glibc.
96454 2008-01-08  Bruno Haible  <bruno@clisp.org>
96456         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
96457         augmentation.
96459 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
96461         Add a configure time option: --disable-acl.
96462         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
96463         AC_ARG_ENABLE(acl).
96465 2008-01-06  Simon Josefsson  <simon@josefsson.org>
96467         * tests/test-localename.c: Don't include obsolete "setenv.h".
96469         * modules/localename-tests (Depends-on): Need unsetenv.
96471 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96473         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
96475 2008-01-06  Colin Watson  <cjwatson@debian.org>
96477         * users.txt: Add man-db.
96479 2008-01-07  Bruno Haible  <bruno@clisp.org>
96481         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
96482         previous section name.
96484 2008-01-07  Bruno Haible  <bruno@clisp.org>
96486         * lib/progname.c (set_program_name): Don't strip off a leading
96487         "lt-" prefix outside a .libs directory.
96488         Suggested by Paul Eggert.
96490 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
96491             Bruno Haible  <bruno@clisp.org>
96493         Improve memory cleanup in 'relocatable' module.
96494         * lib/relocatable.h (compute_curr_prefix): Change return type to
96495         'char *'.
96496         * lib/relocatable.c (compute_curr_prefix): Change return type to
96497         'char *'. Free curr_installdir after use.
96498         (relocate): Free curr_prefix_better after use.
96499         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
96501 2008-01-01  Bruno Haible  <bruno@clisp.org>
96503         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
96504         failure on older glibc systems.
96505         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96507 2008-01-05  Eric Blake  <ebb9@byu.net>
96509         Avoid quadratic system memmem.
96510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
96511         Reported by Ralf Wildenhues.
96513         Fix memmem test for mingw.
96514         * modules/memmem-tests (configure.ac): Check for alarm.
96515         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
96516         it.
96517         * doc/functions/memmem.texi: New file.
96518         * doc/gnulib.texi (Function Substitutes): Add memmem.
96519         Reported by Bruno Haible.
96521 2008-01-04  Bruno Haible  <bruno@clisp.org>
96523         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
96524         Require gl_HEADER_STRINGS_H_DEFAULTS, not
96525         gl_HEADER_STRING_H_DEFAULTS.
96527 2008-01-04  Eric Blake  <ebb9@byu.net>
96529         Shorten duration of memmem test.
96530         * tests/test-memmem.c (main): Use alarm to declare failure if test
96531         is taking too long.
96532         Reported by Ralf Wildenhues.
96534 2007-12-21  Simon Josefsson  <simon@josefsson.org>
96536         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
96537         string, needed by strerror.
96539 2008-01-03  Colin Watson  <cjwatson@debian.org>
96540             Bruno Haible  <bruno@clisp.org>
96542         * doc/gnulib-tool.texi (Localization): New section.
96544 2008-01-02  Bruno Haible  <bruno@clisp.org>
96546         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
96547         variables to 'unsigned char *' type.
96548         Reported by Paul Eggert.
96550 2008-01-02  Jim Meyering  <jim@meyering.net>
96552         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
96554 2007-12-31  Jim Meyering  <jim@meyering.net>
96556         Avoid use of private FTS type name.
96557         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
96559 2007-12-30  Karl Berry  <karl@gnu.org>
96561         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
96562         work around defect in Texinfo and/or the standalone Info browser.
96564 2007-12-30  Bruno Haible  <bruno@clisp.org>
96566         Unify 5 copies of the KMP code.
96567         * lib/str-kmp.h: New file.
96568         * lib/c-strcasestr.c: Include str-kmp.h.
96569         (knuth_morris_pratt): Remove function.
96570         (c_strcasestr): Update.
96571         * lib/c-strstr.c: Include str-kmp.h.
96572         (knuth_morris_pratt): Remove function.
96573         (c_strcasestr): Update.
96574         * lib/mbscasestr.c: Include str-kmp.h.
96575         (knuth_morris_pratt_unibyte): Remove function.
96576         * lib/mbsstr.c: Include str-kmp.h.
96577         (knuth_morris_pratt_unibyte): Remove function.
96578         * lib/strcasestr.c: Include str-kmp.h.
96579         (knuth_morris_pratt): Remove function.
96580         (strcasestr): Update.
96581         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
96582         * modules/c-strstr (Files): Likewise.
96583         * modules/mbscasestr (Files): Likewise.
96584         * modules/mbsstr (Files): Likewise.
96585         * modules/strcasestr (Files): Likewise.
96586         Suggested by Paul Eggert.
96588 2007-12-30  Bruno Haible  <bruno@clisp.org>
96590         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
96591         defined.
96593 2007-12-30  Bruno Haible  <bruno@clisp.org>
96595         * lib/xmalloca.h: Include xalloc.h.
96596         (xnmalloca): New macro.
96598 2007-12-30  Bruno Haible  <bruno@clisp.org>
96600         * lib/malloca.h (nmalloca): New macro.
96601         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
96602         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
96603         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
96604         knuth_morris_pratt_multibyte): Likewise.
96605         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
96606         knuth_morris_pratt_multibyte): Likewise.
96607         * lib/memmem.c (knuth_morris_pratt): Likewise.
96608         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
96610 2007-12-25  Bruno Haible  <bruno@clisp.org>
96612         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
96613         * lib/glob.c: Don't include openat.h.
96614         (link_exists2_p): Add back the code that deals with the
96615         !GLOB_ALTDIRFUNC case.
96616         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
96617         let it do the filename concatenation.
96618         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
96619         * modules/glob (Depends-on): Remove openat.
96621 2007-12-31  Bruno Haible  <bruno@clisp.org>
96623         * modules/dirfd (License): Change to LGPLv2+.
96624         Approved by Jim Meyering.
96626 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
96628         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
96629         when multiplying M by sizeof (size_t).
96631 2007-12-10  Martin Lambers  <marlam@marlam.de>
96633         Override getpagesize on mingw.
96634         * lib/getpagesize.c: New file.
96635         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
96636         * modules/getpagesize (Files): Add lib/getpagesize.c.
96637         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
96638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
96639         REPLACE_GETPAGESIZE.
96640         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
96642 2007-12-25  Bruno Haible  <bruno@clisp.org>
96644         * modules/localcharset (Notice): New field.
96645         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
96646         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
96648 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
96649             Bruno Haible  <bruno@clisp.org>
96651         Avoid using the syntax symbol() in formatted documentation.
96652         * MODULES.html.sh (func_module): When replacing symbol() with a
96653         hyperlink, remove the parentheses. Show an error if some remain.
96654         Recognize and render the '...' syntax.
96655         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
96656         Rework. Add paragraph about GCC's inlining.
96657         * doc/alloca.texi: Likewise.
96658         * doc/error.texi: Remove parentheses from symbol reference.
96659         * doc/gnulib-intro.texi: Likewise.
96660         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
96661         * modules/fnmatch (Description): Reword to say "the ... function".
96662         * modules/full-read (Description): Likewise.
96663         * modules/full-write (Description): Likewise.
96664         * modules/safe-read (Description): Likewise.
96665         * modules/safe-write (Description): Likewise.
96666         * modules/strchrnul (Description): Likewise.
96667         * modules/trim (Description): Likewise.
96668         * modules/error (Description): Remove parentheses from symbol
96669         references.
96670         * modules/verror (Description): Likewise.
96671         Reported by Karl Berry.
96673 2007-12-25  Bruno Haible  <bruno@clisp.org>
96675         Fixup after 2007-10-16 commit.
96676         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
96678 2007-12-24  Bruno Haible  <bruno@clisp.org>
96680         Make --enable-relocatable work with DESTDIR.
96681         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
96682         to compute installdir from destprog.
96683         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
96684         also set the RELOC_DESTDIR variable.
96685         Reported by Левашев Иван <octagram@bluebottle.com>.
96687 2007-12-24  Bruno Haible  <bruno@clisp.org>
96689         Fix link error due to xalloc_die().
96690         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
96691         of xreadlink.
96692         * lib/relocwrapper.c: Update comments.
96693         * build-aux/install-reloc: Remove xreadlink.c from file list.
96694         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
96695         xreadlink.c.
96696         Reported by Левашев Иван <octagram@bluebottle.com>.
96698 2007-12-24  Bruno Haible  <bruno@clisp.org>
96700         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
96701         * lib/setenv.h: Remove file.
96702         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
96703         lib/setenv.h.
96704         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
96705         (Depends-on): Add stdlib.
96706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
96707         gl_FUNC_UNSETENV.
96708         (Include): Replace setenv.h with <stdlib.h>.
96709         * modules/unsetenv: New file.
96710         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
96711         * lib/unsetenv.c: Include <stdlib.h> first.
96712         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
96713         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
96714         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
96715         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
96716         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
96717         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
96719         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96720         * doc/functions/unsetenv.texi: Update.
96721         * modules/xsetenv (Depends-on): Add unsetenv.
96722         * modules/getdate (Depends-on): Likewise.
96723         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
96724         * lib/xsetenv.c: Don't include setenv.h.
96725         * lib/getdate.y: Likewise.
96726         * lib/relocwrapper.c: Likewise.
96727         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
96728         (Depends-on): Add stdlib.
96729         * NEWS: Mention the changes.
96730         Reported by Левашев Иван <octagram@bluebottle.com>.
96732 2007-12-23  Bruno Haible  <bruno@clisp.org>
96734         * lib/memmem.c (memmem): Use lowercase variable names. Tab
96735         indentation.
96737 2007-12-23  Bruno Haible  <bruno@clisp.org>
96739         * lib/c-strcasestr.c: Add more comments.
96740         * lib/c-strstr.c: Likewise.
96741         * lib/mbscasestr.c: Likewise.
96742         * lib/mbsstr.c: Likewise.
96743         * lib/strcasestr.c: Likewise.
96744         * lib/memmem.c: Likewise.
96746 2007-12-23  Bruno Haible  <bruno@clisp.org>
96748         * tests/test-memmem.c: Include <string.h> first.
96750 2007-12-22  Bruno Haible  <bruno@clisp.org>
96752         * gnulib-tool (func_create_testdir): Change $auxdir while generating
96753         the contents of $testsbase.
96754         Reported by Ralf Wildenhues.
96756 2007-12-22  Bruno Haible  <bruno@clisp.org>
96758         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
96759         two variables local_ldadd_before, local_ldadd_last.
96761 2007-12-20  Eric Blake  <ebb9@byu.net>
96763         Work around circular library issue when cross-compiling.
96764         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
96765         that progname.o does not need to pull in rpl_memcmp.
96767 2007-12-19  Eric Blake  <ebb9@byu.net>
96769         Fix memmem to avoid O(n^2) worst-case complexity.
96770         * lib/memmem.c (knuth_morris_pratt): New function.
96771         (memmem): Use it if first few naive iterations fail.
96772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
96773         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
96774         * modules/memchr (License): Likewise.
96775         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
96776         malloca.
96777         * tests/test-memmem.c: Rewrite, borrowing ideas from
96778         test-mbsstr1.c; the old version wouldn't even compile!
96779         * modules/memmem-tests: New file.
96780         * lib/string.in.h (rpl_memmem): Add declaration.
96781         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
96782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
96783         REPLACE_MEMMEM.
96785 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
96787         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
96788         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
96789         before any system include files, and undef after them all.  This
96790         should fix a problem on VMS reported by John E. Malmberg in
96791         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
96793 2007-12-17  Eric Blake  <ebb9@byu.net>
96795         Revert addition of verify, for BSD/OS.
96796         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
96797         can't handle large files, for the sake of obsolete platforms.
96798         * modules/fseeko (Depends-on): Remove verify.
96799         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
96800         * doc/functions/ftello.texi (ftello): Likewise.
96801         * doc/functions/fgetpos.texi (fgetpos): Likewise.
96802         Reported by Larry Jones.
96804 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
96806         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
96807         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
96809 2007-12-17  Jim Meyering  <meyering@redhat.com>
96811         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
96812         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
96813         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
96814         * modules/getcwd (Depends-on): Add openat.
96815         Reported by Petr Salinger.
96817 2007-12-17  Bruno Haible  <bruno@clisp.org>
96819         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
96820         avoid a segmentation fault of the configure test on x86_64 systems.
96822 2007-12-15  Jim Meyering  <meyering@redhat.com>
96824         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
96826 2007-12-13  Eric Blake  <ebb9@byu.net>
96828         Another fseek test.
96829         * tests/test-fseek.c (main): Also test ungetc handling.
96830         * tests/test-fseeko.c (main): Likewise.
96831         * modules/fseeko (Depends-on): Add verify.
96832         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
96833         large.
96834         Reported by Larry Jones.
96836         Fix fseeko on mingw.
96837         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
96838         seek.
96840         Beef up fseek tests.
96841         * tests/test-fseek.c (main): Also test eof handling.
96842         * tests/test-fseeko.c (main): Likewise.
96843         Reported by Larry Jones.
96845 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
96847         Fix fseeko on BSD-based platforms.
96848         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
96849         successful seek.
96851 2007-12-12  Eric Blake  <ebb9@byu.net>
96853         Allow circular dependency of separate libtests.a
96854         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
96855         when use_libtests.
96857 2007-12-11  Eric Blake  <ebb9@byu.net>
96859         Fix bug with -0.0L in previous patch.
96860         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
96861         * tests/test-isnan.c (main): Also test on zeroes.
96862         * tests/test-isnanf.c (main): Likewise.
96863         * tests/test-isnanl.h (main): Likewise.
96865         Detect pseudo-denormals on x86 even when cross-compiling.
96866         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
96867         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
96868         invalid bit patterns that happen to satisfy ==.
96870         Avoid link failures with separate libtests.a.
96871         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
96872         last, to satisfy circular dependencies.
96874 2007-12-11  Eric Blake  <ebb9@byu.net>
96875         and Bruno Haible  <bruno@clisp.org>
96877         Fix OpenBSD 4.0 <float.h> handling of long double.
96878         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
96879         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
96880         * doc/headers/float.texi (float.h): Document OpenBSD bug.
96882 2007-12-11  Jim Meyering  <meyering@redhat.com>
96884         * users.txt: Add libvirt.
96886         Support versions of autoconf prior to 2.59c.
96887         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
96888         if it is not already defined.
96890 2007-12-09  Bruno Haible  <bruno@clisp.org>
96892         Let 'gnulib-tool --import' collect sources needed for the tests in
96893         tests/ rather than in lib/.
96894         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
96895         argument. If true, add rules to generate libtests.a, and put libtests.a
96896         into $(LDADD). Consider source files in subdirectories and set
96897         uses_subdirs.
96898         (func_emit_initmacro_start, func_emit_initmacro_end,
96899         func_emit_initmacro_done): Pass all arguments explicitly.
96900         (func_import): Determine two module lists main_modules,
96901         testsrelated_modules. Determine use_libtests. Determine two variables
96902         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
96903         instead of just sed_transform_lib_file. Determine two variables
96904         main_files and testsrelated_files. Compute 'files' as the union of
96905         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
96906         func_add_or_update. In the generated gnulib-comp.m4, collect the
96907         object files for tests/ in different variables than those for lib/.
96908         Substitute LIBTESTS_LIBDEPS.
96909         (func_create_testdir): Combine the uses_subdirs results from
96910         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
96912 2007-12-09  Bruno Haible  <bruno@clisp.org>
96914         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
96915         the build-aux directory.
96917 2007-12-09  Bruno Haible  <bruno@clisp.org>
96919         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
96920         introduced on 2006-09-09.
96922 2007-12-07  Jim Meyering  <meyering@redhat.com>
96924         Let these macros work also with autoconf-2.59.
96925         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
96926         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
96927         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
96929 2007-12-06  Jim Meyering  <meyering@redhat.com>
96931         Avoid a configure-time syntax error in gl_FUNC_ACL.
96932         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
96933         function in each branch, before testing the cache variable.
96935 2007-12-04  Eric Blake  <ebb9@byu.net>
96937         Make scripts executable.
96938         * build-aux/config.guess: Add execute permissions.
96939         * build-aux/config.sub: Likewise.
96940         * build-aux/gendocs.sh: Likewise.
96942         Fix frexp on mingw.
96943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
96944         cross-compiling.
96945         * doc/functions/frexp.texi (frexp): Document the bug.
96947         Make cygwin fseeko check more reliable.
96948         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
96949         version numbers, rather than unrelated feature check.
96950         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
96951         * doc/functions/ftello.texi (ftello): Likewise.
96952         Reported by Bruno Haible.
96954         * m4/strerror.m4: Bump version number.
96956 2007-12-03  Bruno Haible  <bruno@clisp.org>
96958         * doc/functions/mprotect.texi: Mention the mingw problem.
96960 2007-12-03  Eric Blake  <ebb9@byu.net>
96962         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
96963         REPLACE_STRERROR is initialized before this macro.
96965 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
96967         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
96968         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
96969         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
96970         put -lsec in even for programs other than 'ls'.  This fixes a problem
96971         for gettext reported by Bruno Haible in
96972         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
96973         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
96974         Add support for Solaris 10.  This isn't efficient, but should get the
96975         job done for now.
96977 2007-12-03  James Youngman  <jay@gnu.org>
96979         * doc/regexprops-generic.texi: change "an close-group" to "a
96980         close-group" and "illegal" to "not allowed".
96982 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96984         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
96985         pr_byname.h. Needed for the rare case when the maintainer has done
96986         "make maintainer-clean" in the source directory and then attempts a
96987         build outside the source directory.
96988         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
96989         scripts_byname.h.
96991 2007-12-02  Martin Lambers  <marlam@marlam.de>
96992             Bruno Haible  <bruno@clisp.org>
96994         * lib/getpagesize.h: Remove file.
96995         * lib/unistd.in.h: Include declaration of getpagesize here.
96996         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
96997         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
96998         HAVE_SYS_PARAM_H.
96999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97000         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97001         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97002         (Depends-on): Add unistd.
97003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97004         (Include): Use <unistd.h> instead of getpagesize.h.
97005         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97006         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97007         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97008         gl_GETPAGESIZE invocation, already handled by module dependency.
97009         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97011 2007-12-02  Bruno Haible  <bruno@clisp.org>
97013         * modules/strings-tests: New file.
97014         * tests/test-strings.c: New file.
97016         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97017         * lib/strings.in.h: New file.
97018         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97019         * m4/strings_h.m4: New file.
97020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97021         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97022         * modules/strings: New file.
97023         * modules/string (Makefile.am): Update.
97024         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97025         Reported by Karl Berry.
97027 2007-12-01  Eric Blake  <ebb9@byu.net>
97029         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97030         accommodate fix in cygwin 1.5.25.
97032 2007-12-01  Jim Meyering  <meyering@redhat.com>
97034         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97035         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97036         that would inhibit utf8-optimization of a regexp containing line-
97037         or buffer-anchors, e.g., `^', `$'.
97039 2007-11-30  Bruno Haible  <bruno@clisp.org>
97041         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97042         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97043         glthread_recursive_lock_init.
97044         * lib/lock.c (glthread_recursive_lock_init)
97045         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97046         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97048 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97050         New function qset_acl, like set_acl but with syscall semantics.
97051         * lib/acl.h (qset_acl): New decl.
97052         * lib/acl.c (qset_acl): New function.
97053         (set_acl): Use new function.  Use more-consistent diagnostics.
97055 2007-11-28  Jim Meyering  <meyering@redhat.com>
97057         * modules/physmem (License): Change from GPL to LGPLv2+.
97059 2007-11-26  Bruno Haible  <bruno@clisp.org>
97061         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97062         'long double' type has excess precision.
97063         Reported by Jim Meyering in
97064         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97066 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97068         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97069         Sync from <http://gnu.org/licenses>.
97070         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97071         with license text from same location.
97072         * doc/maintain.texi, doc/standards.texi:  Sync from
97073         <http://savannah.gnu.org/projects/gnustandards>.
97075 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97076         and Jim Meyering  <meyering@redhat.com>
97078         Adjust getdate' grammar to accept a slightly more regular language.
97079         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97080         Before, the former was rejected.
97081         * lib/getdate.y (digits_to_date_time): New function, factored
97082         out of ...
97083         (number): ...here.  Just call digits_to_date_time.
97084         (hybrid): New non-terminal to handle an <unsigned number,
97085         signed relative offset> sequence consistently.
97087 2007-11-18  Jim Meyering  <meyering@redhat.com>
97089         Pull my changes from coreutils:
97090         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97091         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97092         use of $gnulib_tool_option_extras, so that it's separated from the
97093         preceding argument.
97095         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97096         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97097         parent destination directories before copying a file into place.
97099 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97101         bootstrap: work also with 4-argument variant of AC_INIT
97102         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97104 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97106         Port test-getaddrinfo to Solaris.
97107         Problem reported by Bruno Haible in
97108         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97109         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97110         explanation of setting 'hints'.
97111         Don't reject an implementation merely because it returns EAI_SERVICE.
97112         (EAI_SERVICE): Define to 0 if not defined.
97114 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97116         The license of gnu-make and posix-shell is now "GPLed build tool".
97117         * modules/gnu-make (License): Likewise.
97118         * modules/posix-shell (License): Likewise.
97120         New module posix-shell, for determining a POSIX shell
97121         or perhaps something that is close enough to a POSIX shell.
97122         * m4/posix-shell.m4: New file.
97123         * modules/posix-shell: New file.
97125         * MODULES.html.sh: Mention new module.
97127         New module gnu-make, for determining whether we're using GNU Make.
97128         * m4/gnu-make.m4: New file.
97129         * modules/gnu-make: New file.
97130         * MODULES.html.sh: Mention new module.
97132 2007-11-14  Jim Meyering  <meyering@redhat.com>
97134         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97135         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97136         use this macro to create a function _definition_.
97137         Remove useless "#undef ARGMATCH_DIE".
97139 2007-11-14  Bruno Haible  <bruno@clisp.org>
97141         * lib/config.charset: Update for OpenBSD 4.1.
97142         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97144 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97146         Document 64-bit #if problems in stdint.texi.
97147         * doc/headers/stdint.texi (stdint.h): Mention problems with
97148         64-bit-#if, and how to work around them.
97150         Don't insist on 'long long int' support in the preprocessor.  It
97151         breaks too many things.  For example, PRIdMAX still uses a 'long
97152         long int' format with the latest Sun compiler, even though
97153         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97154         preprocessor problem.  This causes the latest coreutils to dump
97155         core on Solaris 10 sparc with the Sun C compiler.
97156         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97157         the troublesome expressions at configure-time, not at #if-time.
97158         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97159         preprocessor.
97160         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97161         compile-time C checks, done at 'configure'-time.
97162         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97163         * modules/inttypes (Makefile): Substitute the new symbols that
97164         gl_INTTYPES_H now generates.
97165         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97167 2007-11-12  Bruno Haible  <bruno@clisp.org>
97169         Tests for Unicode character classification functions.
97171         * modules/unictype/bidicategory-byname-tests: New file.
97172         * modules/unictype/bidicategory-name-tests: New file.
97173         * modules/unictype/bidicategory-of-tests: New file.
97174         * modules/unictype/bidicategory-test-tests: New file.
97175         * modules/unictype/block-list-tests: New file.
97176         * modules/unictype/block-of-tests: New file.
97177         * modules/unictype/block-test-tests: New file.
97178         * modules/unictype/category-C-tests: New file.
97179         * modules/unictype/category-Cc-tests: New file.
97180         * modules/unictype/category-Cf-tests: New file.
97181         * modules/unictype/category-Cn-tests: New file.
97182         * modules/unictype/category-Co-tests: New file.
97183         * modules/unictype/category-Cs-tests: New file.
97184         * modules/unictype/category-L-tests: New file.
97185         * modules/unictype/category-Ll-tests: New file.
97186         * modules/unictype/category-Lm-tests: New file.
97187         * modules/unictype/category-Lo-tests: New file.
97188         * modules/unictype/category-Lt-tests: New file.
97189         * modules/unictype/category-Lu-tests: New file.
97190         * modules/unictype/category-M-tests: New file.
97191         * modules/unictype/category-Mc-tests: New file.
97192         * modules/unictype/category-Me-tests: New file.
97193         * modules/unictype/category-Mn-tests: New file.
97194         * modules/unictype/category-N-tests: New file.
97195         * modules/unictype/category-Nd-tests: New file.
97196         * modules/unictype/category-Nl-tests: New file.
97197         * modules/unictype/category-No-tests: New file.
97198         * modules/unictype/category-P-tests: New file.
97199         * modules/unictype/category-Pc-tests: New file.
97200         * modules/unictype/category-Pd-tests: New file.
97201         * modules/unictype/category-Pe-tests: New file.
97202         * modules/unictype/category-Pf-tests: New file.
97203         * modules/unictype/category-Pi-tests: New file.
97204         * modules/unictype/category-Po-tests: New file.
97205         * modules/unictype/category-Ps-tests: New file.
97206         * modules/unictype/category-S-tests: New file.
97207         * modules/unictype/category-Sc-tests: New file.
97208         * modules/unictype/category-Sk-tests: New file.
97209         * modules/unictype/category-Sm-tests: New file.
97210         * modules/unictype/category-So-tests: New file.
97211         * modules/unictype/category-Z-tests: New file.
97212         * modules/unictype/category-Zl-tests: New file.
97213         * modules/unictype/category-Zp-tests: New file.
97214         * modules/unictype/category-Zs-tests: New file.
97215         * modules/unictype/category-and-not-tests: New file.
97216         * modules/unictype/category-and-tests: New file.
97217         * modules/unictype/category-byname-tests: New file.
97218         * modules/unictype/category-name-tests: New file.
97219         * modules/unictype/category-none-tests: New file.
97220         * modules/unictype/category-of-tests: New file.
97221         * modules/unictype/category-or-tests: New file.
97222         * modules/unictype/category-test-withtable-tests: New file.
97223         * modules/unictype/combining-class-tests: New file.
97224         * modules/unictype/ctype-alnum-tests: New file.
97225         * modules/unictype/ctype-alpha-tests: New file.
97226         * modules/unictype/ctype-blank-tests: New file.
97227         * modules/unictype/ctype-cntrl-tests: New file.
97228         * modules/unictype/ctype-digit-tests: New file.
97229         * modules/unictype/ctype-graph-tests: New file.
97230         * modules/unictype/ctype-lower-tests: New file.
97231         * modules/unictype/ctype-print-tests: New file.
97232         * modules/unictype/ctype-punct-tests: New file.
97233         * modules/unictype/ctype-space-tests: New file.
97234         * modules/unictype/ctype-upper-tests: New file.
97235         * modules/unictype/ctype-xdigit-tests: New file.
97236         * modules/unictype/decimal-digit-tests: New file.
97237         * modules/unictype/digit-tests: New file.
97238         * modules/unictype/mirror-tests: New file.
97239         * modules/unictype/numeric-tests: New file.
97240         * modules/unictype/property-alphabetic-tests: New file.
97241         * modules/unictype/property-ascii-hex-digit-tests: New file.
97242         * modules/unictype/property-bidi-arabic-digit-tests: New file.
97243         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
97244         * modules/unictype/property-bidi-block-separator-tests: New file.
97245         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
97246         * modules/unictype/property-bidi-common-separator-tests: New file.
97247         * modules/unictype/property-bidi-control-tests: New file.
97248         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97249         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97250         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97251         * modules/unictype/property-bidi-european-digit-tests: New file.
97252         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97253         * modules/unictype/property-bidi-left-to-right-tests: New file.
97254         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97255         * modules/unictype/property-bidi-other-neutral-tests: New file.
97256         * modules/unictype/property-bidi-pdf-tests: New file.
97257         * modules/unictype/property-bidi-segment-separator-tests: New file.
97258         * modules/unictype/property-bidi-whitespace-tests: New file.
97259         * modules/unictype/property-byname-tests: New file.
97260         * modules/unictype/property-combining-tests: New file.
97261         * modules/unictype/property-composite-tests: New file.
97262         * modules/unictype/property-currency-symbol-tests: New file.
97263         * modules/unictype/property-dash-tests: New file.
97264         * modules/unictype/property-decimal-digit-tests: New file.
97265         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97266         * modules/unictype/property-deprecated-tests: New file.
97267         * modules/unictype/property-diacritic-tests: New file.
97268         * modules/unictype/property-extender-tests: New file.
97269         * modules/unictype/property-format-control-tests: New file.
97270         * modules/unictype/property-grapheme-base-tests: New file.
97271         * modules/unictype/property-grapheme-extend-tests: New file.
97272         * modules/unictype/property-grapheme-link-tests: New file.
97273         * modules/unictype/property-hex-digit-tests: New file.
97274         * modules/unictype/property-hyphen-tests: New file.
97275         * modules/unictype/property-id-continue-tests: New file.
97276         * modules/unictype/property-id-start-tests: New file.
97277         * modules/unictype/property-ideographic-tests: New file.
97278         * modules/unictype/property-ids-binary-operator-tests: New file.
97279         * modules/unictype/property-ids-trinary-operator-tests: New file.
97280         * modules/unictype/property-ignorable-control-tests: New file.
97281         * modules/unictype/property-iso-control-tests: New file.
97282         * modules/unictype/property-join-control-tests: New file.
97283         * modules/unictype/property-left-of-pair-tests: New file.
97284         * modules/unictype/property-line-separator-tests: New file.
97285         * modules/unictype/property-logical-order-exception-tests: New file.
97286         * modules/unictype/property-lowercase-tests: New file.
97287         * modules/unictype/property-math-tests: New file.
97288         * modules/unictype/property-non-break-tests: New file.
97289         * modules/unictype/property-not-a-character-tests: New file.
97290         * modules/unictype/property-numeric-tests: New file.
97291         * modules/unictype/property-other-alphabetic-tests: New file.
97292         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97293         * modules/unictype/property-other-grapheme-extend-tests: New file.
97294         * modules/unictype/property-other-id-continue-tests: New file.
97295         * modules/unictype/property-other-id-start-tests: New file.
97296         * modules/unictype/property-other-lowercase-tests: New file.
97297         * modules/unictype/property-other-math-tests: New file.
97298         * modules/unictype/property-other-uppercase-tests: New file.
97299         * modules/unictype/property-paired-punctuation-tests: New file.
97300         * modules/unictype/property-paragraph-separator-tests: New file.
97301         * modules/unictype/property-pattern-syntax-tests: New file.
97302         * modules/unictype/property-pattern-white-space-tests: New file.
97303         * modules/unictype/property-private-use-tests: New file.
97304         * modules/unictype/property-punctuation-tests: New file.
97305         * modules/unictype/property-quotation-mark-tests: New file.
97306         * modules/unictype/property-radical-tests: New file.
97307         * modules/unictype/property-sentence-terminal-tests: New file.
97308         * modules/unictype/property-soft-dotted-tests: New file.
97309         * modules/unictype/property-space-tests: New file.
97310         * modules/unictype/property-terminal-punctuation-tests: New file.
97311         * modules/unictype/property-test-tests: New file.
97312         * modules/unictype/property-titlecase-tests: New file.
97313         * modules/unictype/property-unassigned-code-value-tests: New file.
97314         * modules/unictype/property-unified-ideograph-tests: New file.
97315         * modules/unictype/property-uppercase-tests: New file.
97316         * modules/unictype/property-variation-selector-tests: New file.
97317         * modules/unictype/property-white-space-tests: New file.
97318         * modules/unictype/property-xid-continue-tests: New file.
97319         * modules/unictype/property-xid-start-tests: New file.
97320         * modules/unictype/property-zero-width-tests: New file.
97321         * modules/unictype/scripts-tests: New file.
97322         * modules/unictype/syntax-c-ident-tests: New file.
97323         * modules/unictype/syntax-c-whitespace-tests: New file.
97324         * modules/unictype/syntax-java-ident-tests: New file.
97325         * modules/unictype/syntax-java-whitespace-tests: New file.
97326         * tests/unictype/test-bidi_byname.c: New file.
97327         * tests/unictype/test-bidi_name.c: New file.
97328         * tests/unictype/test-bidi_of.c: New file.
97329         * tests/unictype/test-bidi_test.c: New file.
97330         * tests/unictype/test-block_list.c: New file.
97331         * tests/unictype/test-block_of.c: New file.
97332         * tests/unictype/test-block_test.c: New file.
97333         * tests/unictype/test-categ_and.c: New file.
97334         * tests/unictype/test-categ_and_not.c: New file.
97335         * tests/unictype/test-categ_byname.c: New file.
97336         * tests/unictype/test-categ_name.c: New file.
97337         * tests/unictype/test-categ_none.c: New file.
97338         * tests/unictype/test-categ_of.c: New file.
97339         * tests/unictype/test-categ_or.c: New file.
97340         * tests/unictype/test-categ_test_withtable.c: New file.
97341         * tests/unictype/test-combining.c: New file.
97342         * tests/unictype/test-decdigit.c: New file.
97343         * tests/unictype/test-digit.c: New file.
97344         * tests/unictype/test-mirror.c: New file.
97345         * tests/unictype/test-numeric.c: New file.
97346         * tests/unictype/test-pr_byname.c: New file.
97347         * tests/unictype/test-pr_test.c: New file.
97348         * tests/unictype/test-predicate-part1.h: New file.
97349         * tests/unictype/test-predicate-part2.h: New file.
97350         * tests/unictype/test-scripts.c: New file.
97351         * tests/unictype/test-sy_c_ident.c: New file.
97352         * tests/unictype/test-sy_java_ident.c: New file.
97354         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97355         for Unicode 5.0.0.
97356         * tests/unictype/test-categ_Cc.c: Likewise.
97357         * tests/unictype/test-categ_Cf.c: Likewise.
97358         * tests/unictype/test-categ_Cn.c: Likewise.
97359         * tests/unictype/test-categ_Co.c: Likewise.
97360         * tests/unictype/test-categ_Cs.c: Likewise.
97361         * tests/unictype/test-categ_L.c: Likewise.
97362         * tests/unictype/test-categ_Ll.c: Likewise.
97363         * tests/unictype/test-categ_Lm.c: Likewise.
97364         * tests/unictype/test-categ_Lo.c: Likewise.
97365         * tests/unictype/test-categ_Lt.c: Likewise.
97366         * tests/unictype/test-categ_Lu.c: Likewise.
97367         * tests/unictype/test-categ_M.c: Likewise.
97368         * tests/unictype/test-categ_Mc.c: Likewise.
97369         * tests/unictype/test-categ_Me.c: Likewise.
97370         * tests/unictype/test-categ_Mn.c: Likewise.
97371         * tests/unictype/test-categ_N.c: Likewise.
97372         * tests/unictype/test-categ_Nd.c: Likewise.
97373         * tests/unictype/test-categ_Nl.c: Likewise.
97374         * tests/unictype/test-categ_No.c: Likewise.
97375         * tests/unictype/test-categ_P.c: Likewise.
97376         * tests/unictype/test-categ_Pc.c: Likewise.
97377         * tests/unictype/test-categ_Pd.c: Likewise.
97378         * tests/unictype/test-categ_Pe.c: Likewise.
97379         * tests/unictype/test-categ_Pf.c: Likewise.
97380         * tests/unictype/test-categ_Pi.c: Likewise.
97381         * tests/unictype/test-categ_Po.c: Likewise.
97382         * tests/unictype/test-categ_Ps.c: Likewise.
97383         * tests/unictype/test-categ_S.c: Likewise.
97384         * tests/unictype/test-categ_Sc.c: Likewise.
97385         * tests/unictype/test-categ_Sk.c: Likewise.
97386         * tests/unictype/test-categ_Sm.c: Likewise.
97387         * tests/unictype/test-categ_So.c: Likewise.
97388         * tests/unictype/test-categ_Z.c: Likewise.
97389         * tests/unictype/test-categ_Zl.c: Likewise.
97390         * tests/unictype/test-categ_Zp.c: Likewise.
97391         * tests/unictype/test-categ_Zs.c: Likewise.
97392         * tests/unictype/test-ctype_alnum.c: Likewise.
97393         * tests/unictype/test-ctype_alpha.c: Likewise.
97394         * tests/unictype/test-ctype_blank.c: Likewise.
97395         * tests/unictype/test-ctype_cntrl.c: Likewise.
97396         * tests/unictype/test-ctype_digit.c: Likewise.
97397         * tests/unictype/test-ctype_graph.c: Likewise.
97398         * tests/unictype/test-ctype_lower.c: Likewise.
97399         * tests/unictype/test-ctype_print.c: Likewise.
97400         * tests/unictype/test-ctype_punct.c: Likewise.
97401         * tests/unictype/test-ctype_space.c: Likewise.
97402         * tests/unictype/test-ctype_upper.c: Likewise.
97403         * tests/unictype/test-ctype_xdigit.c: Likewise.
97404         * tests/unictype/test-decdigit.h: Likewise.
97405         * tests/unictype/test-digit.h: Likewise.
97406         * tests/unictype/test-numeric.h: Likewise.
97407         * tests/unictype/test-pr_alphabetic.c: Likewise.
97408         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
97409         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
97410         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
97411         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
97412         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
97413         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
97414         * tests/unictype/test-pr_bidi_control.c: Likewise.
97415         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
97416         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
97417         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
97418         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
97419         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
97420         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
97421         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
97422         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
97423         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
97424         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
97425         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
97426         * tests/unictype/test-pr_combining.c: Likewise.
97427         * tests/unictype/test-pr_composite.c: Likewise.
97428         * tests/unictype/test-pr_currency_symbol.c: Likewise.
97429         * tests/unictype/test-pr_dash.c: Likewise.
97430         * tests/unictype/test-pr_decimal_digit.c: Likewise.
97431         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
97432         * tests/unictype/test-pr_deprecated.c: Likewise.
97433         * tests/unictype/test-pr_diacritic.c: Likewise.
97434         * tests/unictype/test-pr_extender.c: Likewise.
97435         * tests/unictype/test-pr_format_control.c: Likewise.
97436         * tests/unictype/test-pr_grapheme_base.c: Likewise.
97437         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
97438         * tests/unictype/test-pr_grapheme_link.c: Likewise.
97439         * tests/unictype/test-pr_hex_digit.c: Likewise.
97440         * tests/unictype/test-pr_hyphen.c: Likewise.
97441         * tests/unictype/test-pr_id_continue.c: Likewise.
97442         * tests/unictype/test-pr_id_start.c: Likewise.
97443         * tests/unictype/test-pr_ideographic.c: Likewise.
97444         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
97445         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
97446         * tests/unictype/test-pr_ignorable_control.c: Likewise.
97447         * tests/unictype/test-pr_iso_control.c: Likewise.
97448         * tests/unictype/test-pr_join_control.c: Likewise.
97449         * tests/unictype/test-pr_left_of_pair.c: Likewise.
97450         * tests/unictype/test-pr_line_separator.c: Likewise.
97451         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
97452         * tests/unictype/test-pr_lowercase.c: Likewise.
97453         * tests/unictype/test-pr_math.c: Likewise.
97454         * tests/unictype/test-pr_non_break.c: Likewise.
97455         * tests/unictype/test-pr_not_a_character.c: Likewise.
97456         * tests/unictype/test-pr_numeric.c: Likewise.
97457         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
97458         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
97459         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
97460         * tests/unictype/test-pr_other_id_continue.c: Likewise.
97461         * tests/unictype/test-pr_other_id_start.c: Likewise.
97462         * tests/unictype/test-pr_other_lowercase.c: Likewise.
97463         * tests/unictype/test-pr_other_math.c: Likewise.
97464         * tests/unictype/test-pr_other_uppercase.c: Likewise.
97465         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
97466         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
97467         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
97468         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
97469         * tests/unictype/test-pr_private_use.c: Likewise.
97470         * tests/unictype/test-pr_punctuation.c: Likewise.
97471         * tests/unictype/test-pr_quotation_mark.c: Likewise.
97472         * tests/unictype/test-pr_radical.c: Likewise.
97473         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
97474         * tests/unictype/test-pr_soft_dotted.c: Likewise.
97475         * tests/unictype/test-pr_space.c: Likewise.
97476         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
97477         * tests/unictype/test-pr_titlecase.c: Likewise.
97478         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
97479         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
97480         * tests/unictype/test-pr_uppercase.c: Likewise.
97481         * tests/unictype/test-pr_variation_selector.c: Likewise.
97482         * tests/unictype/test-pr_white_space.c: Likewise.
97483         * tests/unictype/test-pr_xid_continue.c: Likewise.
97484         * tests/unictype/test-pr_xid_start.c: Likewise.
97485         * tests/unictype/test-pr_zero_width.c: Likewise.
97486         * tests/unictype/test-sy_c_whitespace.c: Likewise.
97487         * tests/unictype/test-sy_java_whitespace.c: Likewise.
97489 2007-11-12  Bruno Haible  <bruno@clisp.org>
97491         Unicode character classification functions.
97492         * lib/unictype.h: New file.
97493         * modules/unictype/base: New file.
97494         * modules/unictype/category-L: New file.
97495         * modules/unictype/category-Lu: New file.
97496         * modules/unictype/category-Ll: New file.
97497         * modules/unictype/category-Lt: New file.
97498         * modules/unictype/category-Lm: New file.
97499         * modules/unictype/category-Lo: New file.
97500         * modules/unictype/category-M: New file.
97501         * modules/unictype/category-Mn: New file.
97502         * modules/unictype/category-Mc: New file.
97503         * modules/unictype/category-Me: New file.
97504         * modules/unictype/category-N: New file.
97505         * modules/unictype/category-Nd: New file.
97506         * modules/unictype/category-Nl: New file.
97507         * modules/unictype/category-No: New file.
97508         * modules/unictype/category-P: New file.
97509         * modules/unictype/category-Pc: New file.
97510         * modules/unictype/category-Pd: New file.
97511         * modules/unictype/category-Ps: New file.
97512         * modules/unictype/category-Pe: New file.
97513         * modules/unictype/category-Pi: New file.
97514         * modules/unictype/category-Pf: New file.
97515         * modules/unictype/category-Po: New file.
97516         * modules/unictype/category-S: New file.
97517         * modules/unictype/category-Sm: New file.
97518         * modules/unictype/category-Sc: New file.
97519         * modules/unictype/category-Sk: New file.
97520         * modules/unictype/category-So: New file.
97521         * modules/unictype/category-Z: New file.
97522         * modules/unictype/category-Zs: New file.
97523         * modules/unictype/category-Zl: New file.
97524         * modules/unictype/category-Zp: New file.
97525         * modules/unictype/category-C: New file.
97526         * modules/unictype/category-Cc: New file.
97527         * modules/unictype/category-Cf: New file.
97528         * modules/unictype/category-Cs: New file.
97529         * modules/unictype/category-Co: New file.
97530         * modules/unictype/category-Cn: New file.
97531         * modules/unictype/category-or: New file.
97532         * modules/unictype/category-of: New file.
97533         * modules/unictype/category-test: New file.
97534         * modules/unictype/category-test-withtable: New file.
97535         * modules/unictype/category-byname: New file.
97536         * modules/unictype/category-none: New file.
97537         * modules/unictype/category-and: New file.
97538         * modules/unictype/category-and-not: New file.
97539         * modules/unictype/category-name: New file.
97540         * modules/unictype/combining-class: New file.
97541         * modules/unictype/category-all: New file.
97542         * modules/unictype/bidicategory-all: New file.
97543         * modules/unictype/bidicategory-byname: New file.
97544         * modules/unictype/bidicategory-name: New file.
97545         * modules/unictype/bidicategory-of: New file.
97546         * modules/unictype/bidicategory-test: New file.
97547         * modules/unictype/decimal-digit: New file.
97548         * modules/unictype/digit: New file.
97549         * modules/unictype/numeric: New file.
97550         * modules/unictype/mirror: New file.
97551         * modules/unictype/property-white-space: New file.
97552         * modules/unictype/property-alphabetic: New file.
97553         * modules/unictype/property-other-alphabetic: New file.
97554         * modules/unictype/property-not-a-character: New file.
97555         * modules/unictype/property-default-ignorable-code-point: New file.
97556         * modules/unictype/property-other-default-ignorable-code-point: New
97557         file.
97558         * modules/unictype/property-deprecated: New file.
97559         * modules/unictype/property-logical-order-exception: New file.
97560         * modules/unictype/property-variation-selector: New file.
97561         * modules/unictype/property-private-use: New file.
97562         * modules/unictype/property-unassigned-code-value: New file.
97563         * modules/unictype/property-uppercase: New file.
97564         * modules/unictype/property-other-uppercase: New file.
97565         * modules/unictype/property-lowercase: New file.
97566         * modules/unictype/property-other-lowercase: New file.
97567         * modules/unictype/property-titlecase: New file.
97568         * modules/unictype/property-soft-dotted: New file.
97569         * modules/unictype/property-id-start: New file.
97570         * modules/unictype/property-other-id-start: New file.
97571         * modules/unictype/property-id-continue: New file.
97572         * modules/unictype/property-other-id-continue: New file.
97573         * modules/unictype/property-xid-start: New file.
97574         * modules/unictype/property-xid-continue: New file.
97575         * modules/unictype/property-pattern-white-space: New file.
97576         * modules/unictype/property-pattern-syntax: New file.
97577         * modules/unictype/property-join-control: New file.
97578         * modules/unictype/property-grapheme-base: New file.
97579         * modules/unictype/property-grapheme-extend: New file.
97580         * modules/unictype/property-other-grapheme-extend: New file.
97581         * modules/unictype/property-grapheme-link: New file.
97582         * modules/unictype/property-bidi-control: New file.
97583         * modules/unictype/property-bidi-left-to-right: New file.
97584         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
97585         * modules/unictype/property-bidi-arabic-right-to-left: New file.
97586         * modules/unictype/property-bidi-european-digit: New file.
97587         * modules/unictype/property-bidi-eur-num-separator: New file.
97588         * modules/unictype/property-bidi-eur-num-terminator: New file.
97589         * modules/unictype/property-bidi-arabic-digit: New file.
97590         * modules/unictype/property-bidi-common-separator: New file.
97591         * modules/unictype/property-bidi-block-separator: New file.
97592         * modules/unictype/property-bidi-segment-separator: New file.
97593         * modules/unictype/property-bidi-whitespace: New file.
97594         * modules/unictype/property-bidi-non-spacing-mark: New file.
97595         * modules/unictype/property-bidi-boundary-neutral: New file.
97596         * modules/unictype/property-bidi-pdf: New file.
97597         * modules/unictype/property-bidi-embedding-or-override: New file.
97598         * modules/unictype/property-bidi-other-neutral: New file.
97599         * modules/unictype/property-hex-digit: New file.
97600         * modules/unictype/property-ascii-hex-digit: New file.
97601         * modules/unictype/property-ideographic: New file.
97602         * modules/unictype/property-unified-ideograph: New file.
97603         * modules/unictype/property-radical: New file.
97604         * modules/unictype/property-ids-binary-operator: New file.
97605         * modules/unictype/property-ids-trinary-operator: New file.
97606         * modules/unictype/property-zero-width: New file.
97607         * modules/unictype/property-space: New file.
97608         * modules/unictype/property-non-break: New file.
97609         * modules/unictype/property-iso-control: New file.
97610         * modules/unictype/property-format-control: New file.
97611         * modules/unictype/property-dash: New file.
97612         * modules/unictype/property-hyphen: New file.
97613         * modules/unictype/property-punctuation: New file.
97614         * modules/unictype/property-line-separator: New file.
97615         * modules/unictype/property-paragraph-separator: New file.
97616         * modules/unictype/property-quotation-mark: New file.
97617         * modules/unictype/property-sentence-terminal: New file.
97618         * modules/unictype/property-terminal-punctuation: New file.
97619         * modules/unictype/property-currency-symbol: New file.
97620         * modules/unictype/property-math: New file.
97621         * modules/unictype/property-other-math: New file.
97622         * modules/unictype/property-paired-punctuation: New file.
97623         * modules/unictype/property-left-of-pair: New file.
97624         * modules/unictype/property-combining: New file.
97625         * modules/unictype/property-composite: New file.
97626         * modules/unictype/property-decimal-digit: New file.
97627         * modules/unictype/property-numeric: New file.
97628         * modules/unictype/property-diacritic: New file.
97629         * modules/unictype/property-extender: New file.
97630         * modules/unictype/property-ignorable-control: New file.
97631         * modules/unictype/property-test: New file.
97632         * modules/unictype/property-byname: New file.
97633         * modules/unictype/property-all: New file.
97634         * modules/unictype/scripts: New file.
97635         * modules/unictype/scripts-all: New file.
97636         * modules/unictype/block-of: New file.
97637         * modules/unictype/block-test: New file.
97638         * modules/unictype/block-list: New file.
97639         * modules/unictype/block-all: New file.
97640         * modules/unictype/syntax-c-whitespace: New file.
97641         * modules/unictype/syntax-java-whitespace: New file.
97642         * modules/unictype/syntax-c-ident: New file.
97643         * modules/unictype/syntax-java-ident: New file.
97644         * modules/unictype/ctype-alnum: New file.
97645         * modules/unictype/ctype-alpha: New file.
97646         * modules/unictype/ctype-cntrl: New file.
97647         * modules/unictype/ctype-digit: New file.
97648         * modules/unictype/ctype-graph: New file.
97649         * modules/unictype/ctype-lower: New file.
97650         * modules/unictype/ctype-print: New file.
97651         * modules/unictype/ctype-punct: New file.
97652         * modules/unictype/ctype-space: New file.
97653         * modules/unictype/ctype-upper: New file.
97654         * modules/unictype/ctype-xdigit: New file.
97655         * modules/unictype/ctype-blank: New file.
97656         * lib/unictype/bidi_byname.c: New file.
97657         * lib/unictype/bidi_name.c: New file.
97658         * lib/unictype/bidi_of.c: New file.
97659         * lib/unictype/bidi_test.c: New file.
97660         * lib/unictype/bitmap.h: New file.
97661         * lib/unictype/block_test.c: New file.
97662         * lib/unictype/blocks.c: New file.
97663         * lib/unictype/categ_C.c: New file.
97664         * lib/unictype/categ_Cc.c: New file.
97665         * lib/unictype/categ_Cf.c: New file.
97666         * lib/unictype/categ_Cn.c: New file.
97667         * lib/unictype/categ_Co.c: New file.
97668         * lib/unictype/categ_Cs.c: New file.
97669         * lib/unictype/categ_L.c: New file.
97670         * lib/unictype/categ_Ll.c: New file.
97671         * lib/unictype/categ_Lm.c: New file.
97672         * lib/unictype/categ_Lo.c: New file.
97673         * lib/unictype/categ_Lt.c: New file.
97674         * lib/unictype/categ_Lu.c: New file.
97675         * lib/unictype/categ_M.c: New file.
97676         * lib/unictype/categ_Mc.c: New file.
97677         * lib/unictype/categ_Me.c: New file.
97678         * lib/unictype/categ_Mn.c: New file.
97679         * lib/unictype/categ_N.c: New file.
97680         * lib/unictype/categ_Nd.c: New file.
97681         * lib/unictype/categ_Nl.c: New file.
97682         * lib/unictype/categ_No.c: New file.
97683         * lib/unictype/categ_P.c: New file.
97684         * lib/unictype/categ_Pc.c: New file.
97685         * lib/unictype/categ_Pd.c: New file.
97686         * lib/unictype/categ_Pe.c: New file.
97687         * lib/unictype/categ_Pf.c: New file.
97688         * lib/unictype/categ_Pi.c: New file.
97689         * lib/unictype/categ_Po.c: New file.
97690         * lib/unictype/categ_Ps.c: New file.
97691         * lib/unictype/categ_S.c: New file.
97692         * lib/unictype/categ_Sc.c: New file.
97693         * lib/unictype/categ_Sk.c: New file.
97694         * lib/unictype/categ_Sm.c: New file.
97695         * lib/unictype/categ_So.c: New file.
97696         * lib/unictype/categ_Z.c: New file.
97697         * lib/unictype/categ_Zl.c: New file.
97698         * lib/unictype/categ_Zp.c: New file.
97699         * lib/unictype/categ_Zs.c: New file.
97700         * lib/unictype/categ_and.c: New file.
97701         * lib/unictype/categ_and_not.c: New file.
97702         * lib/unictype/categ_byname.c: New file.
97703         * lib/unictype/categ_name.c: New file.
97704         * lib/unictype/categ_none.c: New file.
97705         * lib/unictype/categ_of.c: New file.
97706         * lib/unictype/categ_or.c: New file.
97707         * lib/unictype/categ_test.c: New file.
97708         * lib/unictype/combining.c: New file.
97709         * lib/unictype/ctype_alnum.c: New file.
97710         * lib/unictype/ctype_alpha.c: New file.
97711         * lib/unictype/ctype_blank.c: New file.
97712         * lib/unictype/ctype_cntrl.c: New file.
97713         * lib/unictype/ctype_digit.c: New file.
97714         * lib/unictype/ctype_graph.c: New file.
97715         * lib/unictype/ctype_lower.c: New file.
97716         * lib/unictype/ctype_print.c: New file.
97717         * lib/unictype/ctype_punct.c: New file.
97718         * lib/unictype/ctype_space.c: New file.
97719         * lib/unictype/ctype_upper.c: New file.
97720         * lib/unictype/ctype_xdigit.c: New file.
97721         * lib/unictype/decdigit.c: New file.
97722         * lib/unictype/digit.c: New file.
97723         * lib/unictype/identsyntaxmap.h: New file.
97724         * lib/unictype/mirror.c: New file.
97725         * lib/unictype/numeric.c: New file.
97726         * lib/unictype/pr_alphabetic.c: New file.
97727         * lib/unictype/pr_ascii_hex_digit.c: New file.
97728         * lib/unictype/pr_bidi_arabic_digit.c: New file.
97729         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
97730         * lib/unictype/pr_bidi_block_separator.c: New file.
97731         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
97732         * lib/unictype/pr_bidi_common_separator.c: New file.
97733         * lib/unictype/pr_bidi_control.c: New file.
97734         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
97735         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
97736         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
97737         * lib/unictype/pr_bidi_european_digit.c: New file.
97738         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
97739         * lib/unictype/pr_bidi_left_to_right.c: New file.
97740         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
97741         * lib/unictype/pr_bidi_other_neutral.c: New file.
97742         * lib/unictype/pr_bidi_pdf.c: New file.
97743         * lib/unictype/pr_bidi_segment_separator.c: New file.
97744         * lib/unictype/pr_bidi_whitespace.c: New file.
97745         * lib/unictype/pr_byname.c: New file.
97746         * lib/unictype/pr_byname.gperf: New file.
97747         * lib/unictype/pr_combining.c: New file.
97748         * lib/unictype/pr_composite.c: New file.
97749         * lib/unictype/pr_currency_symbol.c: New file.
97750         * lib/unictype/pr_dash.c: New file.
97751         * lib/unictype/pr_decimal_digit.c: New file.
97752         * lib/unictype/pr_default_ignorable_code_point.c: New file.
97753         * lib/unictype/pr_deprecated.c: New file.
97754         * lib/unictype/pr_diacritic.c: New file.
97755         * lib/unictype/pr_extender.c: New file.
97756         * lib/unictype/pr_format_control.c: New file.
97757         * lib/unictype/pr_grapheme_base.c: New file.
97758         * lib/unictype/pr_grapheme_extend.c: New file.
97759         * lib/unictype/pr_grapheme_link.c: New file.
97760         * lib/unictype/pr_hex_digit.c: New file.
97761         * lib/unictype/pr_hyphen.c: New file.
97762         * lib/unictype/pr_id_continue.c: New file.
97763         * lib/unictype/pr_id_start.c: New file.
97764         * lib/unictype/pr_ideographic.c: New file.
97765         * lib/unictype/pr_ids_binary_operator.c: New file.
97766         * lib/unictype/pr_ids_trinary_operator.c: New file.
97767         * lib/unictype/pr_ignorable_control.c: New file.
97768         * lib/unictype/pr_iso_control.c: New file.
97769         * lib/unictype/pr_join_control.c: New file.
97770         * lib/unictype/pr_left_of_pair.c: New file.
97771         * lib/unictype/pr_line_separator.c: New file.
97772         * lib/unictype/pr_logical_order_exception.c: New file.
97773         * lib/unictype/pr_lowercase.c: New file.
97774         * lib/unictype/pr_math.c: New file.
97775         * lib/unictype/pr_non_break.c: New file.
97776         * lib/unictype/pr_not_a_character.c: New file.
97777         * lib/unictype/pr_numeric.c: New file.
97778         * lib/unictype/pr_other_alphabetic.c: New file.
97779         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
97780         * lib/unictype/pr_other_grapheme_extend.c: New file.
97781         * lib/unictype/pr_other_id_continue.c: New file.
97782         * lib/unictype/pr_other_id_start.c: New file.
97783         * lib/unictype/pr_other_lowercase.c: New file.
97784         * lib/unictype/pr_other_math.c: New file.
97785         * lib/unictype/pr_other_uppercase.c: New file.
97786         * lib/unictype/pr_paired_punctuation.c: New file.
97787         * lib/unictype/pr_paragraph_separator.c: New file.
97788         * lib/unictype/pr_pattern_syntax.c: New file.
97789         * lib/unictype/pr_pattern_white_space.c: New file.
97790         * lib/unictype/pr_private_use.c: New file.
97791         * lib/unictype/pr_punctuation.c: New file.
97792         * lib/unictype/pr_quotation_mark.c: New file.
97793         * lib/unictype/pr_radical.c: New file.
97794         * lib/unictype/pr_sentence_terminal.c: New file.
97795         * lib/unictype/pr_soft_dotted.c: New file.
97796         * lib/unictype/pr_space.c: New file.
97797         * lib/unictype/pr_terminal_punctuation.c: New file.
97798         * lib/unictype/pr_test.c: New file.
97799         * lib/unictype/pr_titlecase.c: New file.
97800         * lib/unictype/pr_unassigned_code_value.c: New file.
97801         * lib/unictype/pr_unified_ideograph.c: New file.
97802         * lib/unictype/pr_uppercase.c: New file.
97803         * lib/unictype/pr_variation_selector.c: New file.
97804         * lib/unictype/pr_white_space.c: New file.
97805         * lib/unictype/pr_xid_continue.c: New file.
97806         * lib/unictype/pr_xid_start.c: New file.
97807         * lib/unictype/pr_zero_width.c: New file.
97808         * lib/unictype/scripts.c: New file.
97809         * lib/unictype/sy_c_ident.c: New file.
97810         * lib/unictype/sy_c_whitespace.c: New file.
97811         * lib/unictype/sy_java_ident.c: New file.
97812         * lib/unictype/sy_java_whitespace.c: New file.
97814         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
97815         Unicode 5.0.0.
97816         * lib/unictype/blocks.h: Likewise.
97817         * lib/unictype/categ_C.h: Likewise.
97818         * lib/unictype/categ_Cc.h: Likewise.
97819         * lib/unictype/categ_Cf.h: Likewise.
97820         * lib/unictype/categ_Cn.h: Likewise.
97821         * lib/unictype/categ_Co.h: Likewise.
97822         * lib/unictype/categ_Cs.h: Likewise.
97823         * lib/unictype/categ_L.h: Likewise.
97824         * lib/unictype/categ_Ll.h: Likewise.
97825         * lib/unictype/categ_Lm.h: Likewise.
97826         * lib/unictype/categ_Lo.h: Likewise.
97827         * lib/unictype/categ_Lt.h: Likewise.
97828         * lib/unictype/categ_Lu.h: Likewise.
97829         * lib/unictype/categ_M.h: Likewise.
97830         * lib/unictype/categ_Mc.h: Likewise.
97831         * lib/unictype/categ_Me.h: Likewise.
97832         * lib/unictype/categ_Mn.h: Likewise.
97833         * lib/unictype/categ_N.h: Likewise.
97834         * lib/unictype/categ_Nd.h: Likewise.
97835         * lib/unictype/categ_Nl.h: Likewise.
97836         * lib/unictype/categ_No.h: Likewise.
97837         * lib/unictype/categ_P.h: Likewise.
97838         * lib/unictype/categ_Pc.h: Likewise.
97839         * lib/unictype/categ_Pd.h: Likewise.
97840         * lib/unictype/categ_Pe.h: Likewise.
97841         * lib/unictype/categ_Pf.h: Likewise.
97842         * lib/unictype/categ_Pi.h: Likewise.
97843         * lib/unictype/categ_Po.h: Likewise.
97844         * lib/unictype/categ_Ps.h: Likewise.
97845         * lib/unictype/categ_S.h: Likewise.
97846         * lib/unictype/categ_Sc.h: Likewise.
97847         * lib/unictype/categ_Sk.h: Likewise.
97848         * lib/unictype/categ_Sm.h: Likewise.
97849         * lib/unictype/categ_So.h: Likewise.
97850         * lib/unictype/categ_Z.h: Likewise.
97851         * lib/unictype/categ_Zl.h: Likewise.
97852         * lib/unictype/categ_Zp.h: Likewise.
97853         * lib/unictype/categ_Zs.h: Likewise.
97854         * lib/unictype/categ_of.h: Likewise.
97855         * lib/unictype/combining.h: Likewise.
97856         * lib/unictype/ctype_alnum.h: Likewise.
97857         * lib/unictype/ctype_alpha.h: Likewise.
97858         * lib/unictype/ctype_blank.h: Likewise.
97859         * lib/unictype/ctype_cntrl.h: Likewise.
97860         * lib/unictype/ctype_digit.h: Likewise.
97861         * lib/unictype/ctype_graph.h: Likewise.
97862         * lib/unictype/ctype_lower.h: Likewise.
97863         * lib/unictype/ctype_print.h: Likewise.
97864         * lib/unictype/ctype_punct.h: Likewise.
97865         * lib/unictype/ctype_space.h: Likewise.
97866         * lib/unictype/ctype_upper.h: Likewise.
97867         * lib/unictype/ctype_xdigit.h: Likewise.
97868         * lib/unictype/decdigit.h: Likewise.
97869         * lib/unictype/digit.h: Likewise.
97870         * lib/unictype/mirror.h: Likewise.
97871         * lib/unictype/numeric.h: Likewise.
97872         * lib/unictype/pr_alphabetic.h: Likewise.
97873         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
97874         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
97875         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
97876         * lib/unictype/pr_bidi_block_separator.h: Likewise.
97877         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
97878         * lib/unictype/pr_bidi_common_separator.h: Likewise.
97879         * lib/unictype/pr_bidi_control.h: Likewise.
97880         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
97881         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
97882         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
97883         * lib/unictype/pr_bidi_european_digit.h: Likewise.
97884         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
97885         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
97886         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
97887         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
97888         * lib/unictype/pr_bidi_pdf.h: Likewise.
97889         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
97890         * lib/unictype/pr_bidi_whitespace.h: Likewise.
97891         * lib/unictype/pr_combining.h: Likewise.
97892         * lib/unictype/pr_composite.h: Likewise.
97893         * lib/unictype/pr_currency_symbol.h: Likewise.
97894         * lib/unictype/pr_dash.h: Likewise.
97895         * lib/unictype/pr_decimal_digit.h: Likewise.
97896         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
97897         * lib/unictype/pr_deprecated.h: Likewise.
97898         * lib/unictype/pr_diacritic.h: Likewise.
97899         * lib/unictype/pr_extender.h: Likewise.
97900         * lib/unictype/pr_format_control.h: Likewise.
97901         * lib/unictype/pr_grapheme_base.h: Likewise.
97902         * lib/unictype/pr_grapheme_extend.h: Likewise.
97903         * lib/unictype/pr_grapheme_link.h: Likewise.
97904         * lib/unictype/pr_hex_digit.h: Likewise.
97905         * lib/unictype/pr_hyphen.h: Likewise.
97906         * lib/unictype/pr_id_continue.h: Likewise.
97907         * lib/unictype/pr_id_start.h: Likewise.
97908         * lib/unictype/pr_ideographic.h: Likewise.
97909         * lib/unictype/pr_ids_binary_operator.h: Likewise.
97910         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
97911         * lib/unictype/pr_ignorable_control.h: Likewise.
97912         * lib/unictype/pr_iso_control.h: Likewise.
97913         * lib/unictype/pr_join_control.h: Likewise.
97914         * lib/unictype/pr_left_of_pair.h: Likewise.
97915         * lib/unictype/pr_line_separator.h: Likewise.
97916         * lib/unictype/pr_logical_order_exception.h: Likewise.
97917         * lib/unictype/pr_lowercase.h: Likewise.
97918         * lib/unictype/pr_math.h: Likewise.
97919         * lib/unictype/pr_non_break.h: Likewise.
97920         * lib/unictype/pr_not_a_character.h: Likewise.
97921         * lib/unictype/pr_numeric.h: Likewise.
97922         * lib/unictype/pr_other_alphabetic.h: Likewise.
97923         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
97924         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
97925         * lib/unictype/pr_other_id_continue.h: Likewise.
97926         * lib/unictype/pr_other_id_start.h: Likewise.
97927         * lib/unictype/pr_other_lowercase.h: Likewise.
97928         * lib/unictype/pr_other_math.h: Likewise.
97929         * lib/unictype/pr_other_uppercase.h: Likewise.
97930         * lib/unictype/pr_paired_punctuation.h: Likewise.
97931         * lib/unictype/pr_paragraph_separator.h: Likewise.
97932         * lib/unictype/pr_pattern_syntax.h: Likewise.
97933         * lib/unictype/pr_pattern_white_space.h: Likewise.
97934         * lib/unictype/pr_private_use.h: Likewise.
97935         * lib/unictype/pr_punctuation.h: Likewise.
97936         * lib/unictype/pr_quotation_mark.h: Likewise.
97937         * lib/unictype/pr_radical.h: Likewise.
97938         * lib/unictype/pr_sentence_terminal.h: Likewise.
97939         * lib/unictype/pr_soft_dotted.h: Likewise.
97940         * lib/unictype/pr_space.h: Likewise.
97941         * lib/unictype/pr_terminal_punctuation.h: Likewise.
97942         * lib/unictype/pr_titlecase.h: Likewise.
97943         * lib/unictype/pr_unassigned_code_value.h: Likewise.
97944         * lib/unictype/pr_unified_ideograph.h: Likewise.
97945         * lib/unictype/pr_uppercase.h: Likewise.
97946         * lib/unictype/pr_variation_selector.h: Likewise.
97947         * lib/unictype/pr_white_space.h: Likewise.
97948         * lib/unictype/pr_xid_continue.h: Likewise.
97949         * lib/unictype/pr_xid_start.h: Likewise.
97950         * lib/unictype/pr_zero_width.h: Likewise.
97951         * lib/unictype/scripts.h: Likewise.
97952         * lib/unictype/scripts_byname.gperf: Likewise.
97953         * lib/unictype/sy_c_ident.h: Likewise.
97954         * lib/unictype/sy_c_whitespace.h: Likewise.
97955         * lib/unictype/sy_java_ident.h: Likewise.
97956         * lib/unictype/sy_java_whitespace.h: Likewise.
97958         * lib/unictype/Makefile: New file.
97959         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
97960         glibc.
97961         * lib/unictype/3level.h: New file, copied from glibc.
97962         * lib/unictype/3levelbit.h: New file.
97964 2007-11-11  Bruno Haible  <bruno@clisp.org>
97966         * modules/gperf: New file.
97967         * modules/iconv_open (Depends-on): Add it.
97968         (Makefile.am): Remove the GPERF definition.
97970 2007-11-11  Bruno Haible  <bruno@clisp.org>
97972         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
97973         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
97975 2007-11-11  Bruno Haible  <bruno@clisp.org>
97977         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
97978         (usage): Remove function.
97980 2007-11-11  Bruno Haible  <bruno@clisp.org>
97982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
97983         gl_FUNC_CEILF_LIBS.
97984         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
97985         gl_FUNC_CEIL_LIBS.
97986         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
97987         gl_FUNC_CEILL_LIBS.
97988         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
97989         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
97990         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
97992 2007-11-11  Bruno Haible  <bruno@clisp.org>
97994         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
97995         roundf were declared but do not exist on functions.
97996         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
97997         roundl were declared but do not exist on functions.
97998         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
97999         HAVE_FLOORL_AND_CEILL, respectively.
98000         Needed for Sun C on Solaris 10.
98002 2007-11-11  Bruno Haible  <bruno@clisp.org>
98004         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98005         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98006         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98007         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98008         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98009         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98010         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98011         HAVE_DECL_ROUNDF.
98012         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98013         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98015         of HAVE_DECL_ROUND*.
98016         * modules/math (Makefile.am): Update.
98018 2007-11-10  Bruno Haible  <bruno@clisp.org>
98020         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98021         ptrdiff_t as m4/intl.m4.
98023 2007-11-10  Jim Meyering  <meyering@redhat.com>
98025         Avoid link failure for the argmatch test.
98026         * tests/test-argmatch.c (usage): Define function to avoid a link
98027         failure: argmatch_die requires a usage function.
98029 2007-11-09  Bruno Haible  <bruno@clisp.org>
98031         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98032         * doc/functions/vsnprintf.texi: Likewise.
98033         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98034         with a size argument < 2.
98036 2007-11-09  Bruno Haible  <bruno@clisp.org>
98038         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98039         buffer. Fixes an inefficiency introduced on 2007-11-03.
98041 2007-11-09  Bruno Haible  <bruno@clisp.org>
98043         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98044         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98046 2007-11-08  Jim Meyering  <meyering@redhat.com>
98048         Change cache variable name prefix "jm_" to "gl_" everywhere.
98049         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98050         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98051         * m4/uptime.m4: s/gl_/jm_/
98053 2007-11-07  Bruno Haible  <bruno@clisp.org>
98055         Update to GNU gettext 0.17.
98056         * m4/intl.m4: Update to GNU gettext 0.17.
98057         * m4/po.m4: Likewise.
98058         * modules/gettext (Files): Remove m4/ulonglong.m4.
98059         (configure.ac): Require gettext infrastructure from version 0.17.
98061 2007-11-06  Bruno Haible  <bruno@clisp.org>
98063         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98064         symbolic values are not defined in a public header.
98065         * lib/freadable.c (freadable) [QNX]: Likewise.
98066         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98067         * lib/freading.c (freading) [QNX]: Likewise.
98068         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98069         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98070         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98071         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98072         Reported by Alain Magloire.
98074         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98076 2007-11-05  Bruno Haible  <bruno@clisp.org>
98078         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98079         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98080         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98081         Reported by Eric Blake.
98083 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98084             Bruno Haible  <bruno@clisp.org>
98086         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98087         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98088         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98089         (malloc): Undefine also before including <stdlib.h>.
98090         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98091         Needed on OSF/1 4.0.
98093 2007-11-05  Jim Meyering  <meyering@redhat.com>
98095         git-version-gen: sync from coreutils.
98096         * build-aux/git-version-gen: Add comments.
98097         Change the first '-' to '.' in the snapshot version string,
98098         e.g., 6.9-377-08144 -> 6.9.377-08144
98099         Remove first parameter.
98100         Don't declare a version "-dirty" merely because a time
98101         stamp has changed.
98103 2007-11-04  Bruno Haible  <bruno@clisp.org>
98105         * lib/lock.h: Protect all macro definitions containing an 'if'
98106         statement through a "do { ... } while (0)".
98107         * lib/tls.h: Likewise.
98109 2007-11-04  Bruno Haible  <bruno@clisp.org>
98111         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98113 2007-11-04  Bruno Haible  <bruno@clisp.org>
98115         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98116         * modules/fprintf-posix (Depends-on): Add nocrash.
98117         * modules/snprintf-posix (Depends-on): Likewise.
98118         * modules/sprintf-posix (Depends-on): Likewise.
98119         * modules/vasnprintf-posix (Depends-on): Likewise.
98120         * modules/vasprintf-posix (Depends-on): Likewise.
98121         * modules/vfprintf-posix (Depends-on): Likewise.
98122         * modules/vsnprintf-posix (Depends-on): Likewise.
98123         * modules/vsprintf-posix (Depends-on): Likewise.
98124         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98125         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98126         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98127         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98128         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98129         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98130         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98132 2007-11-04  Bruno Haible  <bruno@clisp.org>
98134         * modules/nocrash: New file.
98135         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98136         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98138 2007-11-04  Bruno Haible  <bruno@clisp.org>
98140         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98141         precision handling.
98142         * tests/test-vasprintf-posix.c (test_function): Likewise.
98143         * tests/test-snprintf-posix.h (test_function): Likewise.
98144         * tests/test-sprintf-posix.h (test_function): Likewise.
98146         Fix *printf behaviour for large precisions on mingw and BeOS.
98147         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98148         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98150         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98151         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98152         gl_PRINTF_PRECISION and test its result. Invoke
98153         gl_PREREQ_VASNPRINTF_PRECISION.
98154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98161         * doc/functions/fprintf.texi: Update.
98162         * doc/functions/printf.texi: Update.
98163         * doc/functions/snprintf.texi: Update.
98164         * doc/functions/sprintf.texi: Update.
98165         * doc/functions/vfprintf.texi: Update.
98166         * doc/functions/vprintf.texi: Update.
98167         * doc/functions/vsnprintf.texi: Update.
98168         * doc/functions/vsprintf.texi: Update.
98170 2007-11-04  Bruno Haible  <bruno@clisp.org>
98172         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98174 2007-11-04  Bruno Haible  <bruno@clisp.org>
98176         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98177         Reported by Sylvain Beucler <beuc@gnu.org>.
98179 2007-11-03  Bruno Haible  <bruno@clisp.org>
98181         * tests/test-fprintf-posix2.sh: New file.
98182         * tests/test-fprintf-posix2.c: New file.
98183         * modules/fprintf-posix-tests (Files): Add them.
98184         (TESTS): Add test-fprintf-posix2.sh.
98185         (configure.ac): Check for getrlimit and setrlimit.
98186         (check_PROGRAMS): Add test-fprintf-posix2.
98188         * tests/test-printf-posix2.sh: New file.
98189         * tests/test-printf-posix2.c: New file.
98190         * modules/printf-posix-tests (Files): Add them.
98191         (TESTS): Add test-printf-posix2.sh.
98192         (configure.ac): Check for getrlimit and setrlimit.
98193         (check_PROGRAMS): Add test-printf-posix2.
98195         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98196         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98197         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98198         (decode_double): New function, copied from decode_long_double.
98199         (scale10_round_decimal_decoded): New function, extracted from
98200         scale10_round_decimal_long_double.
98201         (scale10_round_decimal_long_double): Use it.
98202         (scale10_round_decimal_double): New function.
98203         (floorlog10): New function.
98204         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98206         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98207         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98208         gl_PRINTF_ENOMEM and test its result. Invoke
98209         gl_PREREQ_VASNPRINTF_ENOMEM.
98210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98217         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
98218         * modules/snprintf-posix (Depends-on): Likewise.
98219         * modules/sprintf-posix (Depends-on): Likewise.
98220         * modules/vasnprintf-posix (Depends-on): Likewise.
98221         * modules/vasprintf-posix (Depends-on): Likewise.
98222         * modules/vfprintf-posix (Depends-on): Likewise.
98223         * modules/vsnprintf-posix (Depends-on): Likewise.
98224         * modules/vsprintf-posix (Depends-on): Likewise.
98225         * doc/functions/fprintf.texi: Update.
98226         * doc/functions/printf.texi: Update.
98227         * doc/functions/snprintf.texi: Update.
98228         * doc/functions/sprintf.texi: Update.
98229         * doc/functions/vfprintf.texi: Update.
98230         * doc/functions/vprintf.texi: Update.
98231         * doc/functions/vsnprintf.texi: Update.
98232         * doc/functions/vsprintf.texi: Update.
98234 2007-11-03  Bruno Haible  <bruno@clisp.org>
98236         * modules/frexp-nolibm-tests: New file.
98238         * modules/frexp-nolibm: New file.
98239         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
98241 2007-11-03  Bruno Haible  <bruno@clisp.org>
98243         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
98244         value is C99 compliant.
98245         Needed for OSF/1 5.1.
98247 2007-11-03  Bruno Haible  <bruno@clisp.org>
98249         Fix out-of-memory handling of vasnprintf.
98250         * lib/printf-parse.c: Include <errno.h>.
98251         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98252         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98253         is already set.
98255 2007-11-02  Eric Blake  <ebb9@byu.net>
98257         Fix tests on cygwin.
98258         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98260 2007-11-01  Bruno Haible  <bruno@clisp.org>
98262         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98263         warning.
98264         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98265         needed for POSIX compatibility.
98267 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98269         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98270         for compatibility with GNU.
98272 2007-11-01  Bruno Haible  <bruno@clisp.org>
98274         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98275         (putenv): Renamed from rpl_putenv. Change argument type from
98276         'const char *' to 'char *'.
98277         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98278         of defining putenv in config.h, just set REPLACE_PUTENV.
98279         * modules/putenv (Depends-on): Add stdlib.
98280         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98281         (Include): Use <stdlib.h>.
98282         * lib/stdlib.in.h (putenv): New declaration.
98283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98284         REPLACE_PUTENV.
98285         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98286         REPLACE_PUTENV.
98287         Needed for MacOS X 10.5.0.
98288         Reported by Peter O'Gorman <peter@pogma.com>.
98290 2007-11-01  Jim Meyering  <meyering@redhat.com>
98292         Treat an empty date string exactly like "0".
98293         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98294         if the remaining date string (to be parsed) is empty, use "0".
98295         Reported by Mischa Molhoek and discussed in this thread:
98296         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98298 2007-10-31  Bruno Haible  <bruno@clisp.org>
98300         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98301         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98302         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98303         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98304         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98305         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98307 2007-10-31  Bruno Haible  <bruno@clisp.org>
98309         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98310         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98311         (AC_TYPE_LONG_LONG_INT): Use it.
98312         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98313         it as well.
98314         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98315         to m4/longlong.m4.
98316         * modules/stdint (Files): Remove m4/ulonglong.m4.
98317         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98318         m4/ulonglong.m4.
98319         * modules/strtoumax (Files): Likewise.
98321 2007-10-30  Bruno Haible  <bruno@clisp.org>
98323         * modules/xvasprintf-posix: New file.
98324         Suggested by Eric Blake.
98326 2007-10-30  Bruno Haible  <bruno@clisp.org>
98328         * modules/xprintf-posix-tests: New file.
98329         * tests/test-xprintf-posix.sh: New file.
98330         * tests/test-xprintf-posix.c: New file.
98331         * tests/test-xfprintf-posix.c: New file.
98333         * modules/xprintf-posix: New file.
98335 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98337         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98338         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98339         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98341 2007-10-29  Bruno Haible  <bruno@clisp.org>
98343         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98344         contain the special marker '_cv_'.
98345         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98346         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98347         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98348         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98349         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98350         Reported by Ralf Wildenhues.
98352 2007-10-29  Bruno Haible  <bruno@clisp.org>
98354         * gnulib-tool (func_import): When --lgpl is not specified, set
98355         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98356         GPLv3.
98357         Reported by Simon Josefsson.
98359 2007-10-28  Bruno Haible  <bruno@clisp.org>
98361         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98362         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98363         HAVE_DECL_ISFINITE.
98364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98365         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98366         HAVE_DECL_ISFINITE.
98368 2007-10-28  Bruno Haible  <bruno@clisp.org>
98370         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98371         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98373 2007-10-28  Bruno Haible  <bruno@clisp.org>
98375         Fix link errors with Sun C 5.0 on Solaris 10.
98376         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98377         function is declared but not present in the compiler's libm.
98378         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98379         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98380         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
98381         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
98382         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
98383         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
98384         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
98385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98386         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
98387         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
98388         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
98389         HAVE_DECL_FLOORL.
98391 2007-10-28  Bruno Haible  <bruno@clisp.org>
98393         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
98394         gl_FUNC_FLOORL. Cache the result.
98395         (gl_FUNC_FLOORL): Use it.
98396         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
98397         gl_FUNC_CEILL. Cache the result.
98398         (gl_FUNC_CEILL): Use it.
98400         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
98401         gl_FUNC_FLOOR. Cache the result.
98402         (gl_FUNC_FLOOR): Use it.
98403         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
98404         gl_FUNC_CEIL. Cache the result.
98405         (gl_FUNC_CEIL): Use it.
98407         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
98408         gl_FUNC_FLOORF. Cache the result.
98409         (gl_FUNC_FLOORF): Use it.
98410         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
98411         gl_FUNC_CEILF. Cache the result.
98412         (gl_FUNC_CEILF): Use it.
98414 2007-10-28  Bruno Haible  <bruno@clisp.org>
98416         * gnulib-tool: Allow specifying the LGPL version number through
98417         --lgpl=2 or --lgpl=3.
98418         (func_usage): Document --lgpl with argument.
98419         Handle --lgpl=... arguments.
98420         (func_import): Recognize also gl_LGPL calls with an argument. When
98421         --lgpl=2 is used and the module's license is just LGPL, report an
98422         error. Set sed_transform_lib_file according to the lgpl variable. In
98423         the generated files, use --lgpl or gl_LGPL invocations with argument,
98424         if necessary.
98425         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
98426         an LGPv2+ license.
98427         * doc/gnulib-tool.texi (Modified imports): Update explanation of
98428         gl_LGPL macro.
98430 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98431             Bruno Haible  <bruno@clisp.org>
98433         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
98434         (u16_uctomb_aux): Likewise.
98435         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
98436         !HAVE_INLINE.
98437         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
98439 2007-10-28  Bruno Haible  <bruno@clisp.org>
98441         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
98442         Invoke AM_GETTEXT_OPTION if it exists.
98443         * modules/vasprintf: Likewise.
98444         * modules/verror: Likewise.
98445         * modules/xprintf: Likewise.
98446         * modules/xvasprintf: Likewise.
98448 2007-10-27  Ben Pfaff  <blp@gnu.org>
98450         * lib/math.in.h: Define isfinite macro and prototypes for
98451         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
98452         implementations.
98453         * m4/math_h.m4: New substitutions for isfinite module.
98454         * lib/isfinite.c: New file.
98455         * m4/isfinite.m4: New file.
98456         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
98457         * modules/isfinite: New file.
98458         * modules/isfinite-tests: New file.
98459         * tests/tests-isfinite.c: New file.
98460         * doc/functions/isfinite.texi: Mention isfinite module.
98461         * MODULES.html.sh: Mention new module.
98463 2007-10-27  Ben Pfaff  <blp@gnu.org>
98465         Ralf Wildenhues reported that Tru64 4.0D declares the round
98466         functions but does not have definitions.
98467         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
98468         cannot be found in any library, set the output variable to
98469         "missing" instead of "".
98470         * m4/round.m4: Also use our substitute if we cannot find round in
98471         any library, even if it is declared.
98472         * m4/roundf.m4: Likewise for roundf.
98473         * m4/roundl.m4: Likewise for roundl.
98474         * lib/math.in.h: Undefine roundf, round, roundl before defining
98475         their replacements, to allow for hypothetical systems where these
98476         may be defined as macros but not available in libraries.
98478 2007-10-27  Bruno Haible  <bruno@clisp.org>
98480         * doc/gnulib.texi: Invoke @firstparagraphindent.
98481         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
98482         changes in gnulib.
98483         (Source changes): New section.
98485 2007-10-26  Bruno Haible  <bruno@clisp.org>
98487         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
98488         borrowed from autoconf.
98490 2007-10-26  Bruno Haible  <bruno@clisp.org>
98492         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
98493         strerror returned the empty string. Needed on HP-UX 11.00.
98495 2007-10-24  Micah Cowan  <micah@cowan.name>
98497         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
98498         * build-aux/bootstrap: Remove support for now-unnecessary option,
98499         --cvs-user, and envvars CVS_USER, CVS_RSH.
98501 2007-10-24  Jim Meyering  <meyering@redhat.com>
98503         Avoid diagnostics from sha1sum when there is no cached checksum.
98504         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
98505         if the po.s1 file hasn't been created yet.
98507         * build-aux/bootstrap: Sync from coreutils:
98508         2007-10-24  Jim Meyering  <meyering@redhat.com>
98509         Get gnulib from the git repository, not from an obsolete cvs one.
98510         * build-aux/bootstrap: Suggestion from Micah Cowan.
98511         2007-10-04  Jim Meyering  <jim@meyering.net>
98512         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
98513         (update_po_files): Work also when there are no .po files in po/.
98515 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98517         * README: Append ".git" to git and cg examples.
98518         Problem reported by Benoit Sigoure.
98520 2007-10-23  Micah Cowan  <micah@cowan.name>
98522         * users.txt: Add wget.
98524 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98526         Fix linking of some unistdio tests on FreeBSD.
98527         * modules/unistdio/u16-vsnprintf-tests
98528         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
98529         * modules/unistdio/u16-vsprintf-tests
98530         (test_u16_vsnprintf1_LDADD): Likewise.
98531         * modules/unistdio/u32-vsnprintf-tests
98532         (test_u32_vsnprintf1_LDADD): Likewise.
98533         * modules/unistdio/u32-vsprintf-tests
98534         (test_u32_vsprintf1_LDADD): Likewise.
98535         * modules/unistdio/u8-vsnprintf-tests
98536         (test_u8_vsnprintf1_LDADD): Likewise.
98537         * modules/unistdio/u8-vsprintf-tests
98538         (test_u8_vsprintf1_LDADD): Likewise.
98539         * modules/unistdio/ulc-vsnprintf-tests
98540         (test_ulc_vsnprintf1_LDADD): Likewise.
98541         * modules/unistdio/ulc-vsprintf-tests
98542         (test_ulc_vsprintf1_LDADD): Likewise.
98544         Fix linking of some uniconv tests on FreeBSD.
98545         * modules/uniconv/u16-conv-from-enc-tests
98546         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
98547         * modules/uniconv/u16-conv-to-enc-tests
98548         (test_u16_conv_to_enc_LDADD): Likewise.
98549         * modules/uniconv/u16-strconv-from-enc-tests
98550         (test_u16_strconv_from_enc_LDADD): Likewise.
98551         * modules/uniconv/u16-strconv-to-enc-tests
98552         (test_u16_strconv_to_enc_LDADD): Likewise.
98553         * modules/uniconv/u32-conv-from-enc-tests
98554         (test_u32_conv_from_enc_LDADD): Likewise.
98555         * modules/uniconv/u32-conv-to-enc-tests
98556         (test_u32_conv_to_enc_LDADD): Likewise.
98557         * modules/uniconv/u32-strconv-from-enc-tests
98558         (test_u32_strconv_from_enc_LDADD): Likewise.
98559         * modules/uniconv/u32-strconv-to-enc-tests
98560         (test_u32_strconv_to_enc_LDADD): Likewise.
98561         * modules/uniconv/u8-conv-from-enc-tests
98562         (test_u8_conv_from_enc_LDADD): Likewise.
98563         * modules/uniconv/u8-conv-to-enc-tests
98564         (test_u8_conv_to_enc_LDADD): Likewise.
98565         * modules/uniconv/u8-strconv-from-enc-tests
98566         (test_u8_strconv_from_enc_LDADD): Likewise.
98567         * modules/uniconv/u8-strconv-to-enc-tests
98568         (test_u8_strconv_to_enc_LDADD): Likewise.
98570 2007-10-22  Bruno Haible  <bruno@clisp.org>
98572         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
98573         size.
98575 2007-10-22  Eric Blake  <ebb9@byu.net>
98577         Tweak x*printf documentation.
98578         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
98579         variable name and comments.
98580         Suggested by Bruno Haible.
98582 2007-10-22  Bruno Haible  <bruno@clisp.org>
98584         * lib/acl.c (copy_acl): Fix file name in comment.
98586 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98588         Fix Tru64 problem with stdbool.h.
98589         * lib/stdbool.in.h (false, true):
98590         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
98591         Don't declare as an enum in this situation; it runs afoul of Tru64.
98592         Problem reported by Steven M. Schweda in
98593         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
98595 2007-10-22  Eric Blake  <ebb9@byu.net>
98597         Also wrap vf?printf.
98598         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
98599         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
98600         (xvprintf, xvfprintf): New functions.
98602 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98604         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
98605         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
98607         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
98608         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
98610 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98612         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
98613         by Bruno Haible.
98615 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98617         * lib/getloadavg.c
98618         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
98619         Undef `sys' after including sys/table.h, for Tru64 4.0D.
98621         * tests/test-i-ring.c: Work for C89.
98623 2007-10-22  Bruno Haible  <bruno@clisp.org>
98625         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
98626         -1u, in preprocessor expression, so that we don't test for the bug
98627         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
98628         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
98630 2007-10-22  Eric Blake  <ebb9@byu.net>
98632         * tests/test-yesno.sh: Silence stderr during test.
98634 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98636         * modules/crypto/gc-camellia: New file.
98638         * m4/gc-camellia.m4: New file.
98640         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
98642         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
98644 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98646         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
98647         --help to stdout.  Reported by sms@antinode.org (Steven
98648         M. Schweda).
98650 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98652         * users.txt: Fix link to libksba.
98654 2007-10-21  Ben Pfaff  <blp@gnu.org>
98656         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
98657         round.c roundf implementation that depends on floorf and ceilf to
98658         be tested unconditionally.
98660 2007-10-21  Ben Pfaff  <blp@gnu.org>
98662         * m4/check-libm-func.m4: Removed.
98663         * m4/check-math-lib.m4: New file.
98664         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
98665         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
98666         definition and lack of AC_LIBOBJ([roundf]).
98667         * m4/roundl.m4: Ditto, and similarly for roundl.
98668         * modules/round: Reference new m4 file.
98669         * modules/roundf: Ditto.
98670         * modules/roundl: Ditto.
98671         * tests/test-round2.c (main): Use ROUND instead of round.
98672         Bug report from Bruno Haible.
98674 2007-10-21  Bruno Haible  <bruno@clisp.org>
98676         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
98677         context.
98679 2007-10-21  Bruno Haible  <bruno@clisp.org>
98681         * tests/test-wcwidth.c (main): Allow negative result for some control
98682         characters.
98684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
98685         Needed on OSF/1 5.1.
98687 2007-10-21  Bruno Haible  <bruno@clisp.org>
98689         * tests/test-floorf1.c: Include isnanf.h.
98690         (main): Use isnanf() instead of isnan().
98691         * tests/test-ceilf1.c: Include isnanf.h.
98692         (main): Use isnanf() instead of isnan().
98693         * tests/test-truncf1.c: Include isnanf.h.
98694         (main): Use isnanf() instead of isnan().
98695         * tests/test-roundf1.c: Include isnanf.h.
98696         (main): Use isnanf() instead of isnan().
98698 2007-10-21  Eric Blake  <ebb9@byu.net>
98700         * users.txt: Update URL for m4.
98702 2007-10-21  Bruno Haible  <bruno@clisp.org>
98704         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
98706 2007-10-21  Bruno Haible  <bruno@clisp.org>
98708         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
98709         Git's management files if the CVS files are not present.
98711 2007-10-20  Bruno Haible  <bruno@clisp.org>
98713         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
98714         gcc-3.4.x.
98716 2007-10-20  Ben Pfaff  <blp@gnu.org>
98718         * lib/math.in.h: Declare round, roundf, roundl if we are providing
98719         implementations.
98720         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
98721         * lib/round.c: New file.
98722         * lib/roundf.c: New file.
98723         * lib/roundl.c: New file.
98724         * m4/round.m4: New file.
98725         * m4/roundf.m4: New file.
98726         * m4/roundl.m4: New file.
98727         * m4/check-libm-func-m4: New file.
98728         * modules/math: Replace round, roundf, roundl related @VARS@ in
98729         math.in.h.
98730         * modules/round: New file.
98731         * modules/round-tests: New file.
98732         * modules/roundf: New file.
98733         * modules/roundf-tests: New file.
98734         * modules/roundl: New file.
98735         * modules/roundl-tests: New file.
98736         * tests/test-round1.c: New file.
98737         * tests/test-round2.c: New file.
98738         * tests/test-roundf1.c: New file.
98739         * tests/test-roundf2.c: New file.
98740         * tests/test-roundl.c: New file.
98741         * doc/functions/round.texi: Mention round module.
98742         * doc/functions/roundf.texi: Mention roundf module.
98743         * doc/functions/roundl.texi: Mention roundl module.
98744         * MODULES.html.sh: Mention new modules.
98745         Thanks to Bruno Haible for suggestions.
98747 2007-10-20  Jim Meyering  <meyering@redhat.com>
98749         * lib/xprintf.c: Include <config.h> unconditionally.
98751         Change xprintf's license to GPL.
98752         * modules/xprintf (License): s/LGPL/GPL/, since this module
98753         depends on modules (exit and exitfail) which are GPL.
98754         Suggestion from Bruno Haible.
98756         xprintf fixes.
98757         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
98758         Use a clearer diagnostic.
98759         Patch from Bruno Haible.
98761 2007-10-20  Bruno Haible  <bruno@clisp.org>
98763         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
98764         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
98765         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98767 2007-10-20  Bruno Haible  <bruno@clisp.org>
98769         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
98770         precision in the comparison result > x - 1 or similar.
98771         * tests/test-ceilf2.c (correct_result_p): Likewise.
98772         * tests/test-truncf2.c (correct_result_p): Likewise.
98773         * tests/test-trunc2.c (correct_result_p): Likewise.
98774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98776 2007-10-20  Bruno Haible  <bruno@clisp.org>
98778         * modules/ceil: New file.
98779         * m4/ceil.m4: New file.
98780         * doc/functions/ceil.texi: Mention the 'ceil' module.
98782 2007-10-20  Bruno Haible  <bruno@clisp.org>
98784         * modules/floor: New file.
98785         * m4/floor.m4: New file.
98786         * doc/functions/floor.texi: Mention the 'floor' module.
98788 2007-10-20  Bruno Haible  <bruno@clisp.org>
98790         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
98791         of %a.
98792         * modules/floorf-tests (Depends-on): Likewise.
98793         * modules/truncf-tests (Depends-on): Likewise.
98794         * modules/trunc-tests (Depends-on): Likewise.
98795         Reported by Ben Pfaff.
98797 2007-10-19  Jim Meyering  <meyering@redhat.com>
98799         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
98800         Don't bother testing specific errno values.  Just test ferror.
98802         New module: xprintf
98803         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
98805 2007-10-19  Bruno Haible  <bruno@clisp.org>
98807         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
98808         syntax.
98809         * modules/javaexec (Makefile.am): Likewise.
98810         * modules/relocatable-prog (Makefile.am): Likewise.
98811         Suggested by Jim Meyering.
98813 2007-10-18  Bruno Haible  <bruno@clisp.org>
98815         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
98816         Reported by Jim Meyering.
98818 2007-10-18  Eric Blake  <ebb9@byu.net>
98820         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
98822 2007-10-18  Bruno Haible  <bruno@clisp.org>
98824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
98825         the format string into writable memory. Needed in Fortify conditions.
98827 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
98828             Bruno Haible  <bruno@clisp.org>
98830         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
98831         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
98832         * modules/trim (Depends-on): Add mbchar.
98833         (configure.ac): Add gl_FUNC_MBRTOWC.
98834         (Makefile.am): Augment lib_SOURCES.
98836 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
98838         Modify glob.c to use fstatat and dirfd, to simplify it.
98839         Suggested by Eric Blake.
98840         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
98841         Don't include <stdbool.h>; not used.
98842         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
98843         (link_exists_p): Simplify implementation, since we can now assume
98844         dirfd and fstatat.
98845         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
98847 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98849         * gnulib-tool (func_get_dependencies): Fix sed script to
98850         match only tests.
98852 2007-10-17  Bruno Haible  <bruno@clisp.org>
98854         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
98855         allow locale names without encoding suffix.
98856         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98857         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98859 2007-10-16  Bruno Haible  <bruno@clisp.org>
98861         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
98862         * lib/getgroups.c (getgroups): Likewise.
98863         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
98865 2007-10-16  Bruno Haible  <bruno@clisp.org>
98867         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
98868         * modules/malloc-posix (License): Likewise.
98869         * modules/realloc-posix (License): Likewise.
98870         * modules/calloc-posix (License): Likewise.
98871         * modules/intprops (License): Change from GPL to LGPL, with
98872         Paul Eggert's approval.
98874 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
98876         Merge glibc changes into lib/glob.c.
98878         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
98879         2007-10-15 04:59:03 UTC.  Here are the changes:
98881         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
98883         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
98885         * lib/glob.c: Add some branch prediction throughout.
98887         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
98889         [BZ #5103]
98890         * lib/glob.c (glob): Recognize patterns starting \/.
98892         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
98894         [BZ #3996]
98895         * lib/glob.c (attribute_hidden): Define if not defined.
98896         (glob): Unescape dirname, filename or username when needed and not
98897         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
98898         is NULL.  Handle unescaped [ in pattern without closing ].
98899         Don't pass GLOB_CHECK down to recursive glob for directories.
98900         (__glob_pattern_type): New function.
98901         (__glob_pattern_p): Implement using __glob_pattern_type.
98902         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
98903         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
98904         Remove unreachable code.
98906         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
98908         * lib/glob.c (glob_in_dir): Add some comments and asserts to
98909         explain why there are no leaks.
98911         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
98913         [BZ #3253]
98914         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
98915         time, rather allocate increasingly bigger arrays of pointers, if
98916         possible with alloca, if too large with malloc.
98918 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
98920         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
98921         Problem reported by H.Merijn Brand in
98922         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
98923         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
98924         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
98926 2007-10-15  Bruno Haible  <bruno@clisp.org>
98928         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
98929         with explicit rpl_ prefix.
98930         * lib/fopen.c (fopen): Likewise.
98931         * lib/freopen.c (freopen): Likewise.
98932         * lib/iconv.c (iconv): Likewise.
98933         * lib/iconv_close.c (iconv_close): Likewise.
98935 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98937         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
98939 2007-10-15  Bruno Haible  <bruno@clisp.org>
98941         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
98942         <stddef.h> instead of <stdlib.h> since we only need NULL.
98943         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98945 2007-10-15  Bruno Haible  <bruno@clisp.org>
98947         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
98948         Replace paragraph talking about LIBOBJS.
98949         Reported by Colin Watson <cjwatson@debian.org>.
98951 2007-10-15  Bruno Haible  <bruno@clisp.org>
98953         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
98954         <stdlib.h> before using NULL.
98956 2007-10-15  Simon Josefsson  <simon@josefsson.org>
98958         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
98959         Reported by Albert Chin <china@thewrittenword.com>.
98961 2007-10-14  Bruno Haible  <bruno@clisp.org>
98963         * modules/iconv_open-utf-tests: New file.
98964         * tests/test-iconv-utf.c: New file.
98966         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
98967         * modules/iconv_open-utf: New file.
98968         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
98969         (iconv, iconv_close): New declarations.
98970         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
98971         be defined.
98972         (iconv_open): Add special handling of conversion between UTF-8 and
98973         UTF-{16,32}{BE,LE}.
98974         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
98975         * lib/iconv_close.c: New file.
98976         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
98977         gl_FUNC_ICONV_OPEN.
98978         (gl_FUNC_ICONV_OPEN): Use it.
98979         (gl_FUNC_ICONV_OPEN_UTF): New macro.
98980         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
98981         and REPLACE_ICONV_UTF.
98982         * modules/iconv_open (Depends-on): Add c-strcase.
98983         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
98984         ICONV_CONST.
98985         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
98987 2007-10-13  Albert Chin  <china@thewrittenword.com>
98988             Bruno Haible  <bruno@clisp.org>
98990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
98991         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
98993 2007-10-13  Bruno Haible  <bruno@clisp.org>
98995         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
98996         defined, use the ISO C99 inline semantics.
98997         * lib/argp.h (ARGP_EI): Likewise.
98999 2007-10-13  Bruno Haible  <bruno@clisp.org>
99001         Handle 'inline' change in gcc 4.3.0.
99002         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99003         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99004         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99005         argp_fmtstream_point): Disable 'extern' declaration if the function
99006         definition is going to be provided inline.
99007         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99008         semantics, not the ISO C99 inline semantics.
99009         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99010         'extern' declaration if the function definition is going to be provided
99011         inline.
99012         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99013         the GNU C inline semantics, not the ISO C99 inline semantics. With
99014         GCC 4.2, avoid a warning.
99016 2007-10-13  Bruno Haible  <bruno@clisp.org>
99018         * lib/freading.h (freading): Enable the use of __freading for
99019         glibc >= 2.7.
99020         * lib/freading.c (freading): Likewise.
99022 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99024         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99025         "warning: C99 inline functions are not supported; using GNU89".
99027 2007-10-12  Bruno Haible  <bruno@clisp.org>
99029         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99030         of 2.
99031         * tests/test-ceilf2.c: New file.
99032         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99034         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99035         * modules/ceilf-tests: Update.
99037 2007-10-12  Bruno Haible  <bruno@clisp.org>
99039         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99040         of 2.
99041         * tests/test-floorf2.c: New file.
99042         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99044         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99045         * modules/floorf-tests: Update.
99047 2007-10-12  Bruno Haible  <bruno@clisp.org>
99049         * tests/test-trunc2.c: New file.
99050         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99052         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99053         * modules/trunc-tests: Update.
99055 2007-10-12  Bruno Haible  <bruno@clisp.org>
99057         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99058         of 2.
99059         * tests/test-truncf2.c: New file.
99060         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99062         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99063         * modules/truncf-tests: Update.
99065 2007-10-11  Eric Blake  <ebb9@byu.net>
99067         Don't claim strerror is broken on Interix.
99068         * doc/functions/strerror.texi (strerror): Known broken systems are
99069         now Solaris 8, and not Interix.
99070         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99071         Interix on cross-compile.
99072         Reported by Martin Koeppe in
99073         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99075 2007-10-11  Bruno Haible  <bruno@clisp.org>
99077         * modules/i-ring-tests: New file.
99078         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99079         instead of assert.
99081 2007-10-11  Bruno Haible  <bruno@clisp.org>
99083         * modules/filenamecat-tests: New file.
99084         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99085         * lib/filenamecat.c: Remove test code.
99087 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99089         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99091         * lib/strerror.c: Include <string.h> always, to test interface,
99092         and to remove the need for the dummy.
99093         Include intprops.h to compute width instead of doing it ourselves
99094         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99095         (strerror): Define it to return NULL if there's no system strerror.
99096         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99097         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99098         ancient pre-strerror Unix systems well any more.  Saying "unknown
99099         system error" is enough.
99100         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99101         simpler strerror.c implementation.
99102         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99103         Simplify the tests to reflect the simpler strerror implementation.
99104         * modules/strerror (Depends-on): Add intprops.
99106 2007-10-09  Eric Blake  <ebb9@byu.net>
99108         Silence test-fpending.
99109         * modules/fpending-tests (Files): Add wrapper script.
99110         * tests/test-fpending.sh: New file.
99112 2007-10-09  Bruno Haible  <bruno@clisp.org>
99114         * MODULES.html.sh (func_module): Don't create a hyperlink for
99115         function names like 'printf_frexp'.
99116         (Misc): Add crc, memxor.
99117         (Characteristics of floating types): New section.
99118         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99119         isnanf-nolibm, signbit, trunc, truncf, truncl.
99120         (Enhancements for ISO C 99 functions): New subsection Input/output.
99121         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99122         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99123         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99124         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99125         (Enhancements for POSIX:2001 functions): Add chdir-long.
99126         (File system functions): Add areadlink, chdir-safer, read-file.
99127         Remove cycle-check.
99128         (File system as inode set): New section.
99129         (Date and time): Add gethrxtime.
99130         (Multithreading): Add openmp.
99131         (Internationalization functions): Add localename.
99132         (Unicode string functions): Add unistr/u*-mbsnlen.
99133         (Support for maintaining and releasing projects): Add git-version-gen.
99134         (Lone files): Remove directories.
99136 2007-10-08  Ben Pfaff  <blp@gnu.org>
99138         * lib/xmalloca.h: Fix typo in comment.
99140 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99142         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99143         when avoiding problems with integer overflow.  Use a portable test
99144         instead.
99146 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99148         * modules/dummy (License): Change to LGPLv2+.
99149         * modules/float (License): Likewise
99150         * modules/realloc (License): Likewise
99151         * modules/stdlib (License): Likewise
99153 2007-10-07  Bruno Haible  <bruno@clisp.org>
99155         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99156         * floor.c (TWO_MANT_DIG): Likewise.
99157         * ceil.c (TWO_MANT_DIG): Likewise.
99158         Reported by Ben Pfaff.
99160 2007-10-07  Bruno Haible  <bruno@clisp.org>
99162         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99163         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99164         * lib/frexp.c (FUNC): Likewise.
99165         * lib/printf-frexp.h (printf_frexp): Likewise.
99166         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99167         * lib/printf-frexp.c (FUNC): Likewise.
99168         Suggested by Jim Meyering.
99170 2007-10-07  Jim Meyering  <meyering@redhat.com>
99172         Make xnanosleep's integer overflow test more robust.
99173         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99174         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99176 2007-10-07  Bruno Haible  <bruno@clisp.org>
99178         * NEWS: Mention the license change.
99180         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99181         abbreviations in the modules files.
99183         Change copyright notice from GPLv2+ to GPLv3+.
99184         * README: Change copyright notice.
99185         * MODULES.html.sh: Likewise.
99186         * build-aux/bootstrap.conf: Likewise.
99187         * build-aux/config.libpath: Likewise.
99188         * build-aux/csharpcomp.sh.in: Likewise.
99189         * build-aux/csharpexec.sh.in: Likewise.
99190         * build-aux/install-reloc: Likewise.
99191         * build-aux/javacomp.sh.in: Likewise.
99192         * build-aux/javaexec.sh.in: Likewise.
99193         * build-aux/ldd.sh.in: Likewise.
99194         * build-aux/reloc-ldflags: Likewise.
99195         * build-aux/relocatable.sh.in: Likewise.
99196         * build-aux/x-to-1.in: Likewise.
99197         * check-module: Likewise.
99198         * config/srclistvars.sh: Likewise.
99199         * gnulib-tool: Likewise.
99200         * lib/acl-internal.h: Likewise.
99201         * lib/acl.c: Likewise.
99202         * lib/acl.h: Likewise.
99203         * lib/acl_entries.c: Likewise.
99204         * lib/areadlink-with-size.c: Likewise.
99205         * lib/areadlink.c: Likewise.
99206         * lib/areadlink.h: Likewise.
99207         * lib/argmatch.c: Likewise.
99208         * lib/argmatch.h: Likewise.
99209         * lib/argp-ba.c: Likewise.
99210         * lib/argp-eexst.c: Likewise.
99211         * lib/argp-fmtstream.c: Likewise.
99212         * lib/argp-fmtstream.h: Likewise.
99213         * lib/argp-fs-xinl.c: Likewise.
99214         * lib/argp-help.c: Likewise.
99215         * lib/argp-namefrob.h: Likewise.
99216         * lib/argp-parse.c: Likewise.
99217         * lib/argp-pin.c: Likewise.
99218         * lib/argp-pv.c: Likewise.
99219         * lib/argp-pvh.c: Likewise.
99220         * lib/argp-xinl.c: Likewise.
99221         * lib/argp.h: Likewise.
99222         * lib/at-func.c: Likewise.
99223         * lib/atanl.c: Likewise.
99224         * lib/backupfile.c: Likewise.
99225         * lib/backupfile.h: Likewise.
99226         * lib/basename.c: Likewise.
99227         * lib/binary-io.h: Likewise.
99228         * lib/byteswap.in.h: Likewise.
99229         * lib/c-stack.c: Likewise.
99230         * lib/c-stack.h: Likewise.
99231         * lib/c-strcasestr.c: Likewise.
99232         * lib/c-strcasestr.h: Likewise.
99233         * lib/c-strstr.c: Likewise.
99234         * lib/c-strstr.h: Likewise.
99235         * lib/c-strtod.c: Likewise.
99236         * lib/calloc.c: Likewise.
99237         * lib/canon-host.c: Likewise.
99238         * lib/canon-host.h: Likewise.
99239         * lib/canonicalize-lgpl.c: Likewise.
99240         * lib/canonicalize.c: Likewise.
99241         * lib/canonicalize.h: Likewise.
99242         * lib/ceil.c: Likewise.
99243         * lib/ceilf.c: Likewise.
99244         * lib/ceill.c: Likewise.
99245         * lib/chdir-long.c: Likewise.
99246         * lib/chdir-long.h: Likewise.
99247         * lib/chdir-safer.c: Likewise.
99248         * lib/chdir-safer.h: Likewise.
99249         * lib/chown.c: Likewise.
99250         * lib/classpath.c: Likewise.
99251         * lib/classpath.h: Likewise.
99252         * lib/clean-temp.c: Likewise.
99253         * lib/clean-temp.h: Likewise.
99254         * lib/cloexec.c: Likewise.
99255         * lib/close-stream.c: Likewise.
99256         * lib/closein.c: Likewise.
99257         * lib/closein.h: Likewise.
99258         * lib/closeout.c: Likewise.
99259         * lib/closeout.h: Likewise.
99260         * lib/concat-filename.c: Likewise.
99261         * lib/copy-file.c: Likewise.
99262         * lib/copy-file.h: Likewise.
99263         * lib/count-one-bits.h: Likewise.
99264         * lib/crc.c: Likewise.
99265         * lib/crc.h: Likewise.
99266         * lib/creat-safer.c: Likewise.
99267         * lib/csharpcomp.c: Likewise.
99268         * lib/csharpcomp.h: Likewise.
99269         * lib/csharpexec.c: Likewise.
99270         * lib/csharpexec.h: Likewise.
99271         * lib/cycle-check.c: Likewise.
99272         * lib/cycle-check.h: Likewise.
99273         * lib/diacrit.c: Likewise.
99274         * lib/diacrit.h: Likewise.
99275         * lib/diffseq.h: Likewise.
99276         * lib/dirchownmod.c: Likewise.
99277         * lib/dirent.in.h: Likewise.
99278         * lib/dirfd.c: Likewise.
99279         * lib/dirfd.h: Likewise.
99280         * lib/dirname.c: Likewise.
99281         * lib/dirname.h: Likewise.
99282         * lib/dummy.c: Likewise.
99283         * lib/dup-safer.c: Likewise.
99284         * lib/dup2.c: Likewise.
99285         * lib/eealloc.h: Likewise.
99286         * lib/error.c: Likewise.
99287         * lib/error.h: Likewise.
99288         * lib/euidaccess.c: Likewise.
99289         * lib/exclude.c: Likewise.
99290         * lib/exclude.h: Likewise.
99291         * lib/execute.c: Likewise.
99292         * lib/execute.h: Likewise.
99293         * lib/exitfail.c: Likewise.
99294         * lib/exitfail.h: Likewise.
99295         * lib/expl.c: Likewise.
99296         * lib/fatal-signal.c: Likewise.
99297         * lib/fatal-signal.h: Likewise.
99298         * lib/fbufmode.c: Likewise.
99299         * lib/fbufmode.h: Likewise.
99300         * lib/fchdir.c: Likewise.
99301         * lib/fchmodat.c: Likewise.
99302         * lib/fchownat.c: Likewise.
99303         * lib/fcntl--.h: Likewise.
99304         * lib/fcntl-safer.h: Likewise.
99305         * lib/fcntl.in.h: Likewise.
99306         * lib/fd-safer.c: Likewise.
99307         * lib/fflush.c: Likewise.
99308         * lib/file-has-acl.c: Likewise.
99309         * lib/file-set.c: Likewise.
99310         * lib/file-type.c: Likewise.
99311         * lib/file-type.h: Likewise.
99312         * lib/fileblocks.c: Likewise.
99313         * lib/filemode.c: Likewise.
99314         * lib/filemode.h: Likewise.
99315         * lib/filename.h: Likewise.
99316         * lib/filenamecat.c: Likewise.
99317         * lib/filenamecat.h: Likewise.
99318         * lib/findprog.c: Likewise.
99319         * lib/findprog.h: Likewise.
99320         * lib/float.in.h: Likewise.
99321         * lib/floor.c: Likewise.
99322         * lib/floorf.c: Likewise.
99323         * lib/floorl.c: Likewise.
99324         * lib/fopen-safer.c: Likewise.
99325         * lib/fopen.c: Likewise.
99326         * lib/fpending.c: Likewise.
99327         * lib/fpending.h: Likewise.
99328         * lib/fprintf.c: Likewise.
99329         * lib/fprintftime.h: Likewise.
99330         * lib/fpucw.h: Likewise.
99331         * lib/fpurge.c: Likewise.
99332         * lib/fpurge.h: Likewise.
99333         * lib/freadable.c: Likewise.
99334         * lib/freadable.h: Likewise.
99335         * lib/freadahead.c: Likewise.
99336         * lib/freadahead.h: Likewise.
99337         * lib/freading.c: Likewise.
99338         * lib/freading.h: Likewise.
99339         * lib/free.c: Likewise.
99340         * lib/freopen.c: Likewise.
99341         * lib/frexp.c: Likewise.
99342         * lib/frexpl.c: Likewise.
99343         * lib/fseek.c: Likewise.
99344         * lib/fseterr.c: Likewise.
99345         * lib/fseterr.h: Likewise.
99346         * lib/fstatat.c: Likewise.
99347         * lib/fstrcmp.c: Likewise.
99348         * lib/fstrcmp.h: Likewise.
99349         * lib/fsusage.c: Likewise.
99350         * lib/fsusage.h: Likewise.
99351         * lib/ftell.c: Likewise.
99352         * lib/ftello.c: Likewise.
99353         * lib/fts-cycle.c: Likewise.
99354         * lib/fts.c: Likewise.
99355         * lib/fts_.h: Likewise.
99356         * lib/full-read.c: Likewise.
99357         * lib/full-read.h: Likewise.
99358         * lib/full-write.c: Likewise.
99359         * lib/full-write.h: Likewise.
99360         * lib/fwritable.c: Likewise.
99361         * lib/fwritable.h: Likewise.
99362         * lib/fwriteerror.c: Likewise.
99363         * lib/fwriteerror.h: Likewise.
99364         * lib/fwriting.c: Likewise.
99365         * lib/fwriting.h: Likewise.
99366         * lib/gcd.c: Likewise.
99367         * lib/gcd.h: Likewise.
99368         * lib/getcwd.c: Likewise.
99369         * lib/getdate.h: Likewise.
99370         * lib/getdate.y: Likewise.
99371         * lib/getdomainname.c: Likewise.
99372         * lib/getdomainname.h: Likewise.
99373         * lib/getgroups.c: Likewise.
99374         * lib/gethostname.c: Likewise.
99375         * lib/gethrxtime.c: Likewise.
99376         * lib/gethrxtime.h: Likewise.
99377         * lib/getloadavg.c: Likewise.
99378         * lib/getndelim2.c: Likewise.
99379         * lib/getndelim2.h: Likewise.
99380         * lib/getnline.c: Likewise.
99381         * lib/getnline.h: Likewise.
99382         * lib/getopt.c: Likewise.
99383         * lib/getopt.in.h: Likewise.
99384         * lib/getopt1.c: Likewise.
99385         * lib/getopt_int.h: Likewise.
99386         * lib/getpagesize.h: Likewise.
99387         * lib/getsubopt.c: Likewise.
99388         * lib/gettime.c: Likewise.
99389         * lib/getugroups.c: Likewise.
99390         * lib/getugroups.h: Likewise.
99391         * lib/getusershell.c: Likewise.
99392         * lib/gl_anyavltree_list1.h: Likewise.
99393         * lib/gl_anyavltree_list2.h: Likewise.
99394         * lib/gl_anyhash_list1.h: Likewise.
99395         * lib/gl_anyhash_list2.h: Likewise.
99396         * lib/gl_anylinked_list1.h: Likewise.
99397         * lib/gl_anylinked_list2.h: Likewise.
99398         * lib/gl_anyrbtree_list1.h: Likewise.
99399         * lib/gl_anyrbtree_list2.h: Likewise.
99400         * lib/gl_anytree_list1.h: Likewise.
99401         * lib/gl_anytree_list2.h: Likewise.
99402         * lib/gl_anytree_oset.h: Likewise.
99403         * lib/gl_anytreehash_list1.h: Likewise.
99404         * lib/gl_anytreehash_list2.h: Likewise.
99405         * lib/gl_array_list.c: Likewise.
99406         * lib/gl_array_list.h: Likewise.
99407         * lib/gl_array_oset.c: Likewise.
99408         * lib/gl_array_oset.h: Likewise.
99409         * lib/gl_avltree_list.c: Likewise.
99410         * lib/gl_avltree_list.h: Likewise.
99411         * lib/gl_avltree_oset.c: Likewise.
99412         * lib/gl_avltree_oset.h: Likewise.
99413         * lib/gl_avltreehash_list.c: Likewise.
99414         * lib/gl_avltreehash_list.h: Likewise.
99415         * lib/gl_carray_list.c: Likewise.
99416         * lib/gl_carray_list.h: Likewise.
99417         * lib/gl_linked_list.c: Likewise.
99418         * lib/gl_linked_list.h: Likewise.
99419         * lib/gl_linkedhash_list.c: Likewise.
99420         * lib/gl_linkedhash_list.h: Likewise.
99421         * lib/gl_list.c: Likewise.
99422         * lib/gl_list.h: Likewise.
99423         * lib/gl_oset.c: Likewise.
99424         * lib/gl_oset.h: Likewise.
99425         * lib/gl_rbtree_list.c: Likewise.
99426         * lib/gl_rbtree_list.h: Likewise.
99427         * lib/gl_rbtree_oset.c: Likewise.
99428         * lib/gl_rbtree_oset.h: Likewise.
99429         * lib/gl_rbtreehash_list.c: Likewise.
99430         * lib/gl_rbtreehash_list.h: Likewise.
99431         * lib/gl_sublist.c: Likewise.
99432         * lib/gl_sublist.h: Likewise.
99433         * lib/group-member.c: Likewise.
99434         * lib/group-member.h: Likewise.
99435         * lib/hard-locale.c: Likewise.
99436         * lib/hard-locale.h: Likewise.
99437         * lib/hash-pjw.c: Likewise.
99438         * lib/hash-pjw.h: Likewise.
99439         * lib/hash-triple.c: Likewise.
99440         * lib/hash.c: Likewise.
99441         * lib/hash.h: Likewise.
99442         * lib/human.c: Likewise.
99443         * lib/human.h: Likewise.
99444         * lib/i-ring.c: Likewise.
99445         * lib/i-ring.h: Likewise.
99446         * lib/idcache.c: Likewise.
99447         * lib/imaxabs.c: Likewise.
99448         * lib/imaxdiv.c: Likewise.
99449         * lib/inet_pton.c: Likewise.
99450         * lib/inet_pton.h: Likewise.
99451         * lib/intprops.h: Likewise.
99452         * lib/inttostr.c: Likewise.
99453         * lib/inttostr.h: Likewise.
99454         * lib/inttypes.in.h: Likewise.
99455         * lib/isapipe.c: Likewise.
99456         * lib/isdir.c: Likewise.
99457         * lib/isnan.c: Likewise.
99458         * lib/isnan.h: Likewise.
99459         * lib/isnanf.c: Likewise.
99460         * lib/isnanf.h: Likewise.
99461         * lib/isnanl-nolibm.h: Likewise.
99462         * lib/isnanl.c: Likewise.
99463         * lib/isnanl.h: Likewise.
99464         * lib/javacomp.c: Likewise.
99465         * lib/javacomp.h: Likewise.
99466         * lib/javaexec.c: Likewise.
99467         * lib/javaexec.h: Likewise.
99468         * lib/javaversion.c: Likewise.
99469         * lib/javaversion.h: Likewise.
99470         * lib/javaversion.java: Likewise.
99471         * lib/lbrkprop.h: Likewise.
99472         * lib/lchmod.h: Likewise.
99473         * lib/lchown.c: Likewise.
99474         * lib/ldexpl.c: Likewise.
99475         * lib/linebreak.c: Likewise.
99476         * lib/linebreak.h: Likewise.
99477         * lib/linebuffer.c: Likewise.
99478         * lib/linebuffer.h: Likewise.
99479         * lib/locale.in.h: Likewise.
99480         * lib/logl.c: Likewise.
99481         * lib/long-options.c: Likewise.
99482         * lib/long-options.h: Likewise.
99483         * lib/lstat.c: Likewise.
99484         * lib/lstat.h: Likewise.
99485         * lib/math.in.h: Likewise.
99486         * lib/mbchar.c: Likewise.
99487         * lib/mbchar.h: Likewise.
99488         * lib/mbfile.h: Likewise.
99489         * lib/mbiter.h: Likewise.
99490         * lib/mbscasecmp.c: Likewise.
99491         * lib/mbscasestr.c: Likewise.
99492         * lib/mbschr.c: Likewise.
99493         * lib/mbscspn.c: Likewise.
99494         * lib/mbslen.c: Likewise.
99495         * lib/mbsncasecmp.c: Likewise.
99496         * lib/mbsnlen.c: Likewise.
99497         * lib/mbspbrk.c: Likewise.
99498         * lib/mbspcasecmp.c: Likewise.
99499         * lib/mbsrchr.c: Likewise.
99500         * lib/mbssep.c: Likewise.
99501         * lib/mbsspn.c: Likewise.
99502         * lib/mbsstr.c: Likewise.
99503         * lib/mbstok_r.c: Likewise.
99504         * lib/mbswidth.c: Likewise.
99505         * lib/mbswidth.h: Likewise.
99506         * lib/mbuiter.h: Likewise.
99507         * lib/memcasecmp.c: Likewise.
99508         * lib/memcasecmp.h: Likewise.
99509         * lib/memchr.c: Likewise.
99510         * lib/memcmp.c: Likewise.
99511         * lib/memcoll.c: Likewise.
99512         * lib/memcoll.h: Likewise.
99513         * lib/memcpy.c: Likewise.
99514         * lib/memrchr.c: Likewise.
99515         * lib/mkancesdirs.c: Likewise.
99516         * lib/mkdir-p.c: Likewise.
99517         * lib/mkdir-p.h: Likewise.
99518         * lib/mkdir.c: Likewise.
99519         * lib/mkdirat.c: Likewise.
99520         * lib/mkdtemp.c: Likewise.
99521         * lib/mkstemp-safer.c: Likewise.
99522         * lib/mkstemp.c: Likewise.
99523         * lib/modechange.c: Likewise.
99524         * lib/modechange.h: Likewise.
99525         * lib/mountlist.c: Likewise.
99526         * lib/mountlist.h: Likewise.
99527         * lib/mpsort.c: Likewise.
99528         * lib/nanosleep.c: Likewise.
99529         * lib/obstack.c: Likewise.
99530         * lib/obstack.h: Likewise.
99531         * lib/open-safer.c: Likewise.
99532         * lib/open.c: Likewise.
99533         * lib/openat-die.c: Likewise.
99534         * lib/openat-priv.h: Likewise.
99535         * lib/openat-proc.c: Likewise.
99536         * lib/openat.c: Likewise.
99537         * lib/openat.h: Likewise.
99538         * lib/pagealign_alloc.c: Likewise.
99539         * lib/pagealign_alloc.h: Likewise.
99540         * lib/physmem.c: Likewise.
99541         * lib/physmem.h: Likewise.
99542         * lib/pipe-safer.c: Likewise.
99543         * lib/pipe.c: Likewise.
99544         * lib/pipe.h: Likewise.
99545         * lib/posixtm.c: Likewise.
99546         * lib/posixtm.h: Likewise.
99547         * lib/posixver.c: Likewise.
99548         * lib/printf-frexp.c: Likewise.
99549         * lib/printf-frexp.h: Likewise.
99550         * lib/printf-frexpl.c: Likewise.
99551         * lib/printf-frexpl.h: Likewise.
99552         * lib/printf.c: Likewise.
99553         * lib/progname.c: Likewise.
99554         * lib/progname.h: Likewise.
99555         * lib/progreloc.c: Likewise.
99556         * lib/putenv.c: Likewise.
99557         * lib/quote.c: Likewise.
99558         * lib/quote.h: Likewise.
99559         * lib/quotearg.c: Likewise.
99560         * lib/quotearg.h: Likewise.
99561         * lib/raise.c: Likewise.
99562         * lib/readline.c: Likewise.
99563         * lib/readline.h: Likewise.
99564         * lib/readlink.c: Likewise.
99565         * lib/readtokens.c: Likewise.
99566         * lib/readtokens.h: Likewise.
99567         * lib/readtokens0.c: Likewise.
99568         * lib/readtokens0.h: Likewise.
99569         * lib/readutmp.c: Likewise.
99570         * lib/readutmp.h: Likewise.
99571         * lib/realloc.c: Likewise.
99572         * lib/relocwrapper.c: Likewise.
99573         * lib/rename-dest-slash.c: Likewise.
99574         * lib/rename.c: Likewise.
99575         * lib/rmdir.c: Likewise.
99576         * lib/rpmatch.c: Likewise.
99577         * lib/safe-read.c: Likewise.
99578         * lib/safe-read.h: Likewise.
99579         * lib/safe-write.c: Likewise.
99580         * lib/safe-write.h: Likewise.
99581         * lib/same-inode.h: Likewise.
99582         * lib/same.c: Likewise.
99583         * lib/same.h: Likewise.
99584         * lib/save-cwd.c: Likewise.
99585         * lib/save-cwd.h: Likewise.
99586         * lib/savedir.c: Likewise.
99587         * lib/savedir.h: Likewise.
99588         * lib/savewd.c: Likewise.
99589         * lib/savewd.h: Likewise.
99590         * lib/search.in.h: Likewise.
99591         * lib/setenv.c: Likewise.
99592         * lib/setenv.h: Likewise.
99593         * lib/settime.c: Likewise.
99594         * lib/sh-quote.c: Likewise.
99595         * lib/sh-quote.h: Likewise.
99596         * lib/sig2str.c: Likewise.
99597         * lib/sig2str.h: Likewise.
99598         * lib/signal.in.h: Likewise.
99599         * lib/signbitd.c: Likewise.
99600         * lib/signbitf.c: Likewise.
99601         * lib/signbitl.c: Likewise.
99602         * lib/sigprocmask.c: Likewise.
99603         * lib/sincosl.c: Likewise.
99604         * lib/sleep.c: Likewise.
99605         * lib/sprintf.c: Likewise.
99606         * lib/sqrtl.c: Likewise.
99607         * lib/stat-time.h: Likewise.
99608         * lib/stdio--.h: Likewise.
99609         * lib/stdio-safer.h: Likewise.
99610         * lib/stdlib--.h: Likewise.
99611         * lib/stdlib-safer.h: Likewise.
99612         * lib/stdlib.in.h: Likewise.
99613         * lib/stpcpy.c: Likewise.
99614         * lib/stpncpy.c: Likewise.
99615         * lib/strchrnul.c: Likewise.
99616         * lib/strcspn.c: Likewise.
99617         * lib/strerror.c: Likewise.
99618         * lib/strftime.c: Likewise.
99619         * lib/strftime.h: Likewise.
99620         * lib/striconveh.c: Likewise.
99621         * lib/striconveh.h: Likewise.
99622         * lib/striconveha.c: Likewise.
99623         * lib/striconveha.h: Likewise.
99624         * lib/stripslash.c: Likewise.
99625         * lib/strnlen1.c: Likewise.
99626         * lib/strnlen1.h: Likewise.
99627         * lib/strtod.c: Likewise.
99628         * lib/strtoimax.c: Likewise.
99629         * lib/strtok_r.c: Likewise.
99630         * lib/strtol.c: Likewise.
99631         * lib/strtoll.c: Likewise.
99632         * lib/strtoul.c: Likewise.
99633         * lib/strtoull.c: Likewise.
99634         * lib/sysexits.in.h: Likewise.
99635         * lib/tempname.c: Likewise.
99636         * lib/tempname.h: Likewise.
99637         * lib/timespec.h: Likewise.
99638         * lib/tls.c: Likewise.
99639         * lib/tls.h: Likewise.
99640         * lib/tmpdir.c: Likewise.
99641         * lib/tmpdir.h: Likewise.
99642         * lib/tmpfile-safer.c: Likewise.
99643         * lib/tmpfile.c: Likewise.
99644         * lib/trigl.c: Likewise.
99645         * lib/trigl.h: Likewise.
99646         * lib/trim.c: Likewise.
99647         * lib/trim.h: Likewise.
99648         * lib/trunc.c: Likewise.
99649         * lib/truncf.c: Likewise.
99650         * lib/truncl.c: Likewise.
99651         * lib/tsearch.c: Likewise.
99652         * lib/unicodeio.c: Likewise.
99653         * lib/unicodeio.h: Likewise.
99654         * lib/unistd--.h: Likewise.
99655         * lib/unistd-safer.h: Likewise.
99656         * lib/unistdio/ulc-fprintf.c: Likewise.
99657         * lib/unistdio/ulc-vfprintf.c: Likewise.
99658         * lib/unlinkdir.c: Likewise.
99659         * lib/unlinkdir.h: Likewise.
99660         * lib/unlocked-io.h: Likewise.
99661         * lib/unsetenv.c: Likewise.
99662         * lib/userspec.c: Likewise.
99663         * lib/utime.c: Likewise.
99664         * lib/utimecmp.c: Likewise.
99665         * lib/utimecmp.h: Likewise.
99666         * lib/utimens.c: Likewise.
99667         * lib/verify.h: Likewise.
99668         * lib/verror.c: Likewise.
99669         * lib/verror.h: Likewise.
99670         * lib/version-etc-fsf.c: Likewise.
99671         * lib/version-etc.c: Likewise.
99672         * lib/version-etc.h: Likewise.
99673         * lib/vfprintf.c: Likewise.
99674         * lib/vprintf.c: Likewise.
99675         * lib/vsprintf.c: Likewise.
99676         * lib/w32spawn.h: Likewise.
99677         * lib/wait-process.c: Likewise.
99678         * lib/wait-process.h: Likewise.
99679         * lib/wcwidth.c: Likewise.
99680         * lib/write-any-file.c: Likewise.
99681         * lib/xalloc-die.c: Likewise.
99682         * lib/xalloc.h: Likewise.
99683         * lib/xasprintf.c: Likewise.
99684         * lib/xgetcwd.c: Likewise.
99685         * lib/xgetcwd.h: Likewise.
99686         * lib/xgetdomainname.c: Likewise.
99687         * lib/xgetdomainname.h: Likewise.
99688         * lib/xgethostname.c: Likewise.
99689         * lib/xmalloc.c: Likewise.
99690         * lib/xmalloca.c: Likewise.
99691         * lib/xmalloca.h: Likewise.
99692         * lib/xmemcoll.c: Likewise.
99693         * lib/xnanosleep.c: Likewise.
99694         * lib/xreadlink.c: Likewise.
99695         * lib/xreadlink.h: Likewise.
99696         * lib/xsetenv.c: Likewise.
99697         * lib/xsetenv.h: Likewise.
99698         * lib/xstriconv.c: Likewise.
99699         * lib/xstriconv.h: Likewise.
99700         * lib/xstrndup.c: Likewise.
99701         * lib/xstrndup.h: Likewise.
99702         * lib/xstrtod.c: Likewise.
99703         * lib/xstrtod.h: Likewise.
99704         * lib/xstrtol-error.c: Likewise.
99705         * lib/xstrtol.c: Likewise.
99706         * lib/xstrtol.h: Likewise.
99707         * lib/xtime.h: Likewise.
99708         * lib/xvasprintf.c: Likewise.
99709         * lib/xvasprintf.h: Likewise.
99710         * lib/yesno.c: Likewise.
99711         * lib/yesno.h: Likewise.
99712         * posix-modules: Likewise.
99713         * tests/test-alloca-opt.c: Likewise.
99714         * tests/test-arcfour.c: Likewise.
99715         * tests/test-arctwo.c: Likewise.
99716         * tests/test-argmatch.c: Likewise.
99717         * tests/test-argp-2.sh: Likewise.
99718         * tests/test-argp.c: Likewise.
99719         * tests/test-arpa_inet.c: Likewise.
99720         * tests/test-array_list.c: Likewise.
99721         * tests/test-array_oset.c: Likewise.
99722         * tests/test-atexit.c: Likewise.
99723         * tests/test-avltree_list.c: Likewise.
99724         * tests/test-avltree_oset.c: Likewise.
99725         * tests/test-avltreehash_list.c: Likewise.
99726         * tests/test-base64.c: Likewise.
99727         * tests/test-binary-io.c: Likewise.
99728         * tests/test-byteswap.c: Likewise.
99729         * tests/test-c-ctype.c: Likewise.
99730         * tests/test-c-strcasecmp.c: Likewise.
99731         * tests/test-c-strcasestr.c: Likewise.
99732         * tests/test-c-strncasecmp.c: Likewise.
99733         * tests/test-c-strstr.c: Likewise.
99734         * tests/test-canonicalize-lgpl.c: Likewise.
99735         * tests/test-canonicalize.c: Likewise.
99736         * tests/test-carray_list.c: Likewise.
99737         * tests/test-ceilf.c: Likewise.
99738         * tests/test-ceill.c: Likewise.
99739         * tests/test-count-one-bits.c: Likewise.
99740         * tests/test-crc.c: Likewise.
99741         * tests/test-dirname.c: Likewise.
99742         * tests/test-fbufmode.c: Likewise.
99743         * tests/test-fcntl.c: Likewise.
99744         * tests/test-fflush.c: Likewise.
99745         * tests/test-floorf.c: Likewise.
99746         * tests/test-floorl.c: Likewise.
99747         * tests/test-fopen.c: Likewise.
99748         * tests/test-fprintf-posix.c: Likewise.
99749         * tests/test-fprintf-posix.h: Likewise.
99750         * tests/test-fpurge.c: Likewise.
99751         * tests/test-freadable.c: Likewise.
99752         * tests/test-freadahead.c: Likewise.
99753         * tests/test-freading.c: Likewise.
99754         * tests/test-freopen.c: Likewise.
99755         * tests/test-frexp.c: Likewise.
99756         * tests/test-frexpl.c: Likewise.
99757         * tests/test-fseek.c: Likewise.
99758         * tests/test-fseeko.c: Likewise.
99759         * tests/test-fseterr.c: Likewise.
99760         * tests/test-fstrcmp.c: Likewise.
99761         * tests/test-ftell.c: Likewise.
99762         * tests/test-ftello.c: Likewise.
99763         * tests/test-fwritable.c: Likewise.
99764         * tests/test-fwriting.c: Likewise.
99765         * tests/test-getaddrinfo.c: Likewise.
99766         * tests/test-getpass.c: Likewise.
99767         * tests/test-gettimeofday.c: Likewise.
99768         * tests/test-hmac-md5.c: Likewise.
99769         * tests/test-hmac-sha1.c: Likewise.
99770         * tests/test-iconv.c: Likewise.
99771         * tests/test-iconvme.c: Likewise.
99772         * tests/test-inttypes.c: Likewise.
99773         * tests/test-isnan.c: Likewise.
99774         * tests/test-isnanf.c: Likewise.
99775         * tests/test-isnanl-nolibm.c: Likewise.
99776         * tests/test-isnanl.c: Likewise.
99777         * tests/test-isnanl.h: Likewise.
99778         * tests/test-ldexpl.c: Likewise.
99779         * tests/test-linked_list.c: Likewise.
99780         * tests/test-linkedhash_list.c: Likewise.
99781         * tests/test-locale.c: Likewise.
99782         * tests/test-localename.c: Likewise.
99783         * tests/test-lock.c: Likewise.
99784         * tests/test-lseek.c: Likewise.
99785         * tests/test-malloca.c: Likewise.
99786         * tests/test-math.c: Likewise.
99787         * tests/test-mbscasecmp.c: Likewise.
99788         * tests/test-mbscasestr1.c: Likewise.
99789         * tests/test-mbscasestr2.c: Likewise.
99790         * tests/test-mbscasestr3.c: Likewise.
99791         * tests/test-mbscasestr4.c: Likewise.
99792         * tests/test-mbschr.c: Likewise.
99793         * tests/test-mbscspn.c: Likewise.
99794         * tests/test-mbsncasecmp.c: Likewise.
99795         * tests/test-mbspbrk.c: Likewise.
99796         * tests/test-mbspcasecmp.c: Likewise.
99797         * tests/test-mbsrchr.c: Likewise.
99798         * tests/test-mbsspn.c: Likewise.
99799         * tests/test-mbsstr1.c: Likewise.
99800         * tests/test-mbsstr2.c: Likewise.
99801         * tests/test-mbsstr3.c: Likewise.
99802         * tests/test-md5.c: Likewise.
99803         * tests/test-memmem.c: Likewise.
99804         * tests/test-netinet_in.c: Likewise.
99805         * tests/test-open.c: Likewise.
99806         * tests/test-printf-frexp.c: Likewise.
99807         * tests/test-printf-frexpl.c: Likewise.
99808         * tests/test-printf-posix.c: Likewise.
99809         * tests/test-printf-posix.h: Likewise.
99810         * tests/test-rbtree_list.c: Likewise.
99811         * tests/test-rbtree_oset.c: Likewise.
99812         * tests/test-rbtreehash_list.c: Likewise.
99813         * tests/test-read-file.c: Likewise.
99814         * tests/test-rijndael.c: Likewise.
99815         * tests/test-search.c: Likewise.
99816         * tests/test-signbit.c: Likewise.
99817         * tests/test-sleep.c: Likewise.
99818         * tests/test-snprintf-posix.c: Likewise.
99819         * tests/test-snprintf-posix.h: Likewise.
99820         * tests/test-snprintf.c: Likewise.
99821         * tests/test-sprintf-posix.c: Likewise.
99822         * tests/test-sprintf-posix.h: Likewise.
99823         * tests/test-stat-time.c: Likewise.
99824         * tests/test-stdbool.c: Likewise.
99825         * tests/test-stdint.c: Likewise.
99826         * tests/test-stdio.c: Likewise.
99827         * tests/test-stdlib.c: Likewise.
99828         * tests/test-stpncpy.c: Likewise.
99829         * tests/test-strcasestr.c: Likewise.
99830         * tests/test-striconv.c: Likewise.
99831         * tests/test-striconveh.c: Likewise.
99832         * tests/test-striconveha.c: Likewise.
99833         * tests/test-string.c: Likewise.
99834         * tests/test-sys_select.c: Likewise.
99835         * tests/test-sys_socket.c: Likewise.
99836         * tests/test-sys_stat.c: Likewise.
99837         * tests/test-sys_time.c: Likewise.
99838         * tests/test-sysexits.c: Likewise.
99839         * tests/test-time.c: Likewise.
99840         * tests/test-tls.c: Likewise.
99841         * tests/test-trunc.c: Likewise.
99842         * tests/test-truncf.c: Likewise.
99843         * tests/test-truncl.c: Likewise.
99844         * tests/test-unistd.c: Likewise.
99845         * tests/test-vasnprintf-posix.c: Likewise.
99846         * tests/test-vasnprintf-posix2.c: Likewise.
99847         * tests/test-vasnprintf.c: Likewise.
99848         * tests/test-vasprintf-posix.c: Likewise.
99849         * tests/test-vasprintf.c: Likewise.
99850         * tests/test-verify.c: Likewise.
99851         * tests/test-vfprintf-posix.c: Likewise.
99852         * tests/test-vprintf-posix.c: Likewise.
99853         * tests/test-vsnprintf-posix.c: Likewise.
99854         * tests/test-vsnprintf.c: Likewise.
99855         * tests/test-vsprintf-posix.c: Likewise.
99856         * tests/test-wchar.c: Likewise.
99857         * tests/test-wctype.c: Likewise.
99858         * tests/test-wcwidth.c: Likewise.
99859         * tests/test-xstrtol.c: Likewise.
99860         * tests/test-xvasprintf.c: Likewise.
99861         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
99862         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
99863         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99864         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99865         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99866         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
99867         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99868         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99869         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99870         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
99871         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99872         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99873         * tests/uniname/test-uninames.c: Likewise.
99874         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
99875         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
99876         * tests/unistdio/test-u16-printf1.h: Likewise.
99877         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
99878         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
99879         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
99880         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
99881         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
99882         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
99883         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
99884         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
99885         * tests/unistdio/test-u32-printf1.h: Likewise.
99886         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
99887         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
99888         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
99889         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
99890         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
99891         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
99892         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
99893         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
99894         * tests/unistdio/test-u8-printf1.h: Likewise.
99895         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
99896         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
99897         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
99898         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
99899         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
99900         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
99901         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
99902         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
99903         * tests/unistdio/test-ulc-printf1.h: Likewise.
99904         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
99905         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
99906         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
99907         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
99908         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
99909         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
99910         * tests/uniwidth/test-u16-strwidth.c: Likewise.
99911         * tests/uniwidth/test-u16-width.c: Likewise.
99912         * tests/uniwidth/test-u32-strwidth.c: Likewise.
99913         * tests/uniwidth/test-u32-width.c: Likewise.
99914         * tests/uniwidth/test-u8-strwidth.c: Likewise.
99915         * tests/uniwidth/test-u8-width.c: Likewise.
99916         * tests/uniwidth/test-uc_width.c: Likewise.
99917         * config/srclist-update: Likewise.
99918         (fixlicense): Update to GPLv3+.
99920         Change copyright notice from LGPLv2.1+ to LGPLv3+.
99921         * tests/test-tsearch.c: Change copyright notice.
99923         Change copyright notice from LGPLv2.0+ to LGPLv3+.
99924         * lib/c-strcaseeq.h: Change copyright notice.
99925         * lib/streq.h: Likewise.
99926         * lib/uniconv.h: Likewise.
99927         * lib/uniconv/u-conv-from-enc.h: Likewise.
99928         * lib/uniconv/u-conv-to-enc.h: Likewise.
99929         * lib/uniconv/u-strconv-from-enc.h: Likewise.
99930         * lib/uniconv/u-strconv-to-enc.h: Likewise.
99931         * lib/uniconv/u16-conv-from-enc.c: Likewise.
99932         * lib/uniconv/u16-conv-to-enc.c: Likewise.
99933         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
99934         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
99935         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
99936         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
99937         * lib/uniconv/u32-conv-from-enc.c: Likewise.
99938         * lib/uniconv/u32-conv-to-enc.c: Likewise.
99939         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
99940         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
99941         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
99942         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
99943         * lib/uniconv/u8-conv-from-enc.c: Likewise.
99944         * lib/uniconv/u8-conv-to-enc.c: Likewise.
99945         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
99946         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
99947         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
99948         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
99949         * lib/uniname.h: Likewise.
99950         * lib/uniname/uniname.c: Likewise.
99951         * lib/unistdio.h: Likewise.
99952         * lib/unistdio/u-asnprintf.h: Likewise.
99953         * lib/unistdio/u-asprintf.h: Likewise.
99954         * lib/unistdio/u-printf-args.c: Likewise.
99955         * lib/unistdio/u-printf-args.h: Likewise.
99956         * lib/unistdio/u-printf-parse.h: Likewise.
99957         * lib/unistdio/u-snprintf.h: Likewise.
99958         * lib/unistdio/u-sprintf.h: Likewise.
99959         * lib/unistdio/u-vasprintf.h: Likewise.
99960         * lib/unistdio/u-vsnprintf.h: Likewise.
99961         * lib/unistdio/u-vsprintf.h: Likewise.
99962         * lib/unistdio/u16-asnprintf.c: Likewise.
99963         * lib/unistdio/u16-asprintf.c: Likewise.
99964         * lib/unistdio/u16-printf-parse.c: Likewise.
99965         * lib/unistdio/u16-snprintf.c: Likewise.
99966         * lib/unistdio/u16-sprintf.c: Likewise.
99967         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
99968         * lib/unistdio/u16-u16-asprintf.c: Likewise.
99969         * lib/unistdio/u16-u16-snprintf.c: Likewise.
99970         * lib/unistdio/u16-u16-sprintf.c: Likewise.
99971         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
99972         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
99973         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
99974         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
99975         * lib/unistdio/u16-vasnprintf.c: Likewise.
99976         * lib/unistdio/u16-vasprintf.c: Likewise.
99977         * lib/unistdio/u16-vsnprintf.c: Likewise.
99978         * lib/unistdio/u16-vsprintf.c: Likewise.
99979         * lib/unistdio/u32-asnprintf.c: Likewise.
99980         * lib/unistdio/u32-asprintf.c: Likewise.
99981         * lib/unistdio/u32-printf-parse.c: Likewise.
99982         * lib/unistdio/u32-snprintf.c: Likewise.
99983         * lib/unistdio/u32-sprintf.c: Likewise.
99984         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
99985         * lib/unistdio/u32-u32-asprintf.c: Likewise.
99986         * lib/unistdio/u32-u32-snprintf.c: Likewise.
99987         * lib/unistdio/u32-u32-sprintf.c: Likewise.
99988         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
99989         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
99990         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
99991         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
99992         * lib/unistdio/u32-vasnprintf.c: Likewise.
99993         * lib/unistdio/u32-vasprintf.c: Likewise.
99994         * lib/unistdio/u32-vsnprintf.c: Likewise.
99995         * lib/unistdio/u32-vsprintf.c: Likewise.
99996         * lib/unistdio/u8-asnprintf.c: Likewise.
99997         * lib/unistdio/u8-asprintf.c: Likewise.
99998         * lib/unistdio/u8-printf-parse.c: Likewise.
99999         * lib/unistdio/u8-snprintf.c: Likewise.
100000         * lib/unistdio/u8-sprintf.c: Likewise.
100001         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100002         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100003         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100004         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100005         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100006         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100007         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100008         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100009         * lib/unistdio/u8-vasnprintf.c: Likewise.
100010         * lib/unistdio/u8-vasprintf.c: Likewise.
100011         * lib/unistdio/u8-vsnprintf.c: Likewise.
100012         * lib/unistdio/u8-vsprintf.c: Likewise.
100013         * lib/unistdio/ulc-asnprintf.c: Likewise.
100014         * lib/unistdio/ulc-asprintf.c: Likewise.
100015         * lib/unistdio/ulc-printf-parse.c: Likewise.
100016         * lib/unistdio/ulc-snprintf.c: Likewise.
100017         * lib/unistdio/ulc-sprintf.c: Likewise.
100018         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100019         * lib/unistdio/ulc-vasprintf.c: Likewise.
100020         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100021         * lib/unistdio/ulc-vsprintf.c: Likewise.
100022         * lib/unistr.h: Likewise.
100023         * lib/unistr/u-cpy-alloc.h: Likewise.
100024         * lib/unistr/u-cpy.h: Likewise.
100025         * lib/unistr/u-endswith.h: Likewise.
100026         * lib/unistr/u-move.h: Likewise.
100027         * lib/unistr/u-set.h: Likewise.
100028         * lib/unistr/u-startswith.h: Likewise.
100029         * lib/unistr/u-stpcpy.h: Likewise.
100030         * lib/unistr/u-stpncpy.h: Likewise.
100031         * lib/unistr/u-strcat.h: Likewise.
100032         * lib/unistr/u-strcpy.h: Likewise.
100033         * lib/unistr/u-strcspn.h: Likewise.
100034         * lib/unistr/u-strdup.h: Likewise.
100035         * lib/unistr/u-strlen.h: Likewise.
100036         * lib/unistr/u-strncat.h: Likewise.
100037         * lib/unistr/u-strncpy.h: Likewise.
100038         * lib/unistr/u-strnlen.h: Likewise.
100039         * lib/unistr/u-strpbrk.h: Likewise.
100040         * lib/unistr/u-strspn.h: Likewise.
100041         * lib/unistr/u-strstr.h: Likewise.
100042         * lib/unistr/u-strtok.h: Likewise.
100043         * lib/unistr/u16-check.c: Likewise.
100044         * lib/unistr/u16-chr.c: Likewise.
100045         * lib/unistr/u16-cmp.c: Likewise.
100046         * lib/unistr/u16-cpy-alloc.c: Likewise.
100047         * lib/unistr/u16-cpy.c: Likewise.
100048         * lib/unistr/u16-endswith.c: Likewise.
100049         * lib/unistr/u16-mblen.c: Likewise.
100050         * lib/unistr/u16-mbsnlen.c: Likewise.
100051         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100052         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100053         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100054         * lib/unistr/u16-mbtouc.c: Likewise.
100055         * lib/unistr/u16-mbtoucr.c: Likewise.
100056         * lib/unistr/u16-move.c: Likewise.
100057         * lib/unistr/u16-next.c: Likewise.
100058         * lib/unistr/u16-prev.c: Likewise.
100059         * lib/unistr/u16-set.c: Likewise.
100060         * lib/unistr/u16-startswith.c: Likewise.
100061         * lib/unistr/u16-stpcpy.c: Likewise.
100062         * lib/unistr/u16-stpncpy.c: Likewise.
100063         * lib/unistr/u16-strcat.c: Likewise.
100064         * lib/unistr/u16-strchr.c: Likewise.
100065         * lib/unistr/u16-strcmp.c: Likewise.
100066         * lib/unistr/u16-strcpy.c: Likewise.
100067         * lib/unistr/u16-strcspn.c: Likewise.
100068         * lib/unistr/u16-strdup.c: Likewise.
100069         * lib/unistr/u16-strlen.c: Likewise.
100070         * lib/unistr/u16-strmblen.c: Likewise.
100071         * lib/unistr/u16-strmbtouc.c: Likewise.
100072         * lib/unistr/u16-strncat.c: Likewise.
100073         * lib/unistr/u16-strncmp.c: Likewise.
100074         * lib/unistr/u16-strncpy.c: Likewise.
100075         * lib/unistr/u16-strnlen.c: Likewise.
100076         * lib/unistr/u16-strpbrk.c: Likewise.
100077         * lib/unistr/u16-strrchr.c: Likewise.
100078         * lib/unistr/u16-strspn.c: Likewise.
100079         * lib/unistr/u16-strstr.c: Likewise.
100080         * lib/unistr/u16-strtok.c: Likewise.
100081         * lib/unistr/u16-to-u32.c: Likewise.
100082         * lib/unistr/u16-to-u8.c: Likewise.
100083         * lib/unistr/u16-uctomb-aux.c: Likewise.
100084         * lib/unistr/u16-uctomb.c: Likewise.
100085         * lib/unistr/u32-check.c: Likewise.
100086         * lib/unistr/u32-chr.c: Likewise.
100087         * lib/unistr/u32-cmp.c: Likewise.
100088         * lib/unistr/u32-cpy-alloc.c: Likewise.
100089         * lib/unistr/u32-cpy.c: Likewise.
100090         * lib/unistr/u32-endswith.c: Likewise.
100091         * lib/unistr/u32-mblen.c: Likewise.
100092         * lib/unistr/u32-mbsnlen.c: Likewise.
100093         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100094         * lib/unistr/u32-mbtouc.c: Likewise.
100095         * lib/unistr/u32-mbtoucr.c: Likewise.
100096         * lib/unistr/u32-move.c: Likewise.
100097         * lib/unistr/u32-next.c: Likewise.
100098         * lib/unistr/u32-prev.c: Likewise.
100099         * lib/unistr/u32-set.c: Likewise.
100100         * lib/unistr/u32-startswith.c: Likewise.
100101         * lib/unistr/u32-stpcpy.c: Likewise.
100102         * lib/unistr/u32-stpncpy.c: Likewise.
100103         * lib/unistr/u32-strcat.c: Likewise.
100104         * lib/unistr/u32-strchr.c: Likewise.
100105         * lib/unistr/u32-strcmp.c: Likewise.
100106         * lib/unistr/u32-strcpy.c: Likewise.
100107         * lib/unistr/u32-strcspn.c: Likewise.
100108         * lib/unistr/u32-strdup.c: Likewise.
100109         * lib/unistr/u32-strlen.c: Likewise.
100110         * lib/unistr/u32-strmblen.c: Likewise.
100111         * lib/unistr/u32-strmbtouc.c: Likewise.
100112         * lib/unistr/u32-strncat.c: Likewise.
100113         * lib/unistr/u32-strncmp.c: Likewise.
100114         * lib/unistr/u32-strncpy.c: Likewise.
100115         * lib/unistr/u32-strnlen.c: Likewise.
100116         * lib/unistr/u32-strpbrk.c: Likewise.
100117         * lib/unistr/u32-strrchr.c: Likewise.
100118         * lib/unistr/u32-strspn.c: Likewise.
100119         * lib/unistr/u32-strstr.c: Likewise.
100120         * lib/unistr/u32-strtok.c: Likewise.
100121         * lib/unistr/u32-to-u16.c: Likewise.
100122         * lib/unistr/u32-to-u8.c: Likewise.
100123         * lib/unistr/u32-uctomb.c: Likewise.
100124         * lib/unistr/u8-check.c: Likewise.
100125         * lib/unistr/u8-chr.c: Likewise.
100126         * lib/unistr/u8-cmp.c: Likewise.
100127         * lib/unistr/u8-cpy-alloc.c: Likewise.
100128         * lib/unistr/u8-cpy.c: Likewise.
100129         * lib/unistr/u8-endswith.c: Likewise.
100130         * lib/unistr/u8-mblen.c: Likewise.
100131         * lib/unistr/u8-mbsnlen.c: Likewise.
100132         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100133         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100134         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100135         * lib/unistr/u8-mbtouc.c: Likewise.
100136         * lib/unistr/u8-mbtoucr.c: Likewise.
100137         * lib/unistr/u8-move.c: Likewise.
100138         * lib/unistr/u8-next.c: Likewise.
100139         * lib/unistr/u8-prev.c: Likewise.
100140         * lib/unistr/u8-set.c: Likewise.
100141         * lib/unistr/u8-startswith.c: Likewise.
100142         * lib/unistr/u8-stpcpy.c: Likewise.
100143         * lib/unistr/u8-stpncpy.c: Likewise.
100144         * lib/unistr/u8-strcat.c: Likewise.
100145         * lib/unistr/u8-strchr.c: Likewise.
100146         * lib/unistr/u8-strcmp.c: Likewise.
100147         * lib/unistr/u8-strcpy.c: Likewise.
100148         * lib/unistr/u8-strcspn.c: Likewise.
100149         * lib/unistr/u8-strdup.c: Likewise.
100150         * lib/unistr/u8-strlen.c: Likewise.
100151         * lib/unistr/u8-strmblen.c: Likewise.
100152         * lib/unistr/u8-strmbtouc.c: Likewise.
100153         * lib/unistr/u8-strncat.c: Likewise.
100154         * lib/unistr/u8-strncmp.c: Likewise.
100155         * lib/unistr/u8-strncpy.c: Likewise.
100156         * lib/unistr/u8-strnlen.c: Likewise.
100157         * lib/unistr/u8-strpbrk.c: Likewise.
100158         * lib/unistr/u8-strrchr.c: Likewise.
100159         * lib/unistr/u8-strspn.c: Likewise.
100160         * lib/unistr/u8-strstr.c: Likewise.
100161         * lib/unistr/u8-strtok.c: Likewise.
100162         * lib/unistr/u8-to-u16.c: Likewise.
100163         * lib/unistr/u8-to-u32.c: Likewise.
100164         * lib/unistr/u8-uctomb-aux.c: Likewise.
100165         * lib/unistr/u8-uctomb.c: Likewise.
100166         * lib/unitypes.h: Likewise.
100167         * lib/uniwidth.h: Likewise.
100168         * lib/uniwidth/cjk.h: Likewise.
100169         * lib/uniwidth/u16-strwidth.c: Likewise.
100170         * lib/uniwidth/u16-width.c: Likewise.
100171         * lib/uniwidth/u32-strwidth.c: Likewise.
100172         * lib/uniwidth/u32-width.c: Likewise.
100173         * lib/uniwidth/u8-strwidth.c: Likewise.
100174         * lib/uniwidth/u8-width.c: Likewise.
100175         * lib/uniwidth/width.c: Likewise.
100177 2007-10-07  Bruno Haible  <bruno@clisp.org>
100179         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100180         The file is still under LGPL (see modules/inttypes).
100182 2007-10-06  Bruno Haible  <bruno@clisp.org>
100184         * modules/trunc (Dependencies): Add 'extensions'.
100185         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100186         Reported by Ben Pfaff <blp@gnu.org>.
100188 2007-10-06  Bruno Haible  <bruno@clisp.org>
100190         * modules/freopen-tests: New file.
100191         * tests/test-freopen.c: New file.
100193         * modules/fopen-tests: New file.
100194         * tests/test-fopen.c: New file.
100196         * modules/fopen: New file.
100197         * lib/fopen.c: New file.
100198         * m4/fopen.m4: New file.
100199         * modules/freopen: New file.
100200         * lib/freopen.c: New file.
100201         * m4/freopen.m4: New file.
100202         * lib/stdio.in.h (fopen, freopen): New declarations.
100203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100204         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100205         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100206         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100207         * doc/functions/fopen.texi: Mention the 'fopen' module.
100208         * doc/functions/freopen.texi: Mention the 'freopen' module.
100210 2007-10-06  Bruno Haible  <bruno@clisp.org>
100212         * modules/open-tests: New file.
100213         * tests/test-open.c: New file.
100215         * modules/open: New file.
100216         * lib/open.c: New file.
100217         * m4/open.m4: New file.
100218         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
100219         lib/open.c does.
100220         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
100221         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
100222         macros.
100223         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
100224         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
100225         REPLACE_OPEN.
100226         * doc/functions/open.texi: Mention the 'open' module.
100228 2007-10-04  Bruno Haible  <bruno@clisp.org>
100230         * modules/ceill-tests: New file.
100231         * tests/test-ceill.c: New file.
100233         * modules/ceill: New file.
100234         * lib/ceill.c: Replace entire file.
100235         * m4/ceill.m4: New file.
100236         * lib/math.in.h (ceill): Replace declaration.
100237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
100238         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
100239         * doc/functions/ceill.texi: Mention the 'ceill' module.
100240         * modules/mathl (Files): Remove lib/ceill.c.
100241         (Depends-on): Add ceill.
100243 2007-10-04  Bruno Haible  <bruno@clisp.org>
100245         * modules/ceilf-tests: New file.
100246         * tests/test-ceilf.c: New file.
100248         * modules/ceilf: New file.
100249         * lib/ceil.c: New file.
100250         * lib/ceilf.c: New file.
100251         * m4/ceilf.m4: New file.
100252         * lib/math.in.h (ceilf): New declaration.
100253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100254         HAVE_DECL_CEILF.
100255         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100256         HAVE_DECL_CEILF.
100257         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100259 2007-10-04  Bruno Haible  <bruno@clisp.org>
100261         * modules/floorl-tests: New file.
100262         * tests/test-floorl.c: New file.
100264         * modules/floorl: New file.
100265         * lib/floorl.c: Replace entire file.
100266         * m4/floorl.m4: New file.
100267         * lib/math.in.h (floorl): Replace declaration.
100268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100269         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100270         * doc/functions/floorl.texi: Mention the 'floorl' module.
100271         * modules/mathl (Files): Remove lib/floorl.c.
100272         (Depends-on): Add floorl.
100274 2007-10-04  Bruno Haible  <bruno@clisp.org>
100276         * modules/floorf-tests: New file.
100277         * tests/test-floorf.c: New file.
100279         * modules/floorf: New file.
100280         * lib/floor.c: New file.
100281         * lib/floorf.c: New file.
100282         * m4/floorf.m4: New file.
100283         * lib/math.in.h (floorf): New declaration.
100284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100285         HAVE_DECL_FLOORF.
100286         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100287         HAVE_DECL_FLOORF.
100288         * doc/functions/floorf.texi: Mention the 'floorf' module.
100290 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100291             Bruno Haible  <bruno@clisp.org>
100293         Advertise for the Git server instead of the CVS server.
100294         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100295         repository instead of the CVS one.
100296         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100297         about all VCS systems generically.
100298         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100300 2007-10-04  Bruno Haible  <bruno@clisp.org>
100302         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100303         means.
100304         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100306 2007-10-04  Bruno Haible  <bruno@clisp.org>
100308         * modules/truncl-tests: New file.
100309         * tests/test-truncl.c: New file.
100311         * modules/truncl: New file.
100312         * lib/truncl.c: New file.
100313         * m4/truncl.m4: New file.
100314         * lib/math.in.h (truncl): New declaration.
100315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100316         HAVE_DECL_TRUNCL.
100317         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100318         HAVE_DECL_TRUNCL.
100319         * doc/functions/truncl.texi: Mention the 'truncl' module.
100321 2007-10-04  Bruno Haible  <bruno@clisp.org>
100323         * modules/truncf-tests: New file.
100324         * tests/test-truncf.c: New file.
100326         * modules/truncf: New file.
100327         * lib/trunc.c: Make paramerizable through USE_* macros.
100328         * lib/truncf.c: New file.
100329         * m4/truncf.m4: New file.
100330         * lib/math.in.h (truncf): New declaration.
100331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100332         HAVE_DECL_TRUNCF.
100333         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100334         HAVE_DECL_TRUNCF.
100335         * doc/functions/truncf.texi: Mention the 'truncf' module.
100337 2007-10-03  Bruno Haible  <bruno@clisp.org>
100339         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100340         augmentation also for tests modules.
100341         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100342         * modules/atexit-tests (Makefile.am): Likewise.
100343         * modules/binary-io-tests (Makefile.am): Likewise.
100344         * modules/c-strcase-tests (Makefile.am): Likewise.
100345         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100346         * modules/canonicalize-tests (Makefile.am): Likewise.
100347         * modules/closein-tests (Makefile.am): Likewise.
100348         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100349         * modules/freadahead-tests (Makefile.am): Likewise.
100350         * modules/fseek-tests (Makefile.am): Likewise.
100351         * modules/fseeko-tests (Makefile.am): Likewise.
100352         * modules/ftell-tests (Makefile.am): Likewise.
100353         * modules/ftello-tests (Makefile.am): Likewise.
100354         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100355         * modules/isnanl-tests (Makefile.am): Likewise.
100356         * modules/lseek-tests (Makefile.am): Likewise.
100357         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100358         * modules/mbscasestr-tests (Makefile.am): Likewise.
100359         * modules/mbschr-tests (Makefile.am): Likewise.
100360         * modules/mbscspn-tests (Makefile.am): Likewise.
100361         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100362         * modules/mbspbrk-tests (Makefile.am): Likewise.
100363         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100364         * modules/mbsrchr-tests (Makefile.am): Likewise.
100365         * modules/mbsspn-tests (Makefile.am): Likewise.
100366         * modules/mbsstr-tests (Makefile.am): Likewise.
100367         * modules/printf-posix-tests (Makefile.am): Likewise.
100368         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100369         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100370         * modules/tsearch-tests (Makefile.am): Likewise.
100371         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100372         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100373         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100374         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100375         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100376         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100377         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100378         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100379         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100380         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
100381         * modules/xstrtoimax-tests (Makefile.am): Likewise.
100382         * modules/xstrtol-tests (Makefile.am): Likewise.
100383         * modules/xstrtoumax-tests (Makefile.am): Likewise.
100384         * modules/yesno-tests (Makefile.am): Likewise.
100386 2007-10-03  Bruno Haible  <bruno@clisp.org>
100388         * modules/trunc-tests: New file.
100389         * tests/test-trunc.c: New file.
100391         * modules/trunc: New file.
100392         * lib/trunc.c: New file.
100393         * m4/trunc.m4: New file.
100394         * lib/math.in.h (trunc): New declaration.
100395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
100396         HAVE_DECL_TRUNC.
100397         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
100398         HAVE_DECL_TRUNC.
100399         * doc/functions/trunc.texi: Mention the 'trunc' module.
100401 2007-10-03  Bruno Haible  <bruno@clisp.org>
100403         * tests/test-fpending.c: New file, mostly copied
100404         from coreutils/lib/t-fpending.c.
100405         * modules/fpending-tests: New file.
100407 2007-10-03  Bruno Haible  <bruno@clisp.org>
100409         Port the stdio extensions to QNX (untested).
100410         * lib/fseterr.c (fseterr): Add support for QNX.
100411         * lib/fbufmode.c (fbufmode): Likewise.
100412         * lib/freadable.c (freadable): Likewise.
100413         * lib/fwritable.c (fwritable): Likewise.
100414         * lib/freading.c (freading): Likewise.
100415         * lib/fwriting.c (fwriting): Likewise.
100416         * lib/freadahead.c (freadahed): Likewise.
100417         * lib/fpurge.c (fpurge): Likewise.
100418         * lib/fseeko.c (rpl_fseeko): Likewise.
100420 2007-10-03  Bruno Haible  <bruno@clisp.org>
100421             Jim Meyering  <jim@meyering.net>
100422             Eric Blake  <ebb9@byu.net>
100424         * doc/relocatable.texi: Use @command instead of @program.
100426 2007-10-02  Jim Meyering  <jim@meyering.net>
100428         Perform one more "_.h" -> ".in.h" substitution.
100429         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
100430         instead of unistd_.h here, too.
100432 2007-10-01  Bruno Haible  <bruno@clisp.org>
100434         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
100435         Needed for the alloca-opt module.
100437 2007-09-30  Bruno Haible  <bruno@clisp.org>
100439         * lib/alloca.in.h: Renamed from lib/alloca_.h.
100440         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
100441         alloca_.h.
100442         * lib/argz.in.h: Renamed from lib/argz_.h.
100443         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
100444         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
100445         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
100446         byteswap_.h.
100447         * lib/dirent.in.h: Renamed from lib/dirent_.h.
100448         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
100449         dirent_.h.
100450         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
100451         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
100452         fcntl_.h.
100453         * lib/float.in.h: Renamed from lib/float_.h.
100454         * modules/float (Files, Makefile.am): Use float.in.h instead of
100455         float_.h.
100456         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
100457         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
100458         fnmatch_.h.
100459         * lib/getopt.in.h: Renamed from lib/getopt_.h.
100460         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
100461         getopt_.h.
100462         * lib/glob.in.h: Renamed from lib/glob_.h.
100463         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
100464         * lib/iconv.in.h: Renamed from lib/iconv_.h.
100465         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
100466         iconv_.h.
100467         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
100468         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
100469         inttypes_.h.
100470         * lib/locale.in.h: Renamed from lib/locale_.h.
100471         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
100472         locale_.h.
100473         * lib/math.in.h: Renamed from lib/math_.h.
100474         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
100475         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
100476         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
100477         of netinet_in_.h. Add dependency.
100478         * lib/poll.in.h: Renamed from lib/poll_.h.
100479         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
100480         * lib/search.in.h: Renamed from lib/search_.h.
100481         * modules/search (Files, Makefile.am): Use search.in.h instead of
100482         search_.h.
100483         * lib/signal.in.h: Renamed from lib/signal_.h.
100484         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
100485         _signal.h.
100486         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
100487         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
100488         stdbool_.h.
100489         * lib/stdint.in.h: Renamed from lib/stdint_.h.
100490         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
100491         stdint_.h.
100492         * lib/stdio.in.h: Renamed from lib/stdio_.h.
100493         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
100494         stdio_.h.
100495         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
100496         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
100497         stdlib_.h.
100498         * lib/string.in.h: Renamed from lib/string_.h.
100499         * modules/string (Files, Makefile.am): Use string.in.h instead of
100500         string_.h.
100501         * doc/gnulib-tool.texi (Initial import): Update.
100502         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
100503         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
100504         of sys_select_.h. Add dependency.
100505         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100506         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
100507         of sys_socket_.h.
100508         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
100509         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
100510         sys_stat_.h.
100511         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
100512         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
100513         sys_time_.h.
100514         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
100515         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
100516         sysexits_.h.
100517         * lib/time.in.h: Renamed from lib/time_.h.
100518         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
100519         * lib/unistd.in.h: Renamed from lib/unistd_.h.
100520         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
100521         unistd_.h.
100522         * lib/wchar.in.h: Renamed from lib/wchar_.h.
100523         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
100524         wchar_.h.
100525         * lib/wctype.in.h: Renamed from lib/wctype_.h.
100526         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
100527         wctype_.h.
100528         * build-aux/bootstrap (slurp): Update.
100529         * lib/.cppi-disable: Update.
100531 2007-09-30  Bruno Haible  <bruno@clisp.org>
100533         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
100534         Needed on BeOS.
100536 2007-09-30  Bruno Haible  <bruno@clisp.org>
100538         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
100540 2007-09-29  Bruno Haible  <bruno@clisp.org>
100542         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
100544 2007-09-29  Bruno Haible  <bruno@clisp.org>
100546         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
100547         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
100548         * build-aux/install-reloc: Compile also areadlink.c.
100549         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
100551 2007-09-29  Bruno Haible  <bruno@clisp.org>
100553         * gnulib-tool (func_emit_initmacro_done): Indentation.
100555 2007-09-29  Bruno Haible  <bruno@clisp.org>
100557         * README: Add CVS checkout update instructions.
100558         Info from Bob Proulx <bob@proulx.com>.
100560 2007-09-28  Eric Blake  <ebb9@byu.net>
100562         Provide move-if-change.
100563         * build-aux/move-if-change: New file, based on best practice
100564         rather than any canonical upstream location.
100566 2007-09-28  Jim Meyering  <jim@meyering.net>
100568         Fix canonicalize loop-detection corner case.
100569         Do not attempt to stat the symlink values stored via seen_triple.
100570         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
100571         on linux-2.6.18, (but not 2.6.22).
100572         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
100573         triple_compare.  The former compares dev,ino,filename, while the latter
100574         would actually stat dirname(filename) when dev and ino were equal.
100575         * lib/hash-triple.c: Install <string.h>.
100576         (STREQ): Define.
100577         (triple_compare_ino_str): New function.
100578         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
100580 2007-09-28  Eric Blake  <ebb9@byu.net>
100582         Enforce that AC_REPLACE_FUNCS files exist.
100583         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
100584         override check for typos.
100586         Fix test-closein on Solaris 10.
100587         * tests/test-closein.c (main): Don't assume stdin can be inherited
100588         closed on all systems.
100589         * tests/test-closein.sh: Likewise.
100590         Reported by Piotr Tarnowski.
100592 2007-09-28  Jim Meyering  <jim@meyering.net>
100594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
100596 2007-09-27  Jim Meyering  <jim@meyering.net>
100598         canonicalize: Avoid a false-positive cycle failure.
100599         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
100600         Sort.  Remove cycle-check.
100601         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
100602         not cycle-check.h.
100603         (seen_triple): New function.
100604         (canonicalize_filename_mode): Use it instead of cycle-check.
100605         * tests/test-canonicalize.c: Add a test for this bug.
100606         * tests/test-canonicalize.sh: Set up and run the test.
100608         New module, file-set, from coreutils.
100609         * modules/file-set: Define it.
100610         * lib/file-set.c, lib/file-set.h: Implement.
100612         New module, hash-triple, from coreutils.
100613         * modules/hash-triple: Define it.
100614         * lib/hash-triple.c, lib/hash-triple.h: Implement.
100616 2007-09-25  Eric Blake  <ebb9@byu.net>
100618         Fix strerror on Interix.
100619         * lib/string_.h (strerror): Declare replacement.
100620         * doc/functions/strerror.texi (strerror): Document the Interix
100621         shortcoming.
100622         * modules/string (Makefile.am): Support new hooks.
100623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
100624         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
100625         gl_FUNC_STRERROR_SEPARATE.
100626         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
100627         * lib/strerror.c (rpl_strerror): Provide replacement.
100628         * modules/strerror (Depends-on): Add string.
100629         (configure.ac): Detect use of module.
100630         * tests/test-strerror.c: New file.
100631         * modules/strerror-tests: New test module.
100632         * modules/argp (Depends-on): Add strerror.
100633         * modules/error (Depends-on): Likewise.
100634         Reported by Martin Koeppe.
100636 2007-09-24  Bruno Haible  <bruno@clisp.org>
100638         * README: Update git instructions.
100640 2007-09-24  Eric Blake  <ebb9@byu.net>
100642         Revert fpending breakage from 2007-09-08.
100643         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
100644         __fpending.c.
100646 2007-09-24  Jim Meyering  <jim@meyering.net>
100648         filenamecat.c: Add a test.
100649         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
100650         showing how the function works when DIR is the empty string.
100652 2007-09-21  Simon Josefsson  <simon@josefsson.org>
100654         * tests/test-canonicalize.sh: Turn on executable bit.
100656 2007-09-19  Eric Blake  <ebb9@byu.net>
100658         * README: Update CVS instructions.
100660 2007-09-18  Bruno Haible  <bruno@clisp.org>
100662         * modules/areadlink: New file.
100663         * lib/areadlink.h (areadlink): New declaration.
100664         * lib/areadlink.c: New file, based on lib/xreadlink.c.
100666 2007-09-17  Jim Meyering  <jim@meyering.net>
100668         * lib/savewd.c (ESTALE) [!defined]: Define.
100669         Reported to be required on Interix by Martin Koeppe.
100671 2007-09-17  Bruno Haible  <bruno@clisp.org>
100673         * gnulib-tool (func_version): Use $version.
100675 2007-09-16  Bruno Haible  <bruno@clisp.org>
100677         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
100678         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
100679         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
100680         Reported by Greg Schafer <gschafer@zip.com.au>.
100682 2007-09-15  Bruno Haible  <bruno@clisp.org>
100684         * gnulib-tool (sed): Try a little harder to make bash understand the
100685         alias.
100686         Reported by Bruce Korb <bruce.korb@gmail.com>.
100688 2007-09-13  Eric Blake  <ebb9@byu.net>
100690         * ChangeLog: Remove conflict markers.
100692 2007-09-13  Simon Josefsson  <simon@josefsson.org>
100694         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
100695         Reported by Bruno Haible <bruno@clisp.org>.
100697 2007-09-12  Bruno Haible  <bruno@clisp.org>
100699         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
100700         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
100701         is not defined.
100703 2007-09-12  Eric Blake  <ebb9@byu.net>
100705         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
100706         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
100707         Autoconf definition.
100708         * modules/euidaccess (Depends-on): Add extensions, for
100709         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
100710         * modules/fnmatch (Depends-on): Likewise.
100711         * modules/getaddrinfo (Depends-on): Likewise.
100712         * modules/getdelim (Depends-on): Likewise.
100713         * modules/getline (Depends-on): Likewise.
100714         * modules/getsubopt (Depends-on): Likewise.
100715         * modules/gettext (Depends-on): Likewise.
100716         * modules/group-member (Depends-on): Likewise.
100717         * modules/mbchar (Depends-on): Likewise.
100718         * modules/memmem (Depends-on): Likewise.
100719         * modules/mempcpy (Depends-on): Likewise.
100720         * modules/memrchr (Depends-on): Likewise.
100721         * modules/pagealign_alloc (Depends-on): Likewise.
100722         * modules/readutmp (Depends-on): Likewise.
100723         * modules/stpcpy (Depends-on): Likewise.
100724         * modules/stpncpy (Depends-on): Likewise.
100725         * modules/strchrnul (Depends-on): Likewise.
100726         * modules/strndup (Depends-on): Likewise.
100727         * modules/strsep (Depends-on): Likewise.
100728         * modules/strverscmp (Depends-on): Likewise.
100729         * modules/vasprintf (Depends-on): Likewise.
100730         * modules/wcwidth (Depends-on): Likewise.
100731         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
100732         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
100733         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
100734         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
100735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
100736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
100737         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
100738         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
100739         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
100740         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
100741         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
100742         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100743         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100744         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
100745         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
100746         * m4/readutmp.m4 (gl_READUTMP): Likewise.
100747         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100748         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100750         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100751         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100752         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100753         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100754         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
100755         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
100756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
100757         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
100758         so that lock.m4 can be used in gettext without extensions module.
100760 2007-09-11  Bruno Haible  <bruno@clisp.org>
100762         * m4/isc-posix.m4: Remove file.
100763         Suggested by Eric Blake.
100765 2007-09-11  Eric Blake  <ebb9@byu.net>
100767         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
100769 2007-09-10  Bruno Haible  <bruno@clisp.org>
100771         * posix-modules: Fix typo in error message.
100772         Reported by Matt <mkraai@beckman.com>.
100774 2007-09-09  Bruno Haible  <bruno@clisp.org>
100776         * doc/functions/getdelim.texi: Update list of platforms lacking the
100777         function.
100778         * doc/functions/getline.texi: Likewise.
100780 2007-09-09  Jim Meyering  <jim@meyering.net>
100782         * lib/hash.c (hash_initialize): Detect calloc failure.
100783         Reported by Bruno Haible.
100785 2007-09-09  Bruno Haible  <bruno@clisp.org>
100787         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
100788         malloc or realloc fails.
100790 2007-09-09  Bruno Haible  <bruno@clisp.org>
100792         * modules/getcwd (Depends-on): Add malloc-posix.
100793         * modules/glob (Depends-on): Likewise.
100794         * modules/putenv (Depends-on): Likewise.
100795         * modules/strdup (Depends-on): Likewise.
100796         * modules/getdelim (Depends-on): Add realloc-posix.
100797         * modules/read-file (Depends-on): Likewise.
100799 2007-09-09  Bruno Haible  <bruno@clisp.org>
100801         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
100802         (gl_FUNC_MALLOC_POSIX): Require it.
100803         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
100804         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
100805         * modules/realloc (Files): Add m4/malloc.m4.
100806         * modules/calloc (Files): Likewise.
100808 2007-09-09  Bruno Haible  <bruno@clisp.org>
100810         * modules/malloc-posix: New file.
100811         * modules/malloc (Depends-on): Add malloc-posix.
100812         * lib/malloc.c: Include errno.h.
100813         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
100814         and a POSIX-compatible malloc into a single function. Set ENOMEM
100815         when returning NULL.
100816         * m4/malloc.m4: New file.
100817         * doc/functions/malloc.texi: Mention the malloc-posix module.
100818         * lib/stdlib_.h (malloc): New declaration.
100819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100820         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
100821         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
100822         and HAVE_MALLOC_POSIX.
100824 2007-09-09  Bruno Haible  <bruno@clisp.org>
100826         * modules/realloc-posix: New file.
100827         * modules/realloc (Depends-on): Add realloc-posix.
100828         * lib/realloc.c: Include errno.h.
100829         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
100830         and a POSIX-compatible realloc into a single function. Set ENOMEM
100831         when returning NULL.
100832         * m4/realloc.m4: New file.
100833         * doc/functions/realloc.texi: Mention the realloc-posix module.
100834         * lib/stdlib_.h (realloc): New declaration.
100835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100836         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
100837         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
100838         and HAVE_REALLOC_POSIX.
100840 2007-09-09  Bruno Haible  <bruno@clisp.org>
100842         * modules/calloc-posix: New file.
100843         * modules/calloc (Depends-on): Add calloc-posix.
100844         * lib/calloc.c: Include errno.h.
100845         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
100846         and a POSIX-compatible calloc into a single function. Set ENOMEM
100847         when returning NULL.
100848         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
100849         * doc/functions/calloc.texi: Mention the calloc-posix module.
100850         * lib/stdlib_.h (calloc): New declaration.
100851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100852         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
100853         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
100854         and HAVE_CALLOC_POSIX.
100856 2007-09-09  Bruno Haible  <bruno@clisp.org>
100858         Allow for modules to show an arbitrary notice.
100859         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
100860         * gnulib-tool: New option --extract-notice.
100861         (func_usage): Document it.
100862         (sed_extract_prog): Update.
100863         (func_get_notice): New function.
100864         (func_modules_notice): New function.
100865         (func_import, func_create_testdir): Invoke it.
100866         Suggested by Jim Meyering.
100868 2007-09-09  Bruno Haible  <bruno@clisp.org>
100870         * gnulib-tool: New options --verbose, --quiet.
100871         (func_usage): Document them.
100872         (verbose): New variable.
100873         (func_execute_command): New function.
100874         (func_import): Don't show the module list and the file list if
100875         $verbose < 0.
100876         (func_create_testdir): Likewise. Use func_execute_command.
100877         (func_create_megatestdir): Use func_execute_command.
100879 2007-09-08  Bruno Haible  <bruno@clisp.org>
100881         * gnulib-tool (func_import): Prefer rsync over wget when available,
100882         for fetching the PO files.
100884 2007-09-08  Bruno Haible  <bruno@clisp.org>
100886         * posix-modules: New file. Portions copied from gnulib-tool.
100887         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
100889 2007-09-08  Jim Meyering  <jim@meyering.net>
100891         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
100892         * lib/fpending.h: Rename from __fpending.h.
100893         * lib/fpending.c: Rename from __fpending.c.
100894         Include "fpending.h", not "__fpending.h".
100895         * lib/__fpending.h, lib/__fpending.c: Remove files.
100896         * modules/fpending (Files): Reflect new file names.
100897         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
100899 2007-09-08  Bruno Haible  <bruno@clisp.org>
100901         * m4/inttypes-h.m4: Remove stub file.
100903 2007-09-07  Simon Josefsson  <simon@josefsson.org>
100905         * doc/headers/stdint.texi: Discuss #include_next issue.
100907 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100909         * build-aux/bootstrap: Remove obsolete comment about wget --help.
100911 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100913         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
100914         in variable name.
100916 2007-09-03  Jim Meyering  <jim@meyering.net>
100918         New module: git-version-gen.
100919         * modules/git-version-gen: New file.
100921         Import changes from coreutils for bootstrap script.
100923         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
100925         bootstrap: uses rsync to download the .po files
100926         * build-aux/bootstrap (po_download_command_format): New global.
100927         (download_po_files): Use rsync.
100928         (update_po_files): Don't remove .po files after download,
100929         so future rsync runs can take advantage of the copies.
100931         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
100933         Solve the unnecessary-.po-file-regeneration problem once and for all.
100934         * build-aux/bootstrap (download_po_files): New function, renamed from
100935         get_translations.  Now, downloads, but doesn't update LINGUAS.
100936         (update_po_files): New function.
100938         bootstrap: Ignore more.
100939         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
100940         uniwidth to e.g., lib/.gitignore.
100941         (slurp): Handle the sys_stat_.h -> sys mapping, too.
100943         * build-aux/bootstrap: New setting: vc_ignore.
100944         (insert_sorted_if_absent): Create $file if absent.
100945         Adapt to new, possibly empty, list: $vc_ignore.
100947         bootstrap: generate more ignorable names
100948         * build-aux/bootstrap (slurp): When generating ignorable names,
100949         also map .sin to .sed, .gperf to .c, and .y to .c.
100951 2007-09-03  Jim Meyering  <jim@meyering.net>
100953         * build-aux/git-version-gen: New file, from coreutils.  For details, see
100954         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
100956 2007-09-02  Bruno Haible  <bruno@clisp.org>
100958         Fix mis-recognition of 'mcs' on QNX 6.
100959         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
100960         output contains the string "Mono".
100961         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
100962         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
100964 2007-09-01  Bruno Haible  <bruno@clisp.org>
100966         Fix collision between uniwidth/* and linebreak modules.
100967         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
100968         u32_width): Remove declarations.
100969         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
100970         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
100971         streq3, streq2, streq1, streq0): Remove functions.
100972         (STREQ): Remove macro.
100973         (is_cjk_encoding): Remove function.
100974         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
100975         (uc_width, u8_width, u16_width, u32_width): Remove functions.
100976         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
100977         * NEWS: Document the change.
100979 2007-09-01  Bruno Haible  <bruno@clisp.org>
100981         * lib/streq.h: Add double-inclusion guard.
100983 2007-09-01  Karl Berry  <karl@gnu.org>
100985         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
100987 2007-08-28  Jim Meyering  <jim@meyering.net>
100989         Rename mreadlink_with_size to areadlink_with_size.
100990         * NEWS: Document the change.
100991         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
100992         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
100993         * lib/mreadlink.h: Rename this to...
100994         * lib/areadlink.h: ...this.
100995         * modules/mreadlink-with-size: Rename this to...
100996         * modules/areadlink-with-size: ...this.
100997         * lib/canonicalize.c: Reflect the renaming.
100998         * modules/canonicalize: Likewise.
101000 2007-08-26  Bruno Haible  <bruno@clisp.org>
101002         * gnulib-tool (func_import): When deciding which files to remove,
101003         consider also dangling symbolic links.
101004         Reported by Eric Blake.
101006 2007-08-26  Bruno Haible  <bruno@clisp.org>
101008         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101010 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101012         * lib/readline.c: Don't include getline.h, the prototype is now
101013         found in stdio.h.
101015 2007-08-23  Jim Meyering  <jim@meyering.net>
101017         Getdelim touchup.
101018         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101019         around the funlockfile call, since funlockfile never sets errno.
101020         Don't set errno upon failed realloc.
101022 2007-08-22  Eric Blake  <ebb9@byu.net>
101024         Getline touchups.
101025         * lib/getdelim.c (getdelim): Revert regression that required *n to
101026         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101028         getdelim, rather than whether implementation is missing.
101029         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101030         * lib/stdio_.h (getline): Also declare if replacement is
101031         required.
101032         * doc/functions/getdelim.texi: New file.
101033         * doc/functions/getline.texi: Likewise.
101034         * doc/gnulib.texi (Function Substitutes): Add new files.
101035         Reported by Bruno Haible.
101037 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101039         * users.txt: Add Guile.
101041 2007-08-22  Eric Blake  <ebb9@byu.net>
101043         * tests/test-getdelim.c (main): Use remove, not unlink.
101044         * tests/test-getline.c (main): Likewise.
101046         Move getline and getdelim into stdio.h, per POSIX 200x.
101047         * modules/getline (Files): Remove getline.h.
101048         (Depends-on): Add stdio.
101049         (configure.ac): Add module indicator.
101050         * modules/getdelim (Files): Remove getdelim.h.
101051         (Depends-on): Add stdio.
101052         (configure.ac): Add module indicator.
101053         * modules/stdio (Makefile.am): Work with new indicators.
101054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101055         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101056         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101057         * lib/getdelim.h: Delete.
101058         * lib/getline.h: Delete.
101059         * lib/stdio_.h (getdelim, getline): Declare.
101060         * modules/getdelim-tests: New module.
101061         * modules/getline-tests: Likewise.
101062         * tests/test-getdelim.c: New file.
101063         * tests/test-getline.c: Likewise.
101064         * NEWS: Document the change.
101065         * lib/getline.c: Update choice of header.
101066         * lib/csharpcomp.c: Likewise.
101067         * lib/getpass.c: Likewise.
101068         * lib/javacomp.c: Likewise.
101069         * lib/javaversion.c: Likewise.
101070         * lib/yesno.c: Likewise.
101071         * lib/getdelim.c: Likewise.
101072         (getdelim): Set errno on failure, and avoid memory leak.
101074 2007-08-19  Bruno Haible  <bruno@clisp.org>
101076         * modules/closein (Depends-on): Add freadahead.
101077         * lib/closein.c: Include freadahead.h.
101078         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101079         is zero.
101081 2007-08-19  Bruno Haible  <bruno@clisp.org>
101083         * modules/freadahead-tests: New file.
101084         * tests/test-freadahead.sh: New file.
101085         * tests/test-freadahead.c: New file.
101087         * modules/freadahead: New file.
101088         * lib/freadahead.h: New file.
101089         * lib/freadahead.c: New file.
101090         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101091         fbufmode, fpurge, freadable, fwritable.
101093 2007-08-19  Eric Blake  <ebb9@byu.net>
101095         Test yesno in combination with closein.
101096         * lib/yesno.c (yesno): Document use of stdin.
101097         * modules/yesno-tests (Files): New module.
101098         * tests/test-yesno.c (main): New file.
101099         * tests/test-yesno.sh: Likewise.
101101 2007-08-19  Bruno Haible  <bruno@clisp.org>
101103         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101104         * lib/fseeko.c (rpl_fseeko): Likewise.
101105         * lib/fseterr.c (fseterr): Likewise.
101107 2007-08-19  Bruno Haible  <bruno@clisp.org>
101109         * tests/test-lseek.c (main): Disable a test for BeOS.
101110         * doc/functions/lseek.texi: Document the BeOS bug.
101112 2007-08-19  Bruno Haible  <bruno@clisp.org>
101113             Eric Blake  <ebb9@byu.net>
101115         * lib/lseek.c: Include <sys/stat.h>.
101116         (rpl_lseek): Add workaround code also for Unix platforms.
101117         Needed for BeOS.
101118         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101119         * doc/functions/lseek.texi: Document BeOS definiency.
101121 2007-08-18  Bruno Haible  <bruno@clisp.org>
101123         * modules/fstrcmp-tests: New file.
101124         * tests/test-fstrcmp.c: New file.
101126 2007-08-18  Bruno Haible  <bruno@clisp.org>
101128         * modules/fstrcmp: New file, from GNU gettext with modifications.
101129         * lib/fstrcmp.h: New file, from GNU gettext.
101130         * lib/fstrcmp.c: New file, from GNU gettext.
101131         * MODULES.html.sh (String handling): Add fstrcmp.
101133 2007-08-18  Bruno Haible  <bruno@clisp.org>
101135         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101136         'bool'.
101137         (diag, compareseq): Remove const from the ctxt argument.
101138         (USE_HEURISTIC): Undefine at the end.
101140 2007-08-18  Jim Meyering  <jim@meyering.net>
101142         New file: lib/idcache.h
101143         * NEWS: Mention the addition.
101144         * modules/idcache (Files): Add lib/idcache.h
101145         * lib/idcache.c: Include "idcache.h".
101146         Don't include <sys/types.h>.
101147         Add a FIXME comment.
101148         Move file-scoped "static" declarations to the top.
101149         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101151 2007-08-17  Bruno Haible  <bruno@clisp.org>
101152         and Paul Eggert  <eggert@cs.ucla.edu>
101154         * MODULES.html.sh: Add diffseq.
101155         * modules/diffseq: New file.
101156         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101157         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101159 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101161         Import changes from coreutils for bootstrap script.
101163         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101165         * build-aux/bootstrap (slurp): Work even in environments where
101166         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101167         current code does not slurp files whose names start with ".", and
101168         this looks like it might be a troublesome area.
101170         2007-07-11  Jim Meyering  <jim@meyering.net>
101172         If there's a GPL vN copyright comment, require that N == 3.
101174         2007-07-08  Jim Meyering  <jim@meyering.net>
101176         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101177         * build-aux/bootstrap (mam_template): Move definition out of loop.
101179         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101181         * build-aux/bootstrap (symlink_to_dir): Rename function from
101182         symlink_to_gnulib.  Add a directory parameter.  Update all
101183         callers.
101184         (cp_mark_as_generated): Also check for -- and link to -- files in
101185         gl/.
101187         2007-07-08  Jim Meyering  <jim@meyering.net>
101189         Adapt to deeper hierarchy in gnulib.
101190         * build-aux/bootstrap (symlink_to_dir): If the destination
101191         directory doesn't exist, create it. This is required at least for
101192         "lib/uniwidth/cjk.h".
101194         2007-05-15  Jim Meyering  <jim@meyering.net>
101196         * build-aux/bootstrap: Now that generated Makefile.am files
101197         are no longer under version control, they must be created at
101198         bootstrap time.
101200 2007-08-14  Ben Pfaff  <blp@gnu.org>
101202         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101204 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101206         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101207         given the changes below.
101208         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
101209         even on hosts that have padding bits beyond the supported 64.
101211 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
101213         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
101214         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
101215         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
101216         depends on it.
101217         (xstrtol_error): Remove.
101218         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
101219         but with a different signature.
101220         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101221         * lib/xstrtol-error.c: Include exitfail.h.
101222         (xstrtol_fatal): New function, with a different signature from the
101223         old xstrtol_error, so that the caller need not worry about passing
101224         in an exit status, or about storage management of the option argument.
101225         (xstrtol_error): Now a static function.  Redo signature to
101226         implement xstrtol_fatal.  Output the correct number of hyphens in
101227         front of the option so that the caller need not worry about
101228         storage management.
101229         (N_): New macro.
101230         (_): Remove; not used now.
101231         * modules/xstrtol: Depend on getopt.
101232         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
101233         of old STRTOL_FATAL_ERROR macro.
101234         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
101235         of test program.
101236         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
101237         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
101239 2007-08-08  Eric Blake  <ebb9@byu.net>
101241         * lib/xstrtol-error.c: Add missing include.
101243         Move xstrtol messages into gnulib domain, when --pobase is used.
101244         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
101245         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
101246         * modules/xstrtol (Files): Distribute new file.
101247         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
101248         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101249         * tests/test-xstrtol.c: ...into new file.
101250         * tests/test-xstrtoul.c: Also test xstrtoul.
101251         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101252         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101253         * tests/test-xstrtol.sh: Drive the tests.
101254         * tests/test-xstrtoimax.sh: Likewise.
101255         * tests/test-xstrtoumax.sh: Likewise.
101256         * modules/xstrtol-tests: New module.
101257         * modules/xstrtoimax-tests: Likewise.
101258         * modules/xstrtoumax-tests: Likewise.
101260 2007-08-08  Jim Meyering  <jim@meyering.net>
101262         New function: mfile_name_concat.
101263         * lib/filenamecat.c (mfile_name_concat): New function, just like
101264         file_name_concat, but return NULL upon failure rather than exiting
101265         with a diagnostic.
101266         * lib/filenamecat.h: Declare it.
101268 2007-08-07  Bruno Haible  <bruno@clisp.org>
101270         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101271         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101272         warning from gcc.
101273         Reported by Eric Blake.
101275 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101277         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101278         * modules/crypto/arcfour (License): Likewise.
101279         * modules/crypto/des-tests (License): Likewise.
101280         * modules/crypto/gc-arctwo-tests (License): Likewise.
101281         * modules/crypto/gc-des-tests (License): Likewise.
101282         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101283         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101284         * modules/crypto/gc-md2-tests (License): Likewise.
101285         * modules/crypto/gc-md4-tests (License): Likewise.
101286         * modules/crypto/gc-md5-tests (License): Likewise.
101287         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101288         * modules/crypto/gc-rijndael-tests (License): Likewise.
101289         * modules/crypto/gc-sha1-tests (License): Likewise.
101290         * modules/crypto/gc-tests (License): Likewise.
101291         * modules/crypto/hmac-md5 (License): Likewise.
101292         * modules/crypto/hmac-sha1 (License): Likewise.
101293         * modules/crypto/md2-tests (License): Likewise.
101294         * modules/crypto/md4-tests (License): Likewise.
101295         * modules/crypto/md5 (License): Likewise.
101296         * modules/crypto/rijndael (License): Likewise.
101297         * modules/crypto/sha1 (License): Likewise.
101298         * modules/memxor (License): Likewise.
101300 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101301         and Bruno Haible  <bruno@clisp.org>
101303         * NEWS: Describe interface changes to human, xstrtol.
101304         * lib/human.h: Include <xstrtol.h>.
101305         (human_options): Return enum strtol_error, not int.  Remove
101306         bool arg; take int * instead.
101307         * lib/human.c: Don't include "gettext.h".
101308         (_): Remove; no longer used.
101309         Don't include <xstrtol.h>, since human.h does it.
101310         (human_options): Adjust to abovementioned interface changes.
101311         Do not report error to stderr; that's now the caller's
101312         responsibility.
101313         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101314         interface change.
101315         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101316         Str, Argument_type_string.  All uses changed.  Put " argument"
101317         in diagnostics to make them clearer.  Change wording of suffix
101318         message for clarity.
101319         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101320         Argument_type_string.
101321         (STRTOL_FATAL_WARN): Remove; no longer used.
101322         * modules/human (Depends-on): Remove gettext-h.
101324 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101326         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101328 2007-07-31  Bruno Haible  <bruno@clisp.org>
101330         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101331         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101332         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101334 2007-07-31  Bruno Haible  <bruno@clisp.org>
101336         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101337         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101339 2007-07-30  Bruno Haible  <bruno@clisp.org>
101341         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101342         * modules/c-ctype (License): Likewise.
101343         * modules/c-strcase (License): Likewise.
101344         * modules/check-version (License): Likewise.
101345         * modules/iconv (License): Likewise.
101346         * modules/iconv_open (License): Likewise.
101347         * modules/read-file (License): Likewise.
101348         * modules/striconv (License): Likewise.
101349         * modules/strverscmp (License): Likewise.
101350         * modules/vasprintf (License): Likewise.
101351         * modules/crypto/des (License): Likewise.
101352         * modules/crypto/gc (License): Likewise.
101353         * modules/crypto/gc-arcfour (License): Likewise.
101354         * modules/crypto/gc-arctwo (License): Likewise.
101355         * modules/crypto/gc-des (License): Likewise.
101356         * modules/crypto/gc-hmac-md5 (License): Likewise.
101357         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101358         * modules/crypto/gc-md2 (License): Likewise.
101359         * modules/crypto/gc-md4 (License): Likewise.
101360         * modules/crypto/gc-md5 (License): Likewise.
101361         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101362         * modules/crypto/gc-random (License): Likewise.
101363         * modules/crypto/gc-rijndael (License): Likewise.
101364         * modules/crypto/gc-sha1 (License): Likewise.
101365         * modules/crypto/md2 (License): Likewise.
101366         * modules/crypto/md4 (License): Likewise.
101368 2007-07-30  Jim Meyering  <jim@meyering.net>
101370         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101371         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101372         it has valid stat data.  This bug would cause du not to count the
101373         sizes of inaccessible directories.
101374         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101375         in <http://bugzilla.redhat.com/250077>.
101377 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101378             Bruno Haible  <bruno@clisp.org>
101380         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
101381         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
101382         #include_next, gives a diagnostic about it, but reports no error in
101383         the exit code.
101384         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
101386 2007-07-24  Ben Pfaff  <blp@gnu.org>
101388         Improve name: "count-one-bits" is better than "popcount".
101389         * MODULES.html.sh: Update name.
101390         * lib/popcount.h: Renamed lib/count-one-bits.h.
101391         (popcount): Renamed count_one_bits.
101392         (popcountl): Renamed count_one_bits_l.
101393         (popcountll): Renamed count_one_bits_ll.
101394         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
101395         * modules/popcount: Renamed module/count-one-bits.
101396         * modules/popcount-tests: Renamed module/count-one-bits-tests.
101397         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
101399 2007-07-23  Ben Pfaff  <blp@gnu.org>
101401         * lib/popcount.h (popcount32): Reduce size of constants, to allow
101402         better code generation, and add U to large constants to avoid
101403         warnings, in non-GCC case.
101404         Suggested by Bruno Haible.
101406 2007-07-23  Ben Pfaff  <blp@gnu.org>
101408         * lib/popcount.h: Use verify_true instead of if...abort.
101409         * modules/popcount: Depend on verify module.
101410         Suggested by Jim Meyering.
101412 2007-07-23  Bruno Haible  <bruno@clisp.org>
101414         * gnulib-tool (func_import): Create a .cvsignore file also when the
101415         directory is not yet in CVS but the toplevel directory is. When
101416         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
101417         Reported by Karl Berry.
101419 2007-07-22  Ben Pfaff  <blp@gnu.org>
101421         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
101422         case.
101423         Suggested by Eric Blake.
101425 2007-07-22  Ben Pfaff  <blp@gnu.org>
101427         New module: popcount.
101428         * MODULES.html.sh: Add popcount.
101429         * modules/popcount: New file.
101430         * modules/popcount-tests: New file.
101431         * tests/test-popcount.c: New file.
101432         * lib/popcount.h: New file.
101433         * m4/popcount.m4: New file.
101435 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
101437         * build-aux/announce-gen: Update to GPLv3.
101439         * build-aux/config.guess: Update from config.
101441 2007-07-21  Bruno Haible  <bruno@clisp.org>
101443         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
101444         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
101446 2007-07-20  Jim Meyering  <jim@meyering.net>
101448         * check-module: Diagnose a self-dependency.
101450 2007-07-19  Bruno Haible  <bruno@clisp.org>
101452         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
101453         empty.
101454         Reported by Eric Blake.
101456 2007-07-18  Bruno Haible  <bruno@clisp.org>
101458         * gnulib-tool: New options --po-base, --po-domain.
101459         (func_usage): Document them.
101460         (pobase, po_domain): New variables.
101461         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
101462         DEFAULT_TEXT_DOMAIN.
101463         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
101464         (func_import): Consider pobase and po_domain. Create a po/ directory.
101465         (func_create_testdir): Set pobase and po_domain to empty.
101466         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
101467         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
101469 2007-07-18  Bruno Haible  <bruno@clisp.org>
101471         * gnulib-tool (func_get_automake_snippet): Synthesize also an
101472         EXTRA_DIST augmentation for files in build-aux/.
101474 2007-07-16  Bruno Haible  <bruno@clisp.org>
101476         * modules/lseek (License): Use the synonymous term "LGPLv2+".
101477         * modules/getdelim (License): Likewise.
101479 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101481         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
101482         * modules/d-type (License): Likewise.
101483         * modules/extensions (License): Likewise.
101484         * modules/fnmatch (License): Likewise.
101485         * modules/fseeko (License): Likewise.
101486         * modules/getaddrinfo (License): Likewise.
101487         * modules/getline (License): Likewise.
101488         * modules/getlogin_r (License): Likewise.
101489         * modules/getpass (License): Likewise.
101490         * modules/gettimeofday (License): Likewise.
101491         * modules/glob (License): Likewise.
101492         * modules/inet_ntop (License): Likewise.
101493         * modules/malloc (License): Likewise.
101494         * modules/malloca (License): Likewise.
101495         * modules/memmem (License): Likewise.
101496         * modules/mempcpy (License): Likewise.
101497         * modules/memset (License): Likewise.
101498         * modules/minmax (License): Likewise.
101499         * modules/mktime (License): Likewise.
101500         * modules/netinet_in (License): Likewise.
101501         * modules/pathmax (License): Likewise.
101502         * modules/poll (License): Likewise.
101503         * modules/regex (License): Likewise.
101504         * modules/snprintf (License): Likewise.
101505         * modules/stdbool (License): Likewise.
101506         * modules/stdint (License): Likewise.
101507         * modules/stdio (License): Likewise.
101508         * modules/strcase (License): Likewise.
101509         * modules/strcasestr (License): Likewise.
101510         * modules/strdup (License): Likewise.
101511         * modules/string (License): Likewise.
101512         * modules/strndup (License): Likewise.
101513         * modules/strnlen (License): Likewise.
101514         * modules/strpbrk (License): Likewise.
101515         * modules/strptime (License): Likewise.
101516         * modules/strsep (License): Likewise.
101517         * modules/sys_select (License): Likewise.
101518         * modules/sys_socket (License): Likewise.
101519         * modules/sys_stat (License): Likewise.
101520         * modules/sys_time (License): Likewise.
101521         * modules/time (License): Likewise.
101522         * modules/time_r (License): Likewise.
101523         * modules/timegm (License): Likewise.
101524         * modules/unistd (License): Likewise.
101525         * modules/vsnprintf (License): Likewise.
101526         * modules/wctype (License): Likewise.
101528 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101530         * modules/argz (License): LGPLv2+.
101532 2007-07-15  Karl Berry  <karl@gnu.org>
101534         * doc/gnulib.texi: revise node structure per new fdl.texi.
101536 2007-07-14  Bruno Haible  <bruno@clisp.org>
101538         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
101539         the output file.
101540         * lib/uniname/uninames.h: Regenerated.
101542 2007-07-14  Karl Berry  <karl@gnu.org>
101544         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
101545         omitting sectioning and index commands.
101547 2007-07-13  Bruno Haible  <bruno@clisp.org>
101549         New gnulib-tool option --more-symlinks.
101550         * gnulib-tool (func_usage): Document --more-symlinks.
101551         (do_copyrights): New variable.
101552         Recognize option --more-symlinks.
101553         (func_import): Don't add a copyright notice transform to
101554         sed_transform_lib_file if do_copyrights is empty.
101556 2007-07-13  Bruno Haible  <bruno@clisp.org>
101558         * lib/vasnprintf.c (decimal_point_char): Define also if
101559         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
101560         && !NEED_PRINTF_DIRECTIVE_A.
101561         Reported by Clemens Koller <clemens.koller@anagramm.de> via
101562         Gary V. Vaughan <gary@gnu.org>.
101564 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
101566         * lib/inttypes_.h: Undo previous change, since it was fixed
101567         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
101569 2007-07-13  Bruno Haible  <bruno@clisp.org>
101571         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
101572         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
101574 2007-07-13  Jim Meyering  <jim@meyering.net>
101576         df: Don't fail for Tru64's "file-on-file mount".
101577         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
101578         so we fall through and use statfs instead.  Details here:
101579         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
101580         Reported by Albert Chin.
101582 2007-07-13  Bruno Haible  <bruno@clisp.org>
101584         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
101585         * modules/configmake (License): Likewise.
101586         * modules/gettext (License): Likewise.
101587         * modules/gettext-h (License): Likewise.
101588         * modules/include_next (License): Likewise.
101589         * modules/link-warning (License): Likewise.
101590         * modules/localcharset (License): Likewise.
101591         * modules/localename (License): Likewise.
101592         * modules/lock (License): Likewise.
101593         * modules/relocatable-lib-lgpl (License): Likewise.
101594         * modules/size_max (License): Likewise.
101595         * modules/vasnprintf (License): Likewise.
101596         * modules/wchar (License): Likewise.
101597         * modules/xsize (License): Likewise.
101599 2007-07-13  Bruno Haible  <bruno@clisp.org>
101601         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
101602         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
101604 2007-07-12  Bruno Haible  <bruno@clisp.org>
101606         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
101607         in the modules files.
101609 2007-07-11  Karl Berry  <karl@gnu.org>
101611         * MODULES.html.sh (func_module): use
101612          sed -e '\|^'"${includefile}"'$|d'
101613          instead of /.../d, to avoid errors on $includefile's containing /.
101615 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
101617         * gnulib-tool (func_import): Avoid duplication of --avoid
101618         statements
101619         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
101620         names to `_' in variable names.
101622 2007-07-10  Eric Blake  <ebb9@byu.net>
101624         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
101625         * NEWS: Document this change.
101627 2007-07-08  Bruno Haible  <bruno@clisp.org>
101629         Update to Unicode 5.0.
101630         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
101631         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
101632         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
101633         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
101634         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
101635         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
101636         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
101637         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
101638         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
101639         U+10A3F, U+1D242..U+1D244.
101640         (nonspacing_table_ind): Update.
101641         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
101642         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
101644 2007-07-08  Bruno Haible  <bruno@clisp.org>
101646         Update to Unicode 5.0.
101647         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
101648         code transform. Extend the name index field of unicode_name_to_code and
101649         unicode_code_to_name from 16 to 24 bits.
101650         * lib/uniname/uniname.c (unicode_character_name,
101651         unicode_name_character): Add the range 0x12xxx to the code transform.
101652         * lib/uniname/uninames.h: Regenerated.
101653         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
101655 2007-07-07  Bruno Haible  <bruno@clisp.org>
101657         * modules/wcwidth-tests: New file.
101658         * tests/test-wcwidth.c: New file.
101660         Work around MacOS X wcwidth() bug.
101661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
101662         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
101663         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
101664         original wcwidth in non-UTF-8 locales.
101665         * modules/wcwidth (Depends-on): Add localcharset, streq,
101666         uniwidth/width.
101667         * doc/functions/wcwidth.texi: Update.
101669 2007-07-07  Bruno Haible  <bruno@clisp.org>
101671         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
101672         (wcwidth): New declaration.
101673         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
101674         macros.
101675         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
101676         here. Prepare for creating <wchar.h> unconditionally.
101677         * modules/wchar (Depends-on): Add link-warning.
101678         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
101679         REPLACE_WCWIDTH, and GL_LINK_WARNING.
101680         * lib/wcwidth.h: Remove file.
101681         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
101682         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
101683         * modules/wcwidth (Files): Remove lib/wcwidth.h.
101684         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
101685         (Include): Replace wcwidth.h with <wchar.h>.
101686         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
101687         * lib/mbchar.h: Don't include wcwidth.h.
101688         * lib/mbswidth.c: Likewise.
101689         * NEWS: Mention the change.
101691 2007-07-07  Bruno Haible  <bruno@clisp.org>
101693         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
101694         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
101695         definition with an external declaration.
101696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
101697         defined as a function. Remove AC_C_INLINE requirement.
101698         * modules/wcwidth (Files): Add lib/wcwidth.c.
101699         (Makefile.am): Remove redundant statement.
101701 2007-07-07  Bruno Haible  <bruno@clisp.org>
101703         * MODULES.html.sh (Unicode string functions): Add the new modules.
101705         * tests/uniwidth/test-u32-strwidth.c: New file.
101706         * modules/uniwidth/u32-strwidth-tests: New file.
101708         * lib/uniwidth/u32-strwidth.c: New file.
101709         * modules/uniwidth/u32-strwidth: New file.
101711         * tests/uniwidth/test-u16-strwidth.c: New file.
101712         * modules/uniwidth/u16-strwidth-tests: New file.
101714         * lib/uniwidth/u16-strwidth.c: New file.
101715         * modules/uniwidth/u16-strwidth: New file.
101717         * tests/uniwidth/test-u8-strwidth.c: New file.
101718         * modules/uniwidth/u8-strwidth-tests: New file.
101720         * lib/uniwidth/u8-strwidth.c: New file.
101721         * modules/uniwidth/u8-strwidth: New file.
101723         * tests/uniwidth/test-u32-width.c: New file.
101724         * modules/uniwidth/u32-width-tests: New file.
101726         * lib/uniwidth/u32-width.c: New file.
101727         * modules/uniwidth/u32-width: New file.
101729         * tests/uniwidth/test-u16-width.c: New file.
101730         * modules/uniwidth/u16-width-tests: New file.
101732         * lib/uniwidth/u16-width.c: New file.
101733         * modules/uniwidth/u16-width: New file.
101735         * tests/uniwidth/test-u8-width.c: New file.
101736         * modules/uniwidth/u8-width-tests: New file.
101738         * lib/uniwidth/u8-width.c: New file.
101739         * modules/uniwidth/u8-width: New file.
101741         * tests/uniwidth/test-uc_width.c: New file.
101742         * modules/uniwidth/width-tests: New file.
101744         * lib/uniwidth/width.c: New file, from GNU libiconv.
101745         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
101746         * modules/uniwidth/width: New file.
101748         * lib/uniwidth.h: New file, from GNU libiconv.
101749         * modules/uniwidth/base: New file.
101751 2007-07-07  Bruno Haible  <bruno@clisp.org>
101753         * lib/uniname.h: New file, from GNU gettext.
101754         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
101755         * lib/uniname/uninames.h: New file, from GNU gettext.
101756         * lib/uniname/uniname.c: New file, from GNU gettext.
101757         * tests/uniname/test-uninames.sh: New file.
101758         * tests/uniname/test-uninames.c: New file, from GNU gettext.
101759         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
101760         * modules/uniname/base: New file.
101761         * modules/uniname/uniname: New file.
101762         * modules/uniname/uniname-tests: New file.
101763         * MODULES.html.sh (Unicode string functions): Add the new modules.
101765 2007-07-06  Bruno Haible  <bruno@clisp.org>
101767         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
101769 2007-07-06  Bruno Haible  <bruno@clisp.org>
101771         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
101772         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
101773         includes <cygwin/sys_time.h> which includes <sys/select.h> which
101774         include <sys/time.h>.
101775         Reported by Eric Blake.
101777 2007-07-06  Eric Blake  <ebb9@byu.net>
101779         Fix testing canonicalize on cygwin.
101780         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
101781         Revert patch from 2007-06-19.
101782         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
101783         canonicalize module is also in use.
101784         * tests/test-canonicalize.c: New file.
101785         * tests/test-canonicalize.sh: Likewise.
101786         * modules/canonicalize-tests: Likewise.
101788 2007-07-06  Jim Meyering  <jim@meyering.net>
101790         * lib/getugroups.c (getugroups): Detect getgrent failure.
101791         Adjust comment to reflect reality: this function may return -1.
101793 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
101795         * build-aux/bootstrap (TP_URL,get_translations): Update to use
101796         the new TP address.
101797         (usage): Fix typo
101798         (gnulib_mk): New variable.
101800 2007-07-05  Jim Meyering  <jim@meyering.net>
101802         Don't let endgrent clobber errno, no matter how improbable.
101803         * lib/getugroups.c (getugroups): Save and restore errno around
101804         endgrent call.
101806         Close the group DB even when failing with 2^31 or more members.
101807         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
101809 2007-07-04  Jim Meyering  <jim@meyering.net>
101811         * lib/getugroups.h: New file.
101812         * lib/getugroups.c: Include "getugroups.h".
101813         Remove uses of "register" keyword.
101814         Move local variable, "cp", down into scope where used.
101815         Give "username" parameter the "const" attribute.
101816         * modules/getugroups (Files): Add lib/getugroups.h
101818 2007-07-04  Karl Berry  <karl@gnu.org>
101820         * MODULES.html.sh (func_all_modules): Complete rename of
101821         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
101823 2007-07-02  Bruno Haible  <bruno@clisp.org>
101825         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
101826         mode, when inttypes.h comes from gnulib.
101827         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
101829 2007-07-02  Simon Josefsson  <simon@josefsson.org>
101831         * NEWS: Mention lgpl module name change.
101833         * modules/lgpl-2.1: Renamed from lgpl.
101835         * NEWS: Mention gpl module name change.
101837         * modules/gpl-3.0: New file, based on gpl-2.0.
101839         * modules/gpl-2.0: Renamed from gpl.
101841         * modules/gpl: Fix filename, doc/gpl.texi is now found at
101842         doc/gpl-2.0.texi.
101844 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
101846         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
101847         #define __STDC_LIMIT_MACROS temporarily while including
101848         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
101849         Problem reported by Joel E. Denny in
101850         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
101852 2007-07-01  Bruno Haible  <bruno@clisp.org>
101854         * lib/unistdio.h: New file.
101855         * lib/unistdio/u-asnprintf.h: New file.
101856         * lib/unistdio/u-asprintf.h: New file.
101857         * lib/unistdio/u-printf-args.c: New file.
101858         * lib/unistdio/u-printf-args.h: New file.
101859         * lib/unistdio/u-printf-parse.h: New file.
101860         * lib/unistdio/u-snprintf.h: New file.
101861         * lib/unistdio/u-sprintf.h: New file.
101862         * lib/unistdio/u-vasprintf.h: New file.
101863         * lib/unistdio/u-vsnprintf.h: New file.
101864         * lib/unistdio/u-vsprintf.h: New file.
101865         * lib/unistdio/ulc-asnprintf.c: New file.
101866         * lib/unistdio/ulc-asprintf.c: New file.
101867         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
101868         * lib/unistdio/ulc-printf-parse.c: New file.
101869         * lib/unistdio/ulc-snprintf.c: New file.
101870         * lib/unistdio/ulc-sprintf.c: New file.
101871         * lib/unistdio/ulc-vasnprintf.c: New file.
101872         * lib/unistdio/ulc-vasprintf.c: New file.
101873         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
101874         * lib/unistdio/ulc-vsnprintf.c: New file.
101875         * lib/unistdio/ulc-vsprintf.c: New file.
101876         * lib/unistdio/u8-asnprintf.c: New file.
101877         * lib/unistdio/u8-asprintf.c: New file.
101878         * lib/unistdio/u8-printf-parse.c: New file.
101879         * lib/unistdio/u8-snprintf.c: New file.
101880         * lib/unistdio/u8-sprintf.c: New file.
101881         * lib/unistdio/u8-vasnprintf.c: New file.
101882         * lib/unistdio/u8-vasprintf.c: New file.
101883         * lib/unistdio/u8-vsnprintf.c: New file.
101884         * lib/unistdio/u8-vsprintf.c: New file.
101885         * lib/unistdio/u8-u8-asnprintf.c: New file.
101886         * lib/unistdio/u8-u8-asprintf.c: New file.
101887         * lib/unistdio/u8-u8-snprintf.c: New file.
101888         * lib/unistdio/u8-u8-sprintf.c: New file.
101889         * lib/unistdio/u8-u8-vasnprintf.c: New file.
101890         * lib/unistdio/u8-u8-vasprintf.c: New file.
101891         * lib/unistdio/u8-u8-vsnprintf.c: New file.
101892         * lib/unistdio/u8-u8-vsprintf.c: New file.
101893         * lib/unistdio/u16-asnprintf.c: New file.
101894         * lib/unistdio/u16-asprintf.c: New file.
101895         * lib/unistdio/u16-printf-parse.c: New file.
101896         * lib/unistdio/u16-snprintf.c: New file.
101897         * lib/unistdio/u16-sprintf.c: New file.
101898         * lib/unistdio/u16-vasnprintf.c: New file.
101899         * lib/unistdio/u16-vasprintf.c: New file.
101900         * lib/unistdio/u16-vsnprintf.c: New file.
101901         * lib/unistdio/u16-vsprintf.c: New file.
101902         * lib/unistdio/u16-u16-asnprintf.c: New file.
101903         * lib/unistdio/u16-u16-asprintf.c: New file.
101904         * lib/unistdio/u16-u16-snprintf.c: New file.
101905         * lib/unistdio/u16-u16-sprintf.c: New file.
101906         * lib/unistdio/u16-u16-vasnprintf.c: New file.
101907         * lib/unistdio/u16-u16-vasprintf.c: New file.
101908         * lib/unistdio/u16-u16-vsnprintf.c: New file.
101909         * lib/unistdio/u16-u16-vsprintf.c: New file.
101910         * lib/unistdio/u32-asnprintf.c: New file.
101911         * lib/unistdio/u32-asprintf.c: New file.
101912         * lib/unistdio/u32-printf-parse.c: New file.
101913         * lib/unistdio/u32-snprintf.c: New file.
101914         * lib/unistdio/u32-sprintf.c: New file.
101915         * lib/unistdio/u32-vasnprintf.c: New file.
101916         * lib/unistdio/u32-vasprintf.c: New file.
101917         * lib/unistdio/u32-vsnprintf.c: New file.
101918         * lib/unistdio/u32-vsprintf.c: New file.
101919         * lib/unistdio/u32-u32-asnprintf.c: New file.
101920         * lib/unistdio/u32-u32-asprintf.c: New file.
101921         * lib/unistdio/u32-u32-snprintf.c: New file.
101922         * lib/unistdio/u32-u32-sprintf.c: New file.
101923         * lib/unistdio/u32-u32-vasnprintf.c: New file.
101924         * lib/unistdio/u32-u32-vasprintf.c: New file.
101925         * lib/unistdio/u32-u32-vsnprintf.c: New file.
101926         * lib/unistdio/u32-u32-vsprintf.c: New file.
101927         * tests/unistdio/test-ulc-asnprintf1.c: New file.
101928         * tests/unistdio/test-ulc-asnprintf1.h: New file.
101929         * tests/unistdio/test-ulc-printf1.h: New file.
101930         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
101931         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
101932         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
101933         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
101934         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
101935         * tests/unistdio/test-ulc-vasprintf1.c: New file.
101936         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
101937         * tests/unistdio/test-ulc-vsprintf1.c: New file.
101938         * tests/unistdio/test-u8-asnprintf1.c: New file.
101939         * tests/unistdio/test-u8-asnprintf1.h: New file.
101940         * tests/unistdio/test-u8-printf1.h: New file.
101941         * tests/unistdio/test-u8-vasnprintf1.c: New file.
101942         * tests/unistdio/test-u8-vasnprintf2.c: New file.
101943         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
101944         * tests/unistdio/test-u8-vasnprintf3.c: New file.
101945         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
101946         * tests/unistdio/test-u8-vasprintf1.c: New file.
101947         * tests/unistdio/test-u8-vsnprintf1.c: New file.
101948         * tests/unistdio/test-u8-vsprintf1.c: New file.
101949         * tests/unistdio/test-u16-asnprintf1.c: New file.
101950         * tests/unistdio/test-u16-asnprintf1.h: New file.
101951         * tests/unistdio/test-u16-printf1.h: New file.
101952         * tests/unistdio/test-u16-vasnprintf1.c: New file.
101953         * tests/unistdio/test-u16-vasnprintf2.c: New file.
101954         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
101955         * tests/unistdio/test-u16-vasnprintf3.c: New file.
101956         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
101957         * tests/unistdio/test-u16-vasprintf1.c: New file.
101958         * tests/unistdio/test-u16-vsnprintf1.c: New file.
101959         * tests/unistdio/test-u16-vsprintf1.c: New file.
101960         * tests/unistdio/test-u32-asnprintf1.c: New file.
101961         * tests/unistdio/test-u32-asnprintf1.h: New file.
101962         * tests/unistdio/test-u32-printf1.h: New file.
101963         * tests/unistdio/test-u32-vasnprintf1.c: New file.
101964         * tests/unistdio/test-u32-vasnprintf2.c: New file.
101965         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
101966         * tests/unistdio/test-u32-vasnprintf3.c: New file.
101967         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
101968         * tests/unistdio/test-u32-vasprintf1.c: New file.
101969         * tests/unistdio/test-u32-vsnprintf1.c: New file.
101970         * tests/unistdio/test-u32-vsprintf1.c: New file.
101971         * modules/unistdio/base: New file.
101972         * modules/unistdio/u-printf-args: New file.
101973         * modules/unistdio/ulc-asnprintf: New file.
101974         * modules/unistdio/ulc-asprintf: New file.
101975         * modules/unistdio/ulc-fprintf: New file.
101976         * modules/unistdio/ulc-printf-parse: New file.
101977         * modules/unistdio/ulc-snprintf: New file.
101978         * modules/unistdio/ulc-sprintf: New file.
101979         * modules/unistdio/ulc-vasnprintf: New file.
101980         * modules/unistdio/ulc-vasprintf: New file.
101981         * modules/unistdio/ulc-vfprintf: New file.
101982         * modules/unistdio/ulc-vsnprintf: New file.
101983         * modules/unistdio/ulc-vsprintf: New file.
101984         * modules/unistdio/u8-asnprintf: New file.
101985         * modules/unistdio/u8-asprintf: New file.
101986         * modules/unistdio/u8-printf-parse: New file.
101987         * modules/unistdio/u8-snprintf: New file.
101988         * modules/unistdio/u8-sprintf: New file.
101989         * modules/unistdio/u8-vasnprintf: New file.
101990         * modules/unistdio/u8-vasprintf: New file.
101991         * modules/unistdio/u8-vsnprintf: New file.
101992         * modules/unistdio/u8-vsprintf: New file.
101993         * modules/unistdio/u8-u8-asnprintf: New file.
101994         * modules/unistdio/u8-u8-asprintf: New file.
101995         * modules/unistdio/u8-u8-snprintf: New file.
101996         * modules/unistdio/u8-u8-sprintf: New file.
101997         * modules/unistdio/u8-u8-vasnprintf: New file.
101998         * modules/unistdio/u8-u8-vasprintf: New file.
101999         * modules/unistdio/u8-u8-vsnprintf: New file.
102000         * modules/unistdio/u8-u8-vsprintf: New file.
102001         * modules/unistdio/u16-asnprintf: New file.
102002         * modules/unistdio/u16-asprintf: New file.
102003         * modules/unistdio/u16-printf-parse: New file.
102004         * modules/unistdio/u16-snprintf: New file.
102005         * modules/unistdio/u16-sprintf: New file.
102006         * modules/unistdio/u16-vasnprintf: New file.
102007         * modules/unistdio/u16-vasprintf: New file.
102008         * modules/unistdio/u16-vsnprintf: New file.
102009         * modules/unistdio/u16-vsprintf: New file.
102010         * modules/unistdio/u16-u16-asnprintf: New file.
102011         * modules/unistdio/u16-u16-asprintf: New file.
102012         * modules/unistdio/u16-u16-snprintf: New file.
102013         * modules/unistdio/u16-u16-sprintf: New file.
102014         * modules/unistdio/u16-u16-vasnprintf: New file.
102015         * modules/unistdio/u16-u16-vasprintf: New file.
102016         * modules/unistdio/u16-u16-vsnprintf: New file.
102017         * modules/unistdio/u16-u16-vsprintf: New file.
102018         * modules/unistdio/u32-asnprintf: New file.
102019         * modules/unistdio/u32-asprintf: New file.
102020         * modules/unistdio/u32-printf-parse: New file.
102021         * modules/unistdio/u32-snprintf: New file.
102022         * modules/unistdio/u32-sprintf: New file.
102023         * modules/unistdio/u32-vasnprintf: New file.
102024         * modules/unistdio/u32-vasprintf: New file.
102025         * modules/unistdio/u32-vsnprintf: New file.
102026         * modules/unistdio/u32-vsprintf: New file.
102027         * modules/unistdio/u32-u32-asnprintf: New file.
102028         * modules/unistdio/u32-u32-asprintf: New file.
102029         * modules/unistdio/u32-u32-snprintf: New file.
102030         * modules/unistdio/u32-u32-sprintf: New file.
102031         * modules/unistdio/u32-u32-vasnprintf: New file.
102032         * modules/unistdio/u32-u32-vasprintf: New file.
102033         * modules/unistdio/u32-u32-vsnprintf: New file.
102034         * modules/unistdio/u32-u32-vsprintf: New file.
102035         * modules/unistdio/ulc-asnprintf-tests: New file.
102036         * modules/unistdio/ulc-vasnprintf-tests: New file.
102037         * modules/unistdio/ulc-vasprintf-tests: New file.
102038         * modules/unistdio/ulc-vsnprintf-tests: New file.
102039         * modules/unistdio/ulc-vsprintf-tests: New file.
102040         * modules/unistdio/u8-asnprintf-tests: New file.
102041         * modules/unistdio/u8-vasnprintf-tests: New file.
102042         * modules/unistdio/u8-vasprintf-tests: New file.
102043         * modules/unistdio/u8-vsnprintf-tests: New file.
102044         * modules/unistdio/u8-vsprintf-tests: New file.
102045         * modules/unistdio/u16-asnprintf-tests: New file.
102046         * modules/unistdio/u16-vasnprintf-tests: New file.
102047         * modules/unistdio/u16-vasprintf-tests: New file.
102048         * modules/unistdio/u16-vsnprintf-tests: New file.
102049         * modules/unistdio/u16-vsprintf-tests: New file.
102050         * modules/unistdio/u32-asnprintf-tests: New file.
102051         * modules/unistdio/u32-vasnprintf-tests: New file.
102052         * modules/unistdio/u32-vasprintf-tests: New file.
102053         * modules/unistdio/u32-vsnprintf-tests: New file.
102054         * modules/unistdio/u32-vsprintf-tests: New file.
102055         * MODULES.html.sh (Unicode string functions): Add the new modules.
102057 2007-07-01  Bruno Haible  <bruno@clisp.org>
102059         * lib/sprintf.c (sprintf): Limit the available length estimation,
102060         to avoid address wraparound.
102061         * lib/vsprintf.c (vsprintf): Likewise.
102062         * modules/sprintf-posix (Dependencies): Add stdint.
102063         * modules/vsprintf-posix (Dependencies): Likewise.
102065 2007-07-01  Bruno Haible  <bruno@clisp.org>
102067         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102068         Windows PATH as well. Conservative double-quoting. Comments.
102070 2007-07-01  Bruno Haible  <bruno@clisp.org>
102071             Eric Blake  <ebb9@byu.net>
102072             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102074         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102075         empty components in $PATH, denoting '.'.
102077 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102079         * gnulib-tool: Fix indentation.
102080         (func_create_megatestdir): Likewise.
102081         Report by Bruno Haible.
102083 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102085         Sync from Automake.
102086         * build-aux/gnupload: Fix shell portability issues with for loops.
102087         Report by Karl Berry.
102089 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102091         * build-aux/maint.mk (POURL): Use translationproject.org.
102093 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102094             Bruno Haible  <bruno@clisp.org>
102096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102097         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102098         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102099         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102100         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102102 2007-06-27  Bruno Haible  <bruno@clisp.org>
102104         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102105         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102107 2007-06-26  Karl Berry  <karl@gnu.org>
102109         * MODULES.html.sh: remove xreadlink-with-size.
102111 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102113         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102114         method that I hope also handles the double-include problem noted
102115         by Bruno Haible in
102116         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102118 2007-06-23  Bruno Haible  <bruno@clisp.org>
102120         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102121         Don't let the 'mostlyclean' target fail if the last subdirectory could
102122         not be removed.
102123         Reported by Karl Berry.
102125 2007-06-23  Bruno Haible  <bruno@clisp.org>
102127         * gnulib-tool (echo): Add a speedier workaround for ksh.
102128         * tests/test-echo.sh: Likewise.
102130 2007-06-23  Bruno Haible  <bruno@clisp.org>
102132         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102133         * tests/test-echo.sh: Likewise.
102135 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102137         * gnulib-tool (IFS): Initialize early, so we don't set it to
102138         empty later.
102139         (self_abspathname): Rewrite algorithm to set it, reindent.
102140         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102141         (func_create_megatestdir): Merge some sed scripts.
102143 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102145         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102146         exposed by Sun Studio 11 cc on Solaris 8.
102148 2007-06-22  Bruno Haible  <bruno@clisp.org>
102150         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102151         backslashes.
102152         * tests/test-echo.sh: New file.
102154 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102156         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102157         simplify `sed_replace_build_aux' scripts, they are portable but
102158         echoing them with `echo' is not.
102159         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102161 2007-06-21  Karl Berry  <karl@gnu.org>
102163         * config/srclist.txt: guess we can't handle the licenses via
102164         srclist at the moment.
102166 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102168         * MODULES.html.sh: Add include_next.
102169         * modules/include_next: New file.
102171 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102173         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102174         INCLUDE_NEXT.
102175         (gl_CHECK_NEXT_HEADERS): New macro.
102176         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102177         the obsolescent gl_ABSOLUTE_HEADER.
102178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102179         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102180         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102181         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102182         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102183         * m4/math_h.m4 (gl_MATH_H): Likewise.
102184         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102185         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102186         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102187         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102188         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102189         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102190         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102191         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102192         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102195         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102196         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102197         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102198         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102199         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102200         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102201         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102202         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102203         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102204         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102205         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102206         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102207         * lib/float_.h: Likewise.
102208         * lib/inttypes_.h: Likewise.
102209         * lib/math_.h: Likewise.
102210         * lib/search_.h: Likewise.
102211         * lib/signal_.h: Likewise.
102212         * lib/stdint_.h: Likewise.
102213         * lib/stdio_.h: Likewise.
102214         * lib/stdlib_.h: Likewise.
102215         * lib/string_.h: Likewise.
102216         * lib/sys_stat_.h: Likewise.
102217         * lib/sys_time_.h: Likewise.
102218         * lib/time_.h: Likewise.
102219         * lib/unistd_.h: Likewise.
102220         * lib/wchar_.h: Likewise.
102221         * lib/wctype_.h: Likewise.
102222         * lib/dirent_.h: Likewise.
102223         * lib/iconv_.h: Likewise.
102224         * lib/locale_.h: Likewise.
102225         * lib/netinet_in_.h: Likewise.
102226         * lib/sys_select_.h: Likewise.
102227         * lib/sys_socket_.h: Likewise.
102228         * lib/sysexits_.h: Likewise.
102229         * modules/fcntl (Depends-on): Depend on include_next, not
102230         absolute_header.
102231         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
102232         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
102233         * modules/fchdir: Likewise.
102234         * modules/float: Likewise.
102235         * modules/iconv_open: Likewise.
102236         * modules/inttypes: Likewise.
102237         * modules/locale: Likewise.
102238         * modules/math: Likewise.
102239         * modules/netinet_in: Likewise.
102240         * modules/search: Likewise.
102241         * modules/signal: Likewise.
102242         * modules/stdint: Likewise.
102243         * modules/stdio: Likewise.
102244         * modules/stdlib: Likewise.
102245         * modules/string: Likewise.
102246         * modules/sys_select: Likewise.
102247         * modules/sys_socket: Likewise.
102248         * modules/sys_stat: Likewise.
102249         * modules/sys_time: Likewise.
102250         * modules/sysexits: Likewise.
102251         * modules/time: Likewise.
102252         * modules/unistd: Likewise.
102253         * modules/wchar: Likewise.
102254         * modules/wctype: Likewise.
102255         * modules/sys_stat: Change maintainer to "all".
102256         * modules/unistd: Likewise.
102258 2007-06-20  Karl Berry  <karl@gnu.org>
102260         * config/srclist.txt: track www changes in license files.
102262 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102264         * build-aux/bootstrap: Remove stray dot.
102265         Make sure build_aux settings are honored when linking
102266         gnulib_extra_files.
102268 2007-06-19  Eric Blake  <ebb9@byu.net>
102270         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102271         Allow compilation on cygwin.
102273 2007-06-19  Jim Meyering  <jim@meyering.net>
102275         xreadlink-with-size: Remove module.  No longer used.
102276         Ex-callers now use xreadlink or mreadlink-with-size.
102277         * modules/xreadlink-with-size: Remove module.
102278         * lib/xreadlink-with-size.c: Remove file.
102279         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102280         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102281         just before the function definition *is* accurate.
102283         Eliminate one way canonicalize_filename_mode could exit.
102284         * lib/canonicalize.c (canonicalize_filename_mode):
102285         Use mreadlink_with_size, not xreadlink_with_size.
102287 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102289         Detect porting problems to FreeBSD/arm, which has time_t wider than
102290         long int.  Original problem reported for GNU diff by Xin Li in
102291         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102292         * modules/getdate (Depends-on): Add intprops, verify.
102293         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102294         is an integer type no wider than long int.
102296 2007-06-18  Jim Meyering  <jim@meyering.net>
102298         New module: mreadlink-with-size.
102299         * MODULES.html.sh: Add mreadlink-with-size.
102300         * modules/mreadlink-with-size: New module
102301         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102302         not xreadlink-with-size.
102303         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102305 2007-06-16  Bruno Haible  <bruno@clisp.org>
102307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102308         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102309         Reported by Gary V. Vaughan <gary@gnu.org>.
102311 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102313         Revamp lchown so that it lives in unistd.h where it belongs.
102314         * lib/lchown.h: Remove.
102315         * lib/dirchownmod.c: Don't include lib/lchown.h.
102316         * lib/fchownat.c: Likewise.
102317         * lib/openat.c: Likewise.
102318         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102319         does not follow symlinks.
102320         (EOPNOTSUPP): Define if not defined.
102321         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102322         is defined to 0.
102323         (lchown): New decl.
102324         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102325         Do not check for lchown decl.
102326         Set REPLACE_LCHOWN.
102327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102328         REPLACE_LCHOWN.
102329         * modules/chown: Make it clear it follows symlinks.
102330         * modules/lchown: Make it clear it doesn't follow symlinks.
102331         (Files): Remove lib/lchown.h
102332         (Depends-on): Add unistd.
102333         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102334         (Include): Include <unistd.h>, not "lchown.h".
102335         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102336         REPLACE_LCHOWN.
102338 2007-06-15  Jim Meyering  <jim@meyering.net>
102340         Change license (GPL to LGPL) of fsusage and dependents.
102341         * modules/fsusage (License): Change to LGPL.
102342         * modules/full-read (License): Likewise.
102343         * modules/full-write (License): Likewise.
102344         * modules/safe-read (License): Likewise.
102345         * modules/safe-write (License): Likewise.
102347 2007-06-14  Ben Pfaff  <blp@gnu.org>
102349         Missing part of allocsa -> malloca transition.
102350         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102351         gl_MALLOCA.
102353 2007-06-12  Bruno Haible  <bruno@clisp.org>
102355         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102356         to ia64, x86_64, i386.
102357         Reported by Eric Blake.
102359 2007-06-12  Bruno Haible  <bruno@clisp.org>
102361         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102362         cross-compiling to x86_64.
102364 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102367         glitch reported by Ralf Wildenhues in
102368         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102370         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102371         Vin Shelton.
102373 2007-06-11  Bruno Haible  <bruno@clisp.org>
102375         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102376         replacement string.
102377         Reported by Eric Blake.
102379 2007-06-10  Bruno Haible  <bruno@clisp.org>
102381         Prepare vasnprintf code for use with Unicode strings.
102382         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
102383         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
102384         TYPE_U32_STRING.
102385         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
102386         a_u32_string variants.
102387         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102388         * lib/printf-args.c: Don't include config.h and the specification
102389         header if PRINTF_FETCHARGS is already defined.
102390         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102391         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
102392         TYPE_U16_STRING, TYPE_U32_STRING.
102393         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
102394         u16_directive, u16_directives, u32_directive, u32_directives): New
102395         types.
102396         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
102397         New declarations.
102398         * lib/printf-parse.c: Don't include config.h and the specification
102399         header if PRINTF_PARSE is already defined. Eliminate the set of
102400         parameters for WIDE_CHAR_VERSION; the user of this file must provide
102401         them now. Include c-ctype.h.
102402         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
102403         directive and CHAR_T_ONLY_ASCII.
102404         * lib/vasnprintf.c: Don't include config.h and the specification header
102405         if VASNPRINTF is already defined.
102406         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
102407         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
102408         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
102409         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
102410         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
102411         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
102412         code accordingly.
102413         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
102414         pad_ourselves also in this case, with the 'c' and 's' directives, and
102415         with a different notion of "width".
102416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
102418 2007-06-10  Bruno Haible  <bruno@clisp.org>
102420         * modules/unistr/u32-mbsnlen: New file.
102421         * lib/unistr/u32-mbsnlen.c: New file.
102423         * modules/unistr/u16-mbsnlen: New file.
102424         * lib/unistr/u16-mbsnlen.c: New file.
102426         * modules/unistr/u8-mbsnlen: New file.
102427         * lib/unistr/u8-mbsnlen.c: New file.
102429         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
102430         declarations.
102432 2007-06-10  Bruno Haible  <bruno@clisp.org>
102434         * lib/string_.h (mbsnlen): New declaration.
102435         * lib/mbsnlen.c: New file.
102436         * m4/mbsnlen.m4: New file.
102437         * modules/mbsnlen: New file.
102438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
102439         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
102440         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
102442 2007-06-10  Bruno Haible  <bruno@clisp.org>
102444         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
102446 2007-06-10  Bruno Haible  <bruno@clisp.org>
102448         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
102449         * lib/mbuiter.h: Likewise.
102451 2007-06-10  Bruno Haible  <bruno@clisp.org>
102453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
102454         declaration.
102456 2007-06-10  Karl Berry  <karl@gnu.org>
102458         * config/srclist.txt: remove gettext entries, Bruno prefers
102459         to update individually.
102461 2007-06-10  Bruno Haible  <bruno@clisp.org>
102463         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
102464         'maxlen'. Ensure only length + width bytes are allocated, not
102465         length + 1 + width.
102467 2007-06-09  Bruno Haible  <bruno@clisp.org>
102469         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
102470         (CHAR_T): Remove macro.
102471         (VASNPRINTF): Update.
102473 2007-06-09  Bruno Haible  <bruno@clisp.org>
102475         * MODULES.html.sh (Unicode string functions): Add the new modules.
102477         * modules/uniconv/u32-conv-to-enc: New file.
102478         * lib/uniconv/u32-conv-to-enc.c: New file.
102479         * modules/uniconv/u32-conv-to-enc-tests: New file.
102480         * tests/uniconv/test-u32-conv-to-enc.c: New file.
102482         * modules/uniconv/u16-conv-to-enc: New file.
102483         * lib/uniconv/u16-conv-to-enc.c: New file.
102484         * lib/uniconv/u-conv-to-enc.h: New file.
102485         * modules/uniconv/u16-conv-to-enc-tests: New file.
102486         * tests/uniconv/test-u16-conv-to-enc.c: New file.
102488         * modules/uniconv/u8-conv-to-enc: New file.
102489         * lib/uniconv/u8-conv-to-enc.c: New file.
102490         * modules/uniconv/u8-conv-to-enc-tests: New file.
102491         * tests/uniconv/test-u8-conv-to-enc.c: New file.
102493         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
102494         u32_conv_to_encoding): New declarations.
102496 2007-06-09  Bruno Haible  <bruno@clisp.org>
102498         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
102500 2007-06-09  Bruno Haible  <bruno@clisp.org>
102502         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
102503         * modules/malloca: Renamed from modules/allocsa, updated.
102504         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
102505         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
102506         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
102507         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
102508         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
102509         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
102510         * modules/xmalloca: Renamed from modules/xallocsa, updated.
102511         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
102512         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
102513         * modules/c-strcasestr (Depends-on): Update.
102514         * lib/c-strcasestr.c: Update.
102515         * modules/c-strstr (Depends-on): Update.
102516         * lib/c-strstr.c: Update.
102517         * modules/canonicalize-lgpl (Depends-on): Update.
102518         * lib/canonicalize-lgpl.c: Update.
102519         * modules/clean-temp (Depends-on): Update.
102520         * lib/clean-temp.c: Update.
102521         * modules/csharpcomp (Depends-on): Update.
102522         * lib/csharpcomp.c: Update.
102523         * modules/csharpexec (Depends-on): Update.
102524         * lib/csharpexec.c: Update.
102525         * modules/javacomp (Depends-on): Update.
102526         * lib/javacomp.c: Update.
102527         * modules/javaexec (Depends-on): Update.
102528         * lib/javaexec.c: Update.
102529         * modules/mbscasestr (Depends-on): Update.
102530         * lib/mbscasestr.c: Update.
102531         * modules/mbsstr (Depends-on): Update.
102532         * lib/mbsstr.c: Update.
102533         * modules/setenv (Depends-on): Update.
102534         * lib/setenv.c: Update.
102535         * modules/strcasestr (Depends-on): Update.
102536         * lib/strcasestr.c: Update.
102537         * modules/striconveha (Depends-on): Update.
102538         * lib/striconveha.c: Update.
102539         * modules/relocatable-prog-wrapper (Files): Update.
102540         * lib/relocwrapper.c: Update.
102541         * build-aux/install-reloc: Update.
102542         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
102544 2007-06-08  Bruno Haible  <bruno@clisp.org>
102546         Port to uClibc.
102547         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
102548         * lib/fpurge.c (fpurge): Likewise.
102549         * lib/freading.c (freading): Likewise.
102550         * lib/fseeko.c (rpl_fseeko): Likewise.
102551         * lib/fseterr.c (fseterr): Likewise.
102552         * lib/fwriting.c (fwriting): Likewise.
102553         * tests/test-fflush.c (main): Avoid a failure on uClibc.
102555 2007-06-08  Bruno Haible  <bruno@clisp.org>
102557         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
102558         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
102559         * modules/gettext (Files): Add m4/intlmacosx.m4.
102561 2007-06-07  Bruno Haible  <bruno@clisp.org>
102563         * modules/localename-tests: New file.
102564         * tests/test-localename.c: New file.
102566         New module 'localename'.
102567         * lib/localename.h: New file.
102568         * lib/localename.c: New file, from GNU gettext.
102569         * m4/localename.m4: New file.
102570         * modules/localename: New file.
102572 2007-06-07  Bruno Haible  <bruno@clisp.org>
102574         Work around the lack of <wchar.h> on some builds of uClibc.
102575         * doc/headers/wchar.texi: Update.
102576         * lib/wchar_.h: Include <wchar.h> only if it exists.
102577         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
102578         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
102579         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
102580         doesn't exist.
102581         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
102582         * modules/mbfile (Depends-on): Add wchar.
102583         * modules/mbiter (Depends-on): Likewise.
102584         * modules/mbuiter (Depends-on): Likewise.
102585         Reported by Simon Josefsson.
102587 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
102589         Work around problem reported by Steven M. Schweda in
102590         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
102591         Tru64 5.1B with the Compaq compiler environment installed declares
102592         an 'isblank' function but does not define it in the C library.
102593         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
102594         * lib/regex_internal.h (isblank): Likewise.
102595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
102596         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102598 2007-06-05  Bruno Haible  <bruno@clisp.org>
102600         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
102601         ia64.
102602         * modules/printf-safe: New file.
102603         * modules/fprintf-posix (Depends-on): Add printf-safe.
102604         * modules/printf-posix (Depends-on): Likewise.
102605         * modules/snprintf-posix (Depends-on): Likewise.
102606         * modules/sprintf-posix (Depends-on): Likewise.
102607         * modules/vasnprintf-posix (Depends-on): Likewise.
102608         * modules/vasprintf-posix (Depends-on): Likewise.
102609         * modules/vfprintf-posix (Depends-on): Likewise.
102610         * modules/vprintf-posix (Depends-on): Likewise.
102611         * modules/vsnprintf-posix (Depends-on): Likewise.
102612         * modules/vsprintf-posix (Depends-on): Likewise.
102613         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
102614         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
102615         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
102616         "no" on i386, x86_64, ia64.
102617         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
102618         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102619         on i386, x86_64, ia64.
102620         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
102621         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102622         on i386, x86_64, ia64.
102623         * tests/test-vasnprintf-posix.c: Include float.h.
102624         (LDBL80_WORDS): New macro.
102625         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102626         on i386, x86_64, ia64.
102627         * tests/test-vasprintf-posix.c: Include float.h.
102628         (LDBL80_WORDS): New macro.
102629         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102630         on i386, x86_64, ia64.
102631         * tests/test-snprintf-posix.c: Include float.h.
102632         * tests/test-sprintf-posix.c: Likewise.
102633         * tests/test-vsnprintf-posix.c: Likewise.
102634         * tests/test-vsprintf-posix.c: Likewise.
102636 2007-06-05  Bruno Haible  <bruno@clisp.org>
102638         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
102639         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
102640         non-IEEE numbers on i386, x86_64, ia64.
102641         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
102642         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
102643         * tests/test-isnanl.h: Include float.h.
102644         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
102646 2007-06-05  Bruno Haible  <bruno@clisp.org>
102648         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
102649         also the %a / %A. Handle the %a / %A code before this extra handling.
102651 2007-06-05  Bruno Haible  <bruno@clisp.org>
102653         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
102654         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
102656 2007-06-05  Bruno Haible  <bruno@clisp.org>
102658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
102659         typo in variable name.
102661 2007-06-05  Eric Blake  <ebb9@byu.net>
102663         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
102664         Reported by Simon Josefsson.
102666 2007-06-04  Bruno Haible  <bruno@clisp.org>
102668         Avoid test failures on some PowerPC platforms.
102669         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
102670         Define differently for PowerPC.
102671         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
102672         Reported by Gary V. Vaughan <gary@gnu.org>.
102674 2007-06-02  Bruno Haible  <bruno@clisp.org>
102676         Fix test-stdint failure on FreeBSD/ia64.
102677         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
102678         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
102679         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
102680         * doc/headers/stdint.texi: Update.
102682 2007-06-01  Bruno Haible  <bruno@clisp.org>
102684         * tests/test-binary-io.c (main): Pass a third argument to open().
102685         Reported by Gary V. Vaughan <gary@gnu.org>.
102687 2007-06-01  Bruno Haible  <bruno@clisp.org>
102689         * doc/functions/frexpl.texi: Update for mingw.
102691 2007-06-01  Bruno Haible  <bruno@clisp.org>
102693         * tests/test-lseek.c (main): Disable test of errno for invalid third
102694         argument.
102695         * doc/functions/lseek.texi: Update.
102696         Reported by Gary V. Vaughan <gary@gnu.org>.
102698 2007-05-28  Bruno Haible  <bruno@clisp.org>
102700         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
102702 2007-05-31  Eric Blake  <ebb9@byu.net>
102704         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
102705         cross compiling.
102707 2007-05-30  Eric Blake  <ebb9@byu.net>
102708         and Bruno Haible  <bruno@clisp.org>
102710         Work around mingw test failures exposed by m4-1.4.9b.
102711         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
102712         * tests/test-unistd.c: Disable uid_t and git_t tests for the
102713         moment.
102715 2007-05-30  Bruno Haible  <bruno@clisp.org>
102717         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
102718         assuming that they are closed. Needed on HP-UX 11.
102720 2007-05-29  Bruno Haible  <bruno@clisp.org>
102722         Fix a problem with #include_next.
102723         * lib/dirent_.h: Split the double-inclusion guard.
102724         * lib/fcntl_.h: Likewise.
102725         * lib/float_.h: Likewise.
102726         * lib/iconv_.h: Likewise.
102727         * lib/inttypes_.h: Likewise.
102728         * lib/locale_.h: Likewise.
102729         * lib/math_.h: Likewise.
102730         * lib/netinet_in_.h: Likewise.
102731         * lib/search_.h: Likewise.
102732         * lib/signal_.h: Likewise.
102733         * lib/stdint_.h: Likewise.
102734         * lib/stdio_.h: Likewise.
102735         * lib/stdlib_.h: Likewise.
102736         * lib/string_.h: Likewise.
102737         * lib/sys_select_.h: Likewise.
102738         * lib/sys_socket_.h: Likewise.
102739         * lib/sys_stat_.h: Likewise.
102740         * lib/sys_time_.h: Likewise.
102741         * lib/sysexits_.h: Likewise.
102742         * lib/time_.h: Likewise.
102743         * lib/unistd_.h: Likewise.
102744         * lib/wchar_.h: Likewise.
102745         * lib/wctype_.h: Likewise.
102747 2007-05-29  Bruno Haible  <bruno@clisp.org>
102749         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
102750         for the moment.
102752 2007-05-29  Bruno Haible  <bruno@clisp.org>
102754         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
102755         invocation.
102756         Reported by Eric Blake.
102758 2007-05-29  Bruno Haible  <bruno@clisp.org>
102760         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
102761         compiling case.
102763 2007-05-29  Eric Blake  <ebb9@byu.net>
102764             Bruno Haible  <bruno@clisp.org>
102766         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
102767         cross compiles.
102769 2007-05-28  Eric Blake  <ebb9@byu.net>
102771         * modules/closein-tests (test_closein_LDADD): Support test on
102772         cygwin with libtool.
102774 2007-05-28  Bruno Haible  <bruno@clisp.org>
102776         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
102777         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
102778         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
102779         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
102780         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
102781         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
102782         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
102783         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
102784         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
102786 2007-05-28  Eric Blake  <ebb9@byu.net>
102788         Unconditionally include <config.h> in unit tests.
102789         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
102790         * tests/test-allocsa.c, tests/test-arcfour.c,
102791         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
102792         tests/test-array_list.c, tests/test-array_oset.c,
102793         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
102794         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
102795         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
102796         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
102797         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
102798         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
102799         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
102800         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
102801         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
102802         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
102803         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
102804         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
102805         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
102806         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
102807         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
102808         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
102809         test-md5.c, test-memmem.c, test-printf-posix.c,
102810         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
102811         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
102812         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
102813         test-strcasestr.c, test-striconv.c, test-striconveh.c,
102814         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
102815         test-vasnprintf-posix2.c, test-vasnprintf.c,
102816         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
102817         test-vfprintf-posix.c, test-vprintf-posix.c,
102818         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
102819         test-xvasprintf.c: Likewise.
102821 2007-05-28  Bruno Haible  <bruno@clisp.org>
102823         * gnulib-tool (func_import): Remember the --with-tests command-line
102824         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
102825         Reported by Eric Blake.
102827 2007-05-28  Bruno Haible  <bruno@clisp.org>
102829         * modules/ftell-tests: New file.
102830         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
102831         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
102833         * lib/ftell.c: New file.
102834         * modules/ftell: New file.
102835         * m4/ftell.m4: New file.
102836         * doc/functions/ftell.texi: Update.
102837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
102838         REPLACE_FTELL.
102839         * lib/stdio_.h (rpl_ftell): New declaration.
102840         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
102841         REPLACE_FTELL.
102843 2007-05-28  Eric Blake  <ebb9@byu.net>
102845         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
102847 2007-05-28  Bruno Haible  <bruno@clisp.org>
102849         * modules/fseek-tests: New file.
102850         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
102851         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
102853         * lib/fseek.c: New file.
102854         * modules/fseek: New file.
102855         * m4/fseek.m4: New file.
102856         * doc/functions/fseek.texi: Update.
102857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
102858         REPLACE_FSEEK.
102859         * lib/stdio_.h (rpl_fseek): New declaration.
102860         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
102861         REPLACE_FSEEK.
102863 2007-05-28  Bruno Haible  <bruno@clisp.org>
102865         * lib/stdio_.h (fflush): More comments.
102867 2007-05-28  Bruno Haible  <bruno@clisp.org>
102869         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
102870         runtime test.
102872 2007-05-28  Eric Blake  <ebb9@byu.net>
102874         Improve lseek module.
102875         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
102876         * lib/unistd_.h (lseek): Scale back link warning message.
102877         * tests/test-lseek.c: Beef up test.
102878         * tests/test-lseek.sh: Exercise more facets of lseek.
102879         Reported by Bruno Haible.
102881 2007-05-28  Bruno Haible  <bruno@clisp.org>
102883         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
102884         to define.
102886 2007-05-27  Bruno Haible  <bruno@clisp.org>
102888         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
102890 2007-05-27  Bruno Haible  <bruno@clisp.org>
102892         * modules/openmp: New file.
102893         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
102894         Noah Misch.
102896 2007-05-26  Bruno Haible  <bruno@clisp.org>
102898         * modules/chdir-long (Depends-on): Add fchdir.
102899         * modules/chdir-safer (Depends-on): Likewise.
102900         * modules/fts (Depends-on): Likewise.
102901         * modules/fts-lgpl (Depends-on): Likewise.
102902         * modules/openat (Depends-on): Likewise.
102903         * modules/savewd (Depends-on): Likewise.
102905 2007-05-24  Eric Blake  <ebb9@byu.net>
102907         Fix lseek on mingw.
102908         * modules/lseek: New module.
102909         * m4/lseek.m4: New file.
102910         * lib/lseek.c: New file.
102911         * modules/lseek-tests: New file.
102912         * tests/test-lseek.c: New file.
102913         * tests/test-lseek.sh: New file.
102914         * MODULES.html.sh: Document lseek module.
102915         * modules/fflush (Depends-on): Add lseek, fseeko.
102916         * modules/fseeko (Depends-on): Likewise.
102917         * modules/ftello (Depends-on): Likewise.
102918         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
102919         broken.
102920         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
102921         broken.
102922         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
102923         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
102924         * lib/ftello.c (rpl_ftello): Likewise.
102925         * tests/test-fseeko.c (main): Test this.
102926         * tests/test-fseeko.sh: Likewise.
102927         * tests/test-ftello.c (main): Likewise.
102928         * tests/test-ftello.sh: Likewise.
102929         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
102930         implies replacing fseek.
102931         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
102932         HAVE_FTELLO.
102933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
102934         * modules/unistd (Makefile.am): Likewise.
102935         * lib/unistd_.h (lseek): Declare a replacement.
102936         * doc/functions/lseek.texi (lseek): Document this fix.
102937         * doc/functions/fseek.texi (fseek): Likewise.
102938         * doc/functions/ftell.texi (ftell): Likewise.
102940 2007-05-24  Bruno Haible  <bruno@clisp.org>
102942         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
102943         in the printed representation of a NaN.
102944         * tests/test-vasprintf-posix.c (test_function): Likewise.
102945         * tests/test-snprintf-posix.h (test_function): Likewise.
102946         * tests/test-sprintf-posix.h (test_function): Likewise.
102947         Reported by Eric Blake.
102949 2007-05-23  Eric Blake  <ebb9@byu.net>
102951         Fix fseeko/ftello on cygwin 1.5.24.
102952         * doc/functions/fseeko.texi (fseeko): Document the fix.
102953         * doc/functions/ftello.texi (ftello): Document the fix.
102954         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
102955         * doc/functions/stdout.text (stdout): New file.
102956         * doc/functions/stderr.text (stderr): New file.
102957         * doc/gnulib.texi (Function Substitutes): Use new files.
102958         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
102959         prior to 1.7.0.
102960         * tests/test-ftello.c (main): Likewise for ftello.
102961         * tests/test-fseeko.sh: New file.
102962         * tests/test-ftello.sh: New file.
102963         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
102964         with seekable stdin.
102965         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
102966         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
102967         (gl_REPLACE_FSEEKO): New macro.
102968         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
102969         * modules/fseeko (Files): Distribute fseeko.c.
102970         * modules/ftello (Files): Distribute ftello.c.
102971         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
102972         mode.
102973         * lib/ftello.c (rpl_ftello): New file.
102974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
102975         fseeko, ftello.
102976         (gl_STDIN_LARGE_OFFSET): New macro.
102977         * modules/stdio (Makefile.am): Perform the replacement.
102978         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
102980 2007-05-23  Bruno Haible  <bruno@clisp.org>
102982         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
102983         GNULIB_POSIXCHECK is defined.
102985 2007-05-21  Bruno Haible  <bruno@clisp.org>
102987         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
102988         Check also the output for NaN arguments. When cross-compiling, guess
102989         no on IRIX.
102990         * lib/vasnprintf.c: Update comments.
102991         * tests/test-vasnprintf-posix.c (strisnan): New function.
102992         (test_function): Use it.
102993         * tests/test-vasprintf-posix.c (strisnan): New function.
102994         (test_function): Use it.
102995         * tests/test-snprintf-posix.h (strisnan): New function.
102996         (test_function): Use it.
102997         * tests/test-sprintf-posix.h (strisnan): New function.
102998         (test_function): Use it.
102999         Reported by Eric Blake.
103001 2007-05-20  Bruno Haible  <bruno@clisp.org>
103003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103004         numbers that fails on BeOS.
103005         * doc/functions/frexpl.texi: Update.
103007 2007-05-20  Jim Meyering  <jim@meyering.net>
103009         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103010         forced upon us by glibc-2.6.
103012 2007-05-20  Bruno Haible  <bruno@clisp.org>
103014         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103015         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103016         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103017         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103018         NEED_PRINTF_INFINITE.
103019         (is_infinitel): New function.
103020         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103022         gl_PREREQ_VASNPRINTF_INFINITE.
103023         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103025         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103026         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103027         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103028         gl_PREREQ_VASNPRINTF_INFINITE.
103029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103032         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103033         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103035         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103036         * doc/functions/fprintf.texi: Update.
103037         * doc/functions/printf.texi: Update.
103038         * doc/functions/snprintf.texi: Update.
103039         * doc/functions/sprintf.texi: Update.
103040         * doc/functions/vfprintf.texi: Update.
103041         * doc/functions/vprintf.texi: Update.
103042         * doc/functions/vsnprintf.texi: Update.
103043         * doc/functions/vsprintf.texi: Update.
103045 2007-05-20  Bruno Haible  <bruno@clisp.org>
103047         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103048         was not found in libc.
103049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103051 2007-05-20  Bruno Haible  <bruno@clisp.org>
103053         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103054         printed as "-nan" instead of "nan".
103055         * tests/test-vasprintf-posix.c (test_function): Likewise.
103056         * tests/test-snprintf-posix.h (test_function): Likewise.
103057         * tests/test-sprintf-posix.h (test_function): Likewise.
103058         Needed for HP-UX 11.
103060 2007-05-20  Jim Meyering  <jim@meyering.net>
103062         Fix buggy test for the fchownat-deref bug.
103063         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103064         symlink required for the run-test.  Without it, this test would
103065         always declare that fchownat doesn't work, and client code would
103066         unnecessarily use the replacement function with fixed libc.
103067         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103068         Reported by Greg Schafer.
103070 2007-05-19  Bruno Haible  <bruno@clisp.org>
103072         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103073         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103074         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103075         Needed for IRIX 6.5 and Solaris 2.5.1.
103077 2007-05-19  Bruno Haible  <bruno@clisp.org>
103079         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103080         (test_function): Skip tests involving -0.0 on platforms where
103081         -0.0 = 0.0.
103082         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103083         (test_function): Skip tests involving -0.0 on platforms where
103084         -0.0 = 0.0.
103085         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103086         (test_function): Skip tests involving -0.0 on platforms where
103087         -0.0 = 0.0.
103088         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103089         (test_function): Skip tests involving -0.0 on platforms where
103090         -0.0 = 0.0.
103091         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103092         tests.
103093         * tests/test-printf-posix.h (test_function): Likewise.
103094         * tests/test-printf-posix.output: Remove all -0.0 related results.
103095         Needed for IRIX 6.5.
103097 2007-05-19  Bruno Haible  <bruno@clisp.org>
103099         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103100         printed as "nan0x7fffffff" instead of "nan".
103101         * tests/test-vasprintf-posix.c (test_function): Likewise.
103102         * tests/test-snprintf-posix.h (test_function): Likewise.
103103         * tests/test-sprintf-posix.h (test_function): Likewise.
103104         * tests/test-fprintf-posix.h (NaN): Remove macro.
103105         (test_function): Remove all NaN related tests.
103106         * tests/test-printf-posix.h (NaN): Remove macro.
103107         (test_function): Remove all NaN related tests.
103108         * tests/test-printf-posix.output: Remove all NaN related results.
103109         Needed for IRIX 6.5.
103111 2007-05-19  Bruno Haible  <bruno@clisp.org>
103113         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103116 2007-05-19  Bruno Haible  <bruno@clisp.org>
103118         * lib/float_.h: New file.
103119         * m4/float_h.m4: New file.
103120         * modules/float: New file.
103121         * modules/isnanl (Dependencies): Add float.
103122         * modules/isnanl-nolibm (Dependencies): Likewise.
103123         * modules/mathl (Dependencies): Likewise.
103124         * modules/printf-frexpl (Dependencies): Likewise.
103125         * modules/signbit (Dependencies): Likewise.
103126         * modules/vasnprintf (Dependencies): Likewise.
103127         * doc/headers/float.texi: Update.
103129 2007-05-19  Jim Meyering  <jim@meyering.net>
103131         * lib/utimens.c (gl_futimens): Rename from futimens,
103132         now that glibc-2.6 declares futimens.
103133         * lib/utimens.h: Likewise.
103135 2007-05-19  Bruno Haible  <bruno@clisp.org>
103137         Avoid test failures on mingw.
103138         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103139         * tests/test-printf-posix.sh: Likewise.
103140         * tests/test-vfprintf-posix.sh: Likewise.
103141         * tests/test-vprintf-posix.sh: Likewise.
103143 2007-05-19  Bruno Haible  <bruno@clisp.org>
103145         Fix *printf result for NaN, Inf, -0.0 on mingw.
103146         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103147         * lib/vasnprintf.c: Include math.h and isnan.h.
103148         (is_infinite_or_zero): New function.
103149         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103150         values in the %f, %F, %e, %E, %g, %G directives.
103151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103153         gl_PRINTF_INFINITE and test its result. Invoke
103154         gl_PREREQ_VASNPRINTF_INFINITE.
103155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103162         * doc/functions/fprintf.texi: Update.
103163         * doc/functions/printf.texi: Update.
103164         * doc/functions/snprintf.texi: Update.
103165         * doc/functions/sprintf.texi: Update.
103166         * doc/functions/vfprintf.texi: Update.
103167         * doc/functions/vprintf.texi: Update.
103168         * doc/functions/vsnprintf.texi: Update.
103169         * doc/functions/vsprintf.texi: Update.
103171 2007-05-19  Bruno Haible  <bruno@clisp.org>
103173         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103174         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103175         Instead of multiplying with 10^k, set extra_zeroes to k.
103176         (scale10_round_long_double): Remove function.
103178 2007-05-18  Bruno Haible  <bruno@clisp.org>
103180         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103181         introduced on 2007-05-06.
103183 2007-05-18  Bruno Haible  <bruno@clisp.org>
103185         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103186         %g directives.
103187         * tests/test-vasprintf-posix.c (test_function): Likewise.
103188         * tests/test-snprintf-posix.h (test_function): Likewise.
103189         * tests/test-sprintf-posix.h (test_function): Likewise.
103191 2007-05-18  Bruno Haible  <bruno@clisp.org>
103193         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103194         (strmatch): New function.
103195         (test_function): Test the %f directive on numbers of various exponents.
103196         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103197         (strmatch): New function.
103198         (test_function): Test the %f directive on numbers of various exponents.
103199         * tests/test-snprintf-posix.h (strmatch): New function.
103200         (test_function): Test the %f directive on numbers of various exponents.
103201         * tests/test-sprintf-posix.h (strmatch): New function.
103202         (test_function): Test the %f directive on numbers of various exponents.
103203         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103204         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103205         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103206         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103208 2007-05-18  Bruno Haible  <bruno@clisp.org>
103210         Add support for 'long double' number output.
103211         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
103212         * lib/vasnprintf.c: Include math.h and float+.h.
103213         (mp_limb_t): New type.
103214         (GMP_LIMB_BITS): New macro.
103215         (mp_twolimb_t): New type.
103216         (GMP_TWOLIMB_BITS): New macro.
103217         (mpn_t): New type.
103218         (multiply, divide, convert_to_decimal, decode_long_double,
103219         scale10_round_long_double, scale10_round_decimal_long_double,
103220         floorlog10l): New functions.
103221         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
103222         for the %f, %F, %e, %E, %g, %G directives.
103223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
103224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103225         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
103226         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
103227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103234         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
103235         * modules/snprintf-posix (Depends-on): Likewise.
103236         * modules/sprintf-posix (Depends-on): Likewise.
103237         * modules/vasnprintf-posix (Depends-on): Likewise.
103238         * modules/vasprintf-posix (Depends-on): Likewise.
103239         * modules/vfprintf-posix (Depends-on): Likewise.
103240         * modules/vsnprintf-posix (Depends-on): Likewise.
103241         * modules/vsprintf-posix (Depends-on): Likewise.
103242         * modules/vasnprintf (Files): Add lib/float+.h.
103243         * doc/functions/fprintf.texi: Update.
103244         * doc/functions/printf.texi: Update.
103245         * doc/functions/snprintf.texi: Update.
103246         * doc/functions/sprintf.texi: Update.
103247         * doc/functions/vfprintf.texi: Update.
103248         * doc/functions/vprintf.texi: Update.
103249         * doc/functions/vsnprintf.texi: Update.
103250         * doc/functions/vsprintf.texi: Update.
103252 2007-05-18  Bruno Haible  <bruno@clisp.org>
103254         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103256 2007-05-18  Bruno Haible  <bruno@clisp.org>
103258         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103259         for printing 64-bit integers. Needed for mingw.
103261 2007-05-18  Bruno Haible  <bruno@clisp.org>
103263         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103264         gl_FUNC_FREXPL_WORKS.
103265         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103267 2007-05-18  Bruno Haible  <bruno@clisp.org>
103269         * modules/frexpl-nolibm-tests: New file.
103271         * modules/frexpl-nolibm: New file.
103272         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103274 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103276         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103277         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103278         GCC 4.2, which otherwise issues a lot of warnings.
103279         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103280         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103281         Likewise.
103282         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103283         * modules/iconv_open (iconv.h): Likewise.
103284         * modules/locale (locale.h): Likewise.
103285         * modules/netinet_in (netinet/in.h): Likewise.
103286         * modules/sys_select (sys_select.h): Likewise.
103287         * modules/sys_socket (sys/socket.h): Likewise.
103288         * modules/sys_stat (sys/stat.h): Likewise.
103289         * modules/sysexits (sysexits.h): Likewise.
103290         * modules/unistd (unistd.h): Likewise.
103292 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103294         * modules/closein-tests (Makefile.am): Distribute
103295         `test-closein.sh'.
103297 2007-05-17  Bruno Haible  <bruno@clisp.org>
103299         * tests/test-printf-posix.output: Renamed from
103300         tests/test-fprintf-posix.out.
103301         * modules/fprintf-posix-tests: Update.
103302         * modules/printf-posix-tests: Update.
103303         * modules/vfprintf-posix-tests: Update.
103304         * modules/vprintf-posix-tests: Update.
103305         * tests/test-fprintf-posix.sh: Update.
103306         * tests/test-printf-posix.sh: Update.
103307         * tests/test-vfprintf-posix.sh: Update.
103308         * tests/test-vprintf-posix.sh: Update.
103309         Reported by Ralf Wildenhues.
103311 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103313         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103314         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103315         GCC 4.2, which otherwise issues a lot of warnings.
103316         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103317         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103318         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103319         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103320         it should no longer be needed.
103321         * lib/string_.h: Likewise.
103322         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103323         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103324         * modules/inttypes (inttypes.h): Likewise.
103325         * modules/math (math.h): Likewise.
103326         * modules/search (search.h): Likewise.
103327         * modules/signal (signal.h): Likewise.
103328         * modules/stdint (stdint.h): Likewise.
103329         * modules/stdio (stdio.h): Likewise.
103330         * modules/stdlib (stdlib.h): Likewise.
103331         * modules/string (string.h): Likewise.
103332         * modules/sys_time (sys/time.h): Likewise.
103333         * modules/time (time.h): Likewise.
103334         * modules/wchar (wchar.h): Likewise.
103335         * modules/wctype (wtype.h): Likewise.
103337 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103339         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103341 2007-05-13  Bruno Haible  <bruno@clisp.org>
103343         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103344         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103345         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103346         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103347         (gl_PREREQ_STRTOK_R): Don't require it here.
103349 2007-05-13  Bruno Haible  <bruno@clisp.org>
103351         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103352         when used in C++ mode.
103354 2007-05-12  Bruno Haible  <bruno@clisp.org>
103356         * lib/linebuffer.h: Tweak doc.
103357         * lib/linebuffer.c: Likewise.
103359 2007-05-12  James Youngman  <jay@gnu.org>
103361         * lib/linebuffer.c (readlinebuffer_delim): New function,
103362         like readlinebuffer, but use a caller-specified delimiter.
103363         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103364         as the delimiter.
103365         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103367 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103369         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103370         * modules/openat (Files): Remove openat-die.c.
103371         (Depends-on): Add openat-die.
103372         * modules/openat-die: New module.
103374 2007-05-06  Bruno Haible  <bruno@clisp.org>
103376         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103377         Update with info about Cygwin.
103378         * doc/functions/fprintf.texi: Update.
103379         * doc/functions/printf.texi: Update.
103380         * doc/functions/snprintf.texi: Update.
103381         * doc/functions/sprintf.texi: Update.
103382         * doc/functions/vfprintf.texi: Update.
103383         * doc/functions/vprintf.texi: Update.
103384         * doc/functions/vsnprintf.texi: Update.
103385         * doc/functions/vsprintf.texi: Update.
103386         Reported by Eric Blake.
103388 2007-05-06  Bruno Haible  <bruno@clisp.org>
103390         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
103391         padding ourselves for the floating-point directives.
103392         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
103393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
103394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103395         gl_PRINTF_FLAG_ZERO and test its result. Invoke
103396         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
103397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103399         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103400         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103401         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103402         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103403         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103404         * tests/test-snprintf-posix.h (test_function): Also check the width
103405         and some flags in the %f directive.
103406         * tests/test-sprintf-posix.h (test_function): Likewise.
103407         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103408         * tests/test-vasprintf-posix.c (test_function): Likewise.
103409         * doc/functions/fprintf.texi: Update.
103410         * doc/functions/printf.texi: Update.
103411         * doc/functions/snprintf.texi: Update.
103412         * doc/functions/sprintf.texi: Update.
103413         * doc/functions/vfprintf.texi: Update.
103414         * doc/functions/vprintf.texi: Update.
103415         * doc/functions/vsnprintf.texi: Update.
103416         * doc/functions/vsprintf.texi: Update.
103418 2007-05-06  Bruno Haible  <bruno@clisp.org>
103420         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
103421         pass the ' flag character to sprintf or snprintf.
103422         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
103423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
103424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103425         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
103426         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
103427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103434         * tests/test-snprintf-posix.h (test_function): Also check the grouping
103435         flag.
103436         * tests/test-sprintf-posix.h (test_function): Likewise.
103437         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103438         * tests/test-vasprintf-posix.c (test_function): Likewise.
103439         * doc/functions/fprintf.texi: Update.
103440         * doc/functions/printf.texi: Update.
103441         * doc/functions/snprintf.texi: Update.
103442         * doc/functions/sprintf.texi: Update.
103443         * doc/functions/vfprintf.texi: Update.
103444         * doc/functions/vprintf.texi: Update.
103445         * doc/functions/vsnprintf.texi: Update.
103446         * doc/functions/vsprintf.texi: Update.
103448 2007-05-01  Bruno Haible  <bruno@clisp.org>
103450         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
103452 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
103454         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
103455         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
103457 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
103459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
103460         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
103461         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
103463 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
103465         * lib/argp-help.c (struct hol_entry): New member `ord'.
103466         (HOL_ENTRY_PTRCMP): Use ord for comparison
103467         (hol_sort): Initialize ord.
103469 2007-05-01  Bruno Haible  <bruno@clisp.org>
103471         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
103472         Reported by Eric Blake.
103473         * doc/gnulib.texi (Function Substitutes): Update.
103475 2007-05-01  Bruno Haible  <bruno@clisp.org>
103477         * doc/functions.texi: Remove file, now redundant through
103478         doc/functions/*.texi.
103480 2007-05-01  Bruno Haible  <bruno@clisp.org>
103482         * modules/argp (Depends-on): Add sleep.
103484 2007-05-01  Bruno Haible  <bruno@clisp.org>
103486         * modules/sleep-tests: New file.
103487         * tests/test-sleep.c: New file.
103489         * modules/sleep: New file.
103490         * lib/sleep.c: New file.
103491         * m4/sleep.m4: New file.
103492         * lib/unistd_.h (sleep): New declaration.
103493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
103494         HAVE_SLEEP.
103495         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
103496         * doc/functions/sleep.texi: Document the sleep module.
103498 2007-05-01  Bruno Haible  <bruno@clisp.org>
103500         * lib/sigprocmask.h: Remove file.
103501         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
103502         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
103503         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
103504         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
103505         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
103506         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
103507         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
103508         HAVE_SIGSET_T as a shell variable.
103509         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
103510         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
103511         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
103512         (Depends-on): Add signal. Remove verify.
103513         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
103514         (Include): Mention <signal.h> instead of sigprocmask.h.
103515         * NEWS: Mention the change.
103516         * lib/fatal-signal.c: Don't include sigprocmask.h.
103518 2007-05-01  Bruno Haible  <bruno@clisp.org>
103520         * modules/signal: New file.
103521         * lib/signal_.h: New file.
103522         * m4/signal_h.m4: New file.
103524 2007-05-01  Bruno Haible  <bruno@clisp.org>
103526         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
103527         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
103528         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
103529         HAVE_WCTYPE_CTMP_BUG into wctype.h.
103531 2007-05-01  Bruno Haible  <bruno@clisp.org>
103533         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
103534         configure time.
103535         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
103536         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
103537         * modules/sys_stat (Makefile.am): Substitute their values into
103538         sys/stat.h.
103540 2007-05-01  Bruno Haible  <bruno@clisp.org>
103542         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
103543         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
103544         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
103546 2007-05-01  Bruno Haible  <bruno@clisp.org>
103548         * doc/header/assert.texi: Undo last change: don't mention the gnulib
103549         'assert' module here.
103551 2007-05-01  Bruno Haible  <bruno@clisp.org>
103553         * doc/functions/*.texi: New files.
103554         * doc/functions/google-ranking.txt: New file.
103555         * doc/gnulib.texi (Function Substitutes): New chapter.
103556         (ctime, inet_ntoa): Remove sections.
103557         * doc/ctime.texi: Remove file.
103558         * doc/inet_ntoa.texi: Remove file.
103559         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
103560         dependencies.
103561         (%.info): New rule, specifying a --reference-limit.
103563 2007-05-01  Bruno Haible  <bruno@clisp.org>
103565         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
103567 2007-05-01  Bruno Haible  <bruno@clisp.org>
103569         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
103570         the portability of 'mkdir' to mingw systems.
103572 2007-05-01  Bruno Haible  <bruno@clisp.org>
103574         * doc/headers/google-ranking.txt: New file.
103576 2007-04-30  Eric Blake  <ebb9@byu.net>
103578         Prefer fseeko to fseek.
103579         * modules/getpass (Depends-on): Add fseeko.
103580         * lib/getpass.c (getpass): Use fseeko, not fseek.
103582 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
103584         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
103585         assumes the sorting is stable, while most qsort implementations
103586         are not.  Use argument addresses to ensure they never compare as
103587         equal.
103589         * tests/test-argp-2.sh (usage-indent test): Fix output
103590         (func_compare): Restore diff options
103591         * tests/test-argp.c: Restore #include "progname.h"
103593 2007-04-29  Bruno Haible  <bruno@clisp.org>
103595         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
103596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103597         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
103598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103599         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
103600         (configure.ac): Define CHECK_SNPRINTF_POSIX.
103601         (TESTS, check_PROGRAMS): Add test-snprintf.
103602         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
103603         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
103604         (TESTS, check_PROGRAMS): Add test-vsnprintf.
103605         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
103606         assertions that fail on HP-UX, OSF/1, or IRIX.
103607         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
103609 2007-04-29  Bruno Haible  <bruno@clisp.org>
103611         * MODULES.html.sh (posix_functions): Remove 'contents'.
103613 2007-04-29  Karl Berry  <karl@gnu.org>
103615         * config/srclist.txt (gendocs_template_min): new entry.
103617 2007-04-29  Bruno Haible  <bruno@clisp.org>
103619         Work around fpurge bug on BSD systems.
103620         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
103621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
103622         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
103623         fpurge to rpl_fpurge if the system already has this function.
103624         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
103625         the case where the system already has this function. Correct invariants
103626         on BSD systems.
103627         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
103628         BSD systems.
103630 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
103632         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
103633         proposed by Sven Verdoolaege.
103635         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
103636         options.
103637         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
103638         (usage and help tests): Update
103640 2007-04-29  Bruno Haible  <bruno@clisp.org>
103642         * tests/test-fflush.c (main): Use a file of size 17, not 10.
103643         Print more information in case of failure. Disable a test on BeOS.
103645 2007-04-29  Bruno Haible  <bruno@clisp.org>
103647         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
103648         This helps debugging on systems on which no gdb is available.
103650 2007-04-29  Bruno Haible  <bruno@clisp.org>
103652         * lib/freading.h: Improve comments.
103653         * lib/fwriting.h: Likewise.
103654         * tests/test-freading.c (main): Don't check freading immediately after
103655         repositioning. Needed for glibc.
103657 2007-04-29  Bruno Haible  <bruno@clisp.org>
103659         * lib/freading.c (freading): Trivial simplification.
103661 2007-04-28  Bruno Haible  <bruno@clisp.org>
103663         * tests/test-fwriting.c (main): Also test the interaction between
103664         fflush and fwriting.
103665         * modules/fwriting-tests (Depends-on): Add fflush.
103667         * tests/test-freading.c (main): Also test the interaction between
103668         fflush and freading.
103669         * modules/freading-tests (Depends-on): Add fflush.
103671 2007-04-28  Bruno Haible  <bruno@clisp.org>
103673         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
103674         fseeko and ftello.
103675         Suggested by Eric Blake.
103677 2007-04-28  Jim Meyering  <jim@meyering.net>
103679         Avoid false-negative in gl_STDINT_H's C99 conformance test.
103680         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
103681         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
103683 2007-04-27  Eric Blake  <ebb9@byu.net>
103685         * doc/headers/assert.texi (assert.h): Document assert module use.
103687 2007-04-27  Bruno Haible  <bruno@clisp.org>
103689         * doc/headers/*.texi: New files.
103690         * doc/gnulib.texi (Header File Substitutes): New chapter.
103691         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
103692         dependencies.
103693         (standards.info ,standards.html, standards.dvi): Update dependencies.
103694         (mostlyclean, clean): New targets.
103696 2007-04-27  Bruno Haible  <bruno@clisp.org>
103698         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
103699         * modules/sysexits (Files, Makefile.am): Update.
103701         * lib/sys_socket_.h: Renamed from lib/socket_.h.
103702         * modules/sys_socket (Files, Makefile.am): Update.
103704         * lib/sys_stat_.h: Renamed from lib/stat_.h.
103705         * modules/sys_stat (Files, Makefile.am): Update.
103707 2007-04-27  Eric Blake  <ebb9@byu.net>
103709         * lib/freading.h: Improve comments.
103710         * lib/fwriting.h: Likewise.
103711         * lib/fflush.c: Likewise.
103713         Fix closein for mingw.
103714         * modules/closein-tests: Add tests for closein.
103715         * tests/test-closein.c: New file.
103716         * tests/test-closein.sh: Likewise.
103717         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
103718         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
103720 2007-04-27  Bruno Haible  <bruno@clisp.org>
103722         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
103723         version is < 6.
103724         * lib/math_.h [__DECC]: Likewise.
103725         * lib/stdio_.h [__DECC]: Likewise.
103726         * lib/stdlib_.h [__DECC]: Likewise.
103727         * lib/string_.h [__DECC]: Likewise.
103728         * lib/time_.h [__DECC]: Likewise.
103729         * lib/wchar_.h [__DECC]: Likewise.
103730         * lib/wctype_.h [__DECC]: Likewise.
103732 2007-04-27  Bruno Haible  <bruno@clisp.org>
103734         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
103736 2007-04-27  Bruno Haible  <bruno@clisp.org>
103738         * lib/fflush.c: Add comments.
103739         * modules/fpurge-tests (Depends-on): Add fflush.
103740         * modules/freadable-tests (Depends-on): Likewise.
103741         * modules/fwritable-tests (Depends-on): Likewise.
103743 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
103745         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
103746         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
103747         Report by Bruno Haible <bruno@clisp.org>.
103749 2007-04-26  Eric Blake  <ebb9@byu.net>
103751         Fix fflush on mingw.
103752         * modules/fflush (Depends-on): Add freading.
103753         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
103754         but unread data.
103756 2007-04-26  Eric Blake  <ebb9@byu.net>
103757         and Bruno Haible  <bruno@clisp.org>
103759         Implement freading and fwriting.
103760         * lib/freading.c: New file.
103761         * lib/freading.h: Likewise.
103762         * m4/freading.m4: Likewise.
103763         * modules/freading: Likewise.
103764         * modules/freading-tests: Likewise.
103765         * tests/test-freading.c: Likewise.
103766         * lib/fwriting.c: New file.
103767         * lib/fwriting.h: Likewise.
103768         * m4/fwriting.m4: Likewise.
103769         * modules/fwriting: Likewise.
103770         * modules/fwriting-tests: Likewise.
103771         * tests/test-fwriting.c: Likewise.
103772         * MODULES.html.sh (File stream based Input/Output): Mention them.
103774 2007-04-26  Bruno Haible  <bruno@clisp.org>
103776         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
103777         'long' when we assume it.
103778         Suggested by Eric Blake.
103780 2007-04-26  Bruno Haible  <bruno@clisp.org>
103782         Ensure fseeko, ftello are declared on glibc systems.
103783         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
103784         * modules/fseeko (configure.ac-early): Likewise.
103785         * modules/ftello (configure.ac-early): Likewise.
103786         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
103787         AC_FUNC_FSEEKO for this.
103788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
103789         (gl_CHECK_FSEEKO): Remove macro.
103791 2007-04-26  Bruno Haible  <bruno@clisp.org>
103793         * tests/test-fflush.c (main): Also check the ftell result after
103794         fflush and fseek/fseeko.
103795         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
103796         file descriptor position cache in the stream.
103797         * lib/fseeko.c (rpl_fseeko): Likewise.
103799 2007-04-26  Bruno Haible  <bruno@clisp.org>
103801         * modules/fflush-tests (Depends-on): Add fseeko.
103803 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
103804             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103806         * lib/argz_.h: ensure error_t definition is obtained in same
103807         mechanism system argz.h would have.
103808         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
103809         argz facilities are known bad.  Err on the side of caution if
103810         cross-compiling.
103812 2007-04-25  Eric Blake  <ebb9@byu.net>
103814         * lib/fpurge.c (includes): Use stdlib.h for free.
103815         * tests/test-fflush.c (main): Also test fflush-fseeko.
103817 2007-04-25  Bruno Haible  <bruno@clisp.org>
103819         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
103820         * lib/fseeko.c: New file.
103821         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
103822         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
103823         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
103824         gl_FUNC_FSEEKO.
103825         (gl_FUNC_FSEEKO): Invoke it.
103826         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
103827         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
103828         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
103830 2007-04-25  Bruno Haible  <bruno@clisp.org>
103832         * modules/fflush (Depends-on): Add ftello.
103834 2007-04-25  Bruno Haible  <bruno@clisp.org>
103836         * modules/ftello-tests: New file.
103837         * tests/test-ftello.c: New file.
103839         * modules/ftello: New file.
103840         * m4/ftello.m4: New file.
103841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
103842         HAVE_FTELLO.
103843         * lib/stdio_.h (ftello): New declaration.
103844         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
103845         HAVE_FTELLO.
103847 2007-04-25  Bruno Haible  <bruno@clisp.org>
103849         * modules/fseeko-tests: New file.
103850         * tests/test-fseeko.c: New file.
103852         * modules/fseeko: New file.
103853         * m4/fseeko.m4: New file.
103854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
103855         HAVE_FSEEKO.
103856         * lib/stdio_.h (fseeko): New declaration.
103857         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
103858         HAVE_FSEEKO.
103860 2007-04-25  Bruno Haible  <bruno@clisp.org>
103862         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
103864 2007-04-25  Bruno Haible  <bruno@clisp.org>
103866         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
103867         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
103868         * tests/test-unistd.c: Likewise.
103869         * tests/test-fcntl.c: Likewise.
103871 2007-04-23  Eric Blake  <ebb9@byu.net>
103873         * lib/fflush.c: Fix missing include.
103874         Reported by Bruno Haible.
103876 2007-04-23  Bruno Haible  <bruno@clisp.org>
103878         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
103879         Reported by Eric Blake.
103881 2007-04-23  Bruno Haible  <bruno@clisp.org>
103883         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
103885 2007-04-23  Bruno Haible  <bruno@clisp.org>
103887         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
103889 2007-04-23  Bruno Haible  <bruno@clisp.org>
103891         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
103892         Needed on HP-UX 11.
103894 2007-04-16  Eric Blake  <ebb9@byu.net>
103896         Make fflush rely on fpurge.
103897         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
103898         open coding all variants.
103899         * modules/fflush (Depends-on): Add fpurge and unistd.
103900         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
103901         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
103903         Fix --with-tests compilation on cygwin.
103904         * modules/argmatch-tests (Makefile.am): List gnulib library first
103905         in LDADD.
103906         * modules/argp-tests (Makefile.am): Likewise.
103907         * modules/array-list-tests (Makefile.am): Likewise.
103908         * modules/array-oset-tests (Makefile.am): Likewise.
103909         * modules/avltree-list-tests (Makefile.am): Likewise.
103910         * modules/avltree-oset-tests (Makefile.am): Likewise.
103911         * modules/avltreehash-list-tests (Makefile.am): Likewise.
103912         * modules/carray-list-tests (Makefile.am): Likewise.
103913         * modules/dirname-tests (Makefile.am): Likewise.
103914         * modules/frexp-tests (Makefile.am): Likewise.
103915         * modules/isnanl-tests (Makefile.am): Likewise.
103916         * modules/linked-list-tests (Makefile.am): Likewise.
103917         * modules/linkedhash-list-tests (Makefile.am): Likewise.
103918         * modules/lock-tests (Makefile.am): Likewise.
103919         * modules/rbtree-list-tests (Makefile.am): Likewise.
103920         * modules/rbtree-oset-tests (Makefile.am): Likewise.
103921         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
103922         * modules/tls-tests (Makefile.am): Likewise.
103923         * modules/tsearch-tests (Makefile.am): Likewise.
103924         * modules/xvasprintf-tests (Makefile.am): Likewise.
103926         Fix fpurge for cygwin.
103927         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
103928         value.
103929         * modules/fpurge-tests (Depends-on): Clean up trash.
103931 2007-04-16  Simon Josefsson  <simon@josefsson.org>
103933         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
103935         * m4/autobuild.m4: Re-indent.
103937 2007-04-13  Bruno Haible  <bruno@clisp.org>
103939         * modules/fpurge-tests: New file.
103940         * tests/test-fpurge.c: New file.
103942         * modules/fpurge: New file.
103943         * lib/fpurge.h: New file.
103944         * lib/fpurge.c: New file.
103945         * m4/fpurge.m4: New file.
103947 2007-04-13  Bruno Haible  <bruno@clisp.org>
103949         * modules/fbufmode-tests: New file.
103950         * tests/test-fbufmode.c: New file.
103952         * modules/fbufmode: New file.
103953         * lib/fbufmode.h: New file.
103954         * lib/fbufmode.c: New file.
103955         * m4/fbufmode.m4: New file.
103957 2007-04-13  Bruno Haible  <bruno@clisp.org>
103959         * modules/fwritable-tests: New file.
103960         * tests/test-fwritable.c: New file.
103962         * modules/fwritable: New file.
103963         * lib/fwritable.h: New file.
103964         * lib/fwritable.c: New file.
103965         * m4/fwritable.m4: New file.
103967 2007-04-13  Bruno Haible  <bruno@clisp.org>
103969         * modules/freadable-tests: New file.
103970         * tests/test-freadable.c: New file.
103972         * modules/freadable: New file.
103973         * lib/freadable.h: New file.
103974         * lib/freadable.c: New file.
103975         * m4/freadable.m4: New file.
103977 2007-04-13  Bruno Haible  <bruno@clisp.org>
103979         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
103980         MOSTLYCLEANFILES.
103982 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103984         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
103985         gzip bootstrap.conf to avoid dragging in i18n machinery.
103986         (gnulib_tool_option): Use it.
103988 2007-04-13  Bruno Haible  <bruno@clisp.org>
103990         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
103991         %F directives.
103992         * tests/test-vasprintf-posix.c (test_function): Likewise.
103993         * tests/test-snprintf-posix.h (test_function): Likewise.
103994         * tests/test-sprintf-posix.h (test_function): Likewise.
103995         * tests/test-fprintf-posix.h (test_function): Likewise.
103996         * tests/test-printf-posix.h (test_function): Likewise.
103997         * tests/test-fprintf-posix.out: Likewise.
103999 2007-04-13  Bruno Haible  <bruno@clisp.org>
104001         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104002         * modules/tls-tests (configure.ac): Likewise.
104003         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104005 2007-04-13  Bruno Haible  <bruno@clisp.org>
104007         * lib/tls.c (glthread_tls_get): Fix return type.
104008         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104010 2007-04-12  Eric Blake  <ebb9@byu.net>
104012         * modules/gettime (Depends-on): Remove gettime.
104013         Reported by Dmitry V. Levin.
104015 2007-04-12  Bruno Haible  <bruno@clisp.org>
104017         * modules/fflush (Include): Mention <stdio.h>.
104018         * modules/strtoimax (Include): Mention <inttypes.h>.
104019         * modules/strtoumax (Include): Likewise.
104021 2007-04-12  Eric Blake  <ebb9@byu.net>
104023         * .cvsignore: New file.
104024         * .gitignore: Likewise.
104026 2007-04-12  Bruno Haible  <bruno@clisp.org>
104028         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104029         not before, since $(LDADD) often contains libgnu.a.
104030         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104031         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104032         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104033         Needed on Cygwin.
104035 2007-04-12  Eric Blake  <ebb9@byu.net>
104037         Work around glibc's failure to flush stdin on fclose.
104038         * lib/closein.c (close_stdin): Flush stdin before closing.
104040         Work around glibc's failure to reset seekable stdin on exit.
104041         * modules/closein: New module.
104042         * lib/closein.c: New file.
104043         * lib/closein.h: Likewise.
104044         * m4/closein.m4: Likewise.
104045         * MODULES.html.sh (File stream based Input/Output): Document it.
104047 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104049         * gnulib-tool: Rename generated 'autobuild' script to
104050         'do-autobuild' in --create-megatestdir output.
104052         * doc/gnulib.texi (Build robot for gnulib): Fix.
104054 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104056         * modules/sysexits (Depends-on): Add absolute-header.
104058 2007-04-12  Eric Blake  <ebb9@byu.net>
104060         No need to preserve errno on success.
104061         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104062         Reported by Bruno Haible.
104064 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104066         * MODULES.html.sh (Support for maintaining and releasing
104067         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104069 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104071         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104073 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104075         * modules/autobuild: New module.
104077         * m4/autobuild.m4: New file.
104079 2007-04-11  Bruno Haible  <bruno@clisp.org>
104081         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104082         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104086         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104087         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104089         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104090         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104092         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104093         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104095         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104096         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104097         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104098         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104099         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104101         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104102         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104104         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104105         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104107         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104108         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104109         Reported by Eric Blake.
104111 2007-04-11  Bruno Haible  <bruno@clisp.org>
104113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104115 2007-04-10  Bruno Haible  <bruno@clisp.org>
104117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104118         for NaN and Infinity. Needed on FreeBSD 6.1.
104119         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104120         regarding results for "%010a" of Infinity and NaN.
104121         * tests/test-vasprintf-posix.c (test_function): Likewise.
104122         * tests/test-snprintf-posix.h (test_function): Likewise.
104123         * tests/test-sprintf-posix.h (test_function): Likewise.
104124         * tests/test-fprintf-posix.h (test_function): Likewise.
104125         * tests/test-printf-posix.h (test_function): Likewise.
104126         * tests/test-fprintf-posix.out: Likewise.
104128 2007-04-10  Bruno Haible  <bruno@clisp.org>
104130         * modules/locale-tests: New file.
104131         * tests/test-locale.c: New file.
104133         * modules/locale: New file.
104134         * lib/locale_.h: New file.
104135         * m4/locale_h.m4: New file.
104137 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104138             Bruno Haible  <bruno@clisp.org>
104140         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104141         be determined, test for availability of the copysignf, copysign,
104142         copysignl functions.
104143         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104144         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104145         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104147 2007-04-09  Eric Blake  <ebb9@byu.net>
104149         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104150         * modules/stdio (Makefile.am): Support fflush.
104151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104152         * modules/fflush: New file.
104153         * lib/fflush.c: Likewise.
104154         * m4/fflush.m4: Likewise.
104155         * modules/fflush-tests: New test.
104156         * tests/test-fflush.c: Likewise.
104157         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104159 2007-04-06  Bruno Haible  <bruno@clisp.org>
104161         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104162         (VASNPRINTF): Use signbit for faster determination whether to print a
104163         minus sign.
104164         * modules/vasnprintf (Files): Remove lib/float+.h.
104165         * modules/fprintf-posix (Depends-on): Add signbit.
104166         * modules/snprintf-posix (Depends-on): Likewise.
104167         * modules/sprintf-posix (Depends-on): Likewise.
104168         * modules/vasnprintf-posix (Depends-on): Likewise.
104169         * modules/vasprintf-posix (Depends-on): Likewise.
104170         * modules/vfprintf-posix (Depends-on): Likewise.
104171         * modules/vsnprintf-posix (Depends-on): Likewise.
104172         * modules/vsprintf-posix (Depends-on): Likewise.
104174 2007-04-06  Bruno Haible  <bruno@clisp.org>
104176         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104177         * tests/test-frexpl.c (main): Likewise.
104178         * tests/test-ldexpl.c (main): Likewise.
104179         * modules/frexp-tests (Depends-on): Add signbit.
104180         * modules/frexpl-tests (Depdends-on): Likewise.
104181         * modules/ldexpl-tests (Depdends-on): Likewise.
104183 2007-04-06  Bruno Haible  <bruno@clisp.org>
104185         * modules/signbit-tests: New file.
104186         * tests/test-signbit.c: New file.
104188         * modules/signbit: New file.
104189         * lib/signbitf.c: New file.
104190         * lib/signbitd.c: New file.
104191         * lib/signbitl.c: New file.
104192         * m4/signbit.m4: New file.
104193         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104194         (signbit): New macro.
104195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104196         REPLACE_SIGNBIT.
104197         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104198         REPLACE_FREXPL into math.h.
104200 2007-04-06  Bruno Haible  <bruno@clisp.org>
104202         * modules/isnanf-nolibm-tests: New file.
104203         * tests/test-isnanf.c: New file.
104205         * modules/isnanf-nolibm: New file.
104206         * lib/isnanf.h: New file.
104207         * lib/isnanf.c: New file.
104208         * lib/isnan.c: Consider the USE_FLOAT macro.
104209         * m4/isnanf.m4: New file.
104211 2007-04-06  Bruno Haible  <bruno@clisp.org>
104213         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
104214         (Link): New section.
104216         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
104218 2007-04-06  Bruno Haible  <bruno@clisp.org>
104220         Assume the 'long double' type.
104221         * m4/longdouble.m4: Remove file.
104222         * config/srclist.txt: Don't mention longdouble.m4.
104223         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
104224         * lib/float+.h: Likewise.
104225         * lib/frexp.c: Likewise.
104226         * lib/printf-args.h: Likewise.
104227         * lib/printf-args.c: Likewise.
104228         * lib/printf-frexp.c: Likewise.
104229         * lib/printf-parse.c: Likewise.
104230         * lib/vasnprintf.c: Likewise.
104231         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
104232         * m4/intl.m4: Likewise.
104233         * m4/isnanl.m4: Likewise.
104234         * m4/printf.m4: Likewise.
104235         * m4/printf-frexpl.m4: Likewise.
104236         * m4/vasnprintf.m4: Likewise.
104237         * modules/allocsa (Files): Remove m4/longdouble.m4.
104238         * modules/gettext (Files): Likewise.
104239         * modules/relocatable-prog-wrapper (Files): Likewise.
104240         * modules/vasnprintf (Files): Likewise.
104241         * modules/isnanl (Files): Likewise.
104242         (Include): Simplify.
104243         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
104244         (Include): Simplify.
104245         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
104246         (Include): Simplify.
104247         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
104248         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104249         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104250         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104251         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104252         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104253         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104254         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104255         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104256         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104257         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104258         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104259         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104260         * tests/test-isnanl.c: Likewise.
104261         * tests/test-snprintf-posix.h: Likewise.
104262         * tests/test-sprintf-posix.h: Likewise.
104263         * tests/test-vasnprintf-posix.c: Likewise.
104264         * tests/test-vasnprintf-posix2.c: Likewise.
104265         * tests/test-vasprintf-posix.c: Likewise.
104267 2007-04-06  Bruno Haible  <bruno@clisp.org>
104269         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104270         * lib/math_.h [__DECC]: Include the overridden include file through
104271         #include_next, outside the double-inclusion guard.
104272         * lib/stdio_.h [__DECC]: Likewise.
104273         * lib/stdlib_.h [__DECC]: Likewise.
104274         * lib/string_.h [__DECC]: Likewise.
104275         * lib/time_.h [__DECC]: Likewise.
104276         * lib/wchar_.h [__DECC]: Likewise.
104277         * lib/wctype_.h [__DECC]: Likewise.
104278         * lib/inttypes_.h [__DECC]: Likewise.
104279         Reported by Albert Chin <china@thewrittenword.com> in
104280         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104282 2007-04-04  Eric Blake  <ebb9@byu.net>
104284         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104285         1.5.x.
104287 2007-04-04  Bruno Haible  <bruno@clisp.org>
104289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104290         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104292 2007-04-04  Bruno Haible  <bruno@clisp.org>
104294         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104295         results for "%010a" of Infinity and NaN.
104296         * tests/test-vasprintf-posix.c (test_function): Likewise.
104297         * tests/test-snprintf-posix.h (test_function): Likewise.
104298         * tests/test-sprintf-posix.h (test_function): Likewise.
104299         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104300         * tests/test-printf-posix.h (test_function): Likewise.
104301         * tests/test-fprintf-posix.out: Update.
104302         Needed for FreeBSD 6.1.
104304 2007-04-04  Bruno Haible  <bruno@clisp.org>
104306         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104307         directly used by the gnulib modules nor by gnulib-tool.
104309 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104311         * DEPENDENCIES: Give overall description of version dependency
104312         desirability.  Use more-typical names for apps.
104313         Add shell, coreutils, diffutils, grep, tar, gzip.
104315 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104317         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104319 2007-04-04  Karl Berry  <karl@gnu.org>
104321         * MODULES.html.sh (func_module): missing '.
104323 2007-04-03  Bruno Haible  <bruno@clisp.org>
104325         * modules/argmatch-tests (Makefile.am): New variable
104326         test_argmatch_LDADD.
104327         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104328         * modules/array-list-tests (Makefile.am): New variable
104329         test_array_list_LDADD.
104330         * modules/array-oset-tests (Makefile.am): New variable
104331         test_array_oset_LDADD.
104332         * modules/avltree-list-tests (Makefile.am): New variable
104333         test_avltree_list_LDADD.
104334         * modules/avltree-oset-tests (Makefile.am): New variable
104335         test_avltree_oset_LDADD.
104336         * modules/avltreehash-list-tests (Makefile.am): New variable
104337         test_avltreehash_list_LDADD.
104338         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104339         test_canonicalize_lgpl_LDADD.
104340         * modules/carray-list-tests (Makefile.am): New variable
104341         test_carray_list_LDADD.
104342         * modules/dirname-tests (Makefile.am): New variable
104343         test_dirname_LDADD.
104344         * modules/linked-list-tests (Makefile.am): New variable
104345         test_linked_list_LDADD.
104346         * modules/linkedhash-list-tests (Makefile.am): New variable
104347         test_linkedhash_list_LDADD.
104348         * modules/rbtree-list-tests (Makefile.am): New variable
104349         test_rbtree_list_LDADD.
104350         * modules/rbtree-oset-tests (Makefile.am): New variable
104351         test_rbtree_oset_LDADD.
104352         * modules/rbtreehash-list-tests (Makefile.am): New variable
104353         test_rbtreehash_list_LDADD.
104354         * modules/xvasprintf-tests (Makefile.am): New variable
104355         test_xvasprintf_LDADD.
104356         Reported by Eric Blake.
104358 2007-04-03  Eric Blake  <ebb9@byu.net>
104360         * DEPENDENCIES: Weaken m4 requirements.
104362 2007-04-03  Bruno Haible  <bruno@clisp.org>
104364         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104365         * modules/isnanl-tests (configure.ac): Likewise.
104367 2007-04-03  Ben Pfaff  <blp@gnu.org>
104369         * modules/iconv_open: Add $(srcdir)/ to source directory
104370         references in Makefile fragments that call gperf, to fix VPATH
104371         builds.
104373 2007-04-03  Bruno Haible  <bruno@clisp.org>
104375         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104376         * lib/ldexpl.c: Undo last change.
104378 2007-04-03  Bruno Haible  <bruno@clisp.org>
104380         * modules/printf-frexpl (Depends-on): Undo last change.
104381         (Files): Add m4/ldexpl.m4.
104383 2007-04-03  Bruno Haible  <bruno@clisp.org>
104385         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
104386         * modules/isnanl (Link): New section.
104388         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
104389         * modules/frexp (Link): New section.
104391         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
104392         * modules/frexpl (Link): New section.
104394         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
104395         * modules/ldexpl (Link): New section.
104397 2007-04-03  Bruno Haible  <bruno@clisp.org>
104399         * modules/TEMPLATE-EXTENDED: New file.
104400         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
104402 2007-04-03  Bruno Haible  <bruno@clisp.org>
104404         * DEPENDENCIES: New file.
104405         Suggested by Simon Josefsson.
104407 2007-04-03  Bruno Haible  <bruno@clisp.org>
104409         * doc/gnulib.texi: Escape @.
104411 2007-04-03  James Youngman  <jay@gnu.org>
104412         and Paul Eggert  <eggert@cs.ucla.edu>
104414         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
104415         birthtime on all systems that have birthtime, not just those which
104416         use st_birthtimensec rather than st_birthtim.  Putting zero in
104417         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
104418         that the birth time is not available for files on an NFS mount.
104420 2007-04-03  Simon Josefsson  <simon@josefsson.org>
104422         * modules/memxor: Move back from crypto/, suggested by Bruno.
104423         * modules/crypto/hmac-sha1: Fix memxor dependency.
104425         * modules/crypto/gc: Moved from ../.
104427 2007-04-02  Eric Blake  <ebb9@byu.net>
104429         * lib/ldexpl.c (includes): Avoid libm.
104431         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
104433 2007-04-02  Bruno Haible  <bruno@clisp.org>
104435         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
104436         on IRIX.
104438 2007-04-02  Bruno Haible  <bruno@clisp.org>
104440         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
104441         x86 or x86_64 platforms running MacOS X.
104442         Reported by Ryan Schmidt <@ryandesign.com>.
104444 2007-04-02  Bruno Haible  <bruno@clisp.org>
104446         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
104447         i386.
104449 2007-04-01  Simon Josefsson  <simon@josefsson.org>
104451         * modules/crypto/arcfour: Moved from ../.
104452         * modules/crypto/arcfour-tests: Moved from ../.
104453         * modules/crypto/arctwo: Moved from ../.
104454         * modules/crypto/arctwo-tests: Moved from ../.
104455         * modules/crypto/des: Moved from ../.
104456         * modules/crypto/des-tests: Moved from ../.
104457         * modules/crypto/gc-arcfour: Moved from ../.
104458         * modules/crypto/gc-arcfour-tests: Moved from ../.
104459         * modules/crypto/gc-arctwo: Moved from ../.
104460         * modules/crypto/gc-arctwo-tests: Moved from ../.
104461         * modules/crypto/gc-des: Moved from ../.
104462         * modules/crypto/gc-des-tests: Moved from ../.
104463         * modules/crypto/gc-hmac-md5: Moved from ../.
104464         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
104465         * modules/crypto/gc-hmac-sha1: Moved from ../.
104466         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
104467         * modules/crypto/gc-md2: Moved from ../.
104468         * modules/crypto/gc-md2-tests: Moved from ../.
104469         * modules/crypto/gc-md4: Moved from ../.
104470         * modules/crypto/gc-md4-tests: Moved from ../.
104471         * modules/crypto/gc-md5: Moved from ../.
104472         * modules/crypto/gc-md5-tests: Moved from ../.
104473         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
104474         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
104475         * modules/crypto/gc-random: Moved from ../.
104476         * modules/crypto/gc-rijndael: Moved from ../.
104477         * modules/crypto/gc-rijndael-tests: Moved from ../.
104478         * modules/crypto/gc-sha1: Moved from ../.
104479         * modules/crypto/gc-sha1-tests: Moved from ../.
104480         * modules/crypto/gc-tests: Moved from ../.
104481         * modules/crypto/hmac-md5: Moved from ../.
104482         * modules/crypto/hmac-md5-tests: Moved from ../.
104483         * modules/crypto/hmac-sha1: Moved from ../.
104484         * modules/crypto/hmac-sha1-tests: Moved from ../.
104485         * modules/crypto/md2: Moved from ../.
104486         * modules/crypto/md2-tests: Moved from ../.
104487         * modules/crypto/md4: Moved from ../.
104488         * modules/crypto/md4-tests: Moved from ../.
104489         * modules/crypto/md5: Moved from ../.
104490         * modules/crypto/md5-tests: Moved from ../.
104491         * modules/crypto/memxor: Moved from ../.
104492         * modules/crypto/rijndael: Moved from ../.
104493         * modules/crypto/rijndael-tests: Moved from ../.
104494         * modules/crypto/sha1: Moved from ../.
104496 2007-03-30  James Youngman  <jay@gnu.org>
104498         * tests/test-stat-time.c (prepare_test): use chmod() rather than
104499         rename() to change the ctime of a file (because ctime is unaffected
104500         by rename on jfs2 on AIX 5.1).
104501         (main): Start by doing cleanup, in case a previous run failed leaving
104502         test files behind.
104504 2007-03-31  Bruno Haible  <bruno@clisp.org>
104506         Support old proprietary implementations of iconv.
104507         * modules/iconv_open: New file.
104508         * lib/iconv_.h: New file.
104509         * m4/iconv_h.m4: New file.
104510         * lib/iconv_open.c: New file.
104511         * lib/iconv_open-aix.gperf: New file.
104512         * lib/iconv_open-hpux.gperf: New file.
104513         * lib/iconv_open-irix.gperf: New file.
104514         * lib/iconv_open-osf.gperf: New file.
104515         * m4/iconv_open.m4: New file.
104516         * modules/linebreak (Depends-on): Add iconv_open.
104517         * modules/striconv (Depends-on): Likewise.
104518         * modules/striconveh (Depends-on): Likewise.
104519         * modules/unicodeio (Depends-on): Likewise.
104520         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
104521         (iconv_t)(-1).
104522         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
104523         conversion if cd is (iconv_t)(-1).
104524         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
104525         is not possible.
104527 2007-03-31  Bruno Haible  <bruno@clisp.org>
104529         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104530         work on Solaris either. Protect also second use of "autodetect_jp".
104532 2007-03-31  Bruno Haible  <bruno@clisp.org>
104534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
104535         the function is not present.
104537 2007-03-31  Bruno Haible  <bruno@clisp.org>
104539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
104540         the function is not present.
104542 2007-03-31  Bruno Haible  <bruno@clisp.org>
104544         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
104545         a bug in HP-UX iconv_open().
104547 2007-03-31  Bruno Haible  <bruno@clisp.org>
104549         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
104550         (Mathematics <math.h>): New section, add fpieee.
104551         (Input/output <stdio.h>): Add fseterr.
104552         (Mathematics <math.h>): New section, add printf-frexp.
104553         (Container data structures): Add sublist.
104554         (Core language properties): Add fpucw, inline.
104555         (Functions for greatest-width integer types <inttypes.h>): Add
104556         imaxabs, imaxdiv, inttypes.
104557         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
104558         isnanl-nolibm, ldexp.
104559         (Mathematics <math.h>): New section, add printf-frexpl.
104560         (Support for systems lacking POSIX:2001): Add fprintf-posix,
104561         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
104562         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
104563         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
104564         (Unicode string functions): Add unistr/u*-mbtoucr.
104565         (Java): Add javacomp-script, javaexec-script.
104566         (C#): Add csharpcomp-script, csharpexec-script.
104567         (Support for building libraries and executables): Add havelib,
104568         relocatable-*.
104569         (Support for maintaining and releasing projects): Renamed from
104570         'Support for maintaining and release projects'. Add announce-gen.
104572 2007-03-31  Bruno Haible  <bruno@clisp.org>
104574         * README: Talk primarily about git.
104575         (git and CVS): Renamed from CVS.
104576         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
104577         gnulib is available through git.
104578         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
104580 2007-03-30  Bruno Haible  <bruno@clisp.org>
104582         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
104583         * lib/poll_.h: Likewise.
104584         * lib/stat_.h: Likewise.
104585         * lib/sys_time_.h: Likewise.
104586         * lib/sysexit_.h: Likewise.
104587         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
104588         * lib/stdbool_.h: Likewise.
104589         * lib/byteswap_.h: Add double-inclusion guard.
104591 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
104593         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
104595 2007-03-30  Karl Berry  <karl@gnu.org>
104597         * config/srclist-update: double space after USA in the license
104598         substitution, since that's how it's usually (?) written.
104600 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
104602         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
104603         reported by Bruno Haible.
104605 2007-03-29  Bruno Haible  <bruno@clisp.org>
104607         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
104608         a bug in AIX iconv().
104610 2007-03-29  Bruno Haible  <bruno@clisp.org>
104612         * modules/ldexpl-tests: New file.
104613         * tests/test-ldexpl.c: New file.
104615 2007-03-29  Bruno Haible  <bruno@clisp.org>
104617         * lib/ldexpl.c: Include fpucw.h.
104618         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
104619         multiplication.
104620         * modules/ldexpl (Depends-on): Add fpucw.
104622 2007-03-29  Bruno Haible  <bruno@clisp.org>
104624         * modules/ldexpl: New file.
104625         * m4/ldexpl.m4: New file.
104626         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
104627         set.
104628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
104629         REPLACE_LDEXPL.
104630         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
104631         REPLACE_LDEXPL.
104632         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104633         gl_FUNC_LDEXPL_WORKS.
104634         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
104635         * modules/mathl (Files): Remove lib/ldexpl.c.
104636         (Depends-on): Add ldexpl.
104638 2007-03-29  Bruno Haible  <bruno@clisp.org>
104640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
104642 2007-03-29  Bruno Haible  <bruno@clisp.org>
104644         * tests/test-striconveh.c (main): Don't assume that a direct conversion
104645         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
104646         and possibly also HP-UX.
104647         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104648         work on AIX, IRIX, HP-UX, OSF/1.
104649         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
104650         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
104651         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
104652         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
104653         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
104654         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
104656 2007-03-29  Bruno Haible  <bruno@clisp.org>
104658         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
104660 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104662         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
104663         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
104665 2007-03-29  Eric Blake  <ebb9@byu.net>
104667         * lib/acl-internal.h: Remove redundant include.
104668         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
104669         Cygwin when a file is locked.
104671 2007-03-29  Bruno Haible  <bruno@clisp.org>
104673         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
104674         file.
104675         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
104677 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104679         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
104680         try to remove a parent directory if the child couldn't be removed
104681         (except for the first rmdir, which could fail because the child
104682         doesn't exist).  Problem reported by Jeff Blaine in
104683         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
104685 2007-03-28  Bruno Haible  <bruno@clisp.org>
104687         * lib/striconveh.c (utf8conv_carefully): New function.
104688         (mem_cd_iconveh_internal): Invoke it.
104690 2007-03-28  Bruno Haible  <bruno@clisp.org>
104692         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
104693         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
104694         input.
104695         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
104696         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
104697         unistr/u8-uctomb.
104699 2007-03-28  Bruno Haible  <bruno@clisp.org>
104701         * modules/unistr/u8-mbtoucr: New file.
104702         * lib/unistr/u8-mbtoucr.c: New file.
104703         * modules/unistr/u16-mbtoucr: New file.
104704         * lib/unistr/u16-mbtoucr.c: New file.
104705         * modules/unistr/u16-mbtoucr: New file.
104706         * lib/unistr/u16-mbtoucr.c: New file.
104707         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
104709 2007-03-27  Simon Josefsson  <simon@josefsson.org>
104710             Bruno Haible  <bruno@clisp.org>
104712         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
104713         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
104714         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
104716         * m4/stdio_h.m4: Add stubs for vasprintf too.
104718         * modules/stdio: Support vasprintf in sed command.
104720         * modules/vasprintf: Depend on stdio for prototypes.  Remove
104721         vasprintf.h.  Add stdio module indicator.
104723         * lib/stdio_.h: Declare asprintf and vasprintf, based on
104724         vasprintf.h.
104726         * lib/vasprintf.h: File removed.
104728         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
104729         * lib/vasprintf.c: Ditto.
104730         * lib/xvasprintf.c: Ditto.
104731         * tests/test-vasprintf-posix.c: Ditto.
104732         * tests/test-vasprintf.c: Ditto.
104734 2007-03-27  Bruno Haible  <bruno@clisp.org>
104736         Make vasnprintf multithread-safe.
104737         * lib/vasnprintf.c (decimal_point_char): New function.
104738         (VASNPRINTF): Use it.
104739         Suggested by Simon Josefsson.
104741 2007-03-27  Eric Blake  <ebb9@byu.net>
104743         Support sub-second birthtime on cygwin.
104744         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
104745         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
104746         (get_stat_birthtime): Also work with st_birthtim.
104748 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
104750         * lib/stat-time.h (USE_BIRTHTIME): Remove.
104751         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
104752         (get_stat_birthtime_ns): Do not try to use "spare" fields.
104753         (get_stat_birthtime_ns): Simplify compile-time tests.
104754         (get_stat_birthtime): Change the API to look like
104755         get_stat_mtime etc., except return a negative tv_nsec on error.
104756         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
104757         Don't check for "spare" fields.
104758         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
104759         or for struct stat.st_birthtime, as these tests aren't used.
104760         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
104762 2007-03-27  Bruno Haible  <bruno@clisp.org>
104764         * lib/stat-time.h: Include <sys/stat.h>.
104766 2007-03-27  James Youngman  <jay@gnu.org>
104768         * lib/stat-time.h (get_stat_birthtime): New function for
104769           retrieving st_birthtime as provided by UFS2 (hence *BSD).
104770         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
104771           and its variants.
104772         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
104773         * modules/stat-time-test: New file.
104774         * tests/test-stat-time.c: New test, devised by Bruno Haible.
104776 2007-03-26  Bruno Haible  <bruno@clisp.org>
104778         Better support of signalling NaNs.
104779         * lib/atanl.c: Include isnanl.h.
104780         (atanl): Perform test for NaN at the beginning of the function and
104781         through a call to isnanl.
104782         * lib/cosl.c: Include isnanl.h.
104783         (cosl): Perform test for NaN at the beginning of the function and
104784         through a call to isnanl.
104785         * lib/ldexpl.c: Include isnanl.h.
104786         (ldexpl): Perform test for NaN through a call to isnanl.
104787         * lib/logl.c: Include isnanl.h.
104788         (logl): Perform test for NaN at the beginning of the function and
104789         through a call to isnanl.
104790         * lib/sinl.c: Include isnanl.h.
104791         (sinl): Perform test for NaN at the beginning of the function and
104792         through a call to isnanl.
104793         * lib/sqrtl.c: Include isnanl.h.
104794         (sqrtl): Perform test for NaN at the beginning of the function and
104795         through a call to isnanl.
104796         * lib/tanl.c: Include isnanl.h.
104797         (tanl): Perform test for NaN at the beginning of the function and
104798         through a call to isnanl.
104799         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
104800         * modules/mathl (Depends-on): Add isnanl.
104802 2007-03-26  Eric Blake  <ebb9@byu.net>
104804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
104805         regression in logic sense of previous patch.
104807 2007-03-26  Bruno Haible  <bruno@clisp.org>
104809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
104810         unportable shell command "if ! ...".
104811         Reported by Ralf Wildenhues.
104813 2007-03-25  Bruno Haible  <bruno@clisp.org>
104815         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
104816         <sysexits.h> file, and only add EX_CONFIG.
104817         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
104818         absolute file name and whether it is sufficient. Substitute also
104819         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
104820         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
104821         ABSOLUTE_SYSEXITS_H into sysexits.h.
104823 2007-03-25  Bruno Haible  <bruno@clisp.org>
104825         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
104826         hints is NULL.
104828 2007-03-25  Bruno Haible  <bruno@clisp.org>
104830         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
104831         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
104833 2007-03-25  Bruno Haible  <bruno@clisp.org>
104835         * lib/vasnprintf.c: Include langinfo.h.
104836         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
104837         multithread-safe.
104838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
104839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
104840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
104846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104847         Reported by Simon Josefsson.
104849 2007-03-25  Bruno Haible  <bruno@clisp.org>
104851         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
104852         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
104853         * modules/vasnprintf (Depends-on): Add stdint.
104855 2007-03-25  Bruno Haible  <bruno@clisp.org>
104857         * modules/fpieee: New file.
104858         * m4/fpieee.m4: New file.
104859         * modules/isnan-nolibm (Depends-on): Add fpieee.
104860         * modules/isnanl-nolibm (Depends-on): Add fpieee.
104861         * modules/isnanl (Depends-on): Add fpieee.
104863 2007-03-25  Bruno Haible  <bruno@clisp.org>
104865         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
104867 2007-03-25  Bruno Haible  <bruno@clisp.org>
104869         Avoid test failures on IRIX 6.5.
104870         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
104871         (main): Use it.
104872         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
104873         macros.
104874         (main): Use them.
104876 2007-03-25  Bruno Haible  <bruno@clisp.org>
104878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
104879         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
104880         exists but doesn't work.
104881         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
104882         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
104883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
104884         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
104885         math.h.
104887 2007-03-25  Bruno Haible  <bruno@clisp.org>
104889         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
104890         returns inf. Needed on IRIX 6.5.
104892 2007-03-25  Bruno Haible  <bruno@clisp.org>
104894         * tests/test-frexpl.c: Include isnanl-nolibm.h.
104895         (main): Use isnanl instead of x != x idiom.
104896         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
104898         * tests/test-frexp.c: Include isnan.h.
104899         (main): Use isnan instead of x != x idiom.
104900         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
104902 2007-03-25  Bruno Haible  <bruno@clisp.org>
104904         * tests/test-frexp.c (NaN): New function/macro.
104905         (main): Use it instead of 0.0 / 0.0.
104906         * tests/test-isnan.c (NaN): New function/macro.
104907         (main): Use it instead of 0.0 / 0.0.
104908         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
104909         (test_function): Use it instead of 0.0 / 0.0.
104910         * tests/test-vasprintf-posix.c (NaN): New function/macro.
104911         (test_function): Use it instead of 0.0 / 0.0.
104912         * tests/test-snprintf-posix.h (NaN): New function/macro.
104913         (test_function): Use it instead of 0.0 / 0.0.
104914         * tests/test-sprintf-posix.h (NaN): New function/macro.
104915         (test_function): Use it instead of 0.0 / 0.0.
104916         * tests/test-fprintf-posix.h (NaN): New function/macro.
104917         (test_function): Use it instead of 0.0 / 0.0.
104918         * tests/test-printf-posix.h (NaN): New function/macro.
104919         (test_function): Use it instead of 0.0 / 0.0.
104921         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
104923 2007-03-25  Bruno Haible  <bruno@clisp.org>
104925         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
104927 2007-03-25  Bruno Haible  <bruno@clisp.org>
104929         * lib/regexec.c (merge_state_with_log): Make static.
104931 2007-03-25  Bruno Haible  <bruno@clisp.org>
104933         * lib/trigl.c (kernel_rem_pio2): Make static.
104935 2007-03-25  Bruno Haible  <bruno@clisp.org>
104937         * lib/sincosl.c (sincosl_table): Make static.
104939 2007-03-25  Bruno Haible  <bruno@clisp.org>
104941         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
104942         if the compiler does not support C99.
104944 2007-03-25  Bruno Haible  <bruno@clisp.org>
104946         * modules/time (Makefile.am): Ensure all rule action lines start with a
104947         tab.
104949 2007-03-24  Bruno Haible  <bruno@clisp.org>
104951         * modules/tsearch-tests: New file.
104952         * tests/test-tsearch.sh: New file.
104953         * tests/test-tsearch.c: New file, mostly copied from glibc.
104955         * modules/search-tests: New file.
104956         * tests/test-search.c: New file.
104958         * modules/search: New file.
104959         * lib/search_.h: New file, incorporating lib/tsearch.h.
104960         * m4/search_h.m4: New file.
104961         * lib/tsearch.h: Remove file.
104962         * lib/tsearch.c: Include search.h instead of tsearch.h.
104963         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
104964         HAVE_TSEARCH.
104965         * modules/tsearch (Files): Remove lib/tsearch.h.
104966         (Depends-on): Add search.
104967         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
104968         (Include): Change tsearch.h into search.h.
104970 2007-03-24  Bruno Haible  <bruno@clisp.org>
104972         * modules/fpucw: New file.
104973         * lib/fpucw.h: New file.
104974         * lib/frexp.c: Include fpucw.h.
104975         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
104976         (FUNC): Use them.
104977         * lib/printf-frexp.c: Include fpucw.h.
104978         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
104979         (FUNC): Use them.
104980         * lib/vasnprintf.c: Include fpucw.h.
104981         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
104982         'long double' calculations.
104983         * tests/test-frexpl.c: Include fpucw.h.
104984         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
104985         * tests/test-printf-frexpl.c: Include fpucw.h.
104986         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
104987         * modules/frexpl (Depends-on): Add fpucw.
104988         * modules/printf-frexpl (Depends-on): Likewise.
104989         * modules/fprintf-posix (Depends-on): Likewise.
104990         * modules/snprintf-posix (Depends-on): Likewise.
104991         * modules/sprintf-posix (Depends-on): Likewise.
104992         * modules/vasnprintf-posix (Depends-on): Likewise.
104993         * modules/vasprintf-posix (Depends-on): Likewise.
104994         * modules/vfprintf-posix (Depends-on): Likewise.
104995         * modules/vsnprintf-posix (Depends-on): Likewise.
104996         * modules/vsprintf-posix (Depends-on): Likewise.
104997         * modules/frexpl-tests (Depends-on): Likewise.
104998         * modules/printf-frexpl-tests (Depends-on): Likewise.
105000 2007-03-24  Bruno Haible  <bruno@clisp.org>
105002         * lib/float+.h: New file.
105003         * lib/isnan.c: Include float+.h.
105004         (SIZE): New macro.
105005         (FUNC): Compare only SIZE bytes of the value.
105006         * lib/vasnprintf.c: Include float+.h.
105007         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105008         SIZEOF_LDBL or SIZEOF_DBL bytes.
105009         * modules/isnan-nolibm (Files): Add lib/float+.h.
105010         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105011         * modules/isnanl (Files): Add lib/float+.h.
105012         * modules/vasnprintf (Files): Add lib/float+.h.
105014 2007-03-24  Bruno Haible  <bruno@clisp.org>
105016         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105017         include isnanl-nolibm.h.
105019 2007-03-24  Bruno Haible  <bruno@clisp.org>
105021         * tests/test-read-file.c (main): Don't produce spurious output for
105022         expected situations. Make the test fail if it encountered unexpected
105023         results.
105025 2007-03-24  Bruno Haible  <bruno@clisp.org>
105027         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105028         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105030 2007-03-24  Bruno Haible  <bruno@clisp.org>
105032         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105034 2007-03-24  Bruno Haible  <bruno@clisp.org>
105036         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105037         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105039         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105040         * modules/utf8-ucs4: Turn into a symbolic link to module
105041         unistr/u8-mbtouc.
105043         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105044         utf8-ucs4-unsafe.
105045         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105046         unistr/u8-mbtouc-unsafe.
105048         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105049         * modules/utf16-ucs4: Turn into a symbolic link to module
105050         unistr/u16-mbtouc.
105052         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105053         utf16-ucs4-unsafe.
105054         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105055         unistr/u16-mbtouc-unsafe.
105057         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105058         * modules/ucs4-utf8: Turn into a symbolic link to module
105059         unistr/u8-ubtomb.
105061         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105062         * modules/ucs4-utf16: Turn into a symbolic link to module
105063         unistr/u16-ubtomb.
105065 2007-03-24  Bruno Haible  <bruno@clisp.org>
105067         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105068         Enable the function only if HAVE_INLINE.
105069         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105070         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105071         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105072         Enable the function only if HAVE_INLINE.
105073         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105074         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105075         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105076         Enable the function only if HAVE_INLINE.
105077         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105078         Enable the function only if HAVE_INLINE.
105079         * modules/utf8-ucs4: Update.
105080         * modules/utf8-ucs4-unsafe: Update.
105081         * modules/utf16-ucs4: Update.
105082         * modules/utf16-ucs4-unsafe: Update.
105083         * modules/ucs4-utf8: Update.
105084         * modules/ucs4-utf16: Update.
105086 2007-03-24  Bruno Haible  <bruno@clisp.org>
105088         * lib/utf8-ucs4.h: Remove file.
105089         * lib/utf8-ucs4-unsafe.h: Remove file.
105090         * lib/utf16-ucs4.h: Remove file.
105091         * lib/utf16-ucs4-unsafe.h: Remove file.
105092         * lib/ucs4-utf8.h: Remove file.
105093         * lib/ucs4-utf16.h: Remove file.
105094         * lib/unistr.h: Include their previous contents.
105095         * m4/utf-ucs4.m4: Remove file.
105096         * m4/ucs4-utf.m4: Remove file.
105097         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105098         (Depends-on): Add unistr/base.
105099         (configure.ac): Remove gl_UTF_UCS4.
105100         (Makefile.am): Update.
105101         (Include): Change to unistr.h.
105102         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105103         (Depends-on): Add unistr/base.
105104         (configure.ac): Remove gl_UTF_UCS4.
105105         (Makefile.am): Update.
105106         (Include): Change to unistr.h.
105107         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105108         (Depends-on): Add unistr/base.
105109         (configure.ac): Remove gl_UTF_UCS4.
105110         (Makefile.am): Update.
105111         (Include): Change to unistr.h.
105112         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105113         (Depends-on): Add unistr/base.
105114         (configure.ac): Remove gl_UTF_UCS4.
105115         (Makefile.am): Update.
105116         (Include): Change to unistr.h.
105117         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105118         (Depends-on): Add unistr/base.
105119         (configure.ac): Remove gl_UCS4_UTF.
105120         (Makefile.am): Update.
105121         (Include): Change to unistr.h.
105122         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105123         (Depends-on): Add unistr/base.
105124         (configure.ac): Remove gl_UCS4_UTF.
105125         (Makefile.am): Update.
105126         (Include): Change to unistr.h.
105127         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105128         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105129         utf8-ucs4-unsafe.h.
105130         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105131         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105132         utf16-ucs4-unsafe.h.
105133         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105134         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105135         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105136         * lib/unistr/u8-strchr.c: Likewise.
105137         * lib/unistr/u8-strrchr.c: Likewise.
105138         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105139         * lib/unistr/u16-strchr.c: Likewise.
105140         * lib/unistr/u16-strrchr.c: Likewise.
105141         * lib/striconveh.c: Update.
105142         * lib/linebreak.c: Update.
105144 2007-03-24  Bruno Haible  <bruno@clisp.org>
105146         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105147         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105149 2007-03-22  Bruno Haible  <bruno@clisp.org>
105151         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105153 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105155         * MODULES.html.sh (File system functions): New module write-any-file.
105156         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105157         * m4/write-any-file.m4: New files.
105159 2007-03-23  Eric Blake  <ebb9@byu.net>
105161         * gnulib-tool: Rearrange space-tab sequences, since some editors
105162         like to eat them.
105164 2007-03-23  Eric Blake  <ebb9@byu.net>
105166         * lib/version-etc.c (version_etc_va): Update license wording to
105167         be more concise.  Recommended by Richard Stallman.
105169 2007-03-22  Bruno Haible  <bruno@clisp.org>
105171         * lib/poll.c (MSG_PEEK): New fallback definition.
105173 2007-03-22  Bruno Haible  <bruno@clisp.org>
105175         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105176         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105177         (main): Update.
105178         Fixes a compilation error on BeOS.
105180 2007-03-22  Bruno Haible  <bruno@clisp.org>
105182         * modules/frexpl-tests: New file.
105183         * tests/test-frexpl.c: New file.
105185         * modules/frexpl: New file.
105186         * m4/frexpl.m4: New file.
105187         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105188         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105190         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105191         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105192         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105194 2007-03-22  Bruno Haible  <bruno@clisp.org>
105196         * lib/frexpl.c: Share code with lib/frexp.c.
105197         * modules/mathl (Files): Add lib/frexp.c.
105198         (Depends-on): Add isnanl-nolibm.
105200 2007-03-22  Bruno Haible  <bruno@clisp.org>
105202         * modules/printf-frexp (Files): Add m4/frexp.m4.
105203         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105204         only if the found frexp function actually works.
105206 2007-03-22  Bruno Haible  <bruno@clisp.org>
105208         * lib/frexp.c: Remove older implementation that uses divisions.
105210 2007-03-21  Bruno Haible  <bruno@clisp.org>
105212         * modules/frexp-tests: New file.
105213         * tests/test-frexp.c: New file.
105215         * modules/frexp: New file.
105216         * lib/frexp.c: New file.
105217         * m4/frexp.m4: New file.
105218         * lib/math_.h (frexp): New declaration.
105219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
105220         REPLACE_FREXP.
105221         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
105223 2007-03-21  Bruno Haible  <bruno@clisp.org>
105225         * modules/isnanl-tests: New file.
105226         * tests/test-isnanl.c: New file.
105228         * modules/isnanl: New file.
105229         * lib/isnanl.h: New file.
105230         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
105231         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
105232         gl_FUNC_ISNANL_WORKS.
105233         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
105234         New macros.
105236 2007-03-21  Bruno Haible  <bruno@clisp.org>
105238         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
105239         lib/isnanl.h.
105240         (Include): Update.
105241         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
105242         * lib/vasnprintf.c: Update.
105243         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
105244         tests/test-isnanl.h, remove tests/test-isnanl.c.
105245         (Makefile.am): Update.
105246         * tests/test-isnanl-nolibm.c: New file.
105247         * tests/test-isnanl.h: New file.
105248         * tests/test-isnanl.c: Remove file.
105250 2007-03-21  Jim Meyering  <jim@meyering.net>
105252         When trying to open ".", treat ESTALE like EACCES.
105253         * lib/savewd.c (savewd_save): Resort to forking not just upon
105254         failure with EACCES, but also when errno is ESTALE.
105256 2007-03-20  Bruno Haible  <bruno@clisp.org>
105258         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105259         Needed on AIX 5.1. Reported by Matthew Woehlke.
105261 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105263         Suggestions by Bruno Haible:
105264         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105265         our own.
105266         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105267         * modules/acl (Depends-on): Add gettext.
105269 2007-03-19  Bruno Haible  <bruno@clisp.org>
105271         * modules/iconvme: Remove file.
105272         * lib/iconvme.h: Remove file.
105273         * lib/iconvme.c: Remove file.
105274         * m4/iconvme.m4: Remove file.
105276 2007-03-19  Bruno Haible  <bruno@clisp.org>
105278         * doc/relocatable-maint.texi: Break long shell script line.
105279         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105281 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105283         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105284         handle file_has_acl.
105285         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105286         * lib/acl.c: Move header inclusions and related macro defns into
105287         lib/acl-internal.h.
105288         (S_ISLNK): Remove defn, since that's now done for us.
105289         (file_has_acl): Move to lib/file-has-acl.c.
105290         Call acl_trivial if available.  This is the crucial part of the fix.
105291         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105292         shared within the library.  Rewrite a bit, partly to make it compatible
105293         with the GNU coding style.
105294         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105295         Remove unnecessary double-quotes.
105296         Don't test for acl_to_text; the build will catch that.
105297         Replace acl_entries if it doesn't exist and it is needed.
105298         Check for -lsec and acl_trivial (as used on Solaris 10).
105299         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105300         lib/file-has-acl.c.
105301         (Depends-on): Add sys_stat, for S_ISLNK.
105303 2007-03-19  Ben Pfaff  <blp@gnu.org>
105305         * doc/gnulib.texi: Fix typos.
105306         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105308 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105310         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105311         If size is zero here, buf must be zero.
105313 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105315         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105316         <bruno@clisp.org>.
105318 2007-03-18  Bruno Haible  <bruno@clisp.org>
105320         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105321         Suggested by Eric Blake.
105323 2007-03-18  Ben Pfaff  <blp@gnu.org>
105325         * doc/relocatable.texi: Recommend using as prefix a directory
105326         that does not exist and will never be created.  Based on
105327         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105328         and others.
105330 2007-03-17  Bruno Haible  <bruno@clisp.org>
105332         * lib/fchownat.c: Include lchown.h.
105334 2007-03-17  Bruno Haible  <bruno@clisp.org>
105336         Fix endless loop when the given allocated size was > INT_MAX.
105337         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105338         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105339         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105340         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105341         * lib/sprintf.c (sprintf): Likewise.
105343 2007-03-17  Bruno Haible  <bruno@clisp.org>
105345         * tests/test-argp-2.sh (func_compare): Output a context diff.
105347 2007-03-17  Bruno Haible  <bruno@clisp.org>
105349         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105350         locale's decimal-point character.
105352 2007-03-17  Bruno Haible  <bruno@clisp.org>
105354         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105355         before comparing it. Needed because on some platforms (e.g. x86) a
105356         'long double' occupies less bytes than sizeof (long double).
105358 2007-03-17  Bruno Haible  <bruno@clisp.org>
105360         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105361         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105362         * tests/test-getaddrinfo.c (simple): Likewise.
105363         * tests/test-read-file.c (main): Likewise.
105365 2007-03-17  Bruno Haible  <bruno@clisp.org>
105367         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105369 2007-03-17  Bruno Haible  <bruno@clisp.org>
105371         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105372         unused variable.
105374 2007-03-17  Bruno Haible  <bruno@clisp.org>
105376         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105377         * tests/test-c-strncasecmp.c: Likewise.
105379 2007-03-17  Bruno Haible  <bruno@clisp.org>
105381         * modules/stdlib (Depends-on): Add unistd.
105382         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
105383         Needed for MacOS X 10.3.
105385 2007-03-17  Bruno Haible  <bruno@clisp.org>
105387         * lib/unistr/u-strdup.h: Include <stdlib.h>.
105389 2007-03-17  Bruno Haible  <bruno@clisp.org>
105391         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
105393 2007-03-17  Bruno Haible  <bruno@clisp.org>
105395         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
105396         to reflect files copied from gnulib (with or without modifications).
105397         Suggested by Jim Meyering.
105399 2007-03-17  Eric Blake  <ebb9@byu.net>
105401         * NEWS: Document stdlib change from 2007-02-18.
105403 2007-03-17  Jim Meyering  <jim@meyering.net>
105405         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
105406         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
105407         someone uses a name containing shell meta-characters.
105408         Reported by Alfred M. Szmidt.
105410         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
105412 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105414         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
105415         and copy gettext configuration files only if configure.ac contains
105416         a use of AM_GNU_GETTEXT_VERSION.
105418 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105420         * build-aux/bootstrap (gnulib_name): New variable.
105421         (gnulib_tool_options): Use it.
105423 2007-03-13  Simon Josefsson  <simon@josefsson.org>
105425         * tests/test-des.c: Use new namespace.
105427 2007-03-15  Bruno Haible  <bruno@clisp.org>
105429         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
105430         Reported by James Youngman <jay@gnu.org>.
105432 2007-03-15  Bruno Haible  <bruno@clisp.org>
105434         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
105435         declared prototype. Needed with cc on OSF/1 5.1.
105437 2007-03-15  Bruno Haible  <bruno@clisp.org>
105439         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
105440         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
105441         (struct gl_list_implementation): Add dispose_fn argument to the
105442         'create_empty', 'create' methods.
105443         (struct gl_list_impl_base): Add field 'dispose_fn'.
105444         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
105445         argument.
105446         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
105447         dispose_fn argument.
105448         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
105449         dispose_fn on the dropped values.
105450         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
105451         dispose_fn argument.
105452         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
105453         dropped values.
105454         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
105455         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105456         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
105457         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105458         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
105459         argument.
105460         (gl_tree_list_free): Call dispose_fn on the dropped values.
105461         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
105462         the dropped values.
105463         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105464         Add dispose_fn argument.
105465         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
105466         Call dispose_fn on the dropped values.
105467         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
105468         Add dispose_fn argument.
105469         (gl_sublist_create): Initialize the 'dispose_fn' field.
105470         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
105471         * tests/test-array_list.c (main): Update.
105472         * tests/test-carray_list.c (main): Update.
105473         * tests/test-avltree_list.c (main): Update.
105474         * tests/test-rbtree_list.c (main): Update.
105475         * tests/test-avltreehash_list.c (main): Update.
105476         * tests/test-rbtreehash_list.c (main): Update.
105477         * tests/test-linked_list.c (main): Update.
105478         * tests/test-linkedhash_list.c (main): Update.
105479         * tests/test-array_oset.c (main): Update.
105481 2007-03-15  Bruno Haible  <bruno@clisp.org>
105483         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
105484         (gl_oset_create_empty): Add dispose_fn argument.
105485         (struct gl_oset_implementation): Add dispose_fn argument to
105486         'create_empty' method.
105487         (struct gl_oset_impl_base): Add dispose_fn field.
105488         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
105489         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
105490         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
105491         values.
105492         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
105493         (gl_tree_oset_free): Call dispose_fn on the dropped values.
105494         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105495         dropped value.
105496         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105497         dropped value.
105498         * tests/test-array_oset.c (main): Update.
105499         * tests/test-avltree_oset.c (main): Update.
105500         * tests/test-rbtree_oset.c (main): Update.
105501         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
105503 2007-03-13  Bruno Haible  <bruno@clisp.org>
105505         * tests/test-stdbool.c (i): Update after last patch.
105507 2007-03-12  Bruno Haible  <bruno@clisp.org>
105509         * lib/quotearg.c: Include <wctype.h> early, before the definition of
105510         the iswprint macro. Needed on Solaris 2.5.1.
105512 2007-03-12  Bruno Haible  <bruno@clisp.org>
105514         * tests/test-printf-frexp.c (main): Declare x as volatile.
105516 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105518         * doc/gnulib.texi (Build robot for gnulib): New section.
105520 2007-03-12  Jim Meyering  <jim@meyering.net>
105522         * build-aux/bootstrap: New file.
105523         * build-aux/bootstrap.conf: New file, from coreutils.
105525 2007-03-11  Bruno Haible  <bruno@clisp.org>
105527         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
105529 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105531         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
105532         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
105533         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
105535 2007-03-11  Bruno Haible  <bruno@clisp.org>
105537         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
105538         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
105540 2007-03-11  Bruno Haible  <bruno@clisp.org>
105542         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
105543         formula. Needed for SunPRO C 5.0.
105545 2007-03-11  Bruno Haible  <bruno@clisp.org>
105547         * modules/long-options (Depends-on): Add getopt.
105549 2007-03-11  Bruno Haible  <bruno@clisp.org>
105551         * modules/modechange (Depends-on): Add stdbool.
105553 2007-03-11  Bruno Haible  <bruno@clisp.org>
105555         * modules/i-ring (Depends-on): Add stdbool.
105557 2007-03-11  Bruno Haible  <bruno@clisp.org>
105559         * modules/gc-des (Depends-on): Add stdbool.
105561 2007-03-11  Bruno Haible  <bruno@clisp.org>
105563         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
105565 2007-03-11  Bruno Haible  <bruno@clisp.org>
105567         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
105569 2007-03-11  Bruno Haible  <bruno@clisp.org>
105571         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
105573 2007-03-11  Bruno Haible  <bruno@clisp.org>
105575         * lib/vasnprintf.c (sprintf): Undefine.
105577 2007-03-11  Bruno Haible  <bruno@clisp.org>
105579         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
105580         initializers in SunPRO C and Compaq C compilers.
105582 2007-03-11  Bruno Haible  <bruno@clisp.org>
105584         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
105585         decrementing code ANSI C compliant.
105587 2007-03-11  Bruno Haible  <bruno@clisp.org>
105589         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
105590         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
105592 2007-03-11  Bruno Haible  <bruno@clisp.org>
105594         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
105595         <stdbool.h> substitute doesn't pass.
105597 2007-03-11  Bruno Haible  <bruno@clisp.org>
105599         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
105601 2007-03-11  Bruno Haible  <bruno@clisp.org>
105603         * gnulib-tool (func_create_megatestdir): Create also an autobuild
105604         script, for submission to autobuild.josefsson.org.
105606 2007-03-10  Bruno Haible  <bruno@clisp.org>
105608         * modules/canonicalize-lgpl-tests: New file.
105609         * tests/test-canonicalize-lgpl.sh: New file.
105610         * tests/test-canonicalize-lgpl.c: New file.
105612         * modules/c-strcase-tests: New file.
105613         * tests/test-c-strcase.sh: New file.
105614         * tests/test-c-strcasecmp.c: New file.
105615         * tests/test-c-strncasecmp.c: New file.
105617         * modules/atexit-tests: New file.
105618         * tests/test-atexit.sh: New file.
105619         * tests/test-atexit.c: New file.
105621 2007-03-10  Bruno Haible  <bruno@clisp.org>
105623         * tests/test-binary-io.sh: Use temporary filenames that are not so
105624         likely to clash with those of other tests (in a parallel make).
105625         * tests/test-binary-io.c: Likewise.
105627 2007-03-10  Bruno Haible  <bruno@clisp.org>
105629         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
105630         fallback; use #error instead.
105631         Suggested by Simon Josefsson.
105633 2007-03-10  Bruno Haible  <bruno@clisp.org>
105635         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
105636         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
105637         first and the last.
105639 2007-03-10  Bruno Haible  <bruno@clisp.org>
105641         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
105643 2007-03-10  Bruno Haible  <bruno@clisp.org>
105645         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
105646         "make distcheck".
105647         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
105648         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
105649         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
105651 2007-03-10  Bruno Haible  <bruno@clisp.org>
105653         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
105654         variable.
105655         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
105656         variable.
105658 2007-03-09  Eric Blake  <ebb9@byu.net>
105659         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
105661         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
105662         types are not being provided by gnulib.
105663         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
105664         types are supported.
105666 2007-03-10  Bruno Haible  <bruno@clisp.org>
105668         * lib/stdio_.h (__attribute__): New macro.
105669         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
105670         vsprintf): Specify __attribute__ __format__ for GCC.
105671         Suggested by Eric Blake.
105673 2007-03-09  Bruno Haible  <bruno@clisp.org>
105675         * modules/printf-posix-tests: New file.
105676         * tests/test-printf-posix.sh: New file.
105677         * tests/test-printf-posix.c: New file.
105679         * modules/printf-posix: New file.
105680         * lib/printf.c: New file.
105681         * m4/printf-posix-rpl.m4: New file.
105682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
105683         REPLACE_PRINTF.
105684         * lib/stdio_.h (printf): New declaration.
105685         (format, __format__, ____printf____, ____scanf____, ____strftime____,
105686         ____strfmon____): New macros.
105687         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
105688         REPLACE_PRINTF.
105690 2007-03-09  Bruno Haible  <bruno@clisp.org>
105692         * tests/test-vasnprintf-posix2.sh: New file.
105693         * tests/test-vasnprintf-posix2.c: New file.
105694         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
105695         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
105696         (Makefile.am): Activate test-vasnprintf-posix2.sh.
105698         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
105699         a locale dependent decimal point, rather than always '.'.
105701 2007-03-09  Eric Blake  <ebb9@byu.net>
105703         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
105704         spite of platforms like Tandem/NSK that define it to -1.
105706 2007-03-08  Bruno Haible  <bruno@clisp.org>
105708         * modules/vprintf-posix-tests: New file.
105709         * tests/test-vprintf-posix.sh: New file.
105710         * tests/test-vprintf-posix.c: New file.
105711         * tests/test-printf-posix.h: New file.
105713         * modules/vprintf-posix: New file.
105714         * lib/vprintf.c: New file.
105715         * m4/vprintf-posix.m4: New file.
105716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
105717         REPLACE_VPRINTF.
105718         * lib/stdio_.h (vprintf): New declaration.
105719         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
105720         REPLACE_VPRINTF.
105722 2007-03-08  Bruno Haible  <bruno@clisp.org>
105724         * modules/fprintf-posix-tests: New file.
105725         * tests/test-fprintf-posix.sh: New file.
105726         * tests/test-fprintf-posix.c: New file.
105728         * modules/fprintf-posix: New file.
105729         * lib/fprintf.c: New file.
105730         * m4/fprintf-posix.m4: New file.
105731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
105732         REPLACE_FPRINTF.
105733         * lib/stdio_.h (fprintf): New declaration.
105734         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
105735         REPLACE_FPRINTF.
105737 2007-03-08  Bruno Haible  <bruno@clisp.org>
105739         * modules/vfprintf-posix-tests: New file.
105740         * tests/test-vfprintf-posix.sh: New file.
105741         * tests/test-vfprintf-posix.c: New file.
105742         * tests/test-fprintf-posix.h: New file.
105743         * tests/test-fprintf-posix.out: New file.
105745         * modules/vfprintf-posix: New file.
105746         * lib/vfprintf.c: New file.
105747         * m4/vfprintf-posix.m4: New file.
105748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
105749         REPLACE_VFPRINTF.
105750         * lib/stdio_.h (vfprintf): New declaration.
105751         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
105752         REPLACE_VFPRINTF.
105754 2007-03-08  Bruno Haible  <bruno@clisp.org>
105756         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
105758 2007-03-08  Bruno Haible  <bruno@clisp.org>
105760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
105761         instead of 'expr' invocations.
105762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105767         Suggested by Paul Eggert.
105769 2007-03-08  Bruno Haible  <bruno@clisp.org>
105771         * modules/fseterr-tests: New file.
105772         * tests/test-fseterr.c: New file.
105774         * modules/fseterr: New file.
105775         * lib/fseterr.h: New file.
105776         * lib/fseterr.c: New file.
105778 2007-03-08  Bruno Haible  <bruno@clisp.org>
105780         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
105781         * lib/getopt_.h: Likewise.
105782         * lib/mbswidth.h: Likewise.
105783         * lib/setenv.h: Likewise.
105784         * lib/vasnprintf.h: Likewise.
105785         * lib/vasprintf.h: Likewise.
105786         * lib/verror.h: Likewise.
105787         * lib/xsetenv.h: Likewise.
105788         * lib/xvasprintf.h: Likewise.
105790 2007-03-08  Jim Meyering  <jim@meyering.net>
105792         * users.txt: Add parted.
105794         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
105796 2007-03-07  Bruno Haible  <bruno@clisp.org>
105798         * m4/printf.m4: Make the shell script snippets copy&pastable.
105800 2007-03-02  Bruno Haible  <bruno@clisp.org>
105802         * lib/netinet_in_.h: New file.
105803         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
105804         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
105805         * modules/netinet_in (Files): Add lib/netinet_in_.h.
105806         (Depends-on): Add absolute-header.
105807         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
105808         into netinet/in.h.
105810 2007-03-03  Bruno Haible  <bruno@clisp.org>
105812         * lib/sys_select_.h: New file.
105813         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
105814         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
105815         * modules/sys_select (Files): Add lib/sys_select_.h.
105816         (Depends-on): Add absolute-header.
105817         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
105818         into sys/select.h.
105820 2007-03-02  Bruno Haible  <bruno@clisp.org>
105822         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
105823         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
105824         values.
105825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
105826         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
105827         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
105828         * modules/sys_socket (Depends-on): Add absolute-header.
105829         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
105830         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
105831         (Include): Remove requirement of inclusion of <sys/types.h>.
105833 2007-03-02  Bruno Haible  <bruno@clisp.org>
105835         * lib/byteswap_.h (bswap_32): Fix formula.
105837 2007-03-06  Bruno Haible  <bruno@clisp.org>
105839         * modules/sprintf-posix-tests: New file.
105840         * tests/test-sprintf-posix.c: New file.
105842         * modules/sprintf-posix: New file.
105843         * lib/sprintf.c: New file.
105844         * m4/sprintf-posix.m4: New file.
105845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
105846         REPLACE_SPRINTF.
105847         * lib/stdio_.h (sprintf): New declaration.
105848         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
105849         REPLACE_SPRINTF.
105851 2007-03-06  Bruno Haible  <bruno@clisp.org>
105853         * modules/vsprintf-posix-tests: New file.
105854         * tests/test-vsprintf-posix.c: New file.
105855         * tests/test-sprintf-posix.h: New file.
105857         * modules/vsprintf-posix: New file.
105858         * lib/vsprintf.c: New file.
105859         * m4/vsprintf-posix.m4: New file.
105860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
105861         REPLACE_VSPRINTF.
105862         * lib/stdio_.h (vsprintf): New declaration.
105863         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
105864         REPLACE_VSPRINTF.
105866 2007-03-06  Bruno Haible  <bruno@clisp.org>
105868         * modules/vsnprintf (Depend-on): Remove minmax.
105870 2007-03-06  Bruno Haible  <bruno@clisp.org>
105872         * modules/snprintf-posix-tests: New file.
105873         * tests/test-snprintf-posix.c: New file.
105875         * modules/snprintf-posix: New file.
105876         * m4/snprintf-posix.m4: New file.
105877         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
105878         gl_FUNC_SNPRINTF.
105879         (gl_FUNC_SNPRINTF): Invoke it.
105880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
105881         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
105882         is set.
105883         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
105885 2007-03-06  Bruno Haible  <bruno@clisp.org>
105887         * modules/vsnprintf-posix-tests: New file.
105888         * tests/test-vsnprintf-posix.c: New file.
105889         * tests/test-snprintf-posix.h: New file.
105891         * modules/vsnprintf-posix: New file.
105892         * m4/vsnprintf-posix.m4: New file.
105893         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
105894         gl_FUNC_VSNPRINTF.
105895         (gl_FUNC_VSNPRINTF): Invoke it.
105896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
105897         * lib/stdio_.h (vsnprintf): Define as a replacement if
105898         REPLACE_VSNPRINTF is set.
105899         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
105901 2007-03-06  Bruno Haible  <bruno@clisp.org>
105903         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
105904         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
105906 2007-03-06  Bruno Haible  <bruno@clisp.org>
105908         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
105909         (asinl): Declare also if HAVE_DECL_ASINL is set.
105910         (atanl): Declare also if HAVE_DECL_ATANL is set.
105911         (ceill): Declare also if HAVE_DECL_CEILL is set.
105912         (cosl): Declare also if HAVE_DECL_COSL is set.
105913         (expl): Declare also if HAVE_DECL_EXPL is set.
105914         (floorl): Declare also if HAVE_DECL_FLOORL is set.
105915         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
105916         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
105917         (logl): Declare also if HAVE_DECL_LOGL is set.
105918         (sinl): Declare also if HAVE_DECL_SINL is set.
105919         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
105920         (tanl): Declare also if HAVE_DECL_TANL is set.
105921         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
105922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
105923         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
105924         declaration of frexpl, ldexpl.
105925         * modules/printf-frexpl (Depends-on): Add math.
105926         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
105928 2007-03-05  Bruno Haible  <bruno@clisp.org>
105930         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
105931         frexpl and ldexpl are declared.
105932         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
105934 2007-03-05  Bruno Haible  <bruno@clisp.org>
105936         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
105937         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
105939 2007-03-05  Bruno Haible  <bruno@clisp.org>
105941         * lib/stdio_.h: Include <stddef.h>.
105943 2007-03-05  Bruno Haible  <bruno@clisp.org>
105945         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
105947 2007-03-05  Bruno Haible  <bruno@clisp.org>
105949         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
105950         NetBSD 4, from Ralf Wildenhues.
105952 2007-03-04  Bruno Haible  <bruno@clisp.org>
105954         * lib/vasprintf.h: Update #if logic for the case when the functions
105955         exist but are overridden.
105957 2007-03-04  Bruno Haible  <bruno@clisp.org>
105959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
105960         implementations: glibc-2.4 and MacOS X 10.3.
105961         * tests/test-vasnprintf-posix.c (test_function): Test also the case
105962         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
105963         * tests/test-vasprintf-posix.c (test_function): Likewise.
105965 2007-03-04  Bruno Haible  <bruno@clisp.org>
105967         * modules/vasprintf-posix-tests: New file.
105968         * tests/test-vasprintf-posix.c: New file.
105970         * modules/vasprintf-posix: New file.
105971         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
105972         defined.
105973         * m4/vasprintf-posix.m4: New file.
105974         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
105975         gl_FUNC_VASPRINTF.
105976         (gl_FUNC_VASPRINTF): Invoke it.
105977         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
105978         here.
105979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
105981 2007-03-04  Bruno Haible  <bruno@clisp.org>
105983         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
105984         REPLACE_GETTIMEOFDAY.
105985         * modules/sys_time (Makefile.am): Likewise.
105986         * m4/sys_time_h.m4: Likewise.
105987         * m4/gettimeofday.m4: Likewise.
105989 2007-03-04  Bruno Haible  <bruno@clisp.org>
105991         * modules/vasnprintf-posix-tests: New file.
105992         * tests/test-vasnprintf-posix.c: New file.
105994         * modules/vasnprintf-posix: New file.
105995         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
105996         printf-frexpl.h.
105997         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
105998         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
105999         REPLACE_VASNPRINTF is defined.
106000         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106001         gl_FUNC_VASNPRINTF.
106002         (gl_FUNC_VASNPRINTF): Invoke it.
106003         * m4/vasnprintf-posix.m4: New file.
106004         * m4/printf.m4: New file.
106006 2007-03-04  Bruno Haible  <bruno@clisp.org>
106008         Compile progreloc.c only if --enable-relocatable is specified.
106009         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106010         if --enable-relocatable was specified.
106011         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106012         lib_SOURCES.
106014 2007-03-04  Jim Meyering  <jim@meyering.net>
106016         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106017         Use it consistently, rather than enumerating errno constants.
106019 2007-03-04  Bruno Haible  <bruno@clisp.org>
106021         * modules/xvasprintf-tests: New file.
106022         * tests/test-xvasprintf.c: New file.
106024         * modules/vasprintf-tests: New file.
106025         * tests/test-vasprintf.c: New file.
106027         * modules/vasnprintf-tests: New file.
106028         * tests/test-vasnprintf.c: New file.
106030         * modules/vsnprintf-tests: New file.
106031         * tests/test-vsnprintf.c: New file.
106033         * modules/snprintf-tests: New file.
106034         * tests/test-snprintf.c: New file.
106036 2007-03-04  Bruno Haible  <bruno@clisp.org>
106038         Compile relocatable.c only if --enable-relocatable is specified.
106039         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106040         gl_RELOCATABLE_LIBRARY.
106041         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106042         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106043         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106044         gl_RELOCATABLE_LIBRARY.
106045         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106046         (Makefile.am): Remove lib_SOURCES.
106047         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106048         gl_RELOCATABLE_LIBRARY.
106049         (Makefile.am): Remove lib_SOURCES.
106050         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106051         always.
106052         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106053         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106055 2007-03-04  Bruno Haible  <bruno@clisp.org>
106057         * modules/argmatch-tests: New file.
106058         * tests/test-argmatch.c: New file.
106060         * tests/test-allocsa.c (main): Halve the number of loop runs.
106062         * modules/alloca-opt-tests: New file.
106063         * tests/test-alloca-opt.c: New file.
106065 2007-03-04  Jim Meyering  <jim@meyering.net>
106067         Work around difference between Linux ACLs and Solaris 10 ZFS.
106068         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106069         for EINVAL.
106071 2007-03-03  Bruno Haible  <bruno@clisp.org>
106073         * modules/relocatable-prog (Depends-on): Add back progreloc's
106074         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106076 2007-03-03  Bruno Haible  <bruno@clisp.org>
106078         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106079         * modules/relocatable-lib: New file.
106081 2007-03-03  Bruno Haible  <bruno@clisp.org>
106083         * modules/relocatable-prog: Renamed from modules/relocatable.
106084         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106086 2007-03-03  Bruno Haible  <bruno@clisp.org>
106088         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106089         m4/relocatable-lib.m4.
106090         (Depends-on): Remove 'relocatable'.
106091         (configure.ac): Add gl_RELOCATABLE_NOP.
106093 2007-03-03  Bruno Haible  <bruno@clisp.org>
106095         * modules/relocatable-prog-wrapper: New file.
106096         * modules/relocatable (Depends-on): Add it. Remove all other
106097         dependencies except progname.
106098         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106100         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106101         (gl_FUNC_STRERROR): Nop.
106102         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106104         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106105         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106107         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106108         (gl_FUNC_READLINK): Update.
106110         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106112 2007-03-03  Bruno Haible  <bruno@clisp.org>
106114         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106115         * modules/xreadlink (Depends-on): Add unistd.
106116         * modules/xreadlink-with-size (Depends-on): Likewise.
106118 2007-03-03  Bruno Haible  <bruno@clisp.org>
106120         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106121         extracted from gt_FUNC_SETENV.
106122         (gt_FUNC_SETENV): Remove macro.
106123         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106124         remove gt_FUNC_SETENV.
106126 2007-03-03  Bruno Haible  <bruno@clisp.org>
106128         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106129         ENABLE_RELOCATABLE here.
106130         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106132 2007-03-03  Bruno Haible  <bruno@clisp.org>
106134         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106135         * tests/test-rbtreehash_list.c: Include progname.h.
106136         (main): Call set_program_name.
106138         * modules/rbtree-oset-tests (Depends-on): Add progname.
106139         * tests/test-rbtree_oset.c: Include progname.h.
106140         (main): Call set_program_name.
106142         * modules/rbtree-list-tests (Depends-on): Add progname.
106143         * tests/test-rbtree_list.c: Include progname.h.
106144         (main): Call set_program_name.
106146         * modules/linked-list-tests (Depends-on): Add progname.
106147         * tests/test-linked_list.c: Include progname.h.
106148         (main): Call set_program_name.
106150 2007-03-03  Bruno Haible  <bruno@clisp.org>
106152         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106153         All uses of __restrict changed to _Restrict_.
106154         * lib/glob_.h (__restrict): Remove macro.
106156 2007-03-02  Bruno Haible  <bruno@clisp.org>
106158         * modules/gettext (configure.ac): Require gettext infrastructure
106159         from version 0.16.1.
106161 2007-03-02  Bruno Haible  <bruno@clisp.org>
106163         * modules/linkedhash-list-tests (Depends-on): Add progname.
106164         * tests/test-linkedhash_list.c: Include progname.h.
106165         (main): Call set_program_name.
106167         * modules/carray-list-tests (Depends-on): Add progname.
106168         * tests/test-carray_list.c: Include progname.h.
106169         (main): Call set_program_name.
106171         * modules/avltreehash-list-tests (Depends-on): Add progname.
106172         * tests/test-avltreehash_list.c: Include progname.h.
106173         (main): Call set_program_name.
106175         * modules/avltree-oset-tests (Depends-on): Add progname.
106176         * tests/test-avltree_oset.c: Include progname.h.
106177         (main): Call set_program_name.
106179         * modules/avltree-list-tests (Depends-on): Add progname.
106180         * tests/test-avltree_list.c: Include progname.h.
106181         (main): Call set_program_name.
106183         * modules/array-oset-tests (Depends-on): Add progname.
106184         * tests/test-array_oset.c: Include progname.h.
106185         (main): Call set_program_name.
106187         * modules/array-list-tests (Depends-on): Add progname.
106188         * tests/test-array_list.c: Include progname.h.
106189         (main): Call set_program_name.
106191         * modules/argp-tests (Depends-on): Add progname.
106192         * tests/test-argp.c: Include argp.h first. Include progname.h.
106193         (main): Call set_program_name.
106195 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106197         * doc/gnulib-tool.texi (Initial import): Reword description of
106198         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106199         limited effect even if defined after the first system include.
106201 2007-03-01  Bruno Haible  <bruno@clisp.org>
106203         * build-aux/config.libpath: Update to libtool-1.5.22.
106204         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106206 2007-03-01  Bruno Haible  <bruno@clisp.org>
106208         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
106209         foo_CFLAGS.
106210         Reported by Ralf Wildenhues.
106212 2007-03-01  Bruno Haible  <bruno@clisp.org>
106214         * build-aux/install-reloc: Remove object files left over by some
106215         compilers.
106216         Reported by Ralf Wildenhues.
106218 2007-03-01  Bruno Haible  <bruno@clisp.org>
106220         * build-aux/install-reloc: Break long lines.
106222 2007-03-01  Bruno Haible  <bruno@clisp.org>
106224         * doc/relocatable.texi: Document that it may not work on OpenBSD.
106225         Reported by Ralf Wildenhues.
106227 2007-03-01  Bruno Haible  <bruno@clisp.org>
106229         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
106230         include ordering constraints.
106232 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106234         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
106235         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
106236         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
106237         as another example.
106238         * lib/time_.h: Fix misspelling.
106239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106240         Require gl_HEADER_TIME_H_DEFAULTS.
106241         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
106242         * m4/time_r.m4 (gl_TIME_R): Likewise.
106243         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
106245 2007-03-01  Bruno Haible  <bruno@clisp.org>
106247         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
106248         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106250 2007-03-01  Jim Meyering  <jim@meyering.net>
106252         * modules/xreadlink (Maintainer): Add my name.
106253         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106255 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106256             Bruno Haible  <bruno@clisp.org>
106258         * build-aux/install-reloc: Compile also c-ctype.c.
106259         * build-aux/relocatable.sh.in: New file.
106260         * doc/relocatable.texi: New file.
106261         * doc/relocatable-maint.texi: New file.
106262         * doc/gnulib.texi: Include relocatable-maint.texi.
106263         * lib/progreloc.c: Include unistd.h unconditionally.
106264         * lib/relocwrapper.c: Include unistd.h unconditionally.
106265         Include c-ctype.h.
106266         (add_dotbin): Use c_tolower.
106267         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106268         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106269         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106270         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106271         to m4/relocatable-lib.m4.
106272         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106273         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106274         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106275         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106276         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106277         * modules/relocatable: New file.
106278         * modules/relocatable-lib: New file.
106279         * modules/relocatable-script: New file.
106281 2007-02-28  Bruno Haible  <bruno@clisp.org>
106283         Import --enable-relocatable infrastructure.
106284         * build-aux/config.libpath: New file, from GNU gettext.
106285         * build-aux/install-reloc: New file, from GNU gettext.
106286         * build-aux/reloc-ldflags: New file, from GNU gettext.
106287         * lib/relocatable.h: New file, from GNU gettext.
106288         * lib/relocatable.c: New file, from GNU gettext.
106289         * lib/relocwrapper.c: New file, from GNU gettext.
106290         * m4/relocatable.m4: New file, from GNU gettext.
106292 2007-02-28  Bruno Haible  <bruno@clisp.org>
106294         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106296         * modules/xreadlink: New file, from GNU gettext with modifications.
106297         * lib/xreadlink.c: New file, from GNU gettext.
106298         * lib/xreadlink.h: Add comments.
106299         (xreadlink): New declaration.
106301         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106302         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106303         lib/xreadlink-with-size.c.
106304         (configure.ac): Remove gl_XREADLINK invocation.
106305         (Makefile.am): Augment lib_SOURCES.
106306         * m4/xreadlink.m4: Remove file.
106307         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106308         (xreadlink_with_size): Renamed from xreadink.
106309         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106310         * modules/canonicalize (Depends-on): Replace xreadlink with
106311         xreadlink-with-size.
106312         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106314 2007-02-25  Jim Meyering  <jim@meyering.net>
106316         * build-aux/announce-gen: When complaining about excess arguments,
106317         list them.
106319 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106321         * README: Document signed integer overflow situation more
106322         accurately.
106324 2007-02-25  Bruno Haible  <bruno@clisp.org>
106326         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106327         'a' or 'A' conversion.
106329 2007-02-25  Bruno Haible  <bruno@clisp.org>
106331         * modules/filename: Renamed from modules/pathname.
106332         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106333         lib/concatpath.c with lib/concat-filename.c.
106334         (Makefile.am): Update.
106335         (Include): Replace pathname.h with filename.h.
106336         * lib/filename.h: Renamed from lib/pathname.h.
106337         (concatenated_filename): Renamed from concatenated_pathname.
106338         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106339         (concatenated_filename): Renamed from concatenated_pathname.
106340         * lib/findprog.c: Include filename.h instead of pathname.h.
106341         (find_in_path): Update.
106342         * lib/javacomp.c: Include filename.h instead of pathname.h.
106343         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106344         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106345         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106346         is_oldgcj_14_13_usable, is_javac_usable): Update.
106347         * lib/javaexec.c: Include filename.h instead of pathname.h.
106348         (execute_java_class): Update.
106349         * modules/findprog: Update.
106350         * modules/javacomp: Update.
106351         * modules/javaexec: Update.
106352         * MODULES.html.sh (File system functions): Add 'filename', remove
106353         'pathname'.
106355 2007-02-25  Bruno Haible  <bruno@clisp.org>
106357         * modules/printf-frexpl-tests: New file.
106358         * tests/test-printf-frexpl.c: New file.
106360         * modules/printf-frexpl: New file.
106361         * lib/printf-frexpl.h: New file.
106362         * lib/printf-frexpl.c: New file.
106363         * m4/printf-frexpl.m4: New file.
106365 2007-02-25  Bruno Haible  <bruno@clisp.org>
106367         * modules/printf-frexp-tests: New file.
106368         * tests/test-printf-frexp.c: New file.
106370         * modules/printf-frexp: New file.
106371         * lib/printf-frexp.h: New file.
106372         * lib/printf-frexp.c: New file.
106373         * m4/printf-frexp.m4: New file.
106375 2007-02-25  Bruno Haible  <bruno@clisp.org>
106377         Assume automake >= 1.10 for the tests.
106378         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106379         * modules/arctwo-tests: Likewise.
106380         * modules/argp-tests: Likewise.
106381         * modules/avltree-list-tests: Likewise.
106382         * modules/avltree-oset-tests: Likewise.
106383         * modules/avltreehash-list-tests: Likewise.
106384         * modules/carray-list-tests: Likewise.
106385         * modules/crc-tests: Likewise.
106386         * modules/des-tests: Likewise.
106387         * modules/gc-arcfour-tests: Likewise.
106388         * modules/gc-arctwo-tests: Likewise.
106389         * modules/gc-des-tests: Likewise.
106390         * modules/gc-hmac-md5-tests: Likewise.
106391         * modules/gc-hmac-sha1-tests: Likewise.
106392         * modules/gc-md2-tests: Likewise.
106393         * modules/gc-md4-tests: Likewise.
106394         * modules/gc-md5-tests: Likewise.
106395         * modules/gc-pbkdf2-sha1-tests: Likewise.
106396         * modules/gc-rijndael-tests: Likewise.
106397         * modules/gc-sha1-tests: Likewise.
106398         * modules/gc-tests: Likewise.
106399         * modules/getaddrinfo-tests: Likewise.
106400         * modules/hmac-md5-tests: Likewise.
106401         * modules/hmac-sha1-tests: Likewise.
106402         * modules/linked-list-tests: Likewise.
106403         * modules/linkedhash-list-tests: Likewise.
106404         * modules/lock-tests: Likewise.
106405         * modules/md2-tests: Likewise.
106406         * modules/md4-tests: Likewise.
106407         * modules/md5-tests: Likewise.
106408         * modules/rbtree-list-tests: Likewise.
106409         * modules/rbtree-oset-tests: Likewise.
106410         * modules/rbtreehash-list-tests: Likewise.
106411         * modules/read-file-tests: Likewise.
106412         * modules/rijndael-tests: Likewise.
106413         * modules/stdint-tests: Likewise.
106414         * modules/tls-tests: Likewise.
106416 2007-02-24  Bruno Haible  <bruno@clisp.org>
106418         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
106419         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
106420         function; instead check whether isnan with a double argument links.
106421         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
106422         function; instead check whether isnan with a 'long double' argument
106423         links.
106424         Reported by Eric Blake <ebb9@byu.net>.
106426 2007-02-24  Bruno Haible  <bruno@clisp.org>
106428         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
106429         defined.
106430         * lib/isnanl.c: Remove all code. Just include isnan.c.
106431         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
106433 2007-02-25  Jim Meyering  <jim@meyering.net>
106435         Avoid conflicting types for 'unsetenv' on FreeBSD.
106436         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
106437         conflicting with FreeBSD's (5.0 and 6.1) function declaration
106438         in stdlib.h.
106440 2007-02-24  Bruno Haible  <bruno@clisp.org>
106442         * modules/isnanl-nolibm-tests: New file.
106443         * tests/test-isnanl.c: New file.
106445         * modules/isnanl-nolibm: New file.
106446         * lib/isnanl.h: New file.
106447         * lib/isnanl.c: New file.
106448         * m4/isnanl.m4: New file.
106450 2007-02-24  Bruno Haible  <bruno@clisp.org>
106452         * modules/isnan-nolibm-tests: New file.
106453         * tests/test-isnan.c: New file.
106455         * modules/isnan-nolibm: New file.
106456         * lib/isnan.h: New file.
106457         * lib/isnan.c: New file.
106458         * m4/isnan.m4: New file.
106460 2007-02-24  Bruno Haible  <bruno@clisp.org>
106462         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
106463         assume that an exponent fits in 20 bits.
106465 2007-02-24  Jim Meyering  <jim@meyering.net>
106467         * m4/regex.m4: Update the description of the configure-time option,
106468         --without-included-regex, to state accurately what the defaults are,
106469         and perhaps to give people an idea why using this option is risky.
106471 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
106474         loops on small arguments.  This attempts to avoid the problem
106475         Bruno Haible reported for AIX 4.3.2 in
106476         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
106478 2007-02-23  Bruno Haible  <bruno@clisp.org>
106480         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
106481         Needed for help2man.
106483 2007-02-23  Karl Berry  <karl@gnu.org>
106485         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
106486         exists, foo.h should be cvs-ignored, not committed.
106488 2007-02-23  Eric Blake  <ebb9@byu.net>
106490         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
106491         * lib/stat-time.h (includes): Likewise.
106492         * lib/utimecmp.c (includes): Likewise.
106493         * lib/utimens.h (includes): Likewise.
106494         * lib/getdate.y (includes): Also include "timespec.h" for use
106495         internal to the module.
106496         * modules/utimens (Depends-on): Revert yesterday's patch.
106497         * modules/nanosleep (Depends-on): Add missing dependency.
106499 2007-02-22  Bruno Haible  <bruno@clisp.org>
106501         * lib/glob.c: Don't include getlogin_r.h.
106503 2007-02-22  Jim Meyering  <jim@meyering.net>
106505         * modules/utimens (Depends-on): Add timespec, required for
106506         utimens.h's inclusion of timespec.h.
106508 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
106510         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
106511         long unreadable paths in GNU/Linux.  Problem reported by Andreas
106512         Schwab in
106513         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
106514         I'll try to think of a better way to fix the Solaris problem.
106516         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
106517         like glibc; on Solaris 10, it fails with errno == EINVAL.
106518         POSIX says the behavior is unspecified if the first argument is NULL,
106519         so play it safe and never pass NULL to the system getcwd.
106521 2007-02-21  Jim Meyering  <jim@meyering.net>
106523         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
106524         of gettimeofday.  It would conflict with the one now always
106525         provided via sys_time_.h.  Reported by Matthew Woehlke, as
106526         an IRIX 6.5 build failure.
106528 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106530         Minor fixups to port to Solaris 10 with Sun C 5.8.
106531         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
106532         * modules/getcwd (Depends-on): Add dirfd.
106533         * lib/putenv.c (putenv): #undef it.
106534         (rpl_putenv): New decl.
106535         (malloc, free): Include <stdlib.h> rather than prototyping separately.
106537 2007-02-20  Bruno Haible  <bruno@clisp.org>
106539         * modules/stdio-tests: New file.
106540         * tests/test-stdio.c: New file.
106542         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
106543         (Depends-on): Add stdio.
106544         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106545         (Include): Use <stdio.h> instead of vsnprintf.h.
106546         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106547         HAVE_DECL_VSNPRINTF.
106548         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
106550         * modules/snprintf (Files): Remove lib/snprintf.h.
106551         (Depends-on): Add stdio.
106552         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106553         (Include): Use <stdio.h> instead of snprintf.h.
106554         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106555         HAVE_DECL_SNPRINTF.
106556         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
106557         * lib/getaddrinfo.c: Likewise.
106559         * modules/stdio: New file.
106560         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
106561         * lib/snprintf.h: Remove file.
106562         * lib/vsnprintf.h: Remove file.
106563         * lib/.cppi-disable: Remove snprintf.h.
106564         * m4/stdio_h.m4: New file.
106565         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
106567 2007-02-20  Jim Meyering  <jim@meyering.net>
106569         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
106570         used by e.g., mingw.  From Bruno Haible.
106572 2007-02-19  Bruno Haible  <bruno@clisp.org>
106574         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
106575         warnings.
106576         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106578 2007-02-19  Bruno Haible  <bruno@clisp.org>
106580         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
106581         from mingw users.
106583 2007-02-19  Bruno Haible  <bruno@clisp.org>
106585         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
106586         warnings.
106587         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
106589 2007-02-19  Jim Meyering  <jim@meyering.net>
106591         Don't use FD after a successful "fdopendir (fd)".
106592         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
106593         Reset it by calling dirfd on the just-obtained DIR*.
106595         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
106596         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
106598 2007-02-18  Bruno Haible  <bruno@clisp.org>
106600         * lib/readlink.c: Include <unistd.h>.
106601         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
106602         HAVE_READLINK.
106603         * modules/readlink (Depends-on): Add unistd.
106604         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106605         (Include): Add <unistd.h>.
106607         * lib/getlogin_r.h: Remove file.
106608         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
106609         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
106610         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
106611         HAVE_DECL_GETLOGIN_R.
106612         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
106613         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106614         (Include): Use <unistd.h> instead of getlogin_r.h.
106616         * lib/getcwd.h: Remove file.
106617         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
106618         * lib/xgetcwd.c: Likewise.
106619         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
106620         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
106621         * modules/getcwd (Files): Remove lib/getcwd.h.
106622         (Depends-on): Add unistd.
106623         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106624         (Include): Use <unistd.h> instad of getcwd.h.
106626         * lib/ftruncate.c: Include <unistd.h> first.
106627         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
106628         Set HAVE_FTRUNCATE.
106629         * modules/ftruncate (Depends-on): Add unistd.
106630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106632         * lib/fchdir.c: Include <unistd.h> first.
106633         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
106634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
106635         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
106636         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106637         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
106639         * lib/dup2.c: Include <unistd.h> first.
106640         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
106641         HAVE_DUP2.
106642         * modules/dup2 (Depends-on): Add unistd.
106643         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106645         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
106646         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
106647         REPLACE_CHOWN. Don't define chown as a macro here.
106648         * modules/chown (Depends-on): Add unistd.
106649         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106651         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
106652         Add definition for GL_LINK_WARNING.
106653         (chown, dup2): New declarations.
106654         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
106655         link warning.
106656         (ftruncate): New declaration.
106657         (getcwd): New declaration, taken from old getcwd.h.
106658         (getlogin_r): New declaration, taken from old getlogin_r.h.
106659         (readlink): New declaration.
106660         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
106661         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
106662         (gl_PREREQ_UNISTD): Remove macro.
106663         (gl_UNISTD_MODULE_INDICATOR): New macro.
106664         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
106665         many new variables. Don't set UNISTD_H.
106666         * modules/unistd (Description): Change.
106667         (Depends-on): Add link-warning.
106668         (configure.ac): Update.
106669         (Makefile.am): Create unistd.h always. Substitute many new variables
106670         into it.
106672 2007-02-18  Bruno Haible  <bruno@clisp.org>
106674         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
106675         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
106676         HAVE_GETSUBOPT.
106677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
106678         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
106679         * lib/getsubopt.h: Remove file.
106680         * modules/getsubopt (Files): Remove lib/getsubopt.h.
106681         (Depends-on): Add stdlib.
106682         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106683         (Includes): Use <stdlib.h> instead of getsubopt.h.
106684         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
106685         Set HAVE_GETSUBOPT.
106686         * lib/getsubopt.c: Don't include getsubopt.h.
106688 2007-02-18  Bruno Haible  <bruno@clisp.org>
106690         * modules/fchdir (Depends-on): Add dup2.
106692 2007-02-18  Bruno Haible  <bruno@clisp.org>
106694         * lib/stdlib_.h: Handle glibc's special invocation convention
106695         specially.
106697 2007-02-18  Bruno Haible  <bruno@clisp.org>
106699         * modules/stdlib-tests: New file.
106700         * tests/test-stdlib.c: New file.
106702         * modules/mkstemp (Files): Remove lib/mkstemp.h.
106703         (Depends-on): Add stdlib.
106704         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106705         (Includes): Use <stdlib.h> instead of mkstemp.h.
106706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106707         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
106708         * lib/mkstemp.c: Don't include mkstemp.h.
106709         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
106710         * lib/stdlib--.h: Don't include mkstemp.h.
106712         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
106713         (Depends-on): Add stdlib.
106714         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106715         (Includes): Use <stdlib.h> instead of mkdtemp.h.
106716         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106717         HAVE_MKDTEMP.
106718         * lib/mkdtemp.c: Don't include mkdtemp.h.
106719         * lib/clean-temp.c: Don't include mkdtemp.h.
106721         * modules/exit (Files): Remove lib/exit.h.
106722         (Depends-on): Add stdlib.
106723         (Makefile.am): Remove lib_SOURCES.
106724         (Include): Use <stdlib.h> instead of exit.h.
106725         * lib/argmatch.c: Don't include exit.h.
106726         * lib/execute.c: Likewise.
106727         * lib/pagealign_alloc.c: Likewise.
106728         * lib/pipe.c: Likewise.
106729         * lib/wait-process.c: Likewise.
106730         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
106731         * lib/exitfail.c: Likewise.
106732         * lib/savewd.c: Likewise.
106733         * lib/xsetenv.c: Likewise.
106735         * modules/stdlib: New file.
106736         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
106737         and extra comments about mkstemp().
106738         * lib/exit.h: Remove file.
106739         * lib/mkdtemp.h: Remove file.
106740         * lib/mkstemp.h: Remove file.
106741         * m4/stdlib_h.m4: New file.
106742         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
106744 2007-02-18  Bruno Haible  <bruno@clisp.org>
106746         * modules/math-tests: New file.
106747         * tests/test-math.c: New file.
106749         * modules/math: New file.
106750         * modules/mathl (Files): Remove lib/mathl.h.
106751         (Depends-on): Add math.
106752         (Makefile.am): Don't mention mathl.h.
106753         (Include): Use <math.h> instead of mathl.h.
106754         * lib/math_.h: New file.
106755         * lib/mathl.h: Remove file.
106756         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
106757         mathl.h.
106758         * lib/asinl.c: Likewise.
106759         * lib/atanl.c: Likewise.
106760         * lib/ceill.c: Likewise.
106761         * lib/cosl.c: Likewise.
106762         * lib/expl.c: Likewise.
106763         * lib/floorl.c: Likewise.
106764         * lib/frexpl.c: Likewise.
106765         * lib/ldexpl.c: Likewise.
106766         * lib/logl.c: Likewise.
106767         * lib/sincosl.c: Likewise.
106768         * lib/sinl.c: Likewise.
106769         * lib/sqrtl.c: Likewise.
106770         * lib/tanl.c: Likewise.
106771         * lib/trigl.c: Likewise.
106772         * m4/math_h.m4: New file.
106773         * MODULES.html.sh (Mathematics): Add math.
106775 2007-02-17  Bruno Haible  <bruno@clisp.org>
106777         * modules/wctype-tests: New file.
106778         * tests/test-wctype.c: New file.
106780         * modules/wchar-tests: New file.
106781         * tests/test-wchar.c: New file.
106783         * modules/unistd-tests: New file.
106784         * tests/test-unistd.c: New file.
106786         * modules/time-tests: New file.
106787         * tests/test-time.c: New file.
106789         * modules/sysexits-tests: New file.
106790         * tests/test-sysexits.c: New file.
106792         * modules/sys_time-tests: New file.
106793         * tests/test-sys_time.c: New file.
106795         * modules/sys_stat-tests: New file.
106796         * tests/test-sys_stat.c: New file.
106798         * modules/sys_socket-tests: New file.
106799         * tests/test-sys_socket.c: New file.
106801         * modules/sys_select-tests: New file.
106802         * tests/test-sys_select.c: New file.
106804         * modules/string-tests: New file.
106805         * tests/test-string.c: New file.
106807         * modules/stdbool-tests: New file.
106808         * tests/test-stdbool.c: New file.
106810         * modules/netinet_in-tests: New file.
106811         * tests/test-netinet_in.c: New file.
106813         * modules/inttypes-tests: New file.
106814         * tests/test-inttypes.c: New file.
106816         * modules/fcntl-tests: New file.
106817         * tests/test-fcntl.c: New file.
106819         * modules/byteswap-tests: New file.
106820         * tests/test-byteswap.c: New file.
106822         * modules/arpa_inet-tests: New file.
106823         * tests/test-arpa_inet.c: New file.
106825 2007-02-17  Bruno Haible  <bruno@clisp.org>
106827         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
106828         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
106829         if the corresponding module is not enabled. Emit link warnings if
106830         the function is used nevertheless.
106831         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
106832         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
106833         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
106834         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
106835         * modules/inttypes (Depends-on): Add link-warning.
106836         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106837         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
106838         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
106839         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
106840         * modules/imaxdiv (configure.ac): Likewise.
106841         * modules/strtoimax (configure.ac): Likewise.
106842         * modules/strtoumax (configure.ac): Likewise.
106844 2007-02-17  Bruno Haible  <bruno@clisp.org>
106846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
106847         gl_STRING_MODULE_INDICATOR_DEFAULTS.
106848         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
106849         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
106851 2007-02-17  Bruno Haible  <bruno@clisp.org>
106853         * modules/link-warning: New file.
106854         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
106855         * lib/string_.h (GL_LINK_WARNING): Remove definition.
106856         * modules/string (Depends-on): Add link-warning.
106857         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106858         string.h.
106859         * MODULES.html.sh (Support for building libraries and executables): Add
106860         link-warning.
106862 2007-02-17  Bruno Haible  <bruno@clisp.org>
106864         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
106865         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
106866         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
106867         long lines.
106869 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
106870             Bruno Haible  <bruno@clisp.org>
106872         * modules/tmpfile: New file.
106873         * lib/tmpfile.c: New file.
106874         * m4/tmpfile.m4: New file.
106875         * MODULES.html.sh (func_all_modules): New section "Input/output".
106877 2007-02-15  Bruno Haible  <bruno@clisp.org>
106879         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
106880         (supports_delete_on_close): New function.
106881         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
106883 2007-02-14  Bruno Haible  <bruno@clisp.org>
106885         * modules/mbspcasecmp-tests: New file.
106886         * tests/test-mbspcasecmp.sh: New file.
106887         * tests/test-mbspcasecmp.c: New file.
106889         New module mbspcasecmp.
106890         * modules/mbspcasecmp: New file.
106891         * lib/mbspcasecmp.c: New file.
106892         * lib/string_.h (strncasecmp): Change warning message.
106893         (mbspcasecmp): New declaration.
106894         * m4/mbspcasecmp.m4: New file.
106895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106896         GNULIB_MBSPCASECMP.
106897         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
106898         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
106900 2007-02-14  Bruno Haible  <bruno@clisp.org>
106902         * modules/mbsncasecmp-tests: New file.
106903         * tests/test-mbsncasecmp.sh: New file.
106904         * tests/test-mbsncasecmp.c: New file.
106906         New module mbsncasecmp.
106907         * modules/mbsncasecmp: New file.
106908         * lib/mbsncasecmp.c: New file.
106909         * lib/string_.h (mbsncasecmp): New declaration.
106910         * m4/mbsncasecmp.m4: New file.
106911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
106912         GNULIB_MBSNCASECMP.
106913         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
106914         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
106916 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
106918         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
106919         Verify that it doesn't overlap with our flags.
106920         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
106921         do not have the desired effect in multibyte locales; instead, use
106922         mbscasecmp.
106923         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
106924         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
106925         we don't require GNU fnmatch ourselves (if our users require it, they
106926         should do so explicitly).
106928         Fix regex code so it doesn't rely on strcasecmp.
106929         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
106930         Otherwise, include gnulib's langinfo.h.
106931         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
106932         undesirable behavior in non-C locales.  Instead, rely on localecharset.
106933         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
106934         * modules/regex (FILES): Remove m4/codeset.m4.
106935         (Depends-on): Add localcharset.  Remove strcase.
106937 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106939         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
106940         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
106942 2007-02-13  Bruno Haible  <bruno@clisp.org>
106944         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
106945         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106947 2007-02-12  Bruno Haible  <bruno@clisp.org>
106949         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
106950         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
106951         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
106952         time warning rather than a link error.
106954 2007-02-12  Bruno Haible  <bruno@clisp.org>
106956         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
106957         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
106958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106960 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
106962         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
106963         args, not 2.
106965 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
106967         New module 'time', so that apps can include <time.h> as per
106968         POSIX and GNU instead of separate include files like time_r.h
106969         and timegm.h.  This implementation tries out a simpler approach
106970         for replacing decls in standard include files (as compared to
106971         the string module), somewhat as an experiment.
106973         * config/srclist.txt: Comment out mktime.c for now.
106974         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
106975         since it doesn't apply any more.  Use generic wording instead.
106976         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
106977         'time'.
106978         * lib/time_.h, m4/time_h.m4, modules/time: New files.
106979         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
106980         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
106981         Don't include <sys/types.h>; no longer needed since we assume C89.
106982         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
106983         * lib/strftime.c: Likewise.
106984         * lib/time_r.c: Likewise.
106985         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
106986         * lib/nanosleep.c: Include <time.h> first, to check interface.
106987         * lib/strptime.c: Likewise.
106988         * lib/time_r.c: Likewise.
106989         * lib/timegm.c: Likewise.
106990         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
106991         needed.
106992         * lib/timegm.c: Don't include timegm.h; no longer needed.
106993         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
106994         time.h now handles any problems in that area.
106995         (struct timespec, nanosleep): Remove; time.h now arranges for these.
106996         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
106997         that time.h defines struct timespec.
106998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
106999         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107000         handles that.
107001         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107002         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107003         needed.  Set REPLACE_LOCALTIME.
107004         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107005         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107006         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107007         nanosleep; time_h.m4 now does that.  Don't require
107008         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107009         module handles this now.
107010         * modules/getdate (Depends-on): Remove timespec.  Add time.
107011         * modules/nanosleep (Depends-on): Likewise.
107012         * modules/stat-time (Depends-on): Likewise.
107013         * modules/nanosleep (Include): Include time.h, not timespec.h.
107014         * modules/strptime (Files): Remove lib/strptime.h.
107015         (Depends-on): Add extensions, time.
107016         (Include): Include time.h, not strptime.h.
107017         * modules/time_r (Files): Remove lib/time_r.h.
107018         (Depends-on): Add time.
107019         (Include): Include time.h, not time_r.h.
107020         * modules/timegm: Likewise.
107021         * modules/timespec (Description): Now does timespec-related decls
107022         of our own, instead of struct timespec itself.
107023         (Depends-on): Add time; remove extensions.
107024         (Maintainer): Add self.
107025         * modules/utimecmp (Depends-on): Add time; remove timespec.
107026         * modules/utimens (Depends-on): Likewise.
107027         * modules/xnanosleep (Depends-on): Likewise.
107029 2007-02-11  Bruno Haible  <bruno@clisp.org>
107031         * lib/c-strstr.c: Include allocsa.h.
107032         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107033         * lib/c-strcasestr.c: Include allocsa.h.
107034         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107035         * lib/strcasestr.c: Include allocsa.h.
107036         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107037         * lib/mbsstr.c: Include allocsa.h.
107038         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107039         allocsa/freesa instead of malloc/free.
107040         * lib/mbscasestr.c: Include allocsa.h.
107041         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107042         allocsa/freesa instead of malloc/free.
107043         * modules/c-strstr (Depends-on): Add allocsa.
107044         * modules/c-strcasestr (Depends-on): Likewise.
107045         * modules/strcasestr (Depends-on): Likewise.
107046         * modules/mbsstr (Depends-on): Likewise.
107047         * modules/mbscasestr (Depends-on): Likewise.
107049 2007-02-11  Bruno Haible  <bruno@clisp.org>
107051         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107053         * modules/mbsspn-tests: New file.
107054         * tests/test-mbsspn.sh: New file.
107055         * tests/test-mbsspn.c: New file.
107057 2007-02-11  Bruno Haible  <bruno@clisp.org>
107059         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107061         * modules/mbspbrk-tests: New file.
107062         * tests/test-mbspbrk.sh: New file.
107063         * tests/test-mbspbrk.c: New file.
107065 2007-02-11  Bruno Haible  <bruno@clisp.org>
107067         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107068         unneeded cast.
107070         * modules/mbscspn-tests: New file.
107071         * tests/test-mbscspn.sh: New file.
107072         * tests/test-mbscspn.c: New file.
107074 2007-02-11  Bruno Haible  <bruno@clisp.org>
107076         * modules/mbscasecmp-tests: New file.
107077         * tests/test-mbscasecmp.sh: New file.
107078         * tests/test-mbscasecmp.c: New file.
107080 2007-02-11  Bruno Haible  <bruno@clisp.org>
107082         Ensure O(n) worst-case complexity of mbscasestr.
107083         * lib/mbscasestr.c: Include stdbool.h.
107084         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107085         functions.
107086         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107087         the bookkeeping indicates that it's worth it.
107088         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107090         * modules/mbscasestr-tests: New file.
107091         * tests/test-mbscasestr1.c: New file.
107092         * tests/test-mbscasestr2.sh: New file.
107093         * tests/test-mbscasestr2.c: New file.
107094         * tests/test-mbscasestr3.sh: New file.
107095         * tests/test-mbscasestr3.c: New file.
107096         * tests/test-mbscasestr4.sh: New file.
107097         * tests/test-mbscasestr4.c: New file.
107098         * m4/locale-tr.m4: New file.
107100 2007-02-11  Bruno Haible  <bruno@clisp.org>
107102         Ensure O(n) worst-case complexity of mbsstr.
107103         * lib/mbsstr.c: Include stdbool.h.
107104         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107105         functions.
107106         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107107         bookkeeping indicates that it's worth it.
107108         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107110         * modules/mbsstr-tests: New file.
107111         * tests/test-mbsstr1.c: New file.
107112         * tests/test-mbsstr2.sh: New file.
107113         * tests/test-mbsstr2.c: New file.
107114         * tests/test-mbsstr3.sh: New file.
107115         * tests/test-mbsstr3.c: New file.
107116         * m4/locale-fr.m4: New file.
107118 2007-02-11  Bruno Haible  <bruno@clisp.org>
107120         * lib/mbsrchr.c (mbsrchr): Fix bug.
107122         * modules/mbsrchr-tests: New file.
107123         * tests/test-mbsrchr.sh: New file.
107124         * tests/test-mbsrchr.c: New file.
107126 2007-02-11  Bruno Haible  <bruno@clisp.org>
107128         * lib/mbschr.c (mbschr): Fix bug.
107130         * modules/mbschr-tests: New file.
107131         * tests/test-mbschr.sh: New file.
107132         * tests/test-mbschr.c: New file.
107133         * m4/locale-zh.m4: New file.
107135 2007-02-11  Bruno Haible  <bruno@clisp.org>
107137         Support for copying multibyte string iterators.
107138         * lib/mbiter.h: Include <string.h>.
107139         (mbiter_multi_copy): New function.
107140         (mbi_copy): New macro.
107141         * lib/mbuiter.h: Include <string.h>.
107142         (mbuiter_multi_copy): New function.
107143         (mbui_copy): New macro.
107145 2007-02-11  Bruno Haible  <bruno@clisp.org>
107147         New module mbslen.
107148         * modules/mbslen: New file.
107149         * lib/mbslen.c: New file.
107150         * lib/string_.h (mbslen): New declaration.
107151         * m4/mbslen.m4: New file.
107152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107153         GNULIB_MBSLEN.
107154         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107155         * MODULES.html.sh (Internationalization functions): Add mbslen.
107157 2007-02-11  Bruno Haible  <bruno@clisp.org>
107159         Ensure O(n) worst-case complexity of strcasestr substitute.
107160         * lib/strcasestr.c: Include stdbool.h.
107161         (knuth_morris_pratt): New function.
107162         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107163         bookkeeping indicates that it's worth it.
107164         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107166         * modules/strcasestr-tests: New file.
107167         * tests/test-strcasestr.c: New file.
107169 2007-02-11  Bruno Haible  <bruno@clisp.org>
107171         Ensure O(n) worst-case complexity of c_strcasestr.
107172         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107173         (knuth_morris_pratt): New function.
107174         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107175         the bookkeeping indicates that it's worth it.
107176         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107178         * modules/c-strcasestr-tests: New file.
107179         * tests/test-c-strcasestr.c: New file.
107181 2007-02-11  Bruno Haible  <bruno@clisp.org>
107183         Ensure O(n) worst-case complexity of c_strstr.
107184         * lib/c-strstr.c: Include stdbool.h, string.h.
107185         (knuth_morris_pratt): New function.
107186         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107187         bookkeeping indicates that it's worth it.
107188         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107190         * lib/c-strstr.c: Complete rewrite for maintainability.
107192         * modules/c-strstr-tests: New file.
107193         * tests/test-c-strstr.c: New file.
107195 2007-02-11  Bruno Haible  <bruno@clisp.org>
107197         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107198         5.2.1 and earlier, whereby \055 was treated just like the range
107199         delimiter '-'.
107200         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107202 2007-02-08  Bruno Haible  <bruno@clisp.org>
107204         * modules/regex (Depends-on): Add stdbool.
107205         Reported by Dalibor Topic <robilad@kaffe.org>.
107207 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107209         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
107210         Prefer returning from main to exiting from it.
107211         Remove unnecessary parens after sizeof.
107213 2007-02-05  Bruno Haible  <bruno@clisp.org>
107215         New module mbssep.
107216         * modules/mbssep: New file.
107217         * lib/mbssep.c: New file.
107218         * lib/string_.h (strsep): Add a conditional link warning.
107219         (mbssep): New declaration.
107220         * m4/mbssep.m4: New file.
107221         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107222         GNULIB_MBSSEP.
107223         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
107224         * MODULES.html.sh (Internationalization functions): Add mbssep.
107226 2007-02-05  Bruno Haible  <bruno@clisp.org>
107228         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
107229         Optimize search in case of 1 delimiter.
107231 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107233         * lib/acl.h: Include sys/types.h before sys/acl.h.
107235 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107237         Merge upstream fix for glibc bugzilla #3957:
107239         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
107241         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
107242         bit for RE_HAT_LISTS_NOT_NEWLINE.
107243         (build_charclass_op): Remove bogus comment.
107245 2007-02-05  Simon Josefsson  <simon@josefsson.org>
107247         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107249 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107251         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107252         * lib/memmem.c [!defined _LIBC]: Include config.h.
107254 2007-02-04  Bruno Haible  <bruno@clisp.org>
107256         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107257         warning message.
107259 2007-02-04  Bruno Haible  <bruno@clisp.org>
107261         New module mbstok_r.
107262         * modules/mbstok_r: New file.
107263         * lib/mbstok_r.c: New file.
107264         * lib/string_.h (strtok_r): Change argument names to match the
107265         comments. Add a conditional link warning.
107266         (mbstok_r): New declaration.
107267         * m4/mbstok_r.m4: New file.
107268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107269         GNULIB_MBSTOK_R.
107270         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107271         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107273 2007-02-04  Bruno Haible  <bruno@clisp.org>
107275         New module mbsspn.
107276         * modules/mbsspn: New file.
107277         * lib/mbsspn.c: New file.
107278         * lib/string_.h (strspn): Add a conditional link warning.
107279         (mbsspn): New declaration.
107280         * m4/mbsspn.m4: New file.
107281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107282         GNULIB_MBSSPN.
107283         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107284         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107286 2007-02-04  Bruno Haible  <bruno@clisp.org>
107288         New module mbspbrk.
107289         * modules/mbspbrk: New file.
107290         * lib/mbspbrk.c: New file.
107291         * lib/string_.h (strpbrk): Add a conditional link warning.
107292         (mbspbrk): New declaration.
107293         * m4/mbspbrk.m4: New file.
107294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107295         GNULIB_MBSPBRK.
107296         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107297         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107299 2007-02-04  Bruno Haible  <bruno@clisp.org>
107301         New module mbscspn.
107302         * modules/mbscspn: New file.
107303         * lib/mbscspn.c: New file.
107304         * lib/string_.h (strcspn): Add a conditional link warning.
107305         (mbscspn): New declaration.
107306         * m4/mbscspn.m4: New file.
107307         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107308         GNULIB_MBSCSPN.
107309         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107310         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107312 2007-02-04  Bruno Haible  <bruno@clisp.org>
107314         New module mbscasestr, reduced goal of strcasestr.
107315         * modules/mbscasestr: New file.
107316         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107317         (mbscasestr): Renamed from strcasestr.
107318         * lib/strcasestr.c: Don't include mbuiter.h.
107319         (strcasestr): Remove support for multibyte locales.
107320         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107321         Change the conditional link warning.
107322         (mbscasestr): New declaration.
107323         * m4/mbscasestr.m4: New file.
107324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107325         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107326         REPLACE_STRCASESTR.
107327         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107329         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107330         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107331         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107332         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107333         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107334         (Depends-on): Remove mbuiter.
107335         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107337 2007-02-04  Bruno Haible  <bruno@clisp.org>
107339         Simplify handling of strncasecmp.
107340         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107341         the conditional link warning.
107342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107343         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107344         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107345         * modules/strcase (configure.ac): Don't invoke
107346         gl_STRING_MODULE_INDICATOR.
107347         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107349 2007-02-04  Bruno Haible  <bruno@clisp.org>
107351         New module mbscasecmp, reduced goal of strcasecmp.
107352         * modules/mbscasecmp: New file.
107353         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107354         (mbscasecmp): Renamed from strcasecmp.
107355         * lib/strcasecmp.c: Don't include mbuiter.h.
107356         (strcasecmp): Remove support for multibyte locales.
107357         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107358         Change the conditional link warning.
107359         (mbscasecmp): New declaration.
107360         * m4/mbscasecmp.m4: New file.
107361         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107362         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107363         REPLACE_STRCASECMP.
107364         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107366         GNULIB_MBSCASECMP.
107367         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107368         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107369         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107370         (Depends-on): Remove mbuiter.
107371         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107373 2007-02-04  Bruno Haible  <bruno@clisp.org>
107375         New module mbsstr. Remove module strstr.
107376         * modules/mbsstr: New file.
107377         * modules/strstr: Remove file.
107378         * lib/mbsstr.c: Renamed from lib/strstr.c.
107379         (mbsstr): Renamed from strstr.
107380         * lib/string_.h (strstr): Remove declaration. Change the conditional
107381         link warning.
107382         (mbsstr): New declaration.
107383         * m4/mbsstr.m4: New file.
107384         * m4/strstr.m4: Remove file.
107385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
107386         REPLACE_STRSTR.
107387         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
107388         Don't initialize GNULIB_STRSTR.
107389         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
107390         substitute GNULIB_STRSTR and REPLACE_STRSTR.
107391         * MODULES.html.sh (Internationalization functions): Add mbsstr.
107392         (Support for systems lacking ANSI C 89): Remove strstr.
107394 2007-02-04  Bruno Haible  <bruno@clisp.org>
107396         New module mbsrchr.
107397         * modules/mbsrchr: New file.
107398         * lib/mbsrchr.c: New file.
107399         * lib/string_.h (strrchr): Add a conditional link warning.
107400         (mbsrchr): New declaration.
107401         * m4/mbsrchr.m4: New file.
107402         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107403         GNULIB_MBSRCHR.
107404         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
107405         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
107407 2007-02-04  Bruno Haible  <bruno@clisp.org>
107409         New module mbschr.
107410         * modules/mbschr: New file.
107411         * lib/mbschr.c: New file.
107412         * lib/string_.h (strchr): Add a conditional link warning.
107413         (mbschr): New declaration.
107414         * m4/mbschr.m4: New file.
107415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107416         GNULIB_MBSCHR.
107417         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
107418         * MODULES.html.sh (Internationalization functions): Add mbschr.
107420 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107422         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
107424         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
107426 2007-02-04  Bruno Haible  <bruno@clisp.org>
107428         New module description section 'configure.ac-early'.
107429         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
107430         (func_get_autoconf_early_snippet): New function.
107431         (func_import, func_create_testdir): Use it. Remove special cases for
107432         modules 'extensions' and 'lock'.
107433         * modules/extensions (configure.ac-early): Require
107434         gl_USE_SYSTEM_EXTENSIONS.
107435         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
107437 2007-02-04  Bruno Haible  <bruno@clisp.org>
107439         Make use of gcj-4.3's -fsource and -ftarget option.
107440         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
107441         and if so try the options -fsource and -ftarget.
107442         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
107443         source_version, ftarget_option, target_version arguments.
107444         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
107445         (is_envjavac_oldgcj_14_14_usable): Renamed from
107446         is_envjavac_gcj_14_14_usable.
107447         (is_envjavac_oldgcj_14_13_usable): Renamed from
107448         is_envjavac_gcj_14_13_usable.
107449         (is_gcj_present): Update.
107450         (is_gcj_43, is_gcj43_usable): New functions.
107451         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
107452         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
107453         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
107454         try the options -fsource and -ftarget.
107456 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107458         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
107459         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
107460         larger value.
107462 2007-02-03  Jim Meyering  <jim@meyering.net>
107464         Give tools a better chance to allocate space for very large buffers.
107465         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
107467         Make pwd and readlink work also when run with an unreadable parent dir
107468         on systems with openat support.
107469         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
107470         provided getcwd function, even when we have openat support.
107471         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
107473 2007-02-02  Bruno Haible  <bruno@clisp.org>
107475         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107476         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
107477         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
107478         portability problems if one of these functions is only used on specific
107479         platforms.
107480         Reported by Paul Eggert.
107482 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
107484         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
107485         is causing more trouble than it's curing.
107486         * lib/regex_internal.h (__mempcpy): Remove.
107487         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
107488         (and make the code a tad smaller to boot).
107489         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
107491 2007-02-02  Jim Meyering  <jim@meyering.net>
107493         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
107494         section, not in the Makefile.am: one.
107496 2007-02-02  Eric Blake  <ebb9@byu.net>
107498         * lib/strchrnul.c: Always include config.h first.
107500         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
107501         gnulib strstr is not necessary here.
107503 2007-02-02  Simon Josefsson  <simon@josefsson.org>
107505         * m4/socklen.m4: Fix typo.
107507 2007-02-02  Eric Blake  <ebb9@byu.net>
107509         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
107510         * modules/netinet_in (Makefile.am): Likewise.
107512 2007-02-01  Bruno Haible  <bruno@clisp.org>
107514         * lib/string_.h (GL_LINK_WARNING): New macro.
107515         (strcasecmp, strstr, strcasestr): If provided by the system,
107516         conditionally define as a macro that leads to a warning instead of to
107517         an error.
107518         (strncasecmp): Conditionally define as a macro that leads to a warning.
107520 2007-02-01  Karl Berry  <karl@gnu.org>
107522         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
107524 2007-02-01  Bruno Haible  <bruno@clisp.org>
107526         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
107527         renamings.
107529 2007-02-01  Eric Blake  <ebb9@byu.net>
107531         * modules/regex (Depends-on): Revert dependence on mempcpy.
107532         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
107533         module's definition of mempcpy.
107534         Reported by Paul Eggert.
107536 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107538         * lib/string_.h: If the gnulib module XYZ is not present, undefine
107539         the symbol XYZ before redefining it.  This fixes a problem with
107540         programs that don't use XYZ, when compiled on systems that define
107541         XYZ to something else.
107543 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
107545         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
107546         occurs when "mkdir -m foo" creates a setgid directory that is (1)
107547         writeable to group or other and (2) is intended to have a special
107548         mode bit that is set or cleared.  In such a case, the directory
107549         should be neither group- nor other-writeable until the special
107550         mode bits are right.
107552 2007-01-31  Eric Blake  <ebb9@byu.net>
107554         * modules/mountlist (Depends-on): Add strstr.
107556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
107557         bug.
107558         * modules/string (Makefile.am): Remove redundant replacement.
107559         * modules/regex (Depends-on): Add mempcpy.
107561 2007-01-31  Bruno Haible  <bruno@clisp.org>
107563         New module description field 'Link'.
107564         * gnulib-tool (func_usage): Document --extract-link-directive.
107565         (sed_extract_prog): Recognize 'Link' directive.
107566         (func_get_link_directive): New function.
107567         (func_import): Show summary of link directives.
107568         Handle --extract-link-directive option.
107569         * modules/acl (Link): New section.
107570         * modules/clock-time (Link): New section.
107571         * modules/euidaccess (Link): New section.
107572         * modules/gettext (Link): New section.
107573         * modules/iconv (Link): New section.
107574         * modules/lock (Link): New section.
107575         * modules/nanosleep (Link): New section.
107576         * modules/readline (Link): New section.
107578 2007-01-27  Bruno Haible  <bruno@clisp.org>
107580         Enforce the use of gnulib modules for unportable <string.h> functions.
107581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
107582         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
107583         (gl_HEADER_STRING_H_BODY): Require it.
107584         * lib/string_.h: If the gnulib module XYZ is not present, redefine
107585         the symbol XYZ to one that gives a link error.
107586         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
107587         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
107588         * modules/mempcpy (configure.ac): Likewise.
107589         * modules/memrchr (configure.ac): Likewise.
107590         * modules/stpcpy (configure.ac): Likewise.
107591         * modules/stpncpy (configure.ac): Likewise.
107592         * modules/strcase (configure.ac): Likewise.
107593         * modules/strcasestr (configure.ac): Likewise.
107594         * modules/strchrnul (configure.ac): Likewise.
107595         * modules/strdup (configure.ac): Likewise.
107596         * modules/strndup (configure.ac): Likewise.
107597         * modules/strnlen (configure.ac): Likewise.
107598         * modules/strpbrk (configure.ac): Likewise.
107599         * modules/strsep (configure.ac): Likewise.
107600         * modules/strstr (configure.ac): Likewise.
107601         * modules/strtok_r (configure.ac): Likewise.
107603 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
107605         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
107607 2007-01-30  Jim Meyering  <jim@meyering.net>
107609         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
107611 2007-01-29  Bruno Haible  <bruno@clisp.org>
107613         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
107614         * lib/execute.c: Likewise.
107615         * lib/pipe.c: Likewise.
107616         * lib/printf-args.h: Likewise.
107617         * lib/printf-args.c: Likewise.
107618         * lib/printf-parse.c: Likewise.
107619         * lib/vasnprintf.c: Likewise.
107621 2007-01-29  Eric Blake  <ebb9@byu.net>
107623         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
107624         declaration.
107626 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
107628         * lib/strptime.h (strptime): Use 'restrict' for args where
107629         POSIX requires this.
107630         * lib/strptime.c (strptime): Likewise.
107631         Change license notice from LGPL to GPL, since gnulib-tool will
107632         change this as needed.
107633         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
107634         defined.
107635         Include "strptime.h" first, to check interface.
107636         Do not #undef _LIBC and _NL_CURRENT.
107637         Do not include <stdlib.h>; no longer needed.
107638         Include "time_r.h" and declare ptime_locale_status
107639         only if _LIBC is not defined.
107640         (__P): Remove unused macro.
107641         (match_string): Bring back glibc version, but use it only if _LIBC
107642         is defined.
107643         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
107644         Remove unnecessary assertion and abort() call.
107645         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
107646         * m4/strptime.m4: Fix serial number comment.
107647         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
107648         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
107649         (Depends-on): Add time_r.
107651 2007-01-29  Bruno Haible  <bruno@clisp.org>
107653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107654         strptime.
107655         * modules/strptime (Depends-on): Add stdbool.
107656         * lib/strptime.h: Include <time.h> always. Add comments.
107658 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107660         * modules/strptime: New file.
107661         * lib/strptime.h: New file.
107662         * lib/strptime.c: New file.
107663         * m4/strptime.m4: New file.
107665 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107667         * MODULES.html.sh: New module mpsort.
107668         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
107670         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
107671         a circularity problem with HP-UX ia64 reported by Bob Proulx in
107672         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
107673         All uses changed.
107674         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
107675         All uses changed.
107676         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
107677         to _Restrict_.
107678         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
107679         the parameter matches the prototype.
107681 2007-01-28  Jim Meyering  <jim@meyering.net>
107683         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
107684         sys/time.h here, reverting that part of the previous patch:
107685         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
107687 2007-01-28  Bruno Haible  <bruno@clisp.org>
107689         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
107690         value of $(SYS_TIME_H).
107691         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
107692         remove it conditionally, too. [added by Jim Meyering]
107693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
107694         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
107695         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
107696         GETTIMEOFDAY_REPLACEMENT to 1.
107698 2007-01-28  Bruno Haible  <bruno@clisp.org>
107700         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
107701         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
107702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
107703         Set UNISTD_H instead of UNISTD_H2.
107704         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
107706 2007-01-28  Bruno Haible  <bruno@clisp.org>
107708         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
107709         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
107711 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107713         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
107714         (func_create_testdir): Ensure C locale for `grep' and `tr'
107715         character ranges.
107716         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
107717         ACLOCAL_AMFLAGS parsing state machine.
107719 2007-01-27  Bruno Haible  <bruno@clisp.org>
107721         * modules/unistr/base: Update.
107723 2007-01-27  Bruno Haible  <bruno@clisp.org>
107725         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
107726         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
107727         * modules/unistr/u32-mbtouc-unsafe: Renamed from
107728         modules/unistr/u32-mbtouc.
107729         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
107730         * lib/unistr.h: Update.
107731         * lib/linebreak.c: Update.
107732         * modules/unistr/u32-mbtouc: Renamed from
107733         modules/unistr/u32-mbtouc-safe.
107734         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
107735         * lib/unistr.h: Update.
107736         * lib/unistr/u32-to-u8.c: Update.
107737         * lib/unistr/u32-to-u16.c: Update.
107739 2007-01-27  Bruno Haible  <bruno@clisp.org>
107741         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
107742         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
107743         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
107744         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
107745         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
107746         * modules/unistr/u16-mbtouc-unsafe: Renamed from
107747         modules/unistr/u16-mbtouc.
107748         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
107749         * lib/unistr.h: Update.
107750         * lib/linebreak.c: Update.
107751         * modules/linebreak: Update.
107752         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
107753         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
107754         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
107755         * modules/unistr/u16-mbtouc: Renamed from
107756         modules/unistr/u16-mbtouc-safe.
107757         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
107758         * lib/unistr.h: Update.
107759         * lib/unistr/u16-to-u8.c: Update.
107760         * modules/unistr/u16-to-u8: Update.
107761         * lib/unistr/u16-to-u32.c: Update.
107762         * modules/unistr/u16-to-u32: Update.
107764 2007-01-27  Bruno Haible  <bruno@clisp.org>
107766         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
107767         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
107768         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
107769         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
107770         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
107771         * modules/unistr/u8-mbtouc-unsafe: Renamed from
107772         modules/unistr/u8-mbtouc.
107773         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
107774         * lib/unistr.h: Update.
107775         * lib/striconveh.c: Update.
107776         * modules/striconveh: Update.
107777         * lib/linebreak.c: Update.
107778         * modules/linebreak: Update.
107779         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
107780         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
107781         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
107782         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
107783         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
107784         * lib/unistr.h: Update.
107785         * lib/striconveh.c: Update.
107786         * modules/striconveh: Update.
107787         * lib/unistr/u8-to-u16.c: Update.
107788         * modules/unistr/u8-to-u16: Update.
107789         * lib/unistr/u8-to-u32.c: Update.
107790         * modules/unistr/u8-to-u32: Update.
107792 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107794         Sync from Libtool.
107795         * lib/argz.c: Do not include strings.h nor memory.h, include
107796         string.h unconditionally.  Patch by Simon Josefsson.
107798 2007-01-27  Bruno Haible  <bruno@clisp.org>
107800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
107801         from gl_HEADER_STRING_H_BODY.
107802         (gl_HEADER_STRING_H_BODY): Require it.
107803         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
107804         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
107805         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
107806         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
107807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
107808         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
107809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
107810         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
107811         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
107812         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
107813         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
107814         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
107815         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
107816         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
107817         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
107819 2007-01-27  Bruno Haible  <bruno@clisp.org>
107821         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
107822         check_PROGRAMS into noinst_PROGRAMS.
107823         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
107824         check_PROGRAMS in this case.
107825         (func_import): Set for_test to false.
107826         (func_create_testdir): Set for_test to true.
107828 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107829             Bruno Haible  <bruno@clisp.org>
107831         * modules/strcasestr (Files): Remove lib/strcasestr.h.
107832         (Depends-on): Add string.
107833         (Includes): Use <string.h> instead of strcasestr.h.
107834         * modules/string (Makefile.am): Also substitute the value of
107835         REPLACE_STRCASESTR.
107836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
107837         assume strcasestr is declared in <string.h> not <strings.h>. Also
107838         set REPLACE_STRCASESTR.
107839         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
107840         REPLACE_STRCASESTR.
107841         * lib/strcasestr.h: Remove file.
107842         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
107843         * lib/string_.h (strcasestr): New declaration.
107845 2007-01-27  Bruno Haible  <bruno@clisp.org>
107847         * lib/string_.h: Use 'extern'.
107849 2007-01-27  Jim Meyering  <jim@meyering.net>
107851         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
107852         of set-but-not-used local, "q".
107854         * lib/mempcpy.c: Include <config.h> before <string.h>.
107855         This fixes a compilation error on HP-UX, due to the system's
107856         "restrict"-using mempcpy prototype.
107858 2007-01-26  Bruno Haible  <bruno@clisp.org>
107860         Small optimization.
107861         * lib/javacomp.c: Include c-strstr.h.
107862          (is_envjavac_gcj): Use c_strstr instead of strstr.
107863         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
107865 2007-01-26  Bruno Haible  <bruno@clisp.org>
107867         * MODULES.html.sh (Unicode string functions): Add the new modules.
107869         * modules/uniconv/u32-strconv-to-locale: New file.
107870         * lib/uniconv/u32-strconv-to-locale.c: New file.
107872         * modules/uniconv/u16-strconv-to-locale: New file.
107873         * lib/uniconv/u16-strconv-to-locale.c: New file.
107875         * modules/uniconv/u8-strconv-to-locale: New file.
107876         * lib/uniconv/u8-strconv-to-locale.c: New file.
107878         * modules/uniconv/u32-strconv-from-locale: New file.
107879         * lib/uniconv/u32-strconv-from-locale.c: New file.
107881         * modules/uniconv/u16-strconv-from-locale: New file.
107882         * lib/uniconv/u16-strconv-from-locale.c: New file.
107884         * modules/uniconv/u8-strconv-from-locale: New file.
107885         * lib/uniconv/u8-strconv-from-locale.c: New file.
107887         * modules/uniconv/u32-strconv-to-enc: New file.
107888         * lib/uniconv/u32-strconv-to-enc.c: New file.
107889         * modules/uniconv/u32-strconv-to-enc-tests: New file.
107890         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
107892         * modules/uniconv/u16-strconv-to-enc: New file.
107893         * lib/uniconv/u16-strconv-to-enc.c: New file.
107894         * lib/uniconv/u-strconv-to-enc.h: New file.
107895         * modules/uniconv/u16-strconv-to-enc-tests: New file.
107896         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
107898         * modules/uniconv/u8-strconv-to-enc: New file.
107899         * lib/uniconv/u8-strconv-to-enc.c: New file.
107900         * modules/uniconv/u8-strconv-to-enc-tests: New file.
107901         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
107903         * modules/uniconv/u32-strconv-from-enc: New file.
107904         * lib/uniconv/u32-strconv-from-enc.c: New file.
107905         * modules/uniconv/u32-strconv-from-enc-tests: New file.
107906         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
107908         * modules/uniconv/u16-strconv-from-enc: New file.
107909         * lib/uniconv/u16-strconv-from-enc.c: New file.
107910         * modules/uniconv/u16-strconv-from-enc-tests: New file.
107911         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
107913         * modules/uniconv/u8-strconv-from-enc: New file.
107914         * lib/uniconv/u8-strconv-from-enc.c: New file.
107915         * lib/uniconv/u-strconv-from-enc.h: New file.
107916         * modules/uniconv/u8-strconv-from-enc-tests: New file.
107917         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
107919         * modules/uniconv/u32-conv-from-enc: New file.
107920         * lib/uniconv/u32-conv-from-enc.c: New file.
107921         * modules/uniconv/u32-conv-from-enc-tests: New file.
107922         * tests/uniconv/test-u32-conv-from-enc.c: New file.
107924         * modules/uniconv/u16-conv-from-enc: New file.
107925         * lib/uniconv/u16-conv-from-enc.c: New file.
107926         * lib/uniconv/u-conv-from-enc.h: New file.
107927         * modules/uniconv/u16-conv-from-enc-tests: New file.
107928         * tests/uniconv/test-u16-conv-from-enc.c: New file.
107930         * modules/uniconv/u8-conv-from-enc: New file.
107931         * lib/uniconv/u8-conv-from-enc.c: New file.
107932         * modules/uniconv/u8-conv-from-enc-tests: New file.
107933         * tests/uniconv/test-u8-conv-from-enc.c: New file.
107935         * modules/uniconv/base: New file.
107936         * lib/uniconv.h: New file.
107938 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
107940         * doc/gnulib-tool.texi (Initial import): Update to match current
107941         behavior with strdup module.
107942         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
107943         * lib/memmem.h: Remove; all uses removed.  This is now done
107944         by <string.h>.
107945         * lib/mempcpy.h: Likewise.
107946         * lib/memrchr.h: Likewise.
107947         * lib/stpcpy.h: Likewise.
107948         * lib/stpncpy.h: Likewise.
107949         * lib/strcase.h: Likewise.
107950         * lib/strchrnul.h: Likewise.
107951         * lib/strdup.h: Likewise.
107952         * lib/strndup.h: Likewise.
107953         * lib/strnlen.h: Likewise.
107954         * lib/strpbrk.h: Likewise.
107955         * lib/strsep.h: Likewise.
107956         * lib/strstr.h: Likewise.
107957         * lib/strtok_r.h: Likewise.
107958         * lib/string_.h: New file.
107959         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
107960         Rely on <string.h> instead.
107961         * lib/canon-host.c: Likewise.
107962         * lib/chdir-long.c: Likewise.
107963         * lib/concatpath.c: Likewise.
107964         * lib/exclude.c: Likewise.
107965         * lib/fchdir.c: Likewise.
107966         * lib/getaddrinfo.c: Likewise.
107967         * lib/getcwd.c: Likewise.
107968         * lib/getsubopt.c: Likewise.
107969         * lib/glob.c: Likewise.
107970         * lib/hard-locale.c: Likewise.
107971         * lib/iconvme.c: Likewise.
107972         * lib/javacomp.c: Likewise.
107973         * lib/mempcpy.c: Likewise.
107974         * lib/memrchr.c: Likewise.
107975         * lib/regex_internal.h: Likewise.
107976         * lib/stpncpy.c: Likewise.
107977         * lib/strcasecmp.c: Likewise.
107978         * lib/strchrnul.c: Likewise.
107979         * lib/strdup.c: Likewise.
107980         * lib/striconv.c: Likewise.
107981         * lib/striconveh.c: Likewise.
107982         * lib/striconveha.c: Likewise.
107983         * lib/strncasecmp.c: Likewise.
107984         * lib/strndup.c: Likewise.
107985         * lib/strnlen.c: Likewise.
107986         * lib/strsep.c: Likewise.
107987         * lib/strstr.c: Likewise.
107988         * lib/strtok_r.c: Likewise.
107989         * lib/userspec.c: Likewise.
107990         * lib/w32spawn.h: Likewise.
107991         * lib/xstrndup.c: Likewise.
107992         * lib/mountlist.c (strstr): Remove decl.
107993         * m4/string_h.m4: New file.
107994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
107995         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
107996         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
107997         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
107998         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
107999         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108000         Set REPLACE_STRCASECMP if necessary.
108001         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108002         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108003         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108004         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108005         HAVE_DECL_STRDUP if necessary.
108006         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108007         since gl_FUNC_STRNDUP does that now.
108008         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108009         Check for decl here...
108010         (gl_PREREQ_STRNLEN): ... not here.
108011         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108012         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108013         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108014         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108015         necessary.
108016         * modules/string: New file.
108017         * modules/memmem (Files): Remove special-purpose include file.
108018         (Depends-on): Add string.
108019         (Include): Include <string.h>, not the removed file.
108020         * modules/mempcpy: Likewise.
108021         * modules/memrchr: Likewise.
108022         * modules/stpcpy: Likewise.
108023         * modules/stpncpy: Likewise.
108024         * modules/strcase: Likewise.
108025         * modules/strchrnul: Likewise.
108026         * modules/strdup: Likewise.
108027         * modules/strndup: Likewise.
108028         * modules/strnlen: Likewise.
108029         * modules/strpbrk: Likewise.
108030         * modules/strsep: Likewise.
108031         * modules/strstr: Likewise.
108032         * modules/strtok_r: Likewise.
108033         * tests/test-dirname.c: Don't include "strdup.h", since
108034         <string.h> now suffices.
108035         * tests/test-memmem.c: Don't include "memmem.h", since
108036         <string.h> now suffices.
108038 2007-01-25  Bruno Haible  <bruno@clisp.org>
108040         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108041         *resultp is 0.
108043         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108044         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108045         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108046         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108048         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108049         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108050         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108051         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108052         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108053         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108055 2007-01-24  Bruno Haible  <bruno@clisp.org>
108057         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108058         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108059         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108060         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108061         gl_FUNC_FTS_CORE.
108062         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108063         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108064         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108065         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108066         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108067         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108068         gl_FUNC_FCHOWNAT.
108069         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108070         gl_FUNC_STRFTIME.
108071         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108072         Reported by Ralf Wildenhues.
108074 2007-01-24  Bruno Haible  <bruno@clisp.org>
108076         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108077         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108078         gl_GETADDRINFO.
108079         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108080         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108081         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108083 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108085         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108086         Don't use 'exit'; just return from 'main'.
108087         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108089         * lib/fnmatch_.h: Readjust white space and comments to match
108090         glibc, to avoid spurious diffs.
108092 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108094         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108095         2004-12-01 change by Jakub Jelinek, since this code won't compile
108096         if !LIBC.  Problem reported by Bob Proulx.
108098 2007-01-23  Bruno Haible  <bruno@clisp.org>
108100         * lib/striconveh.c: Include c-strcaseeq.h.
108101         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108102         * modules/striconveh (Depends-on): Add c-strcaseeq.
108104 2007-01-23  Bruno Haible  <bruno@clisp.org>
108106         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108108         * modules/c-strcaseeq: New file.
108109         * lib/c-strcaseeq.h: New file.
108111         * modules/streq: New file.
108112         * lib/streq.h: New file.
108114 2007-01-23  Bruno Haible  <bruno@clisp.org>
108116         * modules/striconveha-tests: New file.
108117         * tests/test-striconveha.c: New file.
108119         * lib/striconveha.h: Include <stdbool.h>.
108120         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108121         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108122         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108123         (mem_iconveha): New function.
108124         (str_iconveha_notranslit): Renamed from str_iconveha.
108125         (str_iconveha): New function.
108126         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108127         c-strcase.
108129 2007-01-23  Bruno Haible  <bruno@clisp.org>
108131         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108132         encodings without forgiving before trying any encoding with handler.
108133         (str_iconveha): Try all encodings without forgiving before trying any
108134         encoding with handler.
108136 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108138         Import the following changes from libc.
108140         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108142         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108144         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108146         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108147         normal_bracket label.
108149         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108151         [BZ #361]
108152         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108153         to normal_bracket after fetching the next character.
108155 2007-01-22  Bruno Haible  <bruno@clisp.org>
108157         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108158         argument.
108159         * lib/striconveh.c (iconv_carefully_1): New function.
108160         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108161         argument.
108162         (str_cd_iconveh): Update.
108163         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108164         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108165         * tests/test-striconveh.c (MAGIC): New macro.
108166         (new_offsets): New function.
108167         (main): Test call with and without offsets.
108169 2007-01-22  Bruno Haible  <bruno@clisp.org>
108171         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108172         * modules/sys_select (Makefile.am): Likewise.
108173         * modules/sys_socket (Makefile.am): Likewise.
108174         * modules/sys_time (Makefile.am): Likewise.
108176 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108178         * modules/gettimeofday (License): Change from GPL to LGPL, since
108179         gettimeofday is a library function.
108181 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108183         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108185 2007-01-21  Bruno Haible  <bruno@clisp.org>
108187         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108189 2007-01-21  Bruno Haible  <bruno@clisp.org>
108191         * modules/striconveha: New file.
108192         * lib/striconveha.h: New file.
108193         * lib/striconveha.c: New file.
108194         * MODULES.html.sh (Internationalization functions): Add striconveha.
108195         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108196         string.
108197         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108199 2007-01-21  Bruno Haible  <bruno@clisp.org>
108201         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108202         * lib/striconveh.c (str_iconveh): Likewise.
108204 2007-01-21  Bruno Haible  <bruno@clisp.org>
108206         * lib/striconveh.h (mem_iconveh): New declaration.
108207         * lib/striconveh.c (mem_iconveh): New function.
108208         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
108210 2007-01-21  Bruno Haible  <bruno@clisp.org>
108212         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
108214         * lib/striconveh.h (mem_cd_iconveh): Change specification.
108215         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
108216         original result buffer.
108217         (str_cd_iconveh): Update.
108218         * tests/test-striconveh.c (main): Update.
108220         * lib/striconv.h (mem_cd_iconv): Change specification.
108221         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
108222         result buffer.
108223         (str_cd_iconv): Update.
108224         * tests/test-striconv.c (main): Update.
108226 2007-01-21  Bruno Haible  <bruno@clisp.org>
108228         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
108230 2007-01-20  Jim Meyering  <jim@meyering.net>
108232         * lib/userspec.c (parse_with_separator): If a user or group string
108233         starts with "+", skip the corresponding name-to-ID look-up, since
108234         such a look-up must fail: user and group names may not include "+".
108236 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
108238         * lib/poll.c: Include sys/time.h and time.h unconditionally,
108239         since we now assume the sys_time module.
108240         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
108241         check for sys/time.h; no longer needed.
108242         * modules/poll (Depends-on): Depend on sys_time.
108244 2007-01-18  Bruno Haible  <bruno@clisp.org>
108246         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
108247         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108249         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108250         gettimeofday.
108252         * tests/test-gettimeofday.c: Include <time.h>.
108253         (dummy): Remove variable.
108255         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108256         gl_HEADER_SYS_TIME_H.
108257         (gl_HEADER_SYS_TIME_H): New macro.
108259         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108260         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108261         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108262         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108263         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108264         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108265         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108266         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108267         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108268         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108269         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108271         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108272         last change; it caused a compilation error when cross-compiling to
108273         Cygwin.
108275 2007-01-18  Jim Meyering  <jim@meyering.net>
108277         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108278         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108279         than the race-prone "test -d sys || mkdir sys".
108280         (configure.ac): Use AC_PROG_MKDIR_P.
108281         * modules/sys_select: Likewise.
108282         * modules/sys_socket: Likewise.
108283         * modules/sys_time: Likewise.
108285 2007-01-18  Eric Blake  <ebb9@byu.net>
108287         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108288         replace gettimeofday.
108289         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108290         name, to avoid infinite recursion.
108292 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108294         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108295         module sys_time.
108296         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108297         assume timespec.h defines struct timeval.
108298         * lib/settime.c: Likewise.
108299         * lib/utimens.c: Likewise.
108300         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108301         since we now assume the gettimeofday module.
108302         * lib/tempname.c (__gen_tempname): Likewise.
108303         * lib/gettimeofday.h: Remove.
108304         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108305         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108306         Include <time.h>, for 'time()'.
108307         (localtime_buffer_addr): Also use this workaround if
108308         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108309         to simplify the uses.  All uses changed.
108310         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108311         that #undef is inside {}, and 'const' follows type name consistently.
108312         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108313         (gettimeofday): Do not use the maximum possible value for
108314         tv->tv_usec, since that might break usages other than ls.c.
108315         Instead, we'll leave ls.c alone.  This undoes today's patch
108316         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108317         we've never observed the problem but might as well keep the
108318         canary.
108319         * lib/nanosleep.c: Include timespec.h first, for interface check.
108320         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108321         now assume the sys_time module.
108322         * lib/tempname.c: Likewise.
108323         * lib/timespec.h: Likewise.
108324         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108325         needed.
108326         * lib/strftime.c: Likewise.
108327         * lib/timespec.h: Likewise.
108328         * lib/posixtm.c: Include posixtm.h first, for interface check.
108329         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108330         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108331         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108332         * lib/sys_time_.h: New file.
108333         * lib/timespec.h (struct timespec): Use long int, not long.
108334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108335         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108336         Remove obsolescent call to AC_HEADER_TIME.
108337         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108339         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108340         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108341         Likewise.
108342         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108343         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108345         into the sys_time module.  Check for gettimeofday just once.
108346         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108347         for gettimeofday signature to just check the signature.  Merely
108348         compile it, since linking doesn't test signature.  Improve test for
108349         whether gettimeofday.o is actually needed.
108350         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108351         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108352         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108353         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108354         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108355         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108356         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108357         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108358         than worrying about sys/time.h.
108359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108360         Don't bother worrying about TIME_WITH_SYS_TIME.
108361         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108362         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108363         * m4/sys_time_h.m4: New file.
108364         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108365         Don't include sys/time.h.  Return from main rather than exiting.
108366         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108367         all uses changed.
108368         * modules/gethrxtime (Depends-on): Add sys_time.
108369         * modules/gettime (Depends-on): Likewise.
108370         * modules/gettimeofday (Depends-on): Likewise.
108371         * modules/nanosleep (Depends-on): Likewise.
108372         * modules/settime (Depends-on): Likewise.
108373         * modules/tempname (Depends-on): Likewise.
108374         * modules/utimens (Depends-on): Likewise.
108375         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108376         (Include): Change back to <sys/time.h>.
108377         (Maintainer): Add self.
108378         * modules/sys_time: New file.
108379         * modules/tempname (Depends-on): Add gettimeofday.
108380         * tests/test-gettimeofday.c: Include <sys/time.h>
108381         rather than gettimeofday.h.
108383 2007-01-17  Bruno Haible  <bruno@clisp.org>
108385         * gnulib-tool (func_get_license): Revert last patch. Instead, let
108386         the license default to GPL.
108387         (func_create_testdir): Don't complain if a module is LGPL and its
108388         tests module depends on GPLed modules.
108390 2007-01-17  Bruno Haible  <bruno@clisp.org>
108392         * lib/gettimeofday.c (gettimeofday): Add code for the case
108393         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
108394         maximum possible value for tv->tv_usec, rather than the minimum one.
108396 2005-10-08  Martin Lambers  <marlam@marlam.de>
108397 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108398 2007-01-16  Bruno Haible  <bruno@clisp.org>
108400         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
108401         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
108402         gl_FUNC_GETTIMEOFDAY.
108403         (Include): Add gettimeofday.h.
108404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
108405         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
108406         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
108407         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
108408         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
108409         * lib/gettimeofday.h: New file.
108410         * lib/gettimeofday.c: Include <sys/timeb.h>.
108411         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
108412         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108413         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
108414         fall back on time().
108416         * tests/test-gettimeofday.c: New file.
108417         * modules/gettimeofday-tests: New file.
108419 2007-01-16  Eric Blake  <ebb9@byu.net>
108421         * modules/fnmatch (Depends-on): Depend on wchar.
108422         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
108423         * m4/fnmatch.m4: Likewise.
108424         * modules/mbchar (Makefile.am): Assume <wchar.h>.
108425         * m4/mbchar.m4: Likewise.
108426         * modules/mbswidth (Depends-on): Depend on wchar.
108427         * lib/mbswidth.c: Assume <wchar.h>.
108428         * m4/mbswidth.m4: Likewise.
108429         * modules/quotearg (Depends-on): Depend on wchar.
108430         * lib/quotearg.c: Assume <wchar.h>.
108431         * m4/quotearg.m4: Likewise.
108432         * modules/regex (Depends-on): Depend on wchar.
108433         * lib/regex_internal.h: Assume <wchar.h>.
108434         * m4/regex.m4: Likewise.
108435         * modules/stdint (Depends-on): Depend on wchar.
108436         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
108437         * m4/stdint.m4: Likewise.
108438         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
108439         * modules/strftime (Depends-on): Depend on wchar.
108440         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
108441         * modules/strtol (Depends-on): Depend on wchar.
108442         * lib/strtol.c: Assume <wchar.h>.
108443         * modules/wcwidth (Depends-on): Depend on wchar.
108444         * lib/wcwidth.h: Assume <wchar.h>.
108445         * m4/wcwidth.m4: Likewise.
108447 2007-01-16  Bruno Haible  <bruno@clisp.org>
108449         * modules/csharpexec-script: New, created from...
108450         * modules/csharpexec: ... this.
108452 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
108454         * modules/javaexec-script: New, created from...
108455         * modules/javaexec: ... this.
108457 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108459         * modules/poll (Dependencies): Add sys_select.
108461 2007-01-15  Jim Meyering  <jim@meyering.net>
108463         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
108464         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
108465         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
108466         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
108468 2007-01-15  Bruno Haible  <bruno@clisp.org>
108470         * modules/striconveh: New file.
108471         * lib/striconveh.h: New file.
108472         * lib/striconveh.c: New file.
108473         * MODULES.html.sh (Internationalization functions): Add striconveh.
108475         * modules/striconveh-tests: New file.
108476         * tests/test-striconveh.c: New file.
108478 2007-01-15  Bruno Haible  <bruno@clisp.org>
108480         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
108481         not from GNU libiconv or GNU libc.
108483 2007-01-15  Bruno Haible  <bruno@clisp.org>
108485         * doc/gnulib-intro.texi (Copyright): Explain the different license
108486         terms for module descriptions, autoconf macros, tests, documentation.
108488 2007-01-14  Bruno Haible  <bruno@clisp.org>
108490         * modules/striconv-tests: New file.
108491         * tests/test-striconv.c: New file.
108493 2007-01-14  Bruno Haible  <bruno@clisp.org>
108495         * modules/iconv-tests: New file.
108496         * tests/test-iconv.c: New file.
108498 2007-01-14  Bruno Haible  <bruno@clisp.org>
108500         * gnulib-tool (func_get_license): For test modules, use the license of
108501         the main module.
108503 2007-01-14  Bruno Haible  <bruno@clisp.org>
108505         * modules/iconv (Include): Clarify that <iconv.h> can only be included
108506         if iconv is found to exist.
108508 2007-01-14  Bruno Haible  <bruno@clisp.org>
108510         * modules/c-ctype-tests: New file.
108511         * tests/test-c-ctype.c: New file.
108513 2007-01-14  Bruno Haible  <bruno@clisp.org>
108515         * modules/binary-io-tests: New file.
108516         * tests/test-binary-io.sh: New file.
108517         * tests/test-binary-io.c: New file.
108519 2007-01-14  Bruno Haible  <bruno@clisp.org>
108521         * modules/array-oset-tests: New file.
108522         * tests/test-array_oset.c: New file.
108524 2007-01-14  Bruno Haible  <bruno@clisp.org>
108526         * modules/array-list-tests: New file.
108527         * tests/test-array_list.c: New file.
108529 2007-01-14  Bruno Haible  <bruno@clisp.org>
108531         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
108532         and make.
108533         Reported by Simon Josefsson in
108534         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
108536 2007-01-14  Bruno Haible  <bruno@clisp.org>
108538         * modules/allocsa-tests: New file.
108539         * tests/test-allocsa.c: New file.
108541 2007-01-14  Bruno Haible  <bruno@clisp.org>
108543         * modules/fchdir (Depends-on): Add absolute-header.
108544         * modules/unistd (Depends-on): Likewise.
108546 2006-12-30  Bruno Haible  <bruno@clisp.org>
108548         * modules/fchdir: New file.
108549         * modules/unistd (Files): Add lib/unistd_.h.
108550         (Makefile.am): Generate unistd.h from unistd_.h.
108551         * lib/fchdir.c: New file.
108552         * lib/dirent_.h: New file.
108553         * lib/unistd_.h: New file.
108554         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
108555         * m4/fchdir.m4: New file.
108556         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
108557         (gl_HEADER_UNISTD): Invoke it.
108558         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
108559         function.
108560         * lib/backupfile.c (opendir, closedir): Undefine.
108561         * lib/chown.c (open, close): Undefine.
108562         * lib/clean-temp.c (open, close): Undefine.
108563         * lib/copy-file.c (open, close): Undefine.
108564         * lib/execute.c (open, close): Undefine.
108565         * lib/fsusage.c (open, close): Undefine.
108566         * lib/gc-gnulib.c (open, close): Undefine.
108567         * lib/getcwd.c (opendir, closedir): Undefine.
108568         * lib/glob.c (opendir, closedir): Undefine.
108569         * lib/javacomp.c (open, close): Undefine.
108570         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
108571         * lib/openat-proc.c (open, close): Undefine.
108572         * lib/pagealign_alloc.c (open, close): Undefine.
108573         * lib/pipe.c (open, close): Undefine.
108574         * lib/progreloc.c (open, close): Undefine.
108575         * lib/savedir.c (opendir, closedir): Undefine.
108576         * lib/utime.c (open, close): Undefine.
108577         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
108579 2007-01-10  Bruno Haible  <bruno@clisp.org>
108581         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
108583 2007-01-12  Eric Blake  <ebb9@byu.net>
108585         Provide a robust <wchar.h>.  Further simplifications are now
108586         possible in other modules, but not included here.
108587         * modules/wchar: New module.
108588         * m4/wchar.m4: New file.
108589         * lib/wchar_.h: Likewise.
108590         * modules/mbchar (Depends-on): Depend on wchar, as the first use
108591         of the new module.
108592         * MODULES.html.sh (Extended multibyte and wide character utilities):
108593         New section.
108595 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
108597         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
108598         to a reasonable default for memory allocation.
108599         (xreadlink): Don't allocate a huge buffer, to work around a buggy
108600         file system that reports garbage st_size values for symlinks.
108601         Problem reported by Liyang Hu.
108603 2007-01-11  Simon Josefsson  <simon@josefsson.org>
108605         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
108606         Emacs .#* auto-save files).
108608 2007-01-11  Bruno Haible  <bruno@clisp.org>
108610         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
108611         directory.
108613 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108615         Use @...@ consistently in lib/wctype_.h.
108616         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
108617         on it being set to 1 or 0.
108618         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
108619         go back to AC_SUBSTing it.
108620         * modules/wctype (Makefile.am): Undo previous change.
108622 2007-01-10  Eric Blake  <ebb9@byu.net>
108624         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
108625         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
108626         * modules/wctype (Makefile.am): Likewise.
108627         Reported by Chris McGuire.
108629 2007-01-10  Jim Meyering  <jim@meyering.net>
108631         fts.c: a small readability/maintainability improvement
108632         * lib/fts.c (fts_read): Make this code slightly more readable and
108633         maintainable by hoisting the "sp->fts_cur = p" assignments to
108634         immediately follow the statements that set P.  Derived from
108635         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
108637 2007-01-10  Eric Blake  <ebb9@byu.net>
108639         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
108640         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
108641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
108642         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
108643         Reported by Chris McGuire.
108645 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108647         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
108648         in sed script.
108650 2007-01-09  Bruno Haible  <bruno@clisp.org>
108652         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
108653         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
108654         variables.
108655         (func_module): Use them.
108657 2007-01-09  Bruno Haible  <bruno@clisp.org>
108659         * modules/unistr/base: New file.
108660         * lib/unistr.h: New file.
108662         * modules/unistr/u8-to-u16: New file.
108663         * lib/unistr/u8-to-u16.c: New file.
108665         * modules/unistr/u8-to-u32: New file.
108666         * lib/unistr/u8-to-u32.c: New file.
108668         * modules/unistr/u16-to-u8: New file.
108669         * lib/unistr/u16-to-u8.c: New file.
108671         * modules/unistr/u16-to-u32: New file.
108672         * lib/unistr/u16-to-u32.c: New file.
108674         * modules/unistr/u32-to-u8: New file.
108675         * lib/unistr/u32-to-u8.c: New file.
108677         * modules/unistr/u32-to-u16: New file.
108678         * lib/unistr/u32-to-u16.c: New file.
108680         * modules/unistr/u8-check: New file.
108681         * modules/unistr/u16-check: New file.
108682         * modules/unistr/u32-check: New file.
108683         * lib/unistr/u8-check.c: New file.
108684         * lib/unistr/u16-check.c: New file.
108685         * lib/unistr/u32-check.c: New file.
108687         * modules/unistr/u8-chr: New file.
108688         * modules/unistr/u16-chr: New file.
108689         * modules/unistr/u32-chr: New file.
108690         * lib/unistr/u8-chr.c: New file.
108691         * lib/unistr/u16-chr.c: New file.
108692         * lib/unistr/u32-chr.c: New file.
108694         * modules/unistr/u8-cmp: New file.
108695         * modules/unistr/u16-cmp: New file.
108696         * modules/unistr/u32-cmp: New file.
108697         * lib/unistr/u8-cmp.c: New file.
108698         * lib/unistr/u16-cmp.c: New file.
108699         * lib/unistr/u32-cmp.c: New file.
108701         * modules/unistr/u8-cpy: New file.
108702         * modules/unistr/u16-cpy: New file.
108703         * modules/unistr/u32-cpy: New file.
108704         * lib/unistr/u8-cpy.c: New file.
108705         * lib/unistr/u16-cpy.c: New file.
108706         * lib/unistr/u32-cpy.c: New file.
108707         * lib/unistr/u-cpy.h: New file.
108709         * modules/unistr/u8-cpy-alloc: New file.
108710         * modules/unistr/u16-cpy-alloc: New file.
108711         * modules/unistr/u32-cpy-alloc: New file.
108712         * lib/unistr/u8-cpy-alloc.c: New file.
108713         * lib/unistr/u16-cpy-alloc.c: New file.
108714         * lib/unistr/u32-cpy-alloc.c: New file.
108715         * lib/unistr/u-cpy-alloc.h: New file.
108717         * modules/unistr/u8-endswith: New file.
108718         * modules/unistr/u16-endswith: New file.
108719         * modules/unistr/u32-endswith: New file.
108720         * lib/unistr/u8-endswith.c: New file.
108721         * lib/unistr/u16-endswith.c: New file.
108722         * lib/unistr/u32-endswith.c: New file.
108723         * lib/unistr/u-endswith.h: New file.
108725         * modules/unistr/u8-mblen: New file.
108726         * modules/unistr/u16-mblen: New file.
108727         * modules/unistr/u32-mblen: New file.
108728         * lib/unistr/u8-mblen.c: New file.
108729         * lib/unistr/u16-mblen.c: New file.
108730         * lib/unistr/u32-mblen.c: New file.
108732         * modules/unistr/u8-mbtouc: New file.
108733         * modules/unistr/u16-mbtouc: New file.
108734         * modules/unistr/u32-mbtouc: New file.
108735         * lib/unistr/u8-mbtouc.c: New file.
108736         * lib/unistr/u16-mbtouc.c: New file.
108737         * lib/unistr/u32-mbtouc.c: New file.
108739         * modules/unistr/u8-mbtouc-safe: New file.
108740         * modules/unistr/u16-mbtouc-safe: New file.
108741         * modules/unistr/u32-mbtouc-safe: New file.
108742         * lib/unistr/u8-mbtouc-safe.c: New file.
108743         * lib/unistr/u16-mbtouc-safe.c: New file.
108744         * lib/unistr/u32-mbtouc-safe.c: New file.
108746         * modules/unistr/u8-move: New file.
108747         * modules/unistr/u16-move: New file.
108748         * modules/unistr/u32-move: New file.
108749         * lib/unistr/u8-move.c: New file.
108750         * lib/unistr/u16-move.c: New file.
108751         * lib/unistr/u32-move.c: New file.
108752         * lib/unistr/u-move.h: New file.
108754         * modules/unistr/u8-next: New file.
108755         * modules/unistr/u16-next: New file.
108756         * modules/unistr/u32-next: New file.
108757         * lib/unistr/u8-next.c: New file.
108758         * lib/unistr/u16-next.c: New file.
108759         * lib/unistr/u32-next.c: New file.
108761         * modules/unistr/u8-prev: New file.
108762         * modules/unistr/u16-prev: New file.
108763         * modules/unistr/u32-prev: New file.
108764         * lib/unistr/u8-prev.c: New file.
108765         * lib/unistr/u16-prev.c: New file.
108766         * lib/unistr/u32-prev.c: New file.
108768         * modules/unistr/u8-set: New file.
108769         * modules/unistr/u16-set: New file.
108770         * modules/unistr/u32-set: New file.
108771         * lib/unistr/u8-set.c: New file.
108772         * lib/unistr/u16-set.c: New file.
108773         * lib/unistr/u32-set.c: New file.
108774         * lib/unistr/u-set.h: New file.
108776         * modules/unistr/u8-startswith: New file.
108777         * modules/unistr/u16-startswith: New file.
108778         * modules/unistr/u32-startswith: New file.
108779         * lib/unistr/u8-startswith.c: New file.
108780         * lib/unistr/u16-startswith.c: New file.
108781         * lib/unistr/u32-startswith.c: New file.
108782         * lib/unistr/u-startswith.h: New file.
108784         * modules/unistr/u8-stpcpy: New file.
108785         * modules/unistr/u16-stpcpy: New file.
108786         * modules/unistr/u32-stpcpy: New file.
108787         * lib/unistr/u8-stpcpy.c: New file.
108788         * lib/unistr/u16-stpcpy.c: New file.
108789         * lib/unistr/u32-stpcpy.c: New file.
108790         * lib/unistr/u-stpcpy.h: New file.
108792         * modules/unistr/u8-stpncpy: New file.
108793         * modules/unistr/u16-stpncpy: New file.
108794         * modules/unistr/u32-stpncpy: New file.
108795         * lib/unistr/u8-stpncpy.c: New file.
108796         * lib/unistr/u16-stpncpy.c: New file.
108797         * lib/unistr/u32-stpncpy.c: New file.
108798         * lib/unistr/u-stpncpy.h: New file.
108800         * modules/unistr/u8-strcat: New file.
108801         * modules/unistr/u16-strcat: New file.
108802         * modules/unistr/u32-strcat: New file.
108803         * lib/unistr/u8-strcat.c: New file.
108804         * lib/unistr/u16-strcat.c: New file.
108805         * lib/unistr/u32-strcat.c: New file.
108806         * lib/unistr/u-strcat.h: New file.
108808         * modules/unistr/u8-strchr: New file.
108809         * modules/unistr/u16-strchr: New file.
108810         * modules/unistr/u32-strchr: New file.
108811         * lib/unistr/u8-strchr.c: New file.
108812         * lib/unistr/u16-strchr.c: New file.
108813         * lib/unistr/u32-strchr.c: New file.
108815         * modules/unistr/u8-strcmp: New file.
108816         * modules/unistr/u16-strcmp: New file.
108817         * modules/unistr/u32-strcmp: New file.
108818         * lib/unistr/u8-strcmp.c: New file.
108819         * lib/unistr/u16-strcmp.c: New file.
108820         * lib/unistr/u32-strcmp.c: New file.
108822         * modules/unistr/u8-strcpy: New file.
108823         * modules/unistr/u16-strcpy: New file.
108824         * modules/unistr/u32-strcpy: New file.
108825         * lib/unistr/u8-strcpy.c: New file.
108826         * lib/unistr/u16-strcpy.c: New file.
108827         * lib/unistr/u32-strcpy.c: New file.
108828         * lib/unistr/u-strcpy.h: New file.
108830         * modules/unistr/u8-strcspn: New file.
108831         * modules/unistr/u16-strcspn: New file.
108832         * modules/unistr/u32-strcspn: New file.
108833         * lib/unistr/u8-strcspn.c: New file.
108834         * lib/unistr/u16-strcspn.c: New file.
108835         * lib/unistr/u32-strcspn.c: New file.
108836         * lib/unistr/u-strcspn.h: New file.
108838         * modules/unistr/u8-strdup: New file.
108839         * modules/unistr/u16-strdup: New file.
108840         * modules/unistr/u32-strdup: New file.
108841         * lib/unistr/u8-strdup.c: New file.
108842         * lib/unistr/u16-strdup.c: New file.
108843         * lib/unistr/u32-strdup.c: New file.
108844         * lib/unistr/u-strdup.h: New file.
108846         * modules/unistr/u8-strlen: New file.
108847         * modules/unistr/u16-strlen: New file.
108848         * modules/unistr/u32-strlen: New file.
108849         * lib/unistr/u8-strlen.c: New file.
108850         * lib/unistr/u16-strlen.c: New file.
108851         * lib/unistr/u32-strlen.c: New file.
108852         * lib/unistr/u-strlen.h: New file.
108854         * modules/unistr/u8-strmblen: New file.
108855         * modules/unistr/u16-strmblen: New file.
108856         * modules/unistr/u32-strmblen: New file.
108857         * lib/unistr/u8-strmblen.c: New file.
108858         * lib/unistr/u16-strmblen.c: New file.
108859         * lib/unistr/u32-strmblen.c: New file.
108861         * modules/unistr/u8-strmbtouc: New file.
108862         * modules/unistr/u16-strmbtouc: New file.
108863         * modules/unistr/u32-strmbtouc: New file.
108864         * lib/unistr/u8-strmbtouc.c: New file.
108865         * lib/unistr/u16-strmbtouc.c: New file.
108866         * lib/unistr/u32-strmbtouc.c: New file.
108868         * modules/unistr/u8-strncat: New file.
108869         * modules/unistr/u16-strncat: New file.
108870         * modules/unistr/u32-strncat: New file.
108871         * lib/unistr/u8-strncat.c: New file.
108872         * lib/unistr/u16-strncat.c: New file.
108873         * lib/unistr/u32-strncat.c: New file.
108874         * lib/unistr/u-strncat.h: New file.
108876         * modules/unistr/u8-strncmp: New file.
108877         * modules/unistr/u16-strncmp: New file.
108878         * modules/unistr/u32-strncmp: New file.
108879         * lib/unistr/u8-strncmp.c: New file.
108880         * lib/unistr/u16-strncmp.c: New file.
108881         * lib/unistr/u32-strncmp.c: New file.
108883         * modules/unistr/u8-strncpy: New file.
108884         * modules/unistr/u16-strncpy: New file.
108885         * modules/unistr/u32-strncpy: New file.
108886         * lib/unistr/u8-strncpy.c: New file.
108887         * lib/unistr/u16-strncpy.c: New file.
108888         * lib/unistr/u32-strncpy.c: New file.
108889         * lib/unistr/u-strncpy.h: New file.
108891         * modules/unistr/u8-strnlen: New file.
108892         * modules/unistr/u16-strnlen: New file.
108893         * modules/unistr/u32-strnlen: New file.
108894         * lib/unistr/u8-strnlen.c: New file.
108895         * lib/unistr/u16-strnlen.c: New file.
108896         * lib/unistr/u32-strnlen.c: New file.
108897         * lib/unistr/u-strnlen.h: New file.
108899         * modules/unistr/u8-strpbrk: New file.
108900         * modules/unistr/u16-strpbrk: New file.
108901         * modules/unistr/u32-strpbrk: New file.
108902         * lib/unistr/u8-strpbrk.c: New file.
108903         * lib/unistr/u16-strpbrk.c: New file.
108904         * lib/unistr/u32-strpbrk.c: New file.
108905         * lib/unistr/u-strpbrk.h: New file.
108907         * modules/unistr/u8-strrchr: New file.
108908         * modules/unistr/u16-strrchr: New file.
108909         * modules/unistr/u32-strrchr: New file.
108910         * lib/unistr/u8-strrchr.c: New file.
108911         * lib/unistr/u16-strrchr.c: New file.
108912         * lib/unistr/u32-strrchr.c: New file.
108914         * modules/unistr/u8-strspn: New file.
108915         * modules/unistr/u16-strspn: New file.
108916         * modules/unistr/u32-strspn: New file.
108917         * lib/unistr/u8-strspn.c: New file.
108918         * lib/unistr/u16-strspn.c: New file.
108919         * lib/unistr/u32-strspn.c: New file.
108920         * lib/unistr/u-strspn.h: New file.
108922         * modules/unistr/u8-strstr: New file.
108923         * modules/unistr/u16-strstr: New file.
108924         * modules/unistr/u32-strstr: New file.
108925         * lib/unistr/u8-strstr.c: New file.
108926         * lib/unistr/u16-strstr.c: New file.
108927         * lib/unistr/u32-strstr.c: New file.
108928         * lib/unistr/u-strstr.h: New file.
108930         * modules/unistr/u8-strtok: New file.
108931         * modules/unistr/u16-strtok: New file.
108932         * modules/unistr/u32-strtok: New file.
108933         * lib/unistr/u8-strtok.c: New file.
108934         * lib/unistr/u16-strtok.c: New file.
108935         * lib/unistr/u32-strtok.c: New file.
108936         * lib/unistr/u-strtok.h: New file.
108938         * modules/unistr/u8-uctomb: New file.
108939         * modules/unistr/u16-uctomb: New file.
108940         * modules/unistr/u32-uctomb: New file.
108941         * lib/unistr/u8-uctomb.c: New file.
108942         * lib/unistr/u16-uctomb.c: New file.
108943         * lib/unistr/u32-uctomb.c: New file.
108945         * MODULES.html.sh (Unicode string functions): Add the new modules.
108947 2007-01-08  Bruno Haible  <bruno@clisp.org>
108949         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
108950         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
108951         subdirectories.
108953 2007-01-08  Karl Berry  <karl@gnu.org>
108955         * doc/error.texi: mention that main() fns must set program_name
108956         when progname is used.
108958 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
108960         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
108961         WCTYPE_H is empty, for the benefit of builds from non-distclean
108962         directories.  Problem reported by Eric Blake in
108963         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
108965 2007-01-08  Bruno Haible  <bruno@clisp.org>
108967         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
108968         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
108969         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
108970         PROVIDE_CANONICALIZE_FILENAME_MODE.
108971         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
108973 2007-01-08  Bruno Haible  <bruno@clisp.org>
108975         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
108976         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
108977         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
108978         * lib/fts.c: Likewise.
108979         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
108981 2006-12-25  Bruno Haible  <bruno@clisp.org>
108983         * modules/utf8-ucs4-safe: New file.
108984         * lib/utf8-ucs4-safe.h: New file.
108985         * lib/unistr/utf8-ucs4-safe.c: New file.
108987         * modules/utf16-ucs4-safe: New file.
108988         * lib/utf16-ucs4-safe.h: New file.
108989         * lib/unistr/utf16-ucs4-safe.c: New file.
108991         * MODULES.html.sh (Unicode string functions): Add the new modules.
108993 2007-01-08  Bruno Haible  <bruno@clisp.org>
108995         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
108996         (Depends-on): Add unitypes.
108997         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
108998         (u8_mbtouc_aux): Move out to separate file.
108999         (u8_mbtouc): Use ucs4_t, uint8_t types.
109000         * lib/unistr/utf8-ucs4.c: New file.
109002         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109003         (Depends-on): Add unitypes.
109004         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109005         (u16_mbtouc_aux): Move out to separate file.
109006         (u16_mbtouc): Use ucs4_t, uint16_t types.
109007         * lib/unistr/utf16-ucs4.c: New file.
109009         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109010         (Depends-on): Add unitypes.
109011         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109012         (u8_uctomb_aux): Move out to separate file.
109013         (u8_uctomb): Use ucs4_t, uint8_t types.
109014         * lib/unistr/ucs4-utf8.c: New file.
109016         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109017         (Depends-on): Add unitypes.
109018         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109019         (u16_uctomb_aux): Move out to separate file.
109020         (u16_uctomb): Use ucs4_t, uint16_t types.
109021         * lib/unistr/ucs4-utf16.c: New file.
109023 2006-12-25  Bruno Haible  <bruno@clisp.org>
109025         * modules/unitypes: New file.
109026         * lib/unitypes.h: New file.
109027         * MODULES.html.sh (func_all_modules): New section "Unicode string
109028         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109029         this section. Add unitypes.
109031 2007-01-08  Bruno Haible  <bruno@clisp.org>
109033         Avoid variable names that conflict with those from libtool.
109034         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109035         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109036         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109037         library_names_spec to acl_library_names_spec, hardcode_* to
109038         acl_hardcode_*.
109039         Reported by Ralf Wildenhues.
109041 2007-01-08  Bruno Haible  <bruno@clisp.org>
109043         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109044         definition.
109045         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109046         definition.
109047         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109048         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109049         definition.
109050         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109051         definition.
109052         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109053         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109054         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109055         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109056         definition.
109057         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109058         definition.
109059         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109060         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109061         GC_USE_<algorithm>.
109062         * lib/gc-libgcrypt.c: Likewise.
109063         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109064         * modules/gc-arctwo (configure.ac): Likewise.
109065         * modules/gc-des (configure.ac): Likewise.
109066         * modules/gc-hmac-md5 (configure.ac): Likewise.
109067         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109068         * modules/gc-md2 (configure.ac): Likewise.
109069         * modules/gc-md4 (configure.ac): Likewise.
109070         * modules/gc-md5 (configure.ac): Likewise.
109071         * modules/gc-random (configure.ac): Likewise.
109072         * modules/gc-rijndael (configure.ac): Likewise.
109073         * modules/gc-sha1 (configure.ac): Likewise.
109075 2007-01-08  Bruno Haible  <bruno@clisp.org>
109077         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109078         macro definition.
109079         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109080         definition.
109081         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109082         definition.
109083         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109084         * modules/fcntl-safer (configure.ac): Likewise.
109085         * modules/fopen-safer (configure.ac): Likewise.
109086         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109087         GNULIB_FWRITEERROR macro definition.
109089 2007-01-08  Bruno Haible  <bruno@clisp.org>
109091         * m4/gnulib-common.m4: New file.
109092         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109093         (func_get_filelist): Add m4/gnulib-common.m4.
109095 2007-01-08  Bruno Haible  <bruno@clisp.org>
109097         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109098         command.
109100 2007-01-08  Jim Meyering  <jim@meyering.net>
109102         Use a more robust test for a "can't happen" condition.
109103         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109104         narrowed the st_size value.  Presuming the "can't happen" condition
109105         is true, that narrowing could conceivably convert an invalid st_size
109106         value into a valid one.  Instead, use a change based on Matthew
109107         Woehlke's original patch.
109109         Slight readability improvement: use an assert-like macro
109110         in place of literal "abort ()" uses.
109111         * lib/fts.c (fts_assert): Define.
109112         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109113         Use this macro instead of a bare 'abort'.
109115 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109117         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109118         simply work around them.
109119         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109120         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109121         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109122         declaring.
109123         Don't bother to define as macros, since the standard doesn't require it.
109124         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109125         longer worry about IRIX 5.3.
109126         (HAVE_WCTYPE_CTMP_BUG): Remove.
109128 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109130         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109131         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109132         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109133         Problems reported by Georg Schwarz for IRIX 5.3.
109135         * gnulib-tool (autoconf_minversion): Take the maximum version number
109136         found, not the minimum.  Problem reported by James Youngman.
109138 2007-01-03  Karl Berry  <karl@gnu.org>
109140         * doc/error.texi: new file, explaining interaction with progname.
109141         * doc/gnulib.texi: include it.  Update copyright.
109143 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109145         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109146         AC_CANONICAL_HOST, to improve autobuild outputs.
109148 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109149             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109151         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109152         sockets, server sockets, and other file descriptors.  Count errors
109153         to compute the return value.  Reorder the code a bit to be easier
109154         to follow.  Don't set event bits that were not requested (except
109155         POLLERR and POLLHUP).
109157 2007-01-01  Bruno Haible  <bruno@clisp.org>
109159         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109161 2007-01-03  Jim Meyering  <jim@meyering.net>
109163         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109165 2007-01-02  Bruno Haible  <bruno@clisp.org>
109167         * modules/settime (Include): Require timespec.h.
109168         * modules/nanosleep (Include): Likewise.
109170 2007-01-01  Bruno Haible  <bruno@clisp.org>
109172         * gnulib-tool (func_emit_copyright_notice): Bump year.
109173         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109175 2007-01-01  Bruno Haible  <bruno@clisp.org>
109177         Improve support for OpenBSD.
109178         * build-aux/config.rpath (libname_spec): Export.
109179         (library_names_spec): New variable. Export.
109180         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109181         library_names_spec from the config.rpath output. Locate shared library
109182         through the name pattern in library_names_spec.
109184 2007-01-01  Eric Blake  <ebb9@byu.net>
109186         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109188 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109190         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109191         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109192         assume the C locale, and avoid an "eval" that could cause trouble.
109193         Problem with SORT reported by Bob Proulx.
109195         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109196         Define.  Trivial patch from Henning Nielsen Lund, originally
109197         sent to bug-grep@gnu.org today.
109199 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109201         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109202         struct stat.  Problem reported by Henning Nielsen Lund.
109203         * lib/acl.c: Include acl.h first, to check interface.  Don't
109204         bother to include sys/types.h and sys/stat.h again.
109206 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109208         Import the following change from libc; problem reported by
109209         Sven Verdoolaege.
109211         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
109213         [BZ #1373]
109214         * lib/argp.h: Remove __NTH for __argp_usage inline function.
109216 2006-12-28  Jim Meyering  <jim@meyering.net>
109218         * build-aux/announce-gen: Do not assume that the package
109219         builds any of tar.gz, tar.bz2, and .xdelta files.
109220         Suggestion from Simon Josefsson.
109222 2006-12-28  Simon Josefsson  <simon@josefsson.org>
109224         * modules/announce-gen: New file.
109226 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
109228         * lib/mbchar.h: Just include <wctype.h>; the wctype module
109229         handles its gotchas now.
109230         * lib/mbswidth.c: Likewise.
109231         * lib/wcwidth.h: Likewise.
109232         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
109233         and iswcntrl; the wctype module does this stuff now.
109234         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109236         * modules/mbchar (Depends-on): Add wctype.
109237         * modules/mbswidth (Depends-on): Likewise.
109238         * modules/wcwidth (Depends-on): Likewise.
109240 2006-12-27  Eric Blake  <ebb9@byu.net>
109242         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
109243         module uses more than what <wctype.h> is required to provide.
109245 2006-12-26  Eric Blake  <ebb9@byu.net>
109247         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109249 2006-12-26  Eric Blake  <ebb9@byu.net>
109251         * modules/absolute-header: New module.
109252         * modules/fcntl (Depends-on): Depend on it.
109253         * modules/inttypes (Depends-on): Likewise.
109254         * modules/stdint (Depends-on): Likewise.
109255         * modules/sys_stat (Depends-on): Likewise.
109256         * modules/wctype (Depends-on): Likewise.
109257         * MODULES.html.sh (Support for building libraries and
109258         executables): Document it.
109260 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109262         * gnulib-tool (SED): Remove, undoing previous change.
109263         The problem was that it broke coreutils on Solaris, because
109264         "sed --posix" leaked into a makefile.
109265         (sed): New alias, if 'alias' and GNU sed.
109267 2006-12-24  Jim Meyering  <jim@meyering.net>
109269         Work around an fchownat bug in glibc-2.4:
109270         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109271         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109272         in spite of the -P option.
109273         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109274         New macros.
109275         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109276         * modules/openat (Files): Add lib/fchownat.c.
109277         * lib/openat.c (fchownat): Don't define here.  Move to...
109278         * lib/fchownat.c: ...this new file.
109280 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109282         Fix bug reported by Bruno Haible in
109283         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109284         where quotearg.c didn't compile on Mac OS X 10.2 because it
109285         lacks <wchar.h> and wint_t.
109286         * lib/wctype_.h (__wctype_wint_t): New type.
109287         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109288         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109289         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109290         Arg is now of type __wctype_wint_t, not wint_t.
109291         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109292         substitute HAVE_WINT_T.
109293         * modules/wctype (Files): Add m4/wint_t.m4.
109294         (wctype.h): Substitute HAVE_WINT_T.
109296 2006-12-23  Bruno Haible  <bruno@clisp.org>
109298         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109300 2006-12-23  Bruno Haible  <bruno@clisp.org>
109302         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109303         S_ISLNK.
109304         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109305         mingw.
109307 2006-12-22  Bruno Haible  <bruno@clisp.org>
109309         * lib/copy-file.c: Include acl.h.
109310         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109311         Close the file descriptors only after being done with copy_acl.
109312         * modules/copy-file (Depends-on): Add acl.
109314 2006-12-22  Bruno Haible  <bruno@clisp.org>
109316         * gnulib-tool (SED): New variable.
109317         Use $SED instead of sed everywhere.
109319 2006-12-22  Bruno Haible  <bruno@clisp.org>
109321         * modules/no-c++: New file.
109322         * m4/no-c++.m4: New file.
109323         * MODULES.html.sh (Support for building libraries and executables):
109324         Add no-c++.
109326 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109328         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109329         Include <limits.h>, and use its INT_MAX to rewrite the
109330         j loop so that it does not overflow 'int'.  Problem reported by
109331         Ralf Wildenhues in
109332         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109333         Play it safe by shifting left by 1 rather than multiplying by 2,
109334         as GCC is less likely to optimize this away when the value
109335         is signed (when it assumes overflow leads to undefined behavior).
109336         Also, don't assume time_t uses two's complement.
109338 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109340         * MODULES.html.sh: New module wctype.
109341         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109342         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109343         <wctype.h>, since the new wctype module should fix this.
109344         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109345         the wctype module should arrange for it.
109346         * lib/regex_internal.h: Likewise.
109347         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109348         since the wctype module should handle this now.
109349         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109350         * modules/fnmatch (Depends-on): Add wctype.
109351         * modules/quotearg (Depends-on): Likewise.
109352         * modules/regex (Depends-on): Likewise.
109354 2006-12-19  Bruno Haible  <bruno@clisp.org>
109356         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109357         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109359 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109361         * modules/savewd (Depends-on): Fix dependency on fcntl.
109363 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109365         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109366         conforms to C99, rather than relying on the user's environment
109367         setting of STDINT_H.
109369 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109370         and Eric Blake  <ebb9@byu.net>
109372         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109373         This is more consistent with the other defines here.
109374         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109375         Port to z/OS.  Problem reported by Paul Gilmartin.
109376         Change local vars to use gl_ prefix rather than ac_.
109377         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109378         with other defines.
109379         * modules/double-slash-root: New module.
109380         * modules/dirname (Files): Remove m4/double-slash-root.m4.
109381         (Depends-on): Add double-slash-root.
109382         * MODULES.html.sh (File system functions): Mention new module.
109384 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
109386         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
109387         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
109388         This is for the benefit of gzip, which doesn't do i18n.
109390 2006-12-12  Jim Meyering  <jim@meyering.net>
109392         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
109393         Reported by Andreas Schwab <schwab@suse.de>.
109395 2006-12-12  Bruno Haible  <bruno@clisp.org>
109397         Merge these changes.
109398         2006-09-05  Bruno Haible  <bruno@clisp.org>
109399         * lib/iconvme.c (iconv_string): No need to save and restore errno when
109400         iconv_alloc succeeded.
109401         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
109402         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
109403         test for " && dest " at the end - dest is always != NULL there. Call
109404         iconv with 4xNULL arguments initially, to reset the state. Call iconv
109405         with 2xNULL arguments, also to flush the state storage. Handle the
109406         IRIX iconv behaviour. Realloc the final result, to throw away unused
109407         memory.
109409 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
109411         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
109412         and fchmodat unconditionally, since glibc 2.4 has them.
109413         Problem reported by Arkadiusz Miskiewicz.
109415 2006-12-10  Bruno Haible  <bruno@clisp.org>
109417         * gnulib-tool (func_import): Show the include files only for those
109418         modules that are copied and specified.
109419         Reported by Karl Berry.
109421 2006-12-08  Jim Meyering  <jim@meyering.net>
109423         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
109424         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
109426         * build-aux/announce-gen: Add two new options, both optional:
109427         --bootstrap-tools=TOOL_LIST
109428               a comma-separated list of tools, e.g.,
109429               autoconf,automake,bison,gnulib
109430         --gnulib-snapshot-date=DATE
109431               if gnulib is in the bootstrap tool list,
109432               then report this as the snapshot date.
109433               If not specified, use the current date/time.
109434               If you specify a date here, be sure it's UTC.
109436 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109438         * tests/test-argp-2.sh: Fix test to match actual output.
109439         (func_compare): Fix sed script to be portable.
109441 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
109443         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
109444         workaround for this case.  It is not autoconfigured now; offhand
109445         it's hard to see how to autoconfigure it.
109447 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
109449         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
109450         a directory that is about to be chowned.  Such a directory's
109451         initial file permissions should permit the owner only and this
109452         should not be changed until after the chown, since the group and
109453         other bits would be incorrect if they granted permission before
109454         the chown.
109456         Fix porting problem for iswctype reported by Georg Schwarz in:
109457         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
109458         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
109459         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
109460         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
109461         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
109463 2006-12-03  Jim Meyering  <jim@meyering.net>
109465         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
109466         p->fts_statp may not yet be defined.
109467         (fts_read): Instead, set it in the caller, once p->fts_statp is
109468         sure to be defined, and corresponds to a top-level directory.
109469         This bug made du -x fail.  Here's the coreutils test case:
109470         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
109471         Reported by Mike Frysinger.
109473 2006-12-01  Jim Meyering  <jim@meyering.net>
109475         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
109476         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
109477         Reported by Simon Josefsson.
109479 2006-11-30  Jim Meyering  <jim@meyering.net>
109481         * m4/warning.m4: Use the all-permissive copyright notice
109482         recommended by RMS (rather than LGPL).
109483         * m4/vararrays.m4: Likewise.
109484         * m4/flexmember.m4: Likewise.
109486 2006-11-29  Bruno Haible  <bruno@clisp.org>
109488         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109489         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
109490         using +=.
109491         Reported by Simon Josefsson <simon@josefsson.org>.
109493 2006-11-28  James Youngman  <jay@gnu.org>
109495         * README: Advise users that they might find the bug-gnulib@gnu.org
109496         and autotools-announce@gnu.org mailing lists useful.
109498 2006-11-28  Bruno Haible  <bruno@clisp.org>
109500         * m4/ptrdiff_max.m4: Remove file.
109502 2006-11-21  Bruno Haible  <bruno@clisp.org>
109504         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
109505         _AC_COMPUTE_INT.
109506         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109507         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
109508         _AC_COMPUTE_INT.
109509         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109510         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
109511         _AC_COMPUTE_INT.
109512         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109514 2006-11-28  Jim Meyering  <jim@meyering.net>
109516         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
109517         warning from "gcc -Wshadow" about shadowing the builtin.
109519 2006-11-27  Bruno Haible  <bruno@clisp.org>
109521         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
109522         _AC_COMPUTE_INT.
109523         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109525 2006-11-27  Bruno Haible  <bruno@clisp.org>
109526             Paul Eggert  <eggert@cs.ucla.edu>
109528         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
109530 2006-11-26  Bruno Haible  <bruno@clisp.org>
109532         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109533         noinst_LTLIBRARIES.
109535 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
109536             Bruno Haible  <bruno@clisp.org>
109538         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
109539         if compiling with "gcc -ansi".
109541 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
109543         Fix some incompatibilities with gcc -ansi -pedantic.
109544         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
109545         if compiling pedantically with GCC, unless it's C99 or later.
109546         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
109547         it mishandles gcc -ansi -pedantic as well.
109548         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
109549         if gcc -pedantic.
109550         * lib/regexec.c (check_node_accept_bytes): Don't use auto
109551         initializers for struct if -pedantic, unless it's C99 or later.
109553 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
109555         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
109556         Don't close an fd more than once. Identical atimes indicate
109557         success, not failure.
109559 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
109561         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
109563 2006-11-23  Jim Meyering  <jim@meyering.net>
109565         * build-aux/announce-gen: New file.  From coreutils.
109567 2006-11-22  Jim Meyering  <jim@meyering.net>
109569         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
109570         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
109571         (fts_read): Use a temporary to narrow the overused st_size member
109572         before using it in a switch statement.  Reported by Matthew Woehlke.
109574         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
109575         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
109577 2006-11-20  Bruno Haible  <bruno@clisp.org>
109579         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
109580         changequote instead of pairs of brackets.
109581         Reported by Andreas Schwab <schwab@suse.de>.
109583 2006-11-21  Jim Meyering  <jim@meyering.net>
109585         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
109586         so as to remain compatible with older compilers.
109587         Patch from Michael Deutschmann.
109589 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109591         * MODULES.html.sh (File system functions): Add openat.
109593         * lib/openat.h (rpl_fstatat): New macro, if
109594         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
109595         (fstatat): Define to rpl_fstatat under the same conditions,
109596         unless COMPILING_FSTATAT.
109597         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
109598         seems to have the bug.
109599         * lib/fstatat.c: New file.
109600         * modules/openat (Files): Add it.
109602 2006-11-20  Bruno Haible  <bruno@clisp.org>
109604         * Makefile: New file.
109606 2006-11-20  Jim Meyering  <jim@meyering.net>
109608         The beginnings of syntax-related checks for gnulib.
109609         * lib/Makefile: New file.
109610         * lib/t-idcache: New script.  Ensure that the two halves of
109611         idcache.c stay in sync.
109613         * lib/idcache.c: Adjust comments in user- and group- portions to
109614         be more accurate, and to be consistent with one another.
109616 2006-11-20  Jim Meyering  <jim@meyering.net>
109618         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
109619         continue using the flexible array member (thus, this module performs
109620         half as many malloc calls), with the addition that...
109621         (getgroup, getuser): Consistently record a non-match via an empty
109622         "name" string, and map an empty string match to a NULL return value.
109623         * modules/idcache (Depends-on): Re-add flexmember.
109625         * lib/idcache.c (getuser): Remove all uses of the register keyword.
109626         (getuidbyname, getgroup, getgidbyname): Likewise.
109628         Use cleaner syntax: NULL rather than 0.
109629         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
109631 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109633         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
109634         It mishandled the case where the group was missing.
109635         Problem reported by Greg Schafer.
109636         * modules/idcache: Likewise.
109638 2006-11-18  Jim Meyering  <jim@meyering.net>
109640         * check-module (%exempt_header): Add exception for some
109641         conditionally-included headers.
109643         * modules/i-ring (Depends-on): Add verify.
109644         (License): Change to LGPL.
109646 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
109648         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
109649         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
109650         and inttostr.h.  Use snprintf rather than uinttostr, so that
109651         LGPLed code doesn't depend on GPLed.
109653 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
109655         * modules/inline (License): Change from GPL to LGPL.
109657 2006-11-17  Jim Meyering  <jim@meyering.net>
109659         * modules/d-type (License): Switch to LGPL.
109661 2006-11-15  Bruno Haible  <bruno@clisp.org>
109663         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
109665 2006-11-15  Eric Blake  <ebb9@byu.net>
109667         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
109668         the module dependency.
109670 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109671             Bruno Haible  <bruno@clisp.org>
109673         * gnulib-tool (func_create_testdir): Add license consistency check.
109675 2006-11-15  Eric Blake  <ebb9@byu.net>
109677         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
109678         random "(cached)" in configure output.
109680 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109682         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
109683         test for conforming inttypes.h is both announced and cached.
109685         * MODULES.html.sh (seen_modules, seen_files): New variables.
109686         (func_module): Rewrite to use a few less gnulib-tool and sed
109687         invocations.  Avoid a couple of quadratic algorithms for ...
109688         (missed_modules, missed_files): ... these, with ...
109689         (func_append, func_tmpdir): ... these new functions, from
109690         gnulib-tool.  Analogously, install traps for cleanup.
109692         * tests/test-gc.c (main): Remove unused variables.
109693         * tests/test-read-file.c: Include stdlib.h, for 'free'.
109695 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
109697         * modules/inttostr (License): Change to LGPL.
109699 2006-11-14  Eric Blake  <ebb9@byu.net>
109701         * modules/tempname (License): Change to LGPL.
109703 2006-11-14  Eric Blake  <ebb9@byu.net>
109705         * doc/functions.texi (Function Portability): *printf functions on
109706         Cygwin now understand all POSIX size specifiers.
109708 2006-11-14  Bruno Haible  <bruno@clisp.org>
109710         * modules/c-ctype (License): Change to LGPL.
109712 2006-11-12  Bruno Haible  <bruno@clisp.org>
109714         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
109715         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
109716         for GNOME libraries, for which the include files are installed in
109717         subdirectories of $prefix/include.
109719 2006-11-12  Bruno Haible  <bruno@clisp.org>
109721         * m4/lib-link.m4: Require at least autoconf-2.54.
109722         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
109723         name to underscores for the --with option.
109725 2006-11-13  Bruno Haible  <bruno@clisp.org>
109727         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
109728         the tests directory.
109729         Reported by Ralf Wildenhues.
109731 2006-11-13  Bruno Haible  <bruno@clisp.org>
109733         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
109734         (func_emit_initmacro_end): Undo the override here.
109735         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
109736         Works around the famous automake error in coreutils.
109738 2006-11-13  Eric Blake  <ebb9@byu.net>
109740         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
109741         element, not its node.
109743 2006-11-12  Bruno Haible  <bruno@clisp.org>
109745         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
109746         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
109748 2006-11-12  Bruno Haible  <bruno@clisp.org>
109750         * gnulib-tool: New option --local-symlink.
109751         (func_usage): Document it.
109752         (lsymbolic): New variable.
109753         (func_import, func_create_testdir): If --symlink was not specified,
109754         test whether --local-symlink was specified and the file comes from
109755         the local_gnulib_dir.
109757 2006-11-12  Bruno Haible  <bruno@clisp.org>
109759         * gnulib-tool (func_ln): New function.
109760         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
109762 2006-11-12  Bruno Haible  <bruno@clisp.org>
109764         Finish support for source files in subdirectories.
109765         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
109766         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
109767         AUTOMAKE_OPTIONS.
109768         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
109770 2006-11-12  Bruno Haible  <bruno@clisp.org>
109772         * gnulib-tool (func_get_automake_snippet): Synthesize also an
109773         EXTRA_lib_SOURCES augmentation.
109774         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
109776 2006-11-12  Jim Meyering  <jim@meyering.net>
109778         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
109779         file descriptors.  This also averts a failure on systems with
109780         native openat support when a traversed directory lacks "x" access.
109781         * lib/fts_.h: Include "i-ring.h"
109782         (struct FTS) [fts_fd_ring]: New member.
109783         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
109784         (FCHDIR): Add parentheses.
109785         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
109786         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
109787         When descending, rather than simply closing the previous
109788         fts_cwd_fd value, push that file descriptor onto the ring.
109789         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
109790         (fts_open): Initialize the new fd_ring member.
109791         (fts_close): Clear the ring.
109792         (fts_safe_changedir): When possible, use our new fd_ring to skip
109793         the diropen and fstat and dev/ino comparison that would normally
109794         accompany a virtual `chdir ("..")'.
109796         * modules/fts (Depends-on): Add i-ring.
109797         * modules/i-ring: New module.
109798         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
109799         * m4/i-ring.m4: New file.
109801 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109803         * gnulib-tool (func_create_testdir): Fix replacement of
109804         `build-aux' in configure.ac.  Run autotools in gltests
109805         subdirectory.
109806         (func_create_testdir, func_create_megatestdir, test): There is
109807         no need for '--force' in most autotool invocations in a new
109808         tree.  Actually fail the whole test if any of the tools, or the
109809         configure or make stages fail.
109811         Sync from Automake.
109812         * build-aux/gnupload: Revert last change.  Add pointer to upload
109813         instructions of the GNU Maintenance Instructions.
109814         Suggestion by Karl Berry.
109816 2006-11-10  Jim Meyering  <jim@meyering.net>
109818         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
109820 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109822         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
109823         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
109824         (bind_textdomain_codeset) [! ENABLE_NLS]:
109825         Evaluate all the arguments.  That way, callers get compatible behavior
109826         if the arguments have side effects.  Also, it avoids some GCC
109827         diagnostics in some cases; Joel E. Denny reported problems when Bison
109828         was configured with --enable-gcc-warnigs.
109830 2006-11-10  Jim Meyering  <jim@meyering.net>
109832         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
109833         relevant options in CFLAGS (like -O, -fno-inline) are taken into
109834         account.
109836 2006-11-10  Jim Meyering  <jim@meyering.net>
109838         * modules/inline: New file/module.
109839         * modules/xalloc (Files): Remove m4/inline.m4.
109840         (Depends-on): Add inline, instead.
109841         * modules/oset: Likewise.
109842         * modules/list: Likewise.
109844 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109846         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
109847         Problem reported by Matthew Woehlke.
109849 2006-11-09  Bruno Haible  <bruno@clisp.org>
109851         * lib/tempname.c (gen_tempname): Remove variant that invokes
109852         __gen_tempname.
109853         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
109854         __gen_tempname.
109856 2006-11-08  Bruno Haible  <bruno@clisp.org>
109858         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
109859         to 'yes' instead of 'cross-compiling'.
109861 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
109863         * lib/quotearg.h (quotearg_free): New decl.
109864         * lib/quotearg.c (quotearg_free): New function.
109865         (slot0, nslots, slotvec0, slotvec):
109866         Now file-scope so that quotearg_free can get at them.
109868 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109870         Sync from Automake.
109871         * build-aux/gnupload: Add missing 'gnu' to example URL.
109872         Report by Karl Berry.
109874 2006-11-08  Bruno Haible  <bruno@clisp.org>
109876         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
109877         Suggested by Paul Eggert.
109879 2006-11-08  Jim Meyering  <jim@meyering.net>
109881         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
109882         It's already included if !_LIBC.
109883         (fts_safe_changedir): Add a comment.
109885 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
109887         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
109888         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
109889         Matthew Woehlke.
109891         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
109892         definitions up, to avoid colliding with change below.
109893         (static_inline) [HAVE_INLINE]: New macro.
109894         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
109895         Provide extern decls when !HAVE_INLINE.  Do not define unless
109896         static_inline is defined, either by us or by xmalloc.c.  Use
109897         static_inline rather than static inline.
109898         (XCALLOC): Optimize sizeof(T) = 1 case.
109899         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
109901 2006-11-07  Bruno Haible  <bruno@clisp.org>
109903         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
109904         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
109905         AC_C_INLINE.
109906         * modules/xalloc (Files): Add m4/inline.m4.
109908 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109910         * README: Fix typo.
109911         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
109912         (Miscellanous Notes): ...from this.
109914 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
109916         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
109917         Mention that offsetof should be used instead of sizeof.
109918         From Bruno Haible.
109920 2006-11-07  Bruno Haible  <bruno@clisp.org>
109922         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
109924 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
109926         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
109927         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
109928         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
109929         (gl_tree_add_before, gl_tree_add_after):
109930         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
109931         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
109932         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
109933         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
109934         (gl_linked_add_after, gl_linked_add_at): Likewise.
109935         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
109936         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
109937         (gl_tree_add_before, gl_tree_add_after): Likewise.
109938         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
109939         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
109940         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
109942 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109944         * lib/gl_oset.h: Use C comment style, not C++ comment style.
109946 2006-11-06  Bruno Haible  <bruno@clisp.org>
109948         * m4/inline.m4: New file.
109949         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
109950         * modules/list (Files): Add m4/inline.m4.
109951         * modules/oset (Files): Likewise.
109953 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
109955         * lib/idcache.c: Include <stddef.h>, for offsetof.
109956         (struct userid.name): Change from char * to a flexible array member.
109957         All uses changed.
109958         * modules/idcache (Depends-on): Add flexmember.
109960         * MODULES.html.sh (Core language properties): New module flexmember.
109961         * modules/flexmember, m4/flexmember.m4: New files.
109963         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
109964         inline functions that are identical with the old xnmalloc_inline,
109965         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
109966         that we can avoid some unnecessary integer multiplications and
109967         divisions in the common case where the element size is known at
109968         compile time.
109969         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
109970         needed.
109971         (xnboundedmalloc): Remove.
109972         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
109973         arguments, for consistency with rest of this header.
109974         (xcharalloc): Rewrite using XNMALLOC.
109975         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
109976         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
109977         versions have been moved to lib/xalloc.h and renamed to be the
109978         non-*_inline versions.
109979         (xmalloc, xrealloc): Implement without reference to the xnmalloc
109980         and xnrealloc functions, since those functions are now inline and
109981         now call us.
109982         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
109983         renaming described above.
109984         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
109985         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
109986         captures the dependency in AC_C_INLINE.
109988         New module canonicalize-lgpl, proposed by Charles Wilson in
109989         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
109990         with a few small changes afterwards.
109991         * MODULES.html.sh (File system functions): New module
109992         canonicalize-lgpl.
109993         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
109994         and canonicalize_file_name.
109995         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
109996         * modules/canonicalize-lgpl: New files.
109998 2006-11-05  Bruno Haible  <bruno@clisp.org>
110000         * gnulib-tool (func_import, func_create_testdir): Create directories
110001         also for files in subdirectories of lib/.
110003 2006-11-05  Bruno Haible  <bruno@clisp.org>
110005         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110006         ANSI C compliant.
110008 2006-11-03  Bruno Haible  <bruno@clisp.org>
110010         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110011         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110012         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110013         (xnboundedmalloc): New inline function.
110014         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110015         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110016         xmalloc.
110017         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110018         xmalloc.
110019         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110020         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110021         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110022         xmalloc.
110023         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110024         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110025         xmalloc.
110026         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110027         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110028         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110029         xmalloc.
110030         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110031         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110032         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110033         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110034         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110035         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110036         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110038 2006-11-03  Bruno Haible  <bruno@clisp.org>
110040         * lib/c-ctype.h [C++]: Define functions without name mangling.
110041         * lib/fwriteerror.h [C++]: Likewise.
110042         * lib/gcd.h [C++]: Likewise.
110043         * lib/linebreak.h [C++]: Likewise.
110045 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110047         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110048         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110049         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110050         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110051         Check for functions and headers just once.
110052         Check for declaration of canonicalize_file_name.
110053         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110055 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110057         * gnulib-tool (func_import): Fix typo in actioncmd.
110059 2006-11-02  Bruno Haible  <bruno@clisp.org>
110061         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110062         newline sequence in the Makefile.am snippet as a space, like "make"
110063         does.
110064         Reported by Roger Persson <perrog@gmail.com>.
110066 2006-11-01  Bruno Haible  <bruno@clisp.org>
110068         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110069         already declared in <string.h>.
110070         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110072 2006-11-01  Bruno Haible  <bruno@clisp.org>
110074         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110075         * lib/strcase.h: Include <string.h>.
110076         (strcasecmp): Define to rpl_strcasecmp here.
110078 2006-11-01  Bruno Haible  <bruno@clisp.org>
110080         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110082 2006-11-01  Eric Blake  <ebb9@byu.net>
110084         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110086         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110088 2006-10-29  Bruno Haible  <bruno@clisp.org>
110090         Make it compile in C++ mode.
110091         * lib/full-write.c (full_rw): Add a cast.
110093 2006-11-01  Bruno Haible  <bruno@clisp.org>
110095         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110096         be POSIX compliant.
110097         Reported by Roger Persson <perrog@gmail.com>.
110099 2006-11-01  Eric Blake  <ebb9@byu.net>
110101         * lib/getopt_.h: Fix comments.
110103 2006-10-31  Eric Blake  <ebb9@byu.net>
110105         * modules/tmpdir (Depends-on): Add sys_stat.
110106         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110107         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110108         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110109         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110110         tempname.
110112 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110114         Avoid some C++ diagnostics reported by Bruno Haible.
110115         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110116         xmalloc.
110117         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110118         (struct slotvec): Move to top level.
110119         (quotearg_n_options): Rewrite to avoid xmalloc.
110120         * lib/xalloc.h (xcharalloc): New function.
110121         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110122         [defined __cplusplus]: Add function template that provides result
110123         type propagation.  This part of the change is from Bruno Haible.
110125 2006-10-29  Bruno Haible  <bruno@clisp.org>
110127         Make it compile in C++ mode.
110128         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110129         * lib/strnlen1.c (strnlen1): Cast memchr result.
110130         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110131         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110132         (create_temp_dir): Rename local variable 'template'.
110133         (compile_csharp_using_sscli): Add cast.
110134         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110135         * lib/findprog.c (find_in_path): Likewise.
110136         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110137         * lib/wait-process.c (register_slave_subprocess): Likewise.
110139 2006-10-22  Bruno Haible  <bruno@clisp.org>
110141         * modules/tsearch: New file.
110142         * lib/tsearch.h: New file.
110143         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110144         * m4/tsearch.m4: New file.
110145         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110147 2006-10-29  Eric Blake  <ebb9@byu.net>
110149         * lib/arcfour.c: Assume config.h.
110150         * lib/arctwo.c: Likewise.
110151         * lib/base64.c: Likewise.
110152         * lib/check-version.c: Likewise.
110153         * lib/crc.c: Likewise.
110154         * lib/des.c: Likewise.
110155         * lib/gc-gnulib.c: Likewise.
110156         * lib/gc-libgcrypt.c: Likewise.
110157         * lib/gc-pbkdf2-sha1.c: Likewise.
110158         * lib/getaddrinfo.c: Likewise.
110159         * lib/getdelim.c: Likewise.
110160         * lib/getline.c: Likewise.
110161         * lib/hmac-md5.c: Likewise.
110162         * lib/hmac-sha1.c: Likewise.
110163         * lib/iconvme.c: Likewise.
110164         * lib/md2.c: Likewise.
110165         * lib/md4.c: Likewise.
110166         * lib/memxor.c: Likewise.
110167         * lib/read-file.c: Likewise.
110168         * lib/readline.c: Likewise.
110169         * lib/rijndael-alg-fst.c: Likewise.
110170         * lib/rijndael-api-fst.c: Likewise.
110171         * lib/xgetdomainname.c: Likewise.
110173 2006-10-28  Eric Blake  <ebb9@byu.net>
110175         * lib/xstrndup.c: Assume config.h.
110177 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110179         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110180         stat-macros.h is now for our own macros, whereas stat_h is for
110181         macros in the <sys/stat.h> name space.
110182         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110183         (STAT_MACROS_H): Remove.
110184         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110185         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110186         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110187         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110188         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110189         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110190         Move these macros to ...
110191         * lib/stat_.h: here.  Don't include stat-macros.h.
110192         * lib/canonicalize.c: Don't include stat-macros.h.
110193         * lib/chown.c: Likewise.
110194         * lib/euidaccess.c: Likewise.
110195         * lib/file-type.c: Likewise.
110196         * lib/filemode.c: Likewise.
110197         * lib/glob.c: Likewise.
110198         * lib/isapipe.c: Likewise.
110199         * lib/lchown.c: Likewise.
110200         * lib/lstat.c: Likewise.
110201         * lib/mkdir-p.c: Likewise.
110202         * lib/rmdir.c: Likewise.
110203         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110205         unless mkdir isn't declared, to speed up 'configure'.
110206         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110207         would define all the S_* symbols.
110208         * modules/canonicalize (Depends-on):
110209         Depend on sys_stat, not stat-macros.
110210         * modules/chown: Likewise.
110211         * modules/euidaccess: Likewise.
110212         * modules/filemode: Likewise.
110213         * modules/file-type: Likewise.
110214         * modules/glob: Likewise.
110215         * modules/isapipe: Likewise.
110216         * modules/lchown: Likewise.
110217         * modules/lstat: Likewise.
110218         * modules/mkancesdirs: Likewise.
110219         * modules/rmdir: Likewise.
110220         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
110221         * modules/modechange: Likewise.
110222         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
110223         (configure.ac): Remove gl_STAT_MACROS.
110224         * modules/sys_stat (Depends-on): Remove stat-macros.
110226 2006-10-27  Bruno Haible  <bruno@clisp.org>
110228         * m4/signed.m4: Remove file.
110229         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
110230         invocation.
110231         * modules/vasnprintf (Files): Remove m4/signed.m4.
110233 2006-10-27  Bruno Haible  <bruno@clisp.org>
110235         Update to GNU gettext 0.16.
110236         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
110237         m4/inttypes-h.m4, m4/signed.m4.
110238         * m4/gettext.m4: Update to GNU gettext 0.16.
110239         * m4/intl.m4: New file, from GNU gettext.
110240         * m4/intldir.m4: New file, from GNU gettext.
110241         * config/srclist.txt: Update
110243 2006-10-27  Eric Blake  <ebb9@byu.net>
110245         * MODULES.html.sh: Document tempname.
110246         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
110247         dependencies.
110248         (Files): Move lib/tempname.c...
110249         * modules/tempname: ...to this new module.
110250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110251         (gl_PREREQ_TEMPNAME): Move...
110252         * m4/tempname.m4: ...to this new file.
110253         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110254         * modules/sys_stat (Depends-on): Add stat-macros.
110255         * lib/stat_.h (includes): Pick up stat macros.
110256         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110257         if stat macros are broken.
110258         * lib/tempname.c (includes): No need to include "stat-macros.h".
110259         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110260         (direxists, __path_search) [!_LIBC]: Don't compile these in
110261         gnulib; the tmpdir module covers that.
110262         * lib/tempname.h: New file.
110264 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110266         * COPYING: Explain how gnulib-tool converts licence headers.
110267         Almost all wording by Eric Blake.
110269 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110271         * lib/mbchar.h (is_basic_table): Make read-only.
110272         * lib/mbchar.c (is_basic_table): Likewise.
110273         Reported by John Darrington.
110275 2006-10-25  Bruno Haible  <bruno@clisp.org>
110277         * lib/progname.h (set_program_name): Undefine before defining.
110279 2006-10-25  Bruno Haible  <bruno@clisp.org>
110281         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110282         false for non-gcc C++ compilers.
110283         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110285 2006-10-24  Bruno Haible  <bruno@clisp.org>
110287         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110288         iconv implementations like Irix iconv.
110290 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110292         * modules/vararrays: New file.
110293         * m4/vararrays.m4: New file, taken from diffutils.
110294         * MODULES.html.sh: New module vararrays.
110296 2006-10-24  Karl Berry  <karl@gnu.org>
110298         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110299         Don't call GNU Unix.
110301 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110303         * users.txt: Add Libtool.
110305         Sync from Libtool:
110307         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110309         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110310         to gnulib's policy of including config.h unconditionally.
110312 2006-10-24  Bruno Haible  <bruno@clisp.org>
110314         * modules/wcwidth (Files): Add m4/wint_t.m4.
110315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110316         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110318 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110320         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110321         to pacify GCC with some -W flags enabled.  Problem reported by
110322         Bruno Haible.
110324 2006-10-24  Jim Meyering  <jim@meyering.net>
110326         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110327         Reported by Karl Berry.
110329 2006-10-23  Bruno Haible  <bruno@clisp.org>
110331         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110333 2006-10-24  Bruno Haible  <bruno@clisp.org>
110335         * lib/gl_list.h: Use C comment style, not C++ comment style.
110337 2006-10-23  Eric Blake  <ebb9@byu.net>
110339         * lib/getaddrinfo.c (includes): Add missing include.
110341 2006-10-23  Bruno Haible  <bruno@clisp.org>
110342             Paul Eggert  <eggert@cs.ucla.edu>
110344         Ability to rename obstack_free.
110345         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110346         obstack_free.
110347         (obstack_free): Invoke the __obstack_free macro.
110348         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110350 2006-10-23  Bruno Haible  <bruno@clisp.org>
110351             Paul Eggert  <eggert@cs.ucla.edu>
110353         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110354         __argc, __argv from the declaration. (They are defined as macros on
110355         mingw.)
110357 2006-10-22  Bruno Haible  <bruno@clisp.org>
110359         * doc/gnulib-intro.texi: New file.
110360         * doc/gnulib.texi: Include it.
110362 2006-10-21  Bruno Haible  <bruno@clisp.org>
110364         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110365         "Introduction", "Miscellanous Notes", "Particular Modules".
110367 2006-10-21  Bruno Haible  <bruno@clisp.org>
110369         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110370         Change mostlyclean-local rule to avoid sh syntax error from bash
110371         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110373 2006-10-23  Jim Meyering  <jim@meyering.net>
110375         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110376         in place of snprintf.
110378         * modules/inttostr (Files): Add lib/uinttostr.c.
110379         * lib/uinttostr.c (inttostr): New file/function.
110380         * lib/inttostr.h (uinttostr): Declare.
110381         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
110382         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
110383         Add uinttostr.
110384         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
110386 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110388         * lib/canonicalize.c (ELOOP): Define if not already defined.
110389         Problem reported by Bruno Haible in
110390         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
110392 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110394         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
110395         Problem reported by Perry Smith and Ville Laurikari.
110397         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
110398         uses.
110400 2006-10-19  Bruno Haible  <bruno@clisp.org>
110402         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
110403         for mingw.
110405 2006-10-19  Bruno Haible  <bruno@clisp.org>
110407         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
110408         Needed for mingw.
110410 2006-10-19  Bruno Haible  <bruno@clisp.org>
110412         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
110414 2006-10-19  Bruno Haible  <bruno@clisp.org>
110416         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
110417         it.
110419 2006-10-19  Bruno Haible  <bruno@clisp.org>
110421         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
110422         invocation.
110424 2006-10-19  Bruno Haible  <bruno@clisp.org>
110426         * gnulib-tool (func_create_testdir): Don't include ftruncate and
110427         mountlist by default.
110429 2006-10-16  Bruno Haible  <bruno@clisp.org>
110431         * lib/c-strstr.c: Include c-strstr.h.
110433 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110435         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
110436         in a slash.
110438 2006-10-18  Bruno Haible  <bruno@clisp.org>
110440         * lib/lock.h [C++]: Wrap definitions in extern "C".
110442 2006-10-18  Bruno Haible  <bruno@clisp.org>
110444         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
110445         gl_LIBOBJS list.
110447 2006-10-18  Bruno Haible  <bruno@clisp.org>
110449         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
110451 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
110453         * lib/xstrtol.h: Include gettext.h.
110454         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
110455         Problem reported by Eric Blake.
110456         * modules/xstrtol (Depends-on): Add gettext-h.
110458 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
110460         * lib/strftime.c (advance): New macro.
110461         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
110462         incomplete type, so you can't add 0 to it.  Problem and patch
110463         reported by Eelco Dolstra for dietlibc.
110465 2006-10-18  Jim Meyering  <jim@meyering.net>
110467         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
110468         type for a local, and rename it: s/up/user_proc/.
110470 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
110472         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
110473         READ_UTMP_USER_PROCESS.
110474         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
110476 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
110478         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
110479         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
110481 2006-10-17  Eric Blake  <ebb9@byu.net>
110483         * lib/sigprocmask.c (sigprocmask): Fix typo.
110485         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
110487         * modules/clean-temp (Makefile.am): Don't add to make output...
110488         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
110489         config.h.
110491 2006-10-17  Bruno Haible  <bruno@clisp.org>
110493         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
110494         differently if DEFAULT_TEXT_DOMAIN is set.
110496 2006-10-16  Bruno Haible  <bruno@clisp.org>
110498         * lib/clean-temp.c: Include fwriteerror.h.
110500 2006-10-16  Bruno Haible  <bruno@clisp.org>
110502         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
110504 2006-10-16  Bruno Haible  <bruno@clisp.org>
110506         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
110507         * lib/sigprocmask.h: Include <sys/types.h>.
110508         (sigset_t): Use the system's definition if present.
110510 2006-10-17  Eric Blake  <ebb9@byu.net>
110512         * lib/xvasprintf.c (includes): Assume config.h.
110513         * lib/xasprintf.c (includes): Likewise.
110515 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
110517         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
110518         at least as wide as intmax_t.
110520 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
110522         (Imported from Automake.)
110523         * build-aux/gnupload: Update to version 1.1 of directive file.
110525 2006-10-16  Eric Blake  <ebb9@byu.net>
110527         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
110528         match Automake 1.10a.
110530 2006-10-14  Bruno Haible  <bruno@clisp.org>
110532         * modules/sigprocmask: New file.
110533         * lib/sigprocmask.h: New file.
110534         * lib/sigprocmask.c: New file.
110535         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
110536         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
110537         request sigprocmask.o.
110538         (gl_PREREQ_SIGPROCMASK): New macro.
110539         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
110540         (Depends-on): Add sigprocmask.
110541         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
110542         gt_SIGNALBLOCKING. Test for 'raise' only once.
110543         * lib/fatal-signal.c: Include sigprocmask.h.
110544         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
110545         unblock_fatal_signals): Define always.
110546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110547         sigprocmask.
110549 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110551         Sync from Automake.
110552         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
110553         which incorrectly sets the mode of an existing destination
110554         directory.  In some cases the unpatched install-sh could do the
110555         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
110556         system.  We hope this is rare in practice, but it's clearly worth
110557         fixing.  Problem reported by Alex Unleashed in
110558         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
110559         Also, don't bother to check for -m bugs unless we're using -m;
110560         suggested by Stepan Kasal.
110562 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110564         Sync from Automake.
110565         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
110566         `-c' flag, so they appear at the same position as in %FASTDEP%
110567         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
110568         which ignores unknown options only after the first non-option.
110569         Bug report against M4 by Nelson H. F. Beebe.
110571 2006-10-13  Jim Meyering  <jim@meyering.net>
110573         Fix a bug in yesterday's change.
110574         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
110575         p->fts_statp->st_dev would be used uninitialized.
110576         Ensures that we always call fts_stat on the very first entry.
110577         Miklos Szeredi reported that find -xdev stopped working.
110579 2006-10-12  Bruno Haible  <bruno@clisp.org>
110581         * gnulib-tool (func_get_automake_snippet): Append an automatically
110582         computed EXTRA_DIST augmentation.
110583         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
110584         * modules/alloca-opt (Makefile.am): Likewise.
110585         * modules/allocsa (Makefile.am): Likewise.
110586         * modules/arcfour (Makefile.am): Likewise.
110587         * modules/arctwo (Makefile.am): Likewise.
110588         * modules/argmatch (Makefile.am): Likewise.
110589         * modules/argz (Makefile.am): Likewise.
110590         * modules/atexit (Makefile.am): Likewise.
110591         * modules/backupfile (Makefile.am): Likewise.
110592         * modules/byteswap (Makefile.am): Likewise.
110593         * modules/c-strtod (Makefile.am): Likewise.
110594         * modules/c-strtold (Makefile.am): Likewise.
110595         * modules/calloc (Makefile.am): Likewise.
110596         * modules/canon-host (Makefile.am): Likewise.
110597         * modules/canonicalize (Makefile.am): Likewise.
110598         * modules/chdir-long (Makefile.am): Likewise.
110599         * modules/chdir-safer (Makefile.am): Likewise.
110600         * modules/check-version (Makefile.am): Likewise.
110601         * modules/chown (Makefile.am): Likewise.
110602         * modules/cloexec (Makefile.am): Likewise.
110603         * modules/close-stream (Makefile.am): Likewise.
110604         * modules/closeout (Makefile.am): Likewise.
110605         * modules/crc (Makefile.am): Likewise.
110606         * modules/csharpexec (Makefile.am): Likewise.
110607         * modules/cycle-check (Makefile.am): Likewise.
110608         * modules/des (Makefile.am): Likewise.
110609         * modules/dev-ino (Makefile.am): Likewise.
110610         * modules/dirfd (Makefile.am): Likewise.
110611         * modules/dirname (Makefile.am): Likewise.
110612         * modules/dup2 (Makefile.am): Likewise.
110613         * modules/eealloc (Makefile.am): Likewise.
110614         * modules/error (Makefile.am): Likewise.
110615         * modules/euidaccess (Makefile.am): Likewise.
110616         * modules/exclude (Makefile.am): Likewise.
110617         * modules/exitfail (Makefile.am): Likewise.
110618         * modules/fcntl-safer (Makefile.am): Likewise.
110619         * modules/fcntl (Makefile.am): Likewise.
110620         * modules/file-type (Makefile.am): Likewise.
110621         * modules/fileblocks (Makefile.am): Likewise.
110622         * modules/filemode (Makefile.am): Likewise.
110623         * modules/filenamecat (Makefile.am): Likewise.
110624         * modules/fnmatch (Makefile.am): Likewise.
110625         * modules/fopen-safer (Makefile.am): Likewise.
110626         * modules/fpending (Makefile.am): Likewise.
110627         * modules/fprintftime (Makefile.am): Likewise.
110628         * modules/free (Makefile.am): Likewise.
110629         * modules/fsusage (Makefile.am): Likewise.
110630         * modules/ftruncate (Makefile.am): Likewise.
110631         * modules/fts (Makefile.am): Likewise.
110632         * modules/gc-arcfour (Makefile.am): Likewise.
110633         * modules/gc-des (Makefile.am): Likewise.
110634         * modules/gc-hmac-md5 (Makefile.am): Likewise.
110635         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
110636         * modules/gc-md4 (Makefile.am): Likewise.
110637         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110638         * modules/gc-sha1 (Makefile.am): Likewise.
110639         * modules/gc (Makefile.am): Likewise.
110640         * modules/getaddrinfo (Makefile.am): Likewise.
110641         * modules/getcwd (Makefile.am): Likewise.
110642         * modules/getdelim (Makefile.am): Likewise.
110643         * modules/getdomainname (Makefile.am): Likewise.
110644         * modules/getgroups (Makefile.am): Likewise.
110645         * modules/gethostname (Makefile.am): Likewise.
110646         * modules/gethrxtime (Makefile.am): Likewise.
110647         * modules/getline (Makefile.am): Likewise.
110648         * modules/getloadavg (Makefile.am): Likewise.
110649         * modules/getlogin_r (Makefile.am): Likewise.
110650         * modules/getndelim2 (Makefile.am): Likewise.
110651         * modules/getopt (Makefile.am): Likewise.
110652         * modules/getpagesize (Makefile.am): Likewise.
110653         * modules/getpass-gnu (Makefile.am): Likewise.
110654         * modules/getpass (Makefile.am): Likewise.
110655         * modules/getsubopt (Makefile.am): Likewise.
110656         * modules/gettime (Makefile.am): Likewise.
110657         * modules/gettimeofday (Makefile.am): Likewise.
110658         * modules/getugroups (Makefile.am): Likewise.
110659         * modules/getusershell (Makefile.am): Likewise.
110660         * modules/glob (Makefile.am): Likewise.
110661         * modules/group-member (Makefile.am): Likewise.
110662         * modules/hard-locale (Makefile.am): Likewise.
110663         * modules/hash (Makefile.am): Likewise.
110664         * modules/hmac-md5 (Makefile.am): Likewise.
110665         * modules/hmac-sha1 (Makefile.am): Likewise.
110666         * modules/human (Makefile.am): Likewise.
110667         * modules/idcache (Makefile.am): Likewise.
110668         * modules/imaxabs (Makefile.am): Likewise.
110669         * modules/imaxdiv (Makefile.am): Likewise.
110670         * modules/inet_ntop (Makefile.am): Likewise.
110671         * modules/inet_pton (Makefile.am): Likewise.
110672         * modules/intprops (Makefile.am): Likewise.
110673         * modules/inttostr (Makefile.am): Likewise.
110674         * modules/inttypes (Makefile.am): Likewise.
110675         * modules/isapipe (Makefile.am): Likewise.
110676         * modules/javaversion (Makefile.am): Likewise.
110677         * modules/lchmod (Makefile.am): Likewise.
110678         * modules/lchown (Makefile.am): Likewise.
110679         * modules/localcharset (Makefile.am): Likewise.
110680         * modules/long-options (Makefile.am): Likewise.
110681         * modules/lstat (Makefile.am): Likewise.
110682         * modules/malloc (Makefile.am): Likewise.
110683         * modules/mathl (Makefile.am): Likewise.
110684         * modules/mbchar (Makefile.am): Likewise.
110685         * modules/md2 (Makefile.am): Likewise.
110686         * modules/md4 (Makefile.am): Likewise.
110687         * modules/md5 (Makefile.am): Likewise.
110688         * modules/memcasecmp (Makefile.am): Likewise.
110689         * modules/memchr (Makefile.am): Likewise.
110690         * modules/memcmp (Makefile.am): Likewise.
110691         * modules/memcoll (Makefile.am): Likewise.
110692         * modules/memcpy (Makefile.am): Likewise.
110693         * modules/memmem (Makefile.am): Likewise.
110694         * modules/memmove (Makefile.am): Likewise.
110695         * modules/mempcpy (Makefile.am): Likewise.
110696         * modules/memrchr (Makefile.am): Likewise.
110697         * modules/memset (Makefile.am): Likewise.
110698         * modules/memxor (Makefile.am): Likewise.
110699         * modules/mkancesdirs (Makefile.am): Likewise.
110700         * modules/mkdir-p (Makefile.am): Likewise.
110701         * modules/mkdir (Makefile.am): Likewise.
110702         * modules/mkdtemp (Makefile.am): Likewise.
110703         * modules/mkstemp (Makefile.am): Likewise.
110704         * modules/mktime (Makefile.am): Likewise.
110705         * modules/modechange (Makefile.am): Likewise.
110706         * modules/mountlist (Makefile.am): Likewise.
110707         * modules/nanosleep (Makefile.am): Likewise.
110708         * modules/obstack (Makefile.am): Likewise.
110709         * modules/openat (Makefile.am): Likewise.
110710         * modules/pagealign_alloc (Makefile.am): Likewise.
110711         * modules/pathmax (Makefile.am): Likewise.
110712         * modules/physmem (Makefile.am): Likewise.
110713         * modules/poll (Makefile.am): Likewise.
110714         * modules/posixtm (Makefile.am): Likewise.
110715         * modules/posixver (Makefile.am): Likewise.
110716         * modules/putenv (Makefile.am): Likewise.
110717         * modules/quote (Makefile.am): Likewise.
110718         * modules/quotearg (Makefile.am): Likewise.
110719         * modules/raise (Makefile.am): Likewise.
110720         * modules/read-file (Makefile.am): Likewise.
110721         * modules/readline (Makefile.am): Likewise.
110722         * modules/readlink (Makefile.am): Likewise.
110723         * modules/readtokens (Makefile.am): Likewise.
110724         * modules/readutmp (Makefile.am): Likewise.
110725         * modules/realloc (Makefile.am): Likewise.
110726         * modules/regex (Makefile.am): Likewise.
110727         * modules/rename-dest-slash (Makefile.am): Likewise.
110728         * modules/rename (Makefile.am): Likewise.
110729         * modules/rijndael (Makefile.am): Likewise.
110730         * modules/rmdir (Makefile.am): Likewise.
110731         * modules/rpmatch (Makefile.am): Likewise.
110732         * modules/safe-read (Makefile.am): Likewise.
110733         * modules/safe-write (Makefile.am): Likewise.
110734         * modules/same-inode (Makefile.am): Likewise.
110735         * modules/same (Makefile.am): Likewise.
110736         * modules/save-cwd (Makefile.am): Likewise.
110737         * modules/savedir (Makefile.am): Likewise.
110738         * modules/setenv (Makefile.am): Likewise.
110739         * modules/settime (Makefile.am): Likewise.
110740         * modules/sha1 (Makefile.am): Likewise.
110741         * modules/sig2str (Makefile.am): Likewise.
110742         * modules/snprintf (Makefile.am): Likewise.
110743         * modules/stat-macros (Makefile.am): Likewise.
110744         * modules/stat-time (Makefile.am): Likewise.
110745         * modules/stdbool (Makefile.am): Likewise.
110746         * modules/stdint (Makefile.am): Likewise.
110747         * modules/stdlib-safer (Makefile.am): Likewise.
110748         * modules/stpcpy (Makefile.am): Likewise.
110749         * modules/stpncpy (Makefile.am): Likewise.
110750         * modules/strcase (Makefile.am): Likewise.
110751         * modules/strcasestr (Makefile.am): Likewise.
110752         * modules/strchrnul (Makefile.am): Likewise.
110753         * modules/strcspn (Makefile.am): Likewise.
110754         * modules/strdup (Makefile.am): Likewise.
110755         * modules/strerror (Makefile.am): Likewise.
110756         * modules/strftime (Makefile.am): Likewise.
110757         * modules/strndup (Makefile.am): Likewise.
110758         * modules/strnlen (Makefile.am): Likewise.
110759         * modules/strpbrk (Makefile.am): Likewise.
110760         * modules/strsep (Makefile.am): Likewise.
110761         * modules/strstr (Makefile.am): Likewise.
110762         * modules/strtod (Makefile.am): Likewise.
110763         * modules/strtoimax (Makefile.am): Likewise.
110764         * modules/strtok_r (Makefile.am): Likewise.
110765         * modules/strtol (Makefile.am): Likewise.
110766         * modules/strtoll (Makefile.am): Likewise.
110767         * modules/strtoul (Makefile.am): Likewise.
110768         * modules/strtoull (Makefile.am): Likewise.
110769         * modules/strtoumax (Makefile.am): Likewise.
110770         * modules/strverscmp (Makefile.am): Likewise.
110771         * modules/sys_socket (Makefile.am): Likewise.
110772         * modules/sys_stat (Makefile.am): Likewise.
110773         * modules/sysexits (Makefile.am): Likewise.
110774         * modules/time_r (Makefile.am): Likewise.
110775         * modules/timegm (Makefile.am): Likewise.
110776         * modules/timespec (Makefile.am): Likewise.
110777         * modules/tmpfile-safer (Makefile.am): Likewise.
110778         * modules/trim (Makefile.am): Likewise.
110779         * modules/unistd-safer (Makefile.am): Likewise.
110780         * modules/unlinkdir (Makefile.am): Likewise.
110781         * modules/unlocked-io (Makefile.am): Likewise.
110782         * modules/userspec (Makefile.am): Likewise.
110783         * modules/utime (Makefile.am): Likewise.
110784         * modules/utimecmp (Makefile.am): Likewise.
110785         * modules/utimens (Makefile.am): Likewise.
110786         * modules/vasnprintf (Makefile.am): Likewise.
110787         * modules/vasprintf (Makefile.am): Likewise.
110788         * modules/vsnprintf (Makefile.am): Likewise.
110789         * modules/xalloc (Makefile.am): Likewise.
110790         * modules/xgetcwd (Makefile.am): Likewise.
110791         * modules/xnanosleep (Makefile.am): Likewise.
110792         * modules/xreadlink (Makefile.am): Likewise.
110793         * modules/xstrtod (Makefile.am): Likewise.
110794         * modules/xstrtol (Makefile.am): Likewise.
110795         * modules/xstrtold (Makefile.am): Likewise.
110796         * modules/yesno (Makefile.am): Likewise.
110797         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
110799 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
110801         * modules/error (Makefile.am): Distribute files through
110802         EXTRA_DIST, not lib_SOURCES.
110804 2006-10-12  Eric Blake  <ebb9@byu.net>
110806         * modules/error (Makefile.am): Distribute files in /lib.
110807         * modules/obstack (Makefile.am): Likewise.
110809 2006-10-12  Bruno Haible  <bruno@clisp.org>
110811         * modules/acl (Makefile.am): Distribute all files in lib/ through
110812         EXTRA_DIST.
110813         * modules/arcfour (Makefile.am): Likewise.
110814         * modules/arctwo (Makefile.am): Likewise.
110815         * modules/argmatch (Makefile.am): Likewise.
110816         * modules/argz (Makefile.am): Likewise.
110817         * modules/atexit (Makefile.am): Likewise.
110818         * modules/backupfile (Makefile.am): Likewise.
110819         * modules/c-strtod (Makefile.am): Likewise.
110820         * modules/c-strtold (Makefile.am): Likewise.
110821         * modules/calloc (Makefile.am): Likewise.
110822         * modules/canon-host (Makefile.am): Likewise.
110823         * modules/canonicalize (Makefile.am): Likewise.
110824         * modules/chdir-long (Makefile.am): Likewise.
110825         * modules/chdir-safer (Makefile.am): Likewise.
110826         * modules/check-version (Makefile.am): Likewise.
110827         * modules/chown (Makefile.am): Likewise.
110828         * modules/cloexec (Makefile.am): Likewise.
110829         * modules/close-stream (Makefile.am): Likewise.
110830         * modules/closeout (Makefile.am): Likewise.
110831         * modules/crc (Makefile.am): Likewise.
110832         * modules/cycle-check (Makefile.am): Likewise.
110833         * modules/des (Makefile.am): Likewise.
110834         * modules/dirfd (Makefile.am): Likewise.
110835         * modules/dirname (Makefile.am): Likewise.
110836         * modules/dup2 (Makefile.am): Likewise.
110837         * modules/euidaccess (Makefile.am): Likewise.
110838         * modules/exclude (Makefile.am): Likewise.
110839         * modules/exitfail (Makefile.am): Likewise.
110840         * modules/fcntl-safer (Makefile.am): Likewise.
110841         * modules/file-type (Makefile.am): Likewise.
110842         * modules/fileblocks (Makefile.am): Likewise.
110843         * modules/filemode (Makefile.am): Likewise.
110844         * modules/filenamecat (Makefile.am): Likewise.
110845         * modules/fnmatch (Makefile.am): Likewise.
110846         * modules/fopen-safer (Makefile.am): Likewise.
110847         * modules/fpending (Makefile.am): Likewise.
110848         * modules/fprintftime (Makefile.am): Likewise.
110849         * modules/free (Makefile.am): Likewise.
110850         * modules/fsusage (Makefile.am): Likewise.
110851         * modules/ftruncate (Makefile.am): Likewise.
110852         * modules/fts (Makefile.am): Likewise.
110853         * modules/gc (Makefile.am): Likewise.
110854         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110855         * modules/getaddrinfo (Makefile.am): Likewise.
110856         * modules/getcwd (Makefile.am): Likewise.
110857         * modules/getdelim (Makefile.am): Likewise.
110858         * modules/getdomainname (Makefile.am): Likewise.
110859         * modules/getgroups (Makefile.am): Likewise.
110860         * modules/gethostname (Makefile.am): Likewise.
110861         * modules/gethrxtime (Makefile.am): Likewise.
110862         * modules/getline (Makefile.am): Likewise.
110863         * modules/getloadavg (Makefile.am): Likewise.
110864         * modules/getlogin_r (Makefile.am): Likewise.
110865         * modules/getopt (Makefile.am): Likewise.
110866         * modules/getpass (Makefile.am): Likewise.
110867         * modules/getpass-gnu (Makefile.am): Likewise.
110868         * modules/getsubopt (Makefile.am): Likewise.
110869         * modules/gettime (Makefile.am): Likewise.
110870         * modules/gettimeofday (Makefile.am): Likewise.
110871         * modules/getugroups (Makefile.am): Likewise.
110872         * modules/getusershell (Makefile.am): Likewise.
110873         * modules/glob (Makefile.am): Likewise.
110874         * modules/group-member (Makefile.am): Likewise.
110875         * modules/hard-locale (Makefile.am): Likewise.
110876         * modules/hash (Makefile.am): Likewise.
110877         * modules/hmac-md5 (Makefile.am): Likewise.
110878         * modules/hmac-sha1 (Makefile.am): Likewise.
110879         * modules/human (Makefile.am): Likewise.
110880         * modules/idcache (Makefile.am): Likewise.
110881         * modules/imaxabs (Makefile.am): Likewise.
110882         * modules/imaxdiv (Makefile.am): Likewise.
110883         * modules/inet_ntop (Makefile.am): Likewise.
110884         * modules/inet_pton (Makefile.am): Likewise.
110885         * modules/inttostr (Makefile.am): Likewise.
110886         * modules/isapipe (Makefile.am): Likewise.
110887         * modules/lchown (Makefile.am): Likewise.
110888         * modules/long-options (Makefile.am): Likewise.
110889         * modules/lstat (Makefile.am): Likewise.
110890         * modules/malloc (Makefile.am): Likewise.
110891         * modules/mathl (Makefile.am): Likewise.
110892         * modules/mbchar (Makefile.am): Likewise.
110893         * modules/md2 (Makefile.am): Likewise.
110894         * modules/md4 (Makefile.am): Likewise.
110895         * modules/md5 (Makefile.am): Likewise.
110896         * modules/memcasecmp (Makefile.am): Likewise.
110897         * modules/memchr (Makefile.am): Likewise.
110898         * modules/memcmp (Makefile.am): Likewise.
110899         * modules/memcoll (Makefile.am): Likewise.
110900         * modules/memcpy (Makefile.am): Likewise.
110901         * modules/memmem (Makefile.am): Likewise.
110902         * modules/memmove (Makefile.am): Likewise.
110903         * modules/mempcpy (Makefile.am): Likewise.
110904         * modules/memrchr (Makefile.am): Likewise.
110905         * modules/memset (Makefile.am): Likewise.
110906         * modules/memxor (Makefile.am): Likewise.
110907         * modules/mkancesdirs (Makefile.am): Likewise.
110908         * modules/mkdir (Makefile.am): Likewise.
110909         * modules/mkdir-p (Makefile.am): Likewise.
110910         * modules/mkdtemp (Makefile.am): Likewise.
110911         * modules/mkstemp (Makefile.am): Likewise.
110912         * modules/mktime (Makefile.am): Likewise.
110913         * modules/modechange (Makefile.am): Likewise.
110914         * modules/mountlist (Makefile.am): Likewise.
110915         * modules/nanosleep (Makefile.am): Likewise.
110916         * modules/openat (Makefile.am): Likewise.
110917         * modules/pagealign_alloc (Makefile.am): Likewise.
110918         * modules/physmem (Makefile.am): Likewise.
110919         * modules/poll (Makefile.am): Likewise.
110920         * modules/posixtm (Makefile.am): Likewise.
110921         * modules/posixver (Makefile.am): Likewise.
110922         * modules/putenv (Makefile.am): Likewise.
110923         * modules/quote (Makefile.am): Likewise.
110924         * modules/quotearg (Makefile.am): Likewise.
110925         * modules/raise (Makefile.am): Likewise.
110926         * modules/read-file (Makefile.am): Likewise.
110927         * modules/readline (Makefile.am): Likewise.
110928         * modules/readlink (Makefile.am): Likewise.
110929         * modules/readtokens (Makefile.am): Likewise.
110930         * modules/readutmp (Makefile.am): Likewise.
110931         * modules/realloc (Makefile.am): Likewise.
110932         * modules/regex (Makefile.am): Likewise.
110933         * modules/rename (Makefile.am): Likewise.
110934         * modules/rename-dest-slash (Makefile.am): Likewise.
110935         * modules/rijndael (Makefile.am): Likewise.
110936         * modules/rmdir (Makefile.am): Likewise.
110937         * modules/rpmatch (Makefile.am): Likewise.
110938         * modules/safe-read (Makefile.am): Likewise.
110939         * modules/safe-write (Makefile.am): Likewise.
110940         * modules/same (Makefile.am): Likewise.
110941         * modules/save-cwd (Makefile.am): Likewise.
110942         * modules/savedir (Makefile.am): Likewise.
110943         * modules/setenv (Makefile.am): Likewise.
110944         * modules/settime (Makefile.am): Likewise.
110945         * modules/sha1 (Makefile.am): Likewise.
110946         * modules/sig2str (Makefile.am): Likewise.
110947         * modules/snprintf (Makefile.am): Likewise.
110948         * modules/stdlib-safer (Makefile.am): Likewise.
110949         * modules/stpcpy (Makefile.am): Likewise.
110950         * modules/stpncpy (Makefile.am): Likewise.
110951         * modules/strcase (Makefile.am): Likewise.
110952         * modules/strcasestr (Makefile.am): Likewise.
110953         * modules/strchrnul (Makefile.am): Likewise.
110954         * modules/strcspn (Makefile.am): Likewise.
110955         * modules/strdup (Makefile.am): Likewise.
110956         * modules/strerror (Makefile.am): Likewise.
110957         * modules/strftime (Makefile.am): Likewise.
110958         * modules/strndup (Makefile.am): Likewise.
110959         * modules/strnlen (Makefile.am): Likewise.
110960         * modules/strpbrk (Makefile.am): Likewise.
110961         * modules/strsep (Makefile.am): Likewise.
110962         * modules/strstr (Makefile.am): Likewise.
110963         * modules/strtod (Makefile.am): Likewise.
110964         * modules/strtoimax (Makefile.am): Likewise.
110965         * modules/strtok_r (Makefile.am): Likewise.
110966         * modules/strtol (Makefile.am): Likewise.
110967         * modules/strtoll (Makefile.am): Likewise.
110968         * modules/strtoul (Makefile.am): Likewise.
110969         * modules/strtoull (Makefile.am): Likewise.
110970         * modules/strtoumax (Makefile.am): Likewise.
110971         * modules/strverscmp (Makefile.am): Likewise.
110972         * modules/time_r (Makefile.am): Likewise.
110973         * modules/timegm (Makefile.am): Likewise.
110974         * modules/tmpfile-safer (Makefile.am): Likewise.
110975         * modules/unistd-safer (Makefile.am): Likewise.
110976         * modules/unlinkdir (Makefile.am): Likewise.
110977         * modules/userspec (Makefile.am): Likewise.
110978         * modules/utime (Makefile.am): Likewise.
110979         * modules/utimecmp (Makefile.am): Likewise.
110980         * modules/utimens (Makefile.am): Likewise.
110981         * modules/vasnprintf (Makefile.am): Likewise.
110982         * modules/vasprintf (Makefile.am): Likewise.
110983         * modules/vsnprintf (Makefile.am): Likewise.
110984         * modules/xalloc (Makefile.am): Likewise.
110985         * modules/xgetcwd (Makefile.am): Likewise.
110986         * modules/xnanosleep (Makefile.am): Likewise.
110987         * modules/xreadlink (Makefile.am): Likewise.
110988         * modules/xstrtod (Makefile.am): Likewise.
110989         * modules/xstrtol (Makefile.am): Likewise.
110990         * modules/xstrtold (Makefile.am): Likewise.
110991         * modules/yesno (Makefile.am): Likewise.
110993 2006-10-12  Jim Meyering  <jim@meyering.net>
110995         * m4/getloadavg.m4: Revert the change below.
110997         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
110998         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
110999         fail with a symlink, which is what coreutils' ./bootstrap now
111000         creates by default.
111002 2006-10-12  Bruno Haible  <bruno@clisp.org>
111004         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111005         mingw.
111006         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111007         MSVC and mingw explicitly.
111009 2006-10-11  Simon Josefsson  <jas@extundo.com>
111010             Bruno Haible  <bruno@clisp.org>
111012         Add support for multiple gnulib-tool invocations in the scope of a
111013         single configure.ac file.
111014         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111015         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111016         with the same contents as the _LIBADD variable.
111017         (func_emit_initmacro_start, func_emit_initmacro_end,
111018         func_emit_initmacro_done): New functions.
111019         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111020         gl_LIBOBJS and gl_LTLIBOBJS.
111022 2006-10-11  Bruno Haible  <bruno@clisp.org>
111024         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111025         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111026         autoreconf. Instead, invoke autopoint explicitly but move back the
111027         *.m4 files from gnulib.
111029 2006-10-11  Bruno Haible  <bruno@clisp.org>
111031         * gnulib-tool (func_usage): Make module names after --create-testdir
111032         optional.
111033         (func_create_testdir): If no module was specified, use nearly all
111034         modules.
111036 2006-10-12  Jim Meyering  <jim@meyering.net>
111038         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111039         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111040         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111041         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111042         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111043         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111044         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111045         (fts_set_stat_required): New function.
111046         (fts_open): Defer the calls to fts_stat, if possible or requested.
111047         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111048         into fts_stat itself.
111049         (fts_read): Perform any required (deferred) fts_stat call.
111050         (fts_build): Likewise, for the directory we're about to open and read.
111051         In the readdir loop, carefully decide whether each entry will require
111052         an eventual call to fts_stat, using dirent.d_type info if available.
111053         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111054         a command line argument into this function.  Update all callers.
111055         Map a return value of FTS_DOT to FTS_D for a command line argument.
111056         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111057         Thanks to Miklos Szeredi for his tenacity and for the initial
111058         bug report about "find" failing on a FUSE-based file system.
111060         * lib/fts.c (fts_open): Use consistent indentation.
111062 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111064         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111065         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111066         reported by Jim Meyering.  All uses of cache variables renamed
111067         to match Autoconf's.
111068         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111069         the other one.
111071         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111072         Fix misspelling in diagnostic.
111074 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111076         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111077         defined.  Problem reported by Matthew Woehlke.
111079         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111080         Add support for Tandem NonStop R series.
111081         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111082         Use new macro.
111084         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111085         (has_trailing_slash): Omit size arg; all callers changed.
111086         Omit 'inline', since it doesn't help performance and we'd
111087         need to configure it.
111088         Don't count //, ///, etc. as having a trailing slash.
111089         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111090         (rpl_rename_dest_slash): On failure, use rename's errno rather
111091         than (in some cases) an incorrect or junk errno.
111092         Simplify code by removing need to compute length; this does
111093         cause it to make two passes instead of one over the file name,
111094         but it's worth it.
111096         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111097         change, since Autoconf's version may no longer be appropriate now
111098         that we are using CVS Autoconf's version.  Add support for Tandem.
111100 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111101             Bruno Haible  <bruno@clisp.org>
111103         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111104         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111105         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111106         gl_AC_TYPE_LONG_LONG.
111108         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111109         instead of HAVE_LONG_LONG.
111110         * lib/printf-args.c (printf_fetchargs): Likewise.
111111         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111112         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111113         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111114         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111115         gl_AC_TYPE_LONG_LONG.
111117 2006-10-11  Bruno Haible  <bruno@clisp.org>
111119         * m4/longlong.m4: Add comments.
111120         * m4/ulonglong.m4: Likewise.
111122 2006-10-10  Bruno Haible  <bruno@clisp.org>
111124         Make it possible to #define stpcpy, strdup to aliases.
111125         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111126         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111128 2006-10-10  Bruno Haible  <bruno@clisp.org>
111130         Make it possible to #define gcd to an alias.
111131         * lib/gcd.c: Include config.h.
111133 2006-10-10  Bruno Haible  <bruno@clisp.org>
111135         Make it possible to #define c_isascii to an alias.
111136         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111137         defined. Undefine the macros before defining them, to avoid gcc
111138         warnings.
111139         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111140         define NO_C_CTYPE_MACROS early.
111142 2006-10-10  Bruno Haible  <bruno@clisp.org>
111144         Make it possible to #define set_program_name to an alias.
111145         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111146         ENABLE_RELOCATABLE early.
111148 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111150         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111151         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111152         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111153         More generally, don't assume that 64-bit signed int is available
111154         if unsigned int is, and vice versa.
111155         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111156         unsigned symbols, not on their signed counterparts.
111157         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111158         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111159         (UINT64_C, UINTMAX_C):
111160         Likewise.
111161         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111162         unsigned counterparts.
111163         (Have_long_long, Unsigned): New macros.
111164         (Int): Renamed from INT.
111165         (strtoimax): Use the new macros.
111166         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111167         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111168         * modules/inttypes (inttypes.h): Substitute
111169         HAVE_UNSIGNED_LONG_LONG_INT.
111170         * modules/stdint (stdint.h): Likewise.
111171         (Files): Add m4/ulonglong.m4.
111173 2006-10-10  Bruno Haible  <bruno@clisp.org>
111175         Fix a gcc -Wshadow warning.
111176         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111177         to 'bucket'.
111178         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111179         gl_linked_indexof_from_to): Likewise.
111180         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111181         Likewise.
111182         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111183         Likewise.
111184         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111185         Reported by Eric Blake.
111187 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111189         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111190         for NetBSD.  Problem reported by Bruno Haible.
111192 2006-10-09  Jim Meyering  <jim@meyering.net>
111194         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111195         Patch from Bruno Haible.
111197 2006-10-09  Jim Meyering  <jim@meyering.net>
111199         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111200         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111201         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111203 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111205         Don't include <config.h> twice; this doesn't work in some cases,
111206         e.g., when config.h has "#define intmax_t long long int" and
111207         we include <config.h>, <inttypes.h>, <config.h> in that order.
111208         Problem reported by Matthew Woehlke in:
111209         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
111210         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
111211         * lib/fts-cycle.c: Don't include config.h.
111212         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
111213         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
111214         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
111215         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
111216         inttypes.h.
111217         * lib/xstrtoumax.c: Likewise.
111218         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
111219         __strtol and the like, so that this module is more like its siblings.
111220         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
111221         Remove; no longer needed now that we assume gnulib inttypes.h.
111223 2006-10-08  Bruno Haible  <bruno@clisp.org>
111225         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
111226         option.
111228 2006-10-07  Jim Meyering  <jim@meyering.net>
111230         * modules/inttypes (inttypes.h): Revert what seems to have been
111231         an inadvertent part of today's change: use "|", not "/" in the
111232         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
111234 2006-10-07  Bruno Haible  <bruno@clisp.org>
111236         * modules/sublist: New file.
111238 2006-10-07  Bruno Haible  <bruno@clisp.org>
111240         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
111241         * modules/argz (argz.h): Likewise.
111242         * modules/arpa_inet (arpa/inet.h): Likewise.
111243         * modules/byteswap (byteswap.h): Likewise.
111244         * modules/configmake (configmake.h): Likewise.
111245         * modules/fcntl (fcntl.h): Likewise.
111246         * modules/fnmatch (fnmatch.h): Likewise.
111247         * modules/getopt (getopt.h): Likewise.
111248         * modules/glob (glob.h): Likewise.
111249         * modules/inttypes (inttypes.h): Likewise.
111250         * modules/netinet_in (netinet/in.h): Likewise.
111251         * modules/poll (poll.h): Likewise.
111252         * modules/stdbool (stdbool.h): Likewise.
111253         * modules/stdint (stdint.h): Likewise.
111254         * modules/sys_select (sys/select.h): Likewise.
111255         * modules/sys_socket (sys/socket.h): Likewise.
111256         * modules/sys_stat (sys/stat.h): Likewise.
111257         * modules/sysexits (sysexits.h): Likewise.
111258         * modules/unistd (unistd.h): Likewise.
111259         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111260         Add a "DO NOT EDIT" comment to the generated file.
111261         (func_import): Likewise for gnulib-comp.m4.
111263 2006-10-07  Bruno Haible  <bruno@clisp.org>
111265         * lib/gl_sublist.h: New file.
111266         * lib/gl_sublist.c: New file.
111268 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111270         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111271         name (relative to the original working directory) and the file
111272         name component (relative to the temporary working directory).  All
111273         callers changed.
111274         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111275         * lib/mkdir-p.c (make_dir_parents): Likewise.
111276         * lib/mkdir-p.h (make_dir_parents): Likewise.
111278 2006-10-06  Eric Blake  <ebb9@byu.net>
111280         Define several macros for use by the clean-temp module.
111281         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111282         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111283         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111285         * lib/clean-temp.h (close_stream_temp): New declaration.
111286         * lib/clean-temp.c (includes): Pull in headers according to what
111287         other modules are in use.
111288         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111290 2006-10-06  Bruno Haible  <bruno@clisp.org>
111292         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111293         instead of fopen, fwriteerror.
111295 2006-10-06  Bruno Haible  <bruno@clisp.org>
111297         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111298         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111299         int.
111300         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111301         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111302         Return an error indicator.
111303         Suggested by Eric Blake.
111305 2006-10-06  Bruno Haible  <bruno@clisp.org>
111307         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111308         Reported by Eric Blake.
111310 2006-10-06  Bruno Haible  <bruno@clisp.org>
111312         * modules/closeout (Description): Mention stderr too.
111314 2006-10-06  Bruno Haible  <bruno@clisp.org>
111315         and Paul Eggert  <eggert@cs.ucla.edu>
111317         * lib/closeout.c (close_stdout): Also close stderr.
111318         * lib/closeout.h: Update comment.
111320 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111322         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111323         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111324         * lib/dirchownmod.c: Include lchown.h.
111325         * lib/lchown.c: Don't include files that lchown.h now includes.
111326         Don't declare chown, since lchown.h now does that.
111327         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111328         (lchown): Define to rpl_chown if lchown is declared but
111329         does not exist.  Declare using a prototype if lchown is not
111330         declared.  Add a copyright notice.
111331         * lib/mkstemp.h: Include <unistd.h>.
111332         * lib/openat.c: Include lchown.h.
111334         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111335         we now test for that separately.
111336         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111337         rather than O_NOFOLLOW, when testing whether it's possible to
111338         avoid a race condition reliably.
111339         * lib/savewd.c (savewd_chdir): Likewise.
111341         Remove macros that are no longer needed now that stdint.h is
111342         reliable.
111343         * lib/fsusage.c (UINTMAX_MAX): Remove.
111344         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111345         * lib/utimecmp.c (SIZE_MAX): Remove.
111347         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111349         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111350         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111351         O_NOATIME works.
111353 2006-10-05  Bruno Haible  <bruno@clisp.org>
111355         * lib/gl_list.h (gl_sortedlist_search_from_to,
111356         gl_sortedlist_indexof_from_to): New declarations.
111357         (gl_list_implementation): New fields sortedlist_search_from_to,
111358         sortedlist_indexof_from_to.
111359         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111360         inline functions.
111361         * lib/gl_list.c (gl_sortedlist_search_from_to,
111362         gl_sortedlist_indexof_from_to): New functions.
111363         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111364         function.
111365         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111366         (gl_array_sortedlist_search_from_to): New function.
111367         (gl_array_list_implementation): Update.
111368         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111369         function.
111370         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111371         (gl_carray_sortedlist_search_from_to): New function.
111372         (gl_carray_list_implementation): Update.
111373         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111374         gl_linked_sortedlist_indexof_from_to): New functions.
111375         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111376         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111377         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111378         gl_tree_sortedlist_indexof_from_to): New functions.
111379         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111380         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111381         Update.
111382         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111383         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
111384         Update.
111386 2006-10-05  Bruno Haible  <bruno@clisp.org>
111388         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
111389         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
111390         (struct gl_list_implementation): Add fields search_from_to,
111391         indexof_from_to. Remove fields search, indexof.
111392         (gl_list_search): Use the search_from_to method.
111393         (gl_list_search_from, gl_list_search_from_to): New functions.
111394         (gl_list_indexof): Use the indexof_from_to method.
111395         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111396         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
111397         (gl_list_search_from, gl_list_search_from_to): New functions.
111398         (gl_list_indexof): Use the indexof_from_to method.
111399         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111400         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
111401         gl_array_indexof. Add start_index, end_index arguments.
111402         (gl_array_search_from_to): Renamed from gl_array_search. Add
111403         start_index, end_index arguments.
111404         (gl_array_remove, gl_array_list_implementation): Update.
111405         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
111406         gl_carray_indexof. Add start_index, end_index arguments.
111407         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
111408         start_index, end_index arguments.
111409         (gl_carray_remove, gl_carray_list_implementation): Update.
111410         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
111411         gl_linked_search. Add start_index, end_index arguments.
111412         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
111413         start_index, end_index arguments.
111414         (gl_linked_remove): Update.
111415         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111416         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111417         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
111418         field to 'size_t'.
111419         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
111420         gl_tree_search. Add start_index, end_index arguments.
111421         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111422         start_index, end_index arguments.
111423         (gl_tree_remove): Update.
111424         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111425         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111426         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
111427         function.
111428         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
111429         gl_tree_search. Add start_index, end_index arguments.
111430         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111431         start_index, end_index arguments.
111432         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111433         Update.
111434         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
111436 2006-10-05  Bruno Haible  <bruno@clisp.org>
111438         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
111440         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
111441         fwriteerror_temp): New declarations.
111442         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
111443         (descriptors): New variable.
111444         (cleanup): First, close the descriptors.
111445         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
111446         fclose_temp, fwriteerror_temp): New functions.
111448 2006-10-04  Jim Meyering  <jim@meyering.net>
111450         * lib/fts.c (fts_open): Tiny comment change.
111452 2006-10-04  Bruno Haible  <bruno@clisp.org>
111454         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
111455         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
111456         gl_LOCK_BODY.
111457         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
111458         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
111459         gl_LOCK_EARLY_BODY.
111460         (gl_LOCK): Require gl_LOCK_BODY.
111462 2006-10-04  Bruno Haible  <bruno@clisp.org>
111464         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
111465         (gl_oset_search_atleast): New declaration.
111466         (struct gl_oset_implementation): Add field 'search_atleast'.
111467         (gl_oset_search_atleast): New inline function.
111468         * lib/gl_oset.c (gl_oset_search_atleast): New function.
111469         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
111470         (gl_array_oset_implementation): Update.
111471         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
111472         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
111473         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
111475 2006-10-04  Bruno Haible  <bruno@clisp.org>
111477         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
111479 2006-10-03  Bruno Haible  <bruno@clisp.org>
111481         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
111482         from gl_avltreehash_list_implementation.
111484 2006-10-03  Bruno Haible  <bruno@clisp.org>
111486         * lib/gl_oset.c (gl_oset_add): Fix return type.
111488 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
111490         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
111492 2006-10-02  Eric Blake  <ebb9@byu.net>
111494         * modules/strnlen (Depends-on): Add extensions.
111496 2006-10-02  Eric Blake  <ebb9@byu.net>
111498         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
111499         definition in 2.60+.
111501 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
111503         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
111504         checks.
111506 2006-10-02  Bruno Haible  <bruno@clisp.org>
111508         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
111509         to the AUTOMAKE_OPTIONS.
111510         Reported by Jim Meyering.
111512 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111514         Work around bug in Solaris 10 /proc file system:
111515         /proc/self/fd/NNN/.. isn't the parent directory of
111516         the directory whose file descriptor is NNN.  This needs to
111517         be worked around at run time, not compile time, since a
111518         program might be built on Solaris 8, where things work, and
111519         run on Solaris 10.
111520         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
111521         to use the following interface instead:
111522         (OPENAT_BUFFER_SIZE): New macro.
111523         (openat_proc_name): New function.
111524         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
111525         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
111526         Likewise.
111527         * lib/openat-proc.c: New file.
111528         * modules/openat (Files): Add lib/openat-proc.c.
111529         (Depends-on): Add same-inode, stdbool.
111530         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
111532 2006-09-29  Bruno Haible  <bruno@clisp.org>
111534         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
111535         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
111536         argument. Set stdout_closed before testing for ferror, not after.
111537         (fwriteerror, fwriteerror_no_ebadf): New functions.
111539 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111541         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
111543 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
111545         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
111546         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
111548 2006-09-28  Jim Meyering  <jim@meyering.net>
111550         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
111551         Include <unistd.h>.
111553 2006-09-28  Bruno Haible  <bruno@clisp.org>
111555         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
111556         * modules/linkedhash-list (Depends-on): Likewise.
111557         * modules/rbtreehash-list (Depends-on): Likewise.
111559 2006-09-28  Bruno Haible  <bruno@clisp.org>
111561         * lib/strndup.h: Simplify the redefinition of strndup.
111562         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
111563         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
111565 2006-09-28  Bruno Haible  <bruno@clisp.org>
111567         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
111568         * lib/gl_linkedhash_list.c: Likewise.
111569         * lib/gl_rbtreehash_list.c: Likewise.
111571 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
111573         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
111574         getaddrinfo.
111576         * lib/__fpending.h: Don't include <stdio_ext.h> unless
111577         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
111578         it causes <stdio_ext.h> to cause a compile-time error.
111579         Problem reported by Nelson H. F. Beebe.
111580         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
111581         of HAVE_DECL___PENDING.
111583         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
111584         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
111585         declaration.
111587 2006-09-27  Jim Meyering  <jim@meyering.net>
111589         This file could end up with a definition for a function
111590         named __strndup, rather than rpl_strndup on a system with
111591         incomplete weak_alias support.
111592         * lib/strndup.c (strndup): Rename from __strndup.
111593         Remove #defines that used to map __strndup to strndup.
111594         Don't use K&R prototypes.
111595         Remove LIBC-related code, since this file is not sync'd with glibc.
111596         * lib/strndup.h: Revamp, accordingly.
111597         * m4/strndup.m4: Modernize.
111599 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
111601         * modules/savewd (Depends-on): Add 'raise'.
111602         * lib/savewd.c: Include <signal.h>, for 'raise'.
111604 2006-09-26  Jim Meyering  <jim@meyering.net>
111606         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
111607         when we detect Darwin 8.7.0's acl_get_file bug.
111608         Rearrange to perform the new (below) run-test while $LIBS
111609         contains any acl-related library.  Set USE_ACL at the end.
111610         (gl_ACL_GET_FILE): New function.
111612 2006-09-26  Eric Blake  <ebb9@byu.net>
111614         * lib/verror.c: Include <config.h> unconditionally.
111616 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
111618         * modules/clock-time (Maintainer): Add self.
111619         * modules/getlogin_r (Depends-on): Add extensions.
111621 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111623         * modules/clock-time: New module.
111624         * modules/nanosleep (Depends-on): Add clock-time.
111625         * modules/gethrxtime (Depends-on): Likewise.
111626         * modules/gettime (Depends-on): Likewise.
111627         * modules/settime (Depends-on): Likewise.
111629         * modules/fts-lgpl: Depend on openat.
111630         * modules/mkancesdirs: Depend on savewd.
111631         * modules/mkdir-p: Likewise.
111633 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111635         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
111637         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
111638         `gl_have_arbitrary_file_name_length_limit' to
111639         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
111640         actually works between configure runs.
111642 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111643             Bruno Haible  <bruno@clisp.org>
111645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
111647 2006-09-25  Jim Meyering  <jim@meyering.net>
111649         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
111650         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
111652 2006-09-25  Eric Blake  <ebb9@byu.net>
111654         * gnulib-tool (func_import, func_create_testdir): Fix typos in
111655         exec's in 2006-09-18 patch when shuffling fds.
111657 2006-09-25  Bruno Haible  <bruno@clisp.org>
111659         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
111660         Reported by Jim Meyering.
111662 2006-09-24  Jim Meyering  <jim@meyering.net>
111664         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
111665         compare a pointer against a literal "0".  That caused failures with
111666         at least HP-UX's hpcc.
111668 2006-09-22  Simon Josefsson  <jas@extundo.com>
111670         * modules/gc-sha1:
111671         * modules/gc-md4:
111672         * modules/gc-hmac-sha1:
111673         * modules/gc-hmac-md5:
111674         * modules/gc-des:
111675         * modules/gc-arcfour: Distribute more files.
111677 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111679         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
111680         (gl_linked_iterator_from_to): Initialize struct completely.
111681         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
111682         (gl_tree_iterator_from_to): Likewise
111683         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
111684         * lib/gl_array_list.c [lint] (gl_array_iterator)
111685         (gl_array_iterator_from_to): Likewise.
111686         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
111687         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
111688         (gl_carray_iterator_from_to): Likewise.
111690         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
111691         * lib/md4.c (md4_process_block): Remove unused variable.
111692         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
111693         parentheses for clarity.
111695 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111697         * modules/bison-i18n (Depends-on): Add gettext.
111699 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111701         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
111702         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
111703         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
111704         also add missing comma that caused broken test.
111705         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
111706         stdlib.h, for `abort'.
111707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
111708         variables.
111709         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
111710         include unistd.h if present, for `rmdir'.
111711         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
111712         variables.
111713         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
111714         in the process include standard headers for prototypes.
111715         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
111716         gets declared on GNU/Linux.
111717         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
111718         unistd.h, for `rmdir'.
111719         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
111721         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
111722         always true.
111723         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
111725         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
111727 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111729         * gnulib-tool (func_version): Create output all at once.  This
111730         may help avoid triggering unnecessary SIGPIPEs, and at any
111731         rate it doesn't hurt.
111733 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111734             Bruno Haible  <bruno@clisp.org>
111736         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
111737         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111738         * m4/signed.m4 (bh_C_SIGNED): Likewise.
111740         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
111741         (gl_FUNC_VASPRINTF): Invoke it.
111743 2006-09-22  Bruno Haible  <bruno@clisp.org>
111745         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
111746         getloadavg.c as first argument.
111748 2006-09-22  Bruno Haible  <bruno@clisp.org>
111750         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
111751         at the beginning of the gl_INIT macro.
111752         * modules/getloadavg (configure.ac): Pass $gl_source_base to
111753         gl_GETLOADAVG.
111755 2006-09-22  Bruno Haible  <bruno@clisp.org>
111757         * gnulib-tool (func_create_megatestdir): Don't include the config-h
111758         module.
111759         Suggested by Ralf Wildenhues.
111761 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
111763         Import this patch from libc:
111765         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
111767         * lib/regex_internal.c (re_string_reconstruct): Handle
111768         offset < pstr->valid_raw_len && pstr->offsets_needed case.
111769         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
111770         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
111771         re_string_context_at.
111773         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
111774         now requires it.
111775         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
111776         gl_REGEX now does it for us.
111777         (gl_REGEX): Add test taken from
111778         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
111780         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
111781         Check that large offsets work.  Modernize Autoconf usages.
111782         Prefer "yes" to mean a good thing rather than a bad.
111783         Don't put "#define mkstemp" in config.h, as this might interfere
111784         with standard system headers that "#define mkstemp mkstemp64".
111786         * modules/mkstemp (Depends-on): Add extensions, so that
111787         mkstemp is visible on some platforms.
111788         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
111789         (Include): Change to "mkstemp.h" from <stdlib.h>.
111790         (Files): Add mkstemp.h.
111792         * lib/mkstemp.h: New file, since some standard headers
111793         #define mkstemp.
111794         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
111795         Include "mkstemp.h".
111796         Make the _LIBC code resemble glibc original more,
111797         e.g., use K&R style.
111798         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
111799         (mkstemp): Remove, since mkstemp.h does this for us.
111800         * lib/stdlib--.h: Include mkstemp.h.
111802         Import this patch from libc:
111804         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111806         * lib/tempname.c (__gen_tempname): Change attempts_min
111807         into a macro.  Use preprocessor to decide how to initialize
111808         attempts [Coverity CID 67].
111810 2006-09-20  Bruno Haible  <bruno@clisp.org>
111812         * lib/mkdtemp.c: Import from libc.
111813         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111814                 * sysdeps/posix/tempname.c (__gen_tempname): Change
111815                 attempts_min into a macro.  Use preprocessor to decide how to
111816                 initialize attempts [Coverity CID 67].
111817         2001-11-27  Paul Eggert  <eggert@twinsun.com>
111818                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
111819                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
111821 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111823         * gnulib-tool (func_exit): New function, to allow to pass the
111824         exit status portably through the trap.  Use everywhere.
111825         (--help, --version): Signal a write error.
111826         (trap): catch SIGPIPE, for write errors.
111827         Exit at the end of the trap, with the correct exit status.
111829 2006-09-19  Karl Berry  <karl@gnu.org>
111831         * doc/gnulib.texi: note about the license texinfo files.
111833 2006-09-19  Eric Blake  <ebb9@byu.net>
111835         * gnulib-tool: Avoid space-tab.
111837 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111839         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
111840         that prevented coreutils 6.1 from building.  Problem reported
111841         by Petter Reinholdtsen.
111843 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111845         * gnulib-tool (avoidlist): Fix typo that broke options like
111846         --avoid=lock that are used by coreutils bootstrap.
111848 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
111850         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
111851         more systematically.
111853 2006-09-18  Jim Meyering  <jim@meyering.net>
111855         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
111857 2006-09-18  Bruno Haible  <bruno@clisp.org>
111859         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
111861 2006-09-18  Bruno Haible  <bruno@clisp.org>
111863         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
111864         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
111865         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
111866         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
111867         * m4/gettext.m4: Require autoconf >= 2.52.
111868         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
111869         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
111870         of gl_cv_header_inttypes_h.
111872 2006-09-18  Bruno Haible  <bruno@clisp.org>
111874         * lib/javaversion.c: Include configmake.h.
111876 2006-09-18  Bruno Haible  <bruno@clisp.org>
111878         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
111879         avoid that the while loops be executed in a subshell.
111881 2006-09-18  Bruno Haible  <bruno@clisp.org>
111883         * MODULES.html.sh (func_module): Break long lines.
111884         Suggested by Bruce Korb <bkorb@gnu.org>.
111886 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111888         Speed up by a factor of 1.12.
111889         * gnulib-tool (nl): New variable.
111890         (func_import): Rewrite include directive extraction to only read each
111891         directive once.
111893 2006-09-17  Bruno Haible  <bruno@clisp.org>
111895         * modules/javaversion (Makefile.am): Remove DEFS setting.
111896         (Depends-on): Add configmake, for PKGDATADIR definition.
111898 2006-09-17  Bruno Haible  <bruno@clisp.org>
111900         * gnulib-tool (func_create_testdir): Rewrite all files at once.
111902 2006-09-17  Bruno Haible  <bruno@clisp.org>
111904         * gnulib-tool (func_append): New function, stolen from libtool.m4.
111905         (func_modules_transitive_closure, func_modules_add_dummy,
111906         func_modules_to_filelist, func_import, func_create_testdir,
111907         func_create_megatestdir, ...): Use it wherever possible.
111908         Suggested by Ralf Wildenhues.
111910 2006-09-16  Karl Berry  <karl@gnu.org>
111912         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
111913         to avoid sectioning errors.
111914         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
111915         [ifinfo]: blank line after @center-ed titles.
111916         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
111917         Spell FSF address consistently with others.
111918         (These changes approved by rms.)
111920 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111922         Speed up by a factor of 1.61.
111923         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
111924         already checked module names again.
111926 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111928         Speed up by a factor of 1.13.
111929         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
111930         for new_files, and the input to func_add_or_update.
111932 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111934         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
111935         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
111937 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111939         * modules/mkancesdirs (Depends-on): Add fcntl.
111940         * modules/savewd: New file.
111941         * MODULES.html.sh (File system functions): Add savewd.
111943         * modules/configmake (Makefile.am): Add support for the
111944         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
111946 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111948         * m4/savewd.m4: New file.
111950 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111952         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
111953         (dirchownmod): New arg FD.  All callers changed.
111954         Use FD rather than opening the directory ourself, as opening is
111955         now the caller's responsibility.
111956         * lib/dirchownmod.h: Likewise.
111957         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
111958         hosts that require <sys/types.h> before <sys/stat.h>.  Include
111959         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
111960         (test_dir): Remove.
111961         (mkancesdirs): Return length of prefix of FILE that has already
111962         been made, or -2 if there is a child doing the work.  Redo
111963         algorithm so that it is O(N) rather than O(N**2).  Optimize away
111964         ".", and treat ".." specially since it might stray back into
111965         already-created areas.  Use a subprocess if necessary.  New arg
111966         WD; all users changed.  MAKE_DIR function should now return 1
111967         if it creates a directory that is not readable.  Return -2 if
111968         a child process is spun off.
111969         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
111970         Adjust signature to match code.
111971         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
111972         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
111973         all users changed.
111974         * lib/savewd.c, lib/savewd.h: New files.
111976 2006-09-15  Jim Meyering  <jim@meyering.net>
111978         * modules/rename-dest-slash: New module.
111979         * MODULES.html.sh (posix_compat): Add it here.
111981         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
111983 2006-09-15  Jim Meyering  <jim@meyering.net>
111985         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
111986         file.
111988         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
111990 2006-09-15  Jim Meyering  <jim@meyering.net>
111992         * lib/rename-dest-slash.c (has_trailing_slash): Use
111993         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
111994         (rpl_rename_dest_slash): Perform the cheaper trailing slash
111995         test before testing whether SRC is a directory.
111996         Suggestions from Bruno Haible.
111998         Avoid a warning about an unused variable.
111999         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112000         into the #ifdef block where it's used.
112002         * lib/rename-dest-slash.c: New file.
112004 2006-09-14  Bruno Haible  <bruno@clisp.org>
112006         * lib/allocsa.c: Include <config.h> unconditionally.
112007         * lib/asnprintf.c: Likewise.
112008         * lib/asprintf.c: Likewise.
112009         * lib/c-strcasecmp.c: Likewise.
112010         * lib/c-strcasestr.c: Likewise.
112011         * lib/c-strncasecmp.c: Likewise.
112012         * lib/c-strstr.c: Likewise.
112013         * lib/classpath.c: Likewise.
112014         * lib/clean-temp.c: Likewise.
112015         * lib/concatpath.c: Likewise.
112016         * lib/copy-file.c: Likewise.
112017         * lib/csharpcomp.c: Likewise.
112018         * lib/csharpexec.c: Likewise.
112019         * lib/execute.c: Likewise.
112020         * lib/fatal-signal.c: Likewise.
112021         * lib/findprog.c: Likewise.
112022         * lib/fwriteerror.c: Likewise.
112023         * lib/gl_array_list.c: Likewise.
112024         * lib/gl_array_oset.c: Likewise.
112025         * lib/gl_avltree_list.c: Likewise.
112026         * lib/gl_avltree_oset.c: Likewise.
112027         * lib/gl_avltreehash_list.c: Likewise.
112028         * lib/gl_carray_list.c: Likewise.
112029         * lib/gl_linked_list.c: Likewise.
112030         * lib/gl_linkedhash_list.c: Likewise.
112031         * lib/gl_list.c: Likewise.
112032         * lib/gl_oset.c: Likewise.
112033         * lib/gl_rbtree_list.c: Likewise.
112034         * lib/gl_rbtree_oset.c: Likewise.
112035         * lib/gl_rbtreehash_list.c: Likewise.
112036         * lib/imaxabs.c: Likewise.
112037         * lib/imaxdiv.c: Likewise.
112038         * lib/javacomp.c: Likewise.
112039         * lib/javaexec.c: Likewise.
112040         * lib/javaversion.c: Likewise.
112041         * lib/linebreak.c: Likewise.
112042         * lib/localcharset.c: Likewise.
112043         * lib/lock.c: Likewise.
112044         * lib/mbchar.c: Likewise.
112045         * lib/mbswidth.c: Likewise.
112046         * lib/mkdtemp.c: Likewise.
112047         * lib/pipe.c: Likewise.
112048         * lib/printf-args.c: Likewise.
112049         * lib/printf-parse.c: Likewise.
112050         * lib/progname.c: Likewise.
112051         * lib/progreloc.c: Likewise.
112052         * lib/readlink.c: Likewise.
112053         * lib/sh-quote.c: Likewise.
112054         * lib/stpcpy.c: Likewise.
112055         * lib/stpncpy.c: Likewise.
112056         * lib/strcasecmp.c: Likewise.
112057         * lib/strcasestr.c: Likewise.
112058         * lib/strcspn.c: Likewise.
112059         * lib/striconv.c: Likewise.
112060         * lib/strncasecmp.c: Likewise.
112061         * lib/strnlen1.c: Likewise.
112062         * lib/strstr.c: Likewise.
112063         * lib/strtok_r.c: Likewise.
112064         * lib/tls.c: Likewise.
112065         * lib/tmpdir.c: Likewise.
112066         * lib/unicodeio.c: Likewise.
112067         * lib/unsetenv.c: Likewise.
112068         * lib/vasnprintf.c: Likewise.
112069         * lib/vasprintf.c: Likewise.
112070         * lib/wait-process.c: Likewise.
112071         * lib/xallocsa.c: Likewise.
112072         * lib/xsetenv.c: Likewise.
112073         * lib/xstriconv.c: Likewise.
112075 2006-09-13  Simon Josefsson  <jas@extundo.com>
112077         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112078         that internally, suggested by Ralf Wildenhues
112079         <Ralf.Wildenhues@gmx.de>.
112081 2006-09-13  Simon Josefsson  <jas@extundo.com>
112083         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112084         @LIBOBJS@.
112085         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112087 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112089         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112090         longer worry about uses that don't define HAVE_CONFIG_H.
112091         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112092         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112093         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112094         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112095         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112096         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112097         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112098         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112099         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112100         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112101         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112102         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112103         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112104         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112105         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112106         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112107         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112108         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112109         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112110         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112111         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112112         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112113         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112114         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112115         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112116         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112117         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112118         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112119         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112120         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112121         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112122         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112123         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112124         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112125         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112126         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112127         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112128         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112129         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112130         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112131         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112132         Likewise.
112134 2006-09-13  Eric Blake  <ebb9@byu.net>
112136         * lib/getopt.c: Fix typo in last commit.
112138 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112140         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112141         dgettext.
112143 2006-09-12  Jim Meyering  <jim@meyering.net>
112145         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112146         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112147         Reported by Nelson H. F. Beebe.
112149 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112151         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112152         program_invocation_name and program_invocation_short_name are
112153         initialized.
112154         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112155         and program_invocation_short_name to argp.h, so they are visible
112156         to user programs.
112157         * lib/argp.h: Likewise
112159 2006-09-10  Bruno Haible  <bruno@clisp.org>
112161         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112162         m4/inttypes_h.m4, m4/uintmax_t.m4.
112164 2006-09-10  Bruno Haible  <bruno@clisp.org>
112166         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112167         gl_AC_TYPE_UINTMAX_T.
112169 2006-09-10  Bruno Haible  <bruno@clisp.org>
112171         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112173 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112175         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112176         convention.  Text proposed by Bruno Haible.
112177         (struct argp_option): Document the use of N_() wrappers.
112179         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112180         '\v', and translate the two parts separately, instead of feeding
112181         the whole string to gettext.  This allows to exclude
112182         '\v' from the strings visible to the translator by writing doc
112183         strings as N_("..") "\v" N_("..").
112185 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112187         * config/srclist.txt: Undo latest change; the bug was fixed.
112189 2006-09-09  Bruno Haible  <bruno@clisp.org>
112191         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112192         assignments if building a library without libtool.
112193         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112194         in func_emit_lib_Makefile_am.
112195         (func_import): When building a static library libfoo.a, arrange to
112196         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112197         (func_create_testdir): Likewise.
112198         * modules/gc (configure.ac, Makefile.am): If building statically,
112199         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112200         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112201         * modules/striconv (configure.ac, Makefile.am): Likewise.
112202         Based on a suggestion by Ralf Wildenhues.
112204 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112206         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112207         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112208         Also:
112210         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112211         Add year_2050_test to catch glibc bug 2821
112212         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112214         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112215         Prefer #ifdef to #if.
112217         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
112218         Return from 'main' instead of calling 'exit'.
112220 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112222         * lib/mktime.c (guess_time_tm): Fix bug where mktime
112223         returned the maximum time_t value rather than (time_t) -1.
112224         Problem originally reported by William Bardwell
112225         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112227         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112228         Moved to here ...
112229         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112230         ... from here.
112232 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112234         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
112235         2821 is fixed.
112237 2006-09-08  Jim Meyering  <jim@meyering.net>
112239         Don't make generated files read-only.  That would bother too many
112240         people.  However, do retain the ability to work when targets are
112241         read-only: remove the destination and temporary files before writing
112242         them (when generated via sed or echo), or by using the -f option for
112243         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
112244         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112245         * modules/byteswap, modules/configmake, modules/fcntl:
112246         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112247         * modules/localcharset, modules/netinet_in, modules/poll:
112248         * modules/stdbool, modules/stdint, modules/sys_select:
112249         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112251 2006-09-08  Jim Meyering  <jim@meyering.net>
112253         Avoid new build failure on FreeBSD 6.0.
112254         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112255         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112256         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112258 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112262 2006-09-07  Jim Meyering  <jim@meyering.net>
112264         Fix global typo in last change: use chmod u-w, not chmod u-x.
112265         Spotted by Paul Eggert and Bruce Korb.
112266         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112267         * modules/byteswap, modules/configmake, modules/fcntl:
112268         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112269         * modules/localcharset, modules/netinet_in, modules/poll:
112270         * modules/stdbool, modules/stdint, modules/sys_select:
112271         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112273 2006-09-06  Jim Meyering  <jim@meyering.net>
112275         Make generated files be read-only.
112276         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112277         Ensure that each generated file is now read-only.
112278         * modules/argz: Likewise.
112279         * modules/arpa_inet: Likewise.
112280         * modules/byteswap: Likewise.
112281         * modules/configmake: Likewise.
112282         * modules/fcntl: Likewise.
112283         * modules/fnmatch: Likewise.
112284         * modules/getopt: Likewise.
112285         * modules/glob: Likewise.
112286         * modules/inttypes: Likewise.
112287         * modules/netinet_in: Likewise.
112288         * modules/poll: Likewise.
112289         * modules/stdbool: Likewise.
112290         * modules/stdint: Likewise.
112291         * modules/sys_select: Likewise.
112292         * modules/sys_socket: Likewise.
112293         * modules/sys_stat: Likewise.
112294         * modules/sysexits: Likewise.
112295         * modules/localcharset: Same as above, but continue using temporary
112296         file named "t-$@" (why different?) rather than the "$@-t" used
112297         everywhere else.
112299         * modules/sysexits (Makefile.am): Replace literal occurrences
112300         of "sysexit.h" more readable, and more consistent, "$@".
112302 2006-09-06  Bruno Haible  <bruno@clisp.org>
112304         * modules/striconv: New file.
112305         * modules/xstriconv: New file.
112306         * MODULES.html.sh (Internationalization functions): Add striconv,
112307         xstriconv.
112309 2006-09-06  Bruno Haible  <bruno@clisp.org>
112311         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112312         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112313         not using libtool correctly.
112315 2006-09-06  Bruno Haible  <bruno@clisp.org>
112317         * lib/striconv.h: New file.
112318         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112319         iconvstring.c.
112320         * lib/xstriconv.h: New file.
112321         * lib/xstriconv.c: New file.
112323 2006-09-06  Bruno Haible  <bruno@clisp.org>
112325         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112326         lib_..._LDFLAGS.
112328 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112330         * lib/argz_.h: Sync from Libtool.
112332         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112333                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112335         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112337 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112339         * modules/trim: New file.
112341 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112343         * lib/trim.h: New file.
112344         * lib/trim.c: New file.
112346 2006-09-05  Bruno Haible  <bruno@clisp.org>
112348         * MODULES.html.sh (String handling): Add trim.
112350 2006-09-04  Karl Berry  <karl@gnu.org>
112352         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112353         until next release.
112355 2006-09-03  Bruno Haible  <bruno@clisp.org>
112357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112358         correctly.
112360 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112362         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112363         not gl_GETLOADAVG.  Omit unneeded semicolons.
112364         Problems reported by Ralf Wildenhues in
112365         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112366         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112367         at the end, which is the usual gnulib style.
112369         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112370         of doing all the work ourselves.
112371         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112372         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112374 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112376         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112377         Problem reported by Ralf Wildenhues in
112378         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112380         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
112381         HAVE_STRUCT_STATFS_F_FSTYPENAME.
112383 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112385         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
112386         yesterday's patch by changing test -n to test -z.
112388 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112390         * modules/getloadavg (Files): Add m4/getloadavg.m4.
112391         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
112392         the former is now obsolescent.
112394         * modules/chdir-long (Depends-on): Add fcntl.
112396 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112398         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
112399         obsolescent, and programs should use gnulib instead.
112400         * m4/getloadavg.m4: New file, with contents taken from Autoconf
112401         but with prefixes changed.
112403 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112405         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
112406         or stdbool.h, because they might not exist while configuring.
112408         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
112409         Don't include unistd.h or limits.h; not needed, since chdir-long.h
112410         does that for us.
112411         (O_DIRECTORY): Remove.
112413 2006-08-31  Eric Blake  <ebb9@byu.net>
112415         * gnulib-tool: Don't let emacs change spaces to TAB.
112417 2006-08-31  Bruno Haible  <bruno@clisp.org>
112419         * gnulib-tool: When calling func_import more than once, do it in a
112420         subshell.
112421         Reported by Eric Blake <ebb9@byu.net>.
112423 2006-08-31  Bruno Haible  <bruno@clisp.org>
112425         * gnulib-tool (nl): Remove variable.
112426         (sed_transform_lib_file): Use more robust test for config-h module.
112427         (func_import): Fix typo in 2006-08-25 patch.
112429 2006-08-31  Bruno Haible  <bruno@clisp.org>
112431         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
112432         specified, augment Makefile.am variables instead of assigning them.
112434 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112436         Work around a bug in both the Linux and SunOS 64-bit kernels:
112437         nanosleep mishandles sleeps for longer than 2**31 seconds.
112438         Problem reported by Frank v Waveren in
112439         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
112441         Check for nanosleep bug.
112442         (LIB_NANOSLEEP): Append clock_gettime library if needed.
112444 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112446         Work around a bug in both the Linux and SunOS 64-bit kernels:
112447         nanosleep mishandles sleeps for longer than 2**31 seconds.
112448         Problem reported by Frank v Waveren in
112449         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112450         * lib/nanosleep.c (BILLION): New constant.
112451         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
112452         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
112453         implementation.
112455 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112457         * modules/nanosleep (Depends-on): Add gettime.
112459 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112460         and Simon Josefsson  <jas@extundo.com>
112461         and Oskar Liljeblad  <oskar@osk.mine.nu>
112463         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
112464         * gnulib-tool (func_import): New license type 'unmodifiable license
112465         text'.
112466         * modules/fdl: Use it.  Longer description.
112467         * module/gpl, module/lgpl: New files.
112469 2006-08-30  Jim Meyering  <jim@meyering.net>
112471         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
112472         shadowing the parameter.
112474 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112476         Sync from Libtool:
112478         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112480         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
112481         sharing with gnulib.  Report by Eric Blake.
112483 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112485         * modules/isapipe: New file.
112486         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
112488 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112490         * modules/configmake (Makefile.am): Add a comment, and omit
112491         the CONFIGMAKE_ prefix from generated macro names.  Suggested
112492         by Bruno Haible.
112494 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112496         * m4/isapipe.m4: New file.
112498 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112500         * lib/isapipe.c, lib/isapipe.h: New files.
112502 2006-08-29  Jim Meyering  <jim@meyering.net>
112504         * modules/configmake (Makefile.am): Make configmake.h depend on
112505         Makefile.  Otherwise, a stale configmake.h could hang around.
112507 2006-08-29  Eric Blake  <ebb9@byu.net>
112509         * lib/error.c (error_at_line, print_errno_message): Match libc, after
112510         resolution of upstream bug 3044.
112512 2006-08-29  Bruno Haible  <bruno@clisp.org>
112514         * modules/localcharset (Depends-on): Add configmake.
112515         (Makefile.am): Remove setting of LIBDIR through DEFS.
112517 2006-08-29  Bruno Haible  <bruno@clisp.org>
112519         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
112520         defined.
112522 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112524         * modules/fcntl: New file.
112525         * modules/chdir-safer (Depends-on): Add fcntl.
112526         * modules/fts: Likewise.
112527         * modules/mkdir-p: Likewise.
112529         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
112530         This undoes the most recent change, since we're now addressing the
112531         problem in a different way.
112533         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
112534         into output, since the output might be called Makefile.am even
112535         if $makefile_name is something different.
112536         (func_import): Use $makefile_am rather than
112537         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
112538         empty.
112540         * modules/inttypes (Files): Add m4/inttypes-h.m4.
112542 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112544         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
112545         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
112546         recent change to stdint.m4, since we're now addressing the problem in a
112547         different way.
112549 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112551         * m4/fcntl_h.m4: New file.
112553 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112555         * lib/fcntl_.h: New file.
112556         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
112557         the fcntl module.
112558         * lib/dirchownmod.c: Likewise.
112559         * lib/fts.c: Likewise.
112561         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
112562         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
112563         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
112564         just before including <inttypes.h>, to avoid circular inclusion.
112566 2006-08-28  Jim Meyering  <jim@meyering.net>
112568         * doc/visibility.texi: Actually read and correct the grammar of the
112569         sentence affected by yesterday's change.
112571 2006-08-28  Eric Blake  <ebb9@byu.net>
112573         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
112574         needs wrapper.
112576 2006-08-28  Eric Blake  <ebb9@byu.net>
112578         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
112580 2006-08-28  Eric Blake  <ebb9@byu.net>
112582         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
112584 2006-08-28  Bruno Haible  <bruno@clisp.org>
112586         * modules/c-strstr: New file, from GNU gettext.
112587         * MODULES.html.sh (String handling): Add c-strstr.
112589 2006-08-28  Bruno Haible  <bruno@clisp.org>
112591         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
112592         macros.
112593         Reported by Eric Blake.
112595 2006-08-28  Bruno Haible  <bruno@clisp.org>
112597         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
112598         (VASNPRINTF): Return a string of length > INT_MAX without failing.
112599         * lib/vasprintf.c: Include errno.h, limits.h.
112600         (EOVERFLOW): New fallback definition.
112601         (vasprintf): Test here whether the string length is > INT_MAX.
112602         * lib/vsnprintf.c: Include errno.h, limits.h.
112603         (EOVERFLOW): New fallback definition.
112604         (vsnprintf): Fix bug when generated string was too long for the buffer.
112605         Test here whether the string length is > INT_MAX.
112607 2006-08-28  Bruno Haible  <bruno@clisp.org>
112609         * lib/inttypes_.h (SCNX*): Remove definitions.
112610         Reported by Eric Blake.
112612 2006-08-28  Bruno Haible  <bruno@clisp.org>
112614         * lib/c-strstr.h: New file, from GNU gettext.
112615         * lib/c-strstr.c: New file, from GNU gettext.
112617 2006-08-28  Bruno Haible  <bruno@clisp.org>
112619         * gnulib-tool: Reorder some statements.
112621 2006-08-28  Bruno Haible  <bruno@clisp.org>
112623         * gnulib-tool: New option --makefile-name.
112624         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
112625         $makefile_name.
112626         (func_import): Write $makefile_name to the cache file, and read it from
112627         there unless explicitly specified. Use $makefile_name as file name
112628         instead of Makefile.am. Adjust the recommendations accordingly.
112630 2006-08-28  Bruno Haible  <bruno@clisp.org>
112632         * gnulib-tool (func_verify_module): Check against misapplying patch.
112634 2006-08-28  Bruno Haible  <bruno@clisp.org>
112636         * gnulib-tool (func_relativize, func_relconcat): New functions.
112637         Give an error if --local-dir is given with --update.
112638         Remove trailing slashes from $local_gnulib_dir.
112639         (func_import): Store the relativized $local_gnulib_dir in
112640         gnulib-cache.m4, and read it from there if not specified explicitly.
112642 2006-08-28  Bruno Haible  <bruno@clisp.org>
112644         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
112645         is the current directory. Respect also $local_gnulib_dir.
112647 2006-08-28  Bruno Haible  <bruno@clisp.org>
112648             Simon Josefsson  <jas@extundo.com>
112650         BeOS portability.
112651         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
112653 2006-08-27  Jim Meyering  <jim@meyering.net>
112655         * doc/visibility.texi: Remove duplicate word: "pointer".
112657 2006-08-26  Bruno Haible  <bruno@clisp.org>
112659         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
112660         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
112661         (Makefile.am): Create inttypes.h from inttypes_.h.
112662         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
112664         * modules/imaxabs: New file.
112666         * modules/imaxdiv: New file.
112668 2006-08-26  Bruno Haible  <bruno@clisp.org>
112670         * m4/inttypes.m4: New file.
112671         * m4/_inttypes_h.m4: Remove file.
112672         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
112673         PRI_MACROS_BROKEN.
112674         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
112676         * m4/imaxabs.m4: New file.
112678         * m4/imaxdiv.m4: New file.
112680 2006-08-26  Bruno Haible  <bruno@clisp.org>
112682         * lib/inttypes_.h: New file.
112683         * lib/inttypes.h: Remove file.
112684         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
112686         * lib/imaxabs.c: New file.
112688         * lib/imaxdiv.c: New file.
112690 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112692         New config-h module, so that "make" output needn't be cluttered
112693         by -DHAVE_CONFIG_H.
112694         * MODULES.html.sh (Support for building libraries and executables):
112695         Add config-h.
112696         * modules/config-h: New file.
112697         * gnulib-tool (nl, sed_transform_lib_file): New vars.
112698         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
112699         the config-h module is used.
112701         New configmake module, so that "make" output needn't be cluttered
112702         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
112703         * MODULES.html.sh (Support for building libraries and executables):
112704         Add configmake.
112705         * modules/configmake: New file.
112707 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112709         * m4/config-h.m4: New file.
112711 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112713         * config/srclist.txt: Add elisp-comp.
112715 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112717         * MODULES.html.sh (Support for building libraries and executables):
112718         Add elisp-comp.
112719         * build-aux/elisp-comp: New file.
112720         * modules/elisp-comp: New file.
112722 2006-08-24  Bruno Haible  <bruno@clisp.org>
112724         * gnulib-tool (func_create_testdir): Use non-default values of
112725         sourcebase and m4base.
112727 2006-08-24  Bruno Haible  <bruno@clisp.org>
112729         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
112730         HTML structure.
112732 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112734         * modules/openat (Depends-on): Add lchown.
112736 2006-08-23  Bruno Haible  <bruno@clisp.org>
112738         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
112739         of gl_LOCK_EARLY instead of gl_LOCK.
112741 2006-08-23  Bruno Haible  <bruno@clisp.org>
112743         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
112744         on OSF/1 to no.
112745         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
112747 2006-08-23  Bruno Haible  <bruno@clisp.org>
112749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
112750         as unusable.
112752         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
112753         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
112754         (gl_LOCK): New macro.
112756 2006-08-22  Simon Josefsson  <jas@extundo.com>
112758         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
112759         to md5 module.
112761 2006-08-22  Simon Josefsson  <jas@extundo.com>
112763         * MODULES.html.sh: Add "Support for maintaining and release
112764         projects".
112766         * build-aux/gnupload: New file, from coreutils.
112768 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112770         Avoid the need for AC_LIBSOURCES in m4 macros.
112771         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
112772         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
112773         * modules/check-version (EXTRA_DIST): Add check-version.h.
112774         * modules/crc (EXTRA_DIST): Add crc.h.
112775         * modules/des (EXTRA_DIST): Add des.h.
112776         * modules/gc (EXTRA_DIST): Add gc.h.
112777         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
112778         * modules/getline (EXTRA_DIST): Add getline.h.
112779         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
112780         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
112781         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
112782         * modules/md2 (EXTRA_DIST): Add md2.h.
112783         * modules/md4 (EXTRA_DIST): Add md4.h.
112784         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
112785         * modules/read-file (EXTRA_DIST): Add read-file.h.
112786         * modules/readline (EXTRA_DIST): Add readline.h.
112787         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
112788         rijndael-api-fst.h.
112790 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112792         * m4/rijndael.m4 (gl_ARCFOUR):
112793         * m4/arctwo.m4 (gl_ARCTWO):
112794         * m4/check-version.m4 (gl_CHECK_VERSION):
112795         * m4/crc.m4 (gl_CRC):
112796         * m4/des.m4 (gl_DES):
112797         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
112798         * m4/gc.m4 (gl_GC):
112799         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
112800         * m4/getline.m4 (gl_FUNC_GETLINE):
112801         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
112802         * m4/hmac-md5.m4 (gl_HMAC_MD5):
112803         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
112804         * m4/md2.m4 (gl_MD2):
112805         * m4/md4.m4 (gl_MD4):
112806         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
112807         * m4/read-file.m4 (gl_FUNC_READ_FILE):
112808         * m4/readline.m4 (gl_FUNC_READLINE):
112809         * m4/rijndael.m4 (gl_RIJNDAEL):
112810         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
112811         to get the necessary .h files and whatnot.
112813 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112815         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
112816         gnulib rather than the other way around.
112817         * config/srclistvars.sh (COREUTILS): Remove.
112819 2006-08-22  Jim Meyering  <jim@meyering.net>
112821         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
112823         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
112825 2006-08-22  Eric Blake  <ebb9@byu.net>
112827         * modules/regexprops-generic: New file.
112828         * MODULES.html.sh (Support for building documentation): List it.
112830 2006-08-22  Eric Blake  <ebb9@byu.net>
112832         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
112833         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
112834         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
112835         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
112837 2006-08-22  Bruno Haible  <bruno@clisp.org>
112839         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
112840         and lib_LTLIBRARIES like the other lib_* variables.
112842 2006-08-22  Bruno Haible  <bruno@clisp.org>
112844         * build-aux/x-to-1.in: New file, from GNU gettext.
112846 2006-08-22  Bruno Haible  <bruno@clisp.org>
112848         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
112849         <utmpx.h> exists.
112851 2006-08-22  Bruno Haible  <bruno@clisp.org>
112853         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
112854         <utmpx.h> exists.
112856 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112858         BeOS portability.
112859         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
112860         exist.
112861         Problem reported by Bruno Haible.
112863 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112865         Avoid the need for AC_LIBSOURCES in m4 macros.
112866         * modules/acl (EXTRA_DIST): Add acl.h.
112867         * modules/argmatch (Files): Add m4/argmatch.m4.
112868         (configure.ac): Add gl_ARGMATCH.
112869         (EXTRA_DIST): Renamed from lib_SOURCES, for
112870         consistency with the other modules.  Remove argmatch.c.
112871         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
112872         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
112873         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
112874         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
112875         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
112876         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
112877         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
112878         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
112879         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
112880         * modules/closeout (EXTRA_DIST): Add closeout.h.
112881         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
112882         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
112883         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
112884         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
112885         dirname.h; remove basename.c and stripslash.c.
112886         * modules/exclude (EXTRA_DIST): Add exclude.h.
112887         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
112888         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
112889         * modules/file-type (EXTRA_DIST): Add file-type.h.
112890         * modules/filemode (EXTRA_DIST): Add filemode.h.
112891         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
112892         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
112893         * modules/fpending (EXTRA_DIST): Add __fpending.h.
112894         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
112895         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
112896         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
112897         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
112898         * modules/getdate (EXTRA_DIST): Add getdate.c.
112899         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
112900         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
112901         * modules/getpass (EXTRA_DIST): Add getpass.h.
112902         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
112903         * modules/group-member (EXTRA_DIST): Add group-member.h.
112904         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
112905         * modules/hash (EXTRA_DIST): Add hash.h.
112906         * modules/human (EXTRA_DIST): Add human.h.
112907         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
112908         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
112909         * modules/lchown (EXTRA_DIST): Add lchown.h.
112910         * modules/long-options (EXTRA_DIST): Add long-options.h.
112911         * modules/lstat (EXTRA_DIST): Add lstat.h.
112912         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
112913         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
112914         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
112915         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
112916         * modules/memxor (EXTRA_DIST): Add memxor.h.
112917         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
112918         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
112919         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
112920         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
112921         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
112922         * modules/physmem (EXTRA_DIST): Add physmem.h.
112923         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
112924         * modules/posixver (EXTRA_DIST): Add posixver.h.
112925         * modules/quote (EXTRA_DIST): Add quote.h.
112926         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
112927         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
112928         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
112929         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
112930         regex_internal.h regexec.c.
112931         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
112932         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
112933         * modules/same (EXTRA_DIST): Add same.h.
112934         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
112935         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
112936         * modules/savedir (EXTRA_DIST): Add savedir.h.
112937         * modules/sha1 (EXTRA_DIST): Add sha1.h.
112938         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
112939         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
112940         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
112941         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
112942         * modules/strdup (EXTRA_DIST): Add strdup.h.
112943         * modules/strftime (EXTRA_DIST): Add strftime.h.
112944         * modules/strndup (EXTRA_DIST): Add strndup.h.
112945         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
112946         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
112947         * modules/time_r (EXTRA_DIST): Add time_r.h.
112948         * modules/timespec (EXTRA_DIST): Add timespec.h.
112949         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
112950         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
112951         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
112952         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
112953         * modules/userspec (EXTRA_DIST): Add userspec.h.
112954         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
112955         * modules/utimens (EXTRA_DIST): Add utimens.h.
112956         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
112957         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
112958         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
112959         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
112960         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
112961         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
112962         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
112963         * modules/yesno (EXTRA_DIST): Add yesno.h.
112965 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112967         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
112969         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
112970         * m4/dev-ino.m4, same-inode.m4: Remove.
112972         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
112973         * m4/acl.m4 (AC_FUNC_ACL):
112974         * m4/backupfile.m4 (gl_BACKUPFILE):
112975         * m4/c-strtod.m4 (gl_C99_STRTOLD):
112976         * m4/canon-host.m4 (gl_CANON_HOST):
112977         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
112978         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
112979         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
112980         * m4/cloexec.m4 (gl_CLOEXEC):
112981         * m4/close-stream.m4 (gl_CLOSE_STREAM):
112982         * m4/closeout.m4 (gl_CLOSEOUT):
112983         * m4/dirfd.m4 (gl_FUNC_DIRFD):
112984         * m4/dirname.m4 (gl_DIRNAME):
112985         * m4/exclude.m4 (gl_EXCLUDE):
112986         * m4/exitfail.m4 (gl_EXITFAIL):
112987         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
112988         * m4/file-type.m4 (gl_FILE_TYPE):
112989         * m4/filemode.m4 (gl_FILEMODE):
112990         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
112991         * m4/fpending.m4 (gl_FUNC_FPENDING):
112992         * m4/fprintftime.m4 (gl_FPRINTFTIME):
112993         * m4/fts.m4 (gl_FUNC_FTS):
112994         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
112995         * m4/getdate.m4 (gl_GETDATE):
112996         * m4/gethrxtime.m4 (gl_GETHRXTIME):
112997         * m4/getpagesize.m4 (gl_GETPAGESIZE):
112998         * m4/getpass.m4 (gl_FUNC_GETPASS):
112999         * m4/gettime.m4 (gl_GETTIME):
113000         * m4/getugroups.m4 (gl_GETUGROUPS):
113001         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113002         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113003         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113004         * m4/hash.m4 (gl_HASH):
113005         * m4/idcache.m4 (gl_IDCACHE):
113006         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113007         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113008         * m4/long-options.m4 (gl_LONG_OPTIONS):
113009         * m4/lstat.m4 (gl_FUNC_LSTAT):
113010         * m4/md5.m4 (gl_MD5):
113011         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113012         * m4/memcoll.m4 (gl_MEMCOLL):
113013         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113014         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113015         * m4/memxor.m4 (gl_MEMXOR):
113016         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113017         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113018         * m4/modechange.m4 (gl_MODECHANGE):
113019         * m4/mountlist.m4 (gl_MOUNTLIST):
113020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113021         * m4/openat.m4 (gl_FUNC_OPENAT):
113022         * m4/pathmax.m4 (gl_PATHMAX):
113023         * m4/physmem.m4 (gl_PHYSMEM):
113024         * m4/posixtm.m4 (gl_POSIXTM):
113025         * m4/posixver.m4 (gl_POSIXVER):
113026         * m4/quote.m4 (gl_QUOTE):
113027         * m4/quotearg.m4 (gl_QUOTEARG):
113028         * m4/readtokens.m4 (gl_READTOKENS):
113029         * m4/readutmp.m4 (gl_READUTMP):
113030         * m4/regex.m4 (gl_REGEX):
113031         * m4/safe-read.m4 (gl_SAFE_READ):
113032         * m4/safe-write.m4 (gl_SAFE_WRITE):
113033         * m4/same.m4 (gl_SAME):
113034         * m4/save-cwd.m4 (gl_SAVE_CWD):
113035         * m4/savedir.m4 (gl_SAVEDIR):
113036         * m4/settime.m4 (gl_SETTIME):
113037         * m4/sha1.m4 (gl_SHA1):
113038         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113039         * m4/stat-macros.m4 (gl_STAT_MACROS):
113040         * m4/stat-time.m4 (gl_STAT_TIME):
113041         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113042         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113043         * m4/strdup.m4 (gl_FUNC_STRDUP):
113044         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113045         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113046         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113047         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113048         * m4/time_r.m4 (gl_TIME_R):
113049         * m4/timespec.m4 (gl_TIMESPEC):
113050         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113051         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113052         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113053         * m4/userspec.m4 (gl_USERSPEC):
113054         * m4/utimecmp.m4 (gl_UTIMECMP):
113055         * m4/utimens.m4 (gl_UTIMENS):
113056         * m4/xalloc.m4 (gl_XALLOC):
113057         * m4/xgetcwd.m4 (gl_XGETCWD):
113058         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113059         * m4/xreadlink.m4 (gl_XREADLINK):
113060         * m4/xstrtod.m4 (gl_XSTRTOD):
113061         * m4/yesno.m4 (gl_YESNO):
113062         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113063         to get the necessary .h files and whatnot.
113065 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113066             Bruno Haible  <bruno@clisp.org>
113068         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113069         /bin/sh understanding of '!' conditional negation.
113071 2006-08-21  Jim Meyering  <jim@meyering.net>
113073         * modules/openat (Depends-on): Really alphabetize.
113075         * modules/acl (Depends-on): Add error and quote.
113077         * check-module (find_included_lib_files): Add at-func.c to the
113078         ok-to-include-more-than-once white list.
113080         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113082 2006-08-21  Bruno Haible  <bruno@clisp.org>
113084         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113085         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113086         Reported by Martin Lambers <marlam@marlam.de>.
113088 2006-08-21  Bruno Haible  <bruno@clisp.org>
113090         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113091         specify an installation location, don't emit a noinst_LIBRARIES or
113092         noinst_LTLIBRARIES assignment.
113094 2006-08-21  Bruno Haible  <bruno@clisp.org>
113096         BeOS portability.
113097         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113098         BeOS has mbrtowc() but no <wctype.h>.
113100 2006-08-21  Bruno Haible  <bruno@clisp.org>
113102         BeOS portability.
113103         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113104         exist.
113106 2006-08-21  Bruno Haible  <bruno@clisp.org>
113108         BeOS portability.
113109         * lib/mbchar.h: Include <wctype.h> only if it exists.
113111 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113113         Remove files that are no longer needed by their respective modules.
113114         * m4/obstack.m4: Remove.
113115         * m4/strerror_r.m4: Remove.
113116         * m4/uint32_t.m4: Remove.
113117         * m4/uintptr_t.m4: Remove.
113118         * m4/ullong_max.m4: Remove.
113119         * m4/xstrtoimax.m4: Remove.
113120         * m4/xstrtoumax.m4: Remove.
113122         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113123         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113124         dependencies now capture this.
113126         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113127         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113128         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113129         * m4/human.m4 (gl_HUMAN): Likewise.
113130         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113131         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113133         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113135         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113136         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113137         stdint.
113138         * m4/human.m4 (gl_HUMAN): Likewise.
113139         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113140         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113141         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113142         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113143         * m4/xstrtol (gl_XSTRTOL): Likewise.
113145         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113146         AC_TYPE_LONG_LONG_INT.
113147         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113148         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113149         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113150         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113152         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113153         on stdbool.
113155         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113156         (gl_PREREQ_XSTRTOUL): Remove.
113158         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113160         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113161         mode.
113163 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113165         Add and change modules to make it easier for coreutils to use
113166         gnulib-tool.
113167         * modules/backupfile (Files): Remove m4/d-ino.m4.
113168         (Depends-on): Add d-ino.
113169         * modules/cycle-check (Depends-on): Add stdint.
113170         (lib_SOURCES): Add cycle-check.h.
113171         * modules/d-ino: New module.
113172         * modules/d-type: New module.
113173         * modules/error (Files): Remove m4/strerror_r.m4.
113174         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113175         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113176         m4/inttypes_h.m4, m4/uintmax_t.m4.
113177         (Depends-on): Add stdint.
113178         (lib_SOURCES): Add fsusage.h.
113179         * modules/getcwd (Files): Remove d-ino.m4.
113180         (Depends-on): Add d-ino.
113181         * modules/getndelim2 (Depends-on): Add stdint.
113182         * modules/glob (Files): Remove m4/d-type.m4.
113183         (Depends-on): Add d-type.
113184         * modules/host-os: New module.
113185         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113186         m4/inttypes_h.m4, m4/uintmax_t.m4.
113187         * Depends-on: Add stdint.
113188         (lib_SOURCES): Add human.h.
113189         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113190         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113191         m4/uintmax_t.m4, m4/ulonglong.m4.
113192         (Depends-on): Add stdint.
113193         (EXTRA_DIST): Add inttostr.h.
113194         * modules/lchmod: New module.
113195         * modules/link-follow: New module.
113196         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113197         (Depends-on): Add lchmod.
113198         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113199         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113200         (Depends-on): Add stdint.
113201         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113202         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113203         (Depends-on): Add stdint.
113204         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113205         * modules/perl: New module.
113206         * modules/regex (Depends-on): Add stdint.
113207         * modules/rmdir-errno: New module.
113208         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113209         m4/intmax_t.m4.
113210         (Depends-on): Add stdint.
113211         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113212         m4/uintmax_t.m4.
113213         (Depends-on): Add stdint.
113214         * modules/unlink-busy: New module.
113215         * modules/utimecmp (Depends-on): Add stdint.
113216         * modules/uptime: New module.
113217         * modules/winsz-ioctl: New module.
113218         * modules/winsz-termios: New module.
113219         * modules/xnanosleep (Depends-on): Add nanosleep.
113220         * modules/ullong_max: Remove.
113221         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
113222         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
113223         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
113224         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
113225         (Depends-on): Add inttypes.
113226         (lib_SOURCES): Add xstrtol.h.
113227         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
113228         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
113229         * MODULES.html.sh: Move 'assert' into the assert section.
113230         Move 'dummy' into the linking section.
113231         Remove ullong_max.
113232         Add section for compatibility checks for POSIX:2001 functions,
113233         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
113234         winsz-ioctl, and winsz-termios into it.
113235         Add lchmod.
113236         Add top-level Misc section and put host-os, perl, and uptime
113237         into it.
113239 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113241         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
113242         now assume the stdint module.  Do not include inttypes.h.
113243         * lib/fsusage.h: Likewise.
113244         * lib/getndelim2.c: Likewise.
113245         * lib/human.h: Likewise.
113246         * lib/inttostr.h: Likewise.
113247         * lib/obstack.c: Likewise.
113248         * lib/regex_internal.h: Likewise.
113249         * lib/tempname.c: Likewise.
113250         * lib/utimecmp.c: Likewise.
113251         * lib/xstrtol.h: Likewise.
113253         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113255         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113256         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113257         * lib/xtime.h: Likewise.
113259 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113261         * modules/openat (Files): Add lib/fchmodat.c.
113262         Fixes problem reported by Jay Youngman.
113264 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113266         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113267         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113269 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113270             Bruno Haible  <bruno@clisp.org>
113272         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113273         and is a script that invokes bison. Tighten the code. Add comments.
113275 2006-08-18  Jim Meyering  <jim@meyering.net>
113277         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113278         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113279         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113280         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113282 2006-08-18  Bruno Haible  <bruno@clisp.org>
113284         * modules/bison-i18n: New file.
113285         * MODULES.html.sh (Internationalization functions): Add it.
113287 2006-08-18  Bruno Haible  <bruno@clisp.org>
113289         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113290         sys/statvfs.h. When getmntinfo was found, check its declaration and
113291         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113293 2006-08-18  Bruno Haible  <bruno@clisp.org>
113295         * m4/bison-i18n.m4: New file, from bison.
113297 2006-08-18  Bruno Haible  <bruno@clisp.org>
113299         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113300         (ME_DUMMY): Treat "kernfs" as a dummy.
113301         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113303 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113305         Update from coreutils.
113307         2006-08-15  Jim Meyering  <jim@meyering.net>
113309         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113311         2006-01-17  Jim Meyering  <jim@meyering.net>
113313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113315         2006-01-11  Jim Meyering  <jim@meyering.net>
113317         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113318         Check for the lchmod function.
113320 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113322         Update from coreutils.
113324         * lib/__fpending.h: Add copyright notice.
113325         * lib/fprintftime.h: Likewise.
113326         * lib/savedir.c: Use (C) in copyright notice.
113327         * lib/savedir.h: Likewise.
113329         2006-08-15  Jim Meyering  <jim@meyering.net>
113331         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113332         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113333         in support of the EXPECTED_ERRNO macro.
113334         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113335         definitions.  Instead, define the appropriate symbols and include
113336         "at-func.c".
113337         * lib/mkdirat.c (mkdirat): Likewise.
113338         * lib/fchmodat.c (fchmodat): Likewise.
113339         (ENOSYS): Remove definition.
113340         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113341         it.  Don't include "unistd--.h" -- it wasn't ever used.
113343         2006-01-17  Jim Meyering  <jim@meyering.net>
113345         Rewrite fts.c not to change the current working directory,
113346         by using openat, fstatat, fdopendir, etc..
113348         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113349         (HAVE_OPENAT_SUPPORT): Define.
113350         [_LIBC] (fchdir): Don't undef or define; no longer used.
113351         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113352         Now, this `function' always succeeds, and consumes its file descriptor
113353         parameter -- so callers must not close such FDs.  Update callers.
113354         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113355         (diropen): Add parameter, SP.  Adjust all callers.
113356         Implement using diropen_fd, rather than open.
113357         (fts_open): Initialize new member, fts_cwd_fd.
113358         Remove fts_rft-setting code.
113359         (fts_close): Close fts_cwd_fd, if necessary.
113360         (__opendir2): Define in terms of opendir or opendirat,
113361         depending on whether the FST_NOCHDIR flag is set.
113362         (fts_build): Since fts_safe_changedir consumes its FD, and since
113363         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113364         and close the dup'd file descriptor upon failure.
113365         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113366         (fts_safe_changedir): Tweak semantics to reflect that this function
113367         now calls cwd_advance_fd and hence consumes its FD argument.
113368         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113369         [struct FTS] (fts_rft): Remove now-unused member.
113370         [struct FTS] (fts_cycle.state): Improve comment.
113372         * lib/openat.c (openat_needs_fchdir): New function.
113373         * lib/openat.h (openat_needs_fchdir): Declare it.
113375 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113377         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113378         Problem and fix reported by Pádraig Brady in
113379         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
113381 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113383         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
113385 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113387         * lib/memcoll.c (memcoll): Optimize for the common case where the
113388         arguments are bytewise equal.
113390 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113392         * doc/regexprops-generic.texi: Add a copyright notice.
113394 2006-08-15  Bruno Haible  <bruno@clisp.org>
113396         * modules/tmpdir (License): Change to LGPL.
113398 2006-08-15  Bruno Haible  <bruno@clisp.org>
113400         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
113401         module.
113403 2006-08-14  Simon Josefsson  <jas@extundo.com>
113405         * config/srclist.txt: Add gnupload.
113407 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113409         Change copyright notice from LGPL 2 to GPL 2, since that's the
113410         standard form used in the gnulib repository.
113411         * tests/test-lock.c: Likewise.
113412         * tests/test-stdint.c: Likewise.
113413         * tests/test-tls.c: Likewise.
113415         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
113416         prelude-manager.  User shorter URLs for GNU projects, without '?'.
113417         Add copyright notice.
113419         * check-module: Add copyright notice.  Output a copyright
113420         notice if "--version" is specified.
113421         * modules/COPYING: New file.
113422         * tests/test-getaddrinfo.c: Add copyright notice.
113423         * tests/test-verify.c: Likewise.
113425 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113427         Change copyright notice from LGPL 2 to GPL 2, since that's the
113428         standard form used in the gnulib repository.
113429         * lib/lock.c: LGPL -> GPL.
113430         * lib/lock.h: Likewise.
113431         * lib/strnlen1.c: Likewise.
113432         * lib/strnlen1.h: Likewise.
113433         * lib/tls.c: Likewise.
113434         * lib/tls.h: Likewise.
113435         * lib/tmpdir.c: Likewise.
113437         * lib/TODO: Remove; this belongs only in coreutils.
113439 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113441         Add copyright notices to long-enough files that lack them, since
113442         otherwise the files aren't clearly free.  Use the same notice that
113443         getdate.texi already uses.
113444         * doc/alloca-opt.texi: Add copyright notice.
113445         * doc/alloca.texi: Likewise.
113446         * doc/ctime.texi: Likewise.
113447         * doc/functions.texi: Likewise.
113448         * doc/gcd.texi: Likewise.
113449         * doc/gnulib-tool.texi: Likewise.
113450         * doc/inet_ntoa.texi: Likewise.
113451         * doc/visibility.texi: Likewise.
113453         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
113454         * doc/quote.texi: Add copyright notice.
113456         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
113457         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
113458         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
113459         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
113460         is now obsolete, and give a pointer to the Sun list.
113461         Add copyright notice.
113463 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113465         * config/srclistvars.sh: Add copyright notice.
113467 2006-08-14  Eric Blake  <ebb9@byu.net>
113469         Import the following change from libc:
113471         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
113473         Upstream bug 2997.
113474         * lib/misc/error.c: Add space between program name and message if file
113475         name is missing.
113477 2006-08-12  Karl Berry  <karl@gnu.org>
113479         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
113480         remove, these originate in gnulib now.
113482 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113484         * doc/Makefile (standards.info standards.html standards.dvi):
113485         Also depend on make-stds.texi.
113487 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113489         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
113490         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
113492         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
113493         in wchar_t.  Problem reported by Eric Blake.
113495         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
113496         LEN is smaller than SIZE.  Suggested by Bruno Haible.
113497         Also, help the compiler to keep LEN in a register.
113499 2006-08-11  Eric Blake  <ebb9@byu.net>
113501         * users.txt: Sort.  Add tar.
113503 2006-08-11  Bruno Haible  <bruno@clisp.org>
113505         * users.txt: New file.
113507 2006-08-11  Bruno Haible  <bruno@clisp.org>
113509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
113510         before <wchar.h>. Needed for OSF/1 and BSD/OS.
113512 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113514         * modules/snprintf (Depends-on): Remove minmax.
113515         (Maintainer): Add self and Bruno.
113517 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113519         * lib/.cppi-disable: Add snprintf.h, socket_.h.
113520         * lib/snprintf.c: Include <errno.h> and <limits.h>.
113521         (EOVERFLOW): Define if the system does not.
113522         Do not include "minmax.h"; it wasn't used.
113523         (snprintf): Don't assume size_t promotes to an unsigned type.
113524         Fix bug when generated string was too long for the buffer: the
113525         buffer's contents are supposed to be the initial prefix of the
113526         output.  Don't assume vasnprintf returns EOVERFLOW if the size
113527         exceeds INT_MAX; do the check ourselves.
113529         Import the following changes from libc:
113531         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
113533         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
113534         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
113535         set wc to the byte which couldn't be converted.
113536         (re_string_reconstruct): Don't clear valid_raw_len before calling
113537         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
113538         tip_context using re_string_context_at.
113540         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
113542         * lib/posix/regex.h: g++ still cannot handled [restrict].
113544         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
113546         * lib/posix/regex.h: Remove special handling for VMS.
113548 2006-08-10  Jim Meyering  <jim@meyering.net>
113550         * modules/same-inode: New module.
113551         * modules/dev-ino: New module.
113552         * modules/cycle-check: Depend on these modules, rather than simply
113553         including their .h files.
113554         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
113555         required via m4/cycle-check.m4.
113556         * modules/same: Depend on new same-inode module, rather than
113557         including same-inode.h.
113558         * modules/chdir-safer: New file.
113560         * modules/chown (Depends-on): Add stat-macros.
113562 2006-08-10  Jim Meyering  <jim@meyering.net>
113564         * m4/cycle-check.m4: New file.
113565         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
113566         * m4/dev-ino.m4, m4/same-inode.m4: New files.
113568 2006-08-10  Eric Blake  <ebb9@byu.net>
113570         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
113571         in from original proposal.
113573 2006-08-10  Eric Blake  <ebb9@byu.net>
113574         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113576         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
113577         namespace.
113579 2006-08-10  Bruno Haible  <bruno@clisp.org>
113581         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
113582         as well.
113584 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113586         Sync from coreutils.
113588         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
113590         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
113591         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
113593 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113595         * modules/restrict: Remove; no longer needed now that we assume
113596         Autoconf 2.59 or later.
113597         * MODULES.html.sh: Remove 'restrict'.
113598         * modules/argp (Depends-on): Remove 'restrict'.
113599         * modules/base64 (Depends-on): Likewise.
113600         * modules/gc (Depends-on): Likewise.
113601         * modules/getaddrinfo (Depends-on): Likewise.
113602         * modules/glob (Depends-on): Likewise.
113603         * modules/inet_ntop (Depends-on): Likewise.
113604         * modules/inet_pton (Depends-on): Likewise.
113605         * modules/memxor (Depends-on): Likewise.
113606         * modules/regex (Depends-on): Likewise.
113607         * modules/strtok_r (Depends-on): Likewise.
113608         * modules/time_r (Depends-on): Likewise.
113610 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113612         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
113613         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
113614         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
113615         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
113616         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
113617         * m4/memxor.m4 (gl_MEMXOR): Likewise.
113618         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
113619         gl_C_RESTRICT replaced by AC_C_RESTRICT.
113621         Merge from coreutils.
113622         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
113623         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
113624         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
113625         * m4/time_r.m4 (gl_TIME_R): Likewise.
113627 2006-08-09  Karl Berry  <karl@gnu.org>
113629         * config/srclist.txt: no more gettext-tools, per Bruno.
113631 2006-08-08  Eric Blake  <ebb9@byu.net>
113633         * modules/verror: New module.
113634         * MODULES.html.sh: Document it.
113636 2006-08-08  Eric Blake  <ebb9@byu.net>
113638         * lib/verror.h, lib/verror.c: New files.
113640 2006-08-08  Eric Blake  <ebb9@byu.net>
113642         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
113643         verror_at_line output complies with GNU Coding Standards even when
113644         file is NULL.
113646 2006-08-07  Bruno Haible  <bruno@clisp.org>
113648         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
113649         versions of AIX.
113650         Reported by Ralf Wildenhues.
113652 2006-08-07  Bruno Haible  <bruno@clisp.org>
113654         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
113655         in an AC_DEFUN. Needed so that the autoconf snippets can use
113656         AC_REQUIRE.
113658 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113660         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113661         Initialize pkgdata_DATA.
113662         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
113663         overriding it.
113665 2006-08-06  Eric Blake  <ebb9@byu.net>
113667         * lib/error.h: Fold in some upstream changes from glibc.
113668         * lib/error.c: Likewise.
113670 2006-08-04  Bruno Haible  <bruno@clisp.org>
113672         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113673         Make the mostlyclean-local rule depend on mostlyclean-generic.
113674         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
113676 2006-07-31  Bruno Haible  <bruno@clisp.org>
113678         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
113679         <stdlib.h>, <string.h>.
113681 2006-07-30  Bruno Haible  <bruno@clisp.org>
113683         * modules/readlink (License): Change to LGPL.
113685 2006-07-30  Bruno Haible  <bruno@clisp.org>
113687         * modules/javaversion (Makefile.am): Distribute javaversion.java and
113688         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
113689         set PKGDATADIR to point to it.
113691 2006-07-30  Bruno Haible  <bruno@clisp.org>
113693         * modules/csharpexec (configure.ac): Comment out macro invocation.
113694         * modules/javaexec (configure.ac): Likewise.
113695         * modules/javacomp-script (configure.ac): Likewise.
113697         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
113699 2006-07-30  Bruno Haible  <bruno@clisp.org>
113701         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
113702         linked-list.
113704 2006-07-30  Bruno Haible  <bruno@clisp.org>
113706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
113708 2006-07-30  Bruno Haible  <bruno@clisp.org>
113710         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113711         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
113712         get removed.
113714 2006-07-29  Bruno Haible  <bruno@clisp.org>
113716         Make it possible for gnulib-tool to work with locally modified or
113717         augmented gnulib repositories.
113718         * gnulib-tool (func_usage): Document --local-dir option.
113719         (local_gnulib_dir): New variable.
113720         Handle --local-dir option.
113721         (func_lookup_file): New function.
113722         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
113723         (func_get_description, func_get_filelist, func_get_description,
113724         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
113725         func_get_automake_snippet, func_get_include_directive,
113726         func_get_license, func_get_maintainer): Use func_lookup_file.
113727         (func_import, func_create_testdir): Use func_lookup_file.
113729 2006-07-29  Bruno Haible  <bruno@clisp.org>
113731         * modules/setenv (Depends-on): Add unistd.
113733 2006-07-29  Bruno Haible  <bruno@clisp.org>
113735         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
113737 2006-07-29  Bruno Haible  <bruno@clisp.org>
113739         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
113741 2006-07-29  Bruno Haible  <bruno@clisp.org>
113743         * gnulib-tool (import, update): If there is no Makefile.am, look at
113744         aclocal.m4, instead of bailing out.
113746 2006-07-29  Bruno Haible  <bruno@clisp.org>
113748         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
113749         Categorize the options by when they are useful.
113751 2006-07-29  Bruno Haible  <bruno@clisp.org>
113753         * gnulib-tool (func_usage): Document option --no-libtool.
113754         Handle option --no-libtool.
113755         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
113756         for changed semantics of $libtool variable.
113757         (func_import): Likewise. If libtool is not used, show this through
113758         an option --no-libtool.
113759         (func_create_testdir): Update.
113761 2006-07-29  Bruno Haible  <bruno@clisp.org>
113763         * gnulib-tool (func_import): Extend error message about missing
113764         --doc-base.
113766 2006-07-29  Bruno Haible  <bruno@clisp.org>
113768         * gnulib-tool (func_import): Don't create the $docbase directory if
113769         there is no file to store there.
113771 2006-07-29  Bruno Haible  <bruno@clisp.org>
113773         * gnulib-tool (autoconf_minversion): If a --dir option is given and
113774         relevant, look for configure.ac there, not in the current directory.
113775         Also use a simple search for AC_PREREQ, not "autoconf --trace".
113777 2006-07-29  Bruno Haible  <bruno@clisp.org>
113779         * gnulib-tool (SORT): New variable.
113780         (func_usage): Undocument --assume-autoconf option.
113781         Remove --assume-autoconf option handling.
113782         (autoconf_minversion): Determine from the contents of configure.ac.
113783         (func_import): Remove autoconf_minversion handling.
113784         Suggested by Eric Blake.
113786 2006-07-29  Bruno Haible  <bruno@clisp.org>
113788         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
113790 2006-07-29  Bruno Haible  <bruno@clisp.org>
113792         * config/srclist.txt (*setenv.[ch]): Remove rules.
113794 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113796         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
113798 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113800         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
113801         arpa/inet.h.
113803 2006-07-28  Simon Josefsson  <jas@extundo.com>
113805         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
113806         * modules/inet_pton (Depends-on): Likewise.
113808 2006-07-28  Simon Josefsson  <jas@extundo.com>
113810         * m4/netinet_in_h.m4: New file.
113812 2006-07-28  Simon Josefsson  <jas@extundo.com>
113814         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
113815         #include's.
113817 2006-07-28  Simon Josefsson  <jas@extundo.com>
113819         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
113820         #include's.
113822 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
113824         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
113825         setgid on directories only if they set these bits.
113826         * lib/modechange.h: Remove obsolete comment about masks.
113828 2006-07-28  Eric Blake  <ebb9@byu.net>
113830         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
113831         macro expansion.
113833 2006-07-28  Bruno Haible  <bruno@clisp.org>
113835         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
113837 2006-07-28  Bruno Haible  <bruno@clisp.org>
113839         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
113841 2006-07-28  Bruno Haible  <bruno@clisp.org>
113843         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
113844         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
113845         Define fallbacks.
113846         Avoids link error on FreeBSD 4.x.
113847         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
113849         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
113850         encoding.
113851         * lib/mbswidth.c (iswcntrl): Likewise.
113853 2006-07-27  Bruno Haible  <bruno@clisp.org>
113855         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
113856         test.
113858 2006-07-27  Bruno Haible  <bruno@clisp.org>
113860         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
113861         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
113862         defined.
113864 2006-07-26  Eric Blake  <ebb9@byu.net>
113866         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
113868 2006-07-26  Eric Blake  <ebb9@byu.net>
113870         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
113871         like mingw that lack mkstemp.
113872         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
113873         avoid compilation warning on mingw.
113875 2006-07-26  Bruno Haible  <bruno@clisp.org>
113877         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
113878         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
113879         INT_FAST*_MIN, INTPTR_MIN.
113881 2006-07-25  Bruno Haible  <bruno@clisp.org>
113883         * modules/version-etc (Depends-on): Add stdarg.
113885 2006-07-25  Bruno Haible  <bruno@clisp.org>
113887         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
113888         complex commands.
113890 2006-07-25  Bruno Haible  <bruno@clisp.org>
113892         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
113893         defined in <stdarg.h> or config.h.
113895 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
113897         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
113898         (gl_STDIO_SAFER): Remove.
113900 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
113902         * MODULES.html.sh (File stream based Input/Output):
113903         Add fopen-safer, tmpfile-safer; remove stdio-safer.
113904         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
113905         * modules/fopen-safer, modules/tmpfile-safer: New files.
113906         * modules/stdio-safer: Remove.
113908 2006-07-24  Bruno Haible  <bruno@clisp.org>
113910         * modules/tmpdir: New file.
113911         * MODULES.html.sh (File system functions): Add it.
113913 2006-07-24  Bruno Haible  <bruno@clisp.org>
113915         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
113916         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
113918 2006-07-24  Bruno Haible  <bruno@clisp.org>
113920         * modules/clean-temp: New file.
113922 2006-07-24  Bruno Haible  <bruno@clisp.org>
113924         * m4/tmpdir.m4: New file, from GNU gettext.
113926 2006-07-24  Bruno Haible  <bruno@clisp.org>
113928         * lib/tmpdir.h: New file, from GNU gettext.
113929         * lib/tmpdir.c: New file, from GNU gettext.
113931 2006-07-24  Bruno Haible  <bruno@clisp.org>
113933         * lib/clean-temp.h: New file, from GNU gettext.
113934         * lib/clean-temp.c: New file, from GNU gettext.
113936 2006-07-23  Eric Blake  <ebb9@byu.net>
113938         * modules/stdio-safer (Files): Add tmpfile-safer.c.
113939         (Depends-on): Add binary-io.
113941 2006-07-23  Eric Blake  <ebb9@byu.net>
113943         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
113945 2006-07-23  Eric Blake  <ebb9@byu.net>
113947         * lib/tmpfile-safer.c: New file.
113948         * lib/stdio-safer.h (fopen_safer): Add prototype.
113949         * lib/stdio--.h (tmpfile): Make safer.
113951 2006-07-23  Bruno Haible  <bruno@clisp.org>
113953         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
113954         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
113955         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
113956         gl_linked_remove_at): Use it.
113958 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113959         and Simon Josefsson <jas@extundo.com>
113961         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
113963         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
113965 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113967         * modules/close-stream: New file.
113968         * modules/closeout (Description): Make it clear that it exits
113969         with a diagnostic on error.
113970         (Depends-on): Add close-stream.  Remove fpending, stdbool.
113971         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
113973 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113975         * m4/close-stream.m4: New file.
113977 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
113979         * lib/close-stream.c, lib/close-stream.h: New files.
113981 2006-07-22  Bruno Haible  <bruno@clisp.org>
113983         Merge from GNU gettext 0.15.
113985         2006-05-01  Bruno Haible  <bruno@clisp.org>
113987                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
113989         2006-07-22  Bruno Haible  <bruno@clisp.org>
113991                 * modules/javaversion: New file.
113992                 * MODULES.html.sh (Java): Add javaversion.
113994         2006-03-12  Bruno Haible  <bruno@clisp.org>
113996                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
113998         2005-12-04  Bruno Haible  <bruno@clisp.org>
114000                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114001                 (untested).
114003         2006-06-21  Bruno Haible  <bruno@clisp.org>
114005                 Avoid warnings from recent versions of mcs.
114006                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114007                 -o, -L, -r any more. Use options documented since mcs-1.0
114008                 instead. Similarly for -g.
114010         2005-12-04  Bruno Haible  <bruno@clisp.org>
114012                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114013                 .resources, not .resource.
114015         2005-07-09  Bruno Haible  <bruno@clisp.org>
114017                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114018                 add a .dll suffix.
114019                 Reported by Mark Junker <mjscod@gmx.de>.
114021         2006-07-22  Bruno Haible  <bruno@clisp.org>
114023                 * modules/gettext: Upgrade to gettext-0.15.
114024                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114025                 m4/visibility.m4.
114026                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114028 2006-07-22  Bruno Haible  <bruno@clisp.org>
114030         Merge from GNU gettext 0.15.
114032         2006-03-25  Bruno Haible  <bruno@clisp.org>
114034                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114036         2006-07-21  Bruno Haible  <bruno@clisp.org>
114038                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114039                 "1.1".
114041         2006-05-09  Bruno Haible  <bruno@clisp.org>
114043                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114044                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114045                 for the conftestver execution.
114047         2006-05-01  Bruno Haible  <bruno@clisp.org>
114049                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114050                 optional target-version argument. Verify that the compiler
114051                 groks source of the specified source-version, or add -source
114052                 option as necessary. Verify that the compiler produces
114053                 bytecode in the specified target-version, or add -target and
114054                 -source options as necessary. Make the result of the test
114055                 available as variable CONF_JAVAC. Also log error output in
114056                 config.log.
114058         2006-03-11  Bruno Haible  <bruno@clisp.org>
114060                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114062         2006-05-09  Bruno Haible  <bruno@clisp.org>
114064                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114065                 CLASSPATH_SEPARATOR to a semicolon.
114067         2006-03-12  Bruno Haible  <bruno@clisp.org>
114069                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114070                 available as variable CONF_JAVA, for subsequent autoconf
114071                 tests. Also log error output in config.log.
114073         2006-07-19  Bruno Haible  <bruno@clisp.org>
114075                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114076                 that getline works on glibc2 systems. Needed to avoid trouble
114077                 in relocatable.c.
114078                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114080         2005-12-04  Bruno Haible  <bruno@clisp.org>
114082                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114083                 launcher (untested).
114085         2005-12-04  Bruno Haible  <bruno@clisp.org>
114087                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114089         2006-07-22  Bruno Haible  <bruno@clisp.org>
114091                 * gettext.m4: Update from GNU gettext-0.15.
114092                 * nls.m4: Likewise.
114093                 * po.m4: Likewise.
114094                 * inttypes-pri.m4: Likewise.
114095                 * inttypes-h.m4: Renamed from inttypes.m4.
114096                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114098 2006-07-22  Bruno Haible  <bruno@clisp.org>
114100         Merge from GNU gettext 0.15.
114102         2005-07-05  Bruno Haible  <bruno@clisp.org>
114104                 * printf-args.c (printf_fetchargs): Work around broken
114105                 definition of wint_t on mingw.
114107         2005-02-12  Bruno Haible  <bruno@clisp.org>
114109                 * xallocsa.h: Add extern "C" for C++.
114111         2006-05-17  Bruno Haible  <bruno@clisp.org>
114113                 Cygwin portability.
114114                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114116         2006-04-30  Bruno Haible  <bruno@clisp.org>
114118                 * progreloc.c: Include <mach-o/dyld.h> if available.
114119                 (find_executable): Use _NSGetExecutablePath when possible.
114121         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114123                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114124                 function.
114126         2005-12-29  Bruno Haible  <bruno@clisp.org>
114128                 * progreloc.c (set_program_name_and_installdir): Fix
114129                 compilation error.
114131         2005-12-04  Bruno Haible  <bruno@clisp.org>
114133                 Cygwin portability.
114134                 * progreloc.c: Include <windows.h> also on Cygwin.
114135                 (find_executable): Add support for Cygwin.
114136                 (set_program_name_and_installdir): Handle also platforms with
114137                 nonempty EXEEXT.
114139         2006-07-11  Bruno Haible  <bruno@clisp.org>
114141                 * javacomp.c: Fix a comment.
114142                 Reported by Jim Meyering.
114144         2006-04-30  Bruno Haible  <bruno@clisp.org>
114146                 * javacomp.h (compile_java_class): Add source_version,
114147                 target_version arguments.
114148                 * javacomp.c: Rewritten to choose only a compiler that
114149                 respects the specified source_version and target_version.
114151         2006-06-27  Bruno Haible  <bruno@clisp.org>
114153                 Assume correct S_ISDIR macro.
114154                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114156         2006-07-22  Bruno Haible  <bruno@clisp.org>
114158                 * javaversion.h: New file, from GNU gettext.
114159                 * javaversion.c: New file, from GNU gettext.
114160                 * javaversion.java: New file, from GNU gettext.
114161                 * javaversion.class: New file, from GNU gettext.
114163         2006-05-17  Bruno Haible  <bruno@clisp.org>
114165                 Cygwin portability.
114166                 * javaexec.c (execute_java_class): Test for jview program
114167                 also on Cygwin.
114169         2006-04-09  Bruno Haible  <bruno@clisp.org>
114171                 * fatal-signal.c: Don't include string.h.
114172                 (at_fatal_signal): Use a copying loop instead of memcpy.
114174         2005-12-04  Bruno Haible  <bruno@clisp.org>
114176                 * csharpexec.c: Add support for 'clix' launcher (untested).
114177                 (execute_csharp_using_sscli): New function.
114178                 (execute_csharp_program): Call it.
114180         2006-06-21  Bruno Haible  <bruno@clisp.org>
114182                 Avoid warnings from recent versions of mcs.
114183                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114184                 -o, -L, -r any more. Use options documented since mcs-1.0
114185                 instead. Similarly for -g.
114187         2005-07-09  Bruno Haible  <bruno@clisp.org>
114189                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114190                 add a .dll suffix.
114191                 Reported by Mark Junker <mjscod@gmx.de>.
114193         2006-06-17  Bruno Haible  <bruno@clisp.org>
114195                 * config.charset: Update for NetBSD 3.0.
114197         2006-05-17  Bruno Haible  <bruno@clisp.org>
114199                 Cygwin portability.
114200                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114202         2006-05-16  Bruno Haible  <bruno@clisp.org>
114204                 * localcharset.c [CYGWIN]: Include <windows.h>.
114205                 (get_charset_aliases): For Cygwin, return the same CPxxx
114206                 aliases list as under WIN32.
114207                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114208                 the environment variables. Fall back to GetACP().
114210         2006-04-05  Bruno Haible  <bruno@clisp.org>
114212                 * config.charset: Update Juan Manuel Guerrero's address.
114214         2005-02-12  Bruno Haible  <bruno@clisp.org>
114216                 * allocsa.h: Add extern "C" for C++.
114218         2005-02-10  Bruno Haible  <bruno@clisp.org>
114220                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
114221                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
114223         2006-07-22  Bruno Haible  <bruno@clisp.org>
114225                 * gettext.h: Update to GNU gettext-0.15.
114227 2006-07-22  Bruno Haible  <bruno@clisp.org>
114229         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
114230         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
114231         lib-prefix.m4, longdouble.m4, ssize_t.m4.
114233 2006-07-21  Eric Blake  <ebb9@byu.net>
114235         * modules/stdlib-safer: New file.
114236         * MODULES.html.sh (File stream based Input/Output): Add
114237         stdlib-safer.
114239 2006-07-21  Eric Blake  <ebb9@byu.net>
114241         * lib/stdlib-safer.h: New file from coreutils, required by
114242         stdlib--.h.
114244 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
114246         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
114248 2006-07-20  Bruno Haible  <bruno@clisp.org>
114250         * gnulib-tool: Recognize new option --assume-autoconf.
114251         (autoconf_minversion): New variable.
114252         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114254 2006-07-20  Bruno Haible  <bruno@clisp.org>
114256         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114258 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114260         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114261         Reindent and repaginate.
114263 2006-07-19  Derek Price  <derek@ximbiot.com>
114265         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114266         Correct grammar.
114268 2006-07-17  Bruno Haible  <bruno@clisp.org>
114270         * modules/list: New file.
114271         * modules/array-list: New file.
114272         * modules/carray-list, modules/carray-list-tests: New files.
114273         * modules/linked-list, modules/linked-list-tests: New files.
114274         * modules/avltree-list, modules/avltree-list-tests: New files.
114275         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114276         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114277         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114278         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114279         * modules/oset: New file.
114280         * modules/array-oset: New file.
114281         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114282         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114283         * tests/test-carray_list.c: New file.
114284         * tests/test-linked_list.c: New file.
114285         * tests/test-avltree_list.c: New file.
114286         * tests/test-rbtree_list.c: New file.
114287         * tests/test-linkedhash_list.c: New file.
114288         * tests/test-avltreehash_list.c: New file.
114289         * tests/test-rbtreehash_list.c: New file.
114290         * tests/test-avltree_oset.c: New file.
114291         * tests/test-rbtree_oset.c: New file.
114292         * MODULES.html.sh (Container data structures): New section.
114294 2006-07-17  Bruno Haible  <bruno@clisp.org>
114296         * m4/gl_list.m4: New file.
114298 2006-07-17  Bruno Haible  <bruno@clisp.org>
114300         * lib/gl_list.h: New file.
114301         * lib/gl_list.c: New file.
114302         * lib/gl_array_list.h: New file.
114303         * lib/gl_array_list.c: New file.
114304         * lib/gl_carray_list.h: New file.
114305         * lib/gl_carray_list.c: New file.
114306         * lib/gl_linked_list.h: New file.
114307         * lib/gl_linked_list.c: New file.
114308         * lib/gl_anylinked_list1.h: New file.
114309         * lib/gl_anylinked_list2.h: New file.
114310         * lib/gl_avltree_list.h: New file.
114311         * lib/gl_avltree_list.c: New file.
114312         * lib/gl_anyavltree_list1.h: New file.
114313         * lib/gl_anyavltree_list2.h: New file.
114314         * lib/gl_rbtree_list.h: New file.
114315         * lib/gl_rbtree_list.c: New file.
114316         * lib/gl_anyrbtree_list1.h: New file.
114317         * lib/gl_anyrbtree_list2.h: New file.
114318         * lib/gl_anytree_list1.h: New file.
114319         * lib/gl_anytree_list2.h: New file.
114320         * lib/gl_linkedhash_list.h: New file.
114321         * lib/gl_linkedhash_list.c: New file.
114322         * lib/gl_anyhash_list1.h: New file.
114323         * lib/gl_anyhash_list2.h: New file.
114324         * lib/gl_avltreehash_list.h: New file.
114325         * lib/gl_avltreehash_list.c: New file.
114326         * lib/gl_rbtreehash_list.h: New file.
114327         * lib/gl_rbtreehash_list.c: New file.
114328         * lib/gl_anytreehash_list1.h: New file.
114329         * lib/gl_anytreehash_list2.h: New file.
114331         * lib/gl_oset.h: New file.
114332         * lib/gl_oset.c: New file.
114333         * lib/gl_array_oset.h: New file.
114334         * lib/gl_array_oset.c: New file.
114335         * lib/gl_avltree_oset.h: New file.
114336         * lib/gl_avltree_oset.c: New file.
114337         * lib/gl_rbtree_oset.h: New file.
114338         * lib/gl_rbtree_oset.c: New file.
114339         * lib/gl_anytree_oset.h: New file.
114341 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114343         * m4/mkancesdirs.m4: New file.
114344         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114345         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114346         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114347         it.
114349 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114351         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114352         * lib/mkancesdirs.h: New files.
114353         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114354         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114355         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114356         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114357         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114358         callers changed.  Revamp internals significantly, by not
114359         attempting to create directories that are temporarily more
114360         permissive than the final results.  Do not attempt to use
114361         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114362         This removes some race conditions, fixes some bugs, and simplifies
114363         things.  Use new dirchownmod function to do owner and mode changes.
114364         * lib/mkdir-p.h: Likewise.
114365         * lib/modechange.c (octal_to_mode): New function.
114366         (struct mode_change): New member mentioned.
114367         (make_node_op_equals): New arg mentioned.  All callers changed.
114368         (mode_compile): Keep track of which mode bits the user has explicitly
114369         mentioned.
114370         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114371         New arg PMODE_BITS, to keep track of which mode bits the user
114372         mentioned; it treats S_ISUID and S_ISGID speciall.
114373         All callers changed.
114374         * lib/modechange.h: Likewise.
114376 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114378         * MODULES.html.sh: Add mkancestors.
114379         * modules/mkancesdirs: New module.
114380         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
114381         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
114382         The chdir-safer and afs files are now orphans; I'll remove them
114383         unless someone speaks up.
114384         Add lib/dirchownmod.c, lib/dirchownmod.h.
114385         (Depends-on): Remove alloca, chown, save-cwd, dirname.
114386         Add lchown, mkancesdirs.
114387         (Maintainer): Add self.
114389 2006-07-15  Karl Berry  <karl@gnu.org>
114391         * gnulib-tool: help message wording/arrangement.
114393 2006-07-14  Simon Josefsson  <jas@extundo.com>
114395         * doc/gnulib.texi (Libtool and Windows): New section.
114397 2006-07-12  Simon Josefsson  <jas@extundo.com>
114399         * modules/gendocs (License): Fix license, approved by Karl.
114401 2006-07-12  Eric Blake  <ebb9@byu.net>
114403         * MODULES.html.sh: Add gendocs.
114405 2006-07-11  Eric Blake  <ebb9@byu.net>
114407         * modules/fdl: New module, to install doc/fdl.texi.
114408         * MODULES.html.sh: Add new section for documentation modules.
114409         * gnulib-tool: Avoid space-tab.
114410         (--doc-base): New option, to manage files from doc.
114412 2006-07-11  Eric Blake  <ebb9@byu.net>
114414         * m4/absolute-header.m4: Fix comments to match recent change.
114416 2006-07-11  Eric Blake  <ebb9@byu.net>
114418         * gnulib-tool: List --doc-base before --tests-base.
114420 2006-07-11  Derek R. Price  <derek@ximbiot.com>
114422         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
114424 2006-07-11  Bruno Haible  <bruno@clisp.org>
114426         * README: Mention where to put documentation.
114428 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114430         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
114432 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
114435         to stdint.m4.
114437 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114439         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
114440         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
114441         "no/such/file/stdint.h" when there is no such file, so that
114442         the resulting C code can be parsed by dodgy compilers.
114443         Problems reported by Bob Proulx.
114445 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114447         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
114448         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114449         macros into the GNU _D_EXACT_NAMLEN.
114450         * lib/savedir.c:  Likewise.
114451         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
114453 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114454         and Paul Eggert  <eggert@cs.ucla.edu>
114456         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
114457         * m4/savedir.m4:
114458         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114459         macros into the GNU _D_EXACT_NAMLEN.
114461 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114463         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
114464         around the absolute name, to work around a problem with the HP-UX
114465         11.23 native C compiler, reported by Bob Proulx.
114467 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114469         * doc/maintain.texi, make-stds.texi: Sync from
114470         <http://savannah.gnu.org/projects/gnustandards>.
114472 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114474         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
114476 2006-07-09  Jim Meyering  <jim@meyering.net>
114478         * m4/glob.m4: Remove a doubled word in a comment.
114480 2006-07-09  Jim Meyering  <jim@meyering.net>
114482         * lib/argp-pv.c: Remove a doubled word in a comment.
114483         * lib/check-version.c (check_version): Likewise.
114484         * lib/javacomp.c (compile_java_class): Likewise.
114486 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
114488         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
114489         for the benefit of people using Autoconf 2.60.  If you want to
114490         support older Autoconf versions you can copy m4/onceonly_2_57.m4
114491         (or m4/onceonly.m4, if pre-2.57) manually.
114493 2006-07-08  Jim Meyering  <jim@meyering.net>
114495         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
114496         comment.
114497         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
114498         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
114499         comment.
114501 2006-07-08  Jim Meyering  <jim@meyering.net>
114503         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
114505 2006-07-07  Simon Josefsson  <jas@extundo.com>
114507         * tests/test-crc.c: Change expected crc value, the test vector
114508         were probably computed using the old broken crc.c?
114510 2006-07-06  Simon Josefsson  <jas@extundo.com>
114512         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
114513         now the canonical place for the M4 file).
114515         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
114516         from the sys_socket dependency now.
114518         * modules/inet_pton (Files): Ditto.
114520         * modules/inet_ntop (Files): Ditto.
114522 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114524         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
114525         not gl_PREREQ_GETUSERSHELL.
114527 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114529         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
114530         with only one argument, for Autoconf 2.60.
114531         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
114532         expand to nothing, so add a shell command to avoid syntax error.
114533         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114535 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114537         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
114539 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114541         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
114542         no longer needed.  Check for isblank decl.
114543         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
114544         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
114545         of existence.
114547 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114549         * lib/getloadavg.c: Use __VMS, not VMS.
114550         * lib/getopt.c: Likewise.
114551         * lib/getpagesize.h: Likewise.
114552         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
114553         and probably does not work.
114555 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114557         * lib/.cppi-disable: Add wcwidth.
114558         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
114559         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
114560         (ISGRAPH): Remove.  All uses changed to isgraph.
114561         (FOLD) [!defined _LIBC]: Remove special case.
114562         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
114563         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
114564         HAVE_ISBLANK.
114565         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
114566         case.
114568 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
114570         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
114571         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
114572         brackets.  Other minor changes to suppress some compiler
114573         warnings.
114575 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114576         and Paul Eggert  <eggert@cs.ucla.edu>
114578         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
114579         of invoking obsolescent AC_HEADER_DIRENT macro.
114580         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
114581         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
114582         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
114583         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
114584         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
114585         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114586         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
114587         * m4/readdir.m4: Remove; no longer needed.
114589 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114590         and Paul Eggert  <eggert@cs.ucla.edu>
114592         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
114593         Don't worry about this obsolete case any more.
114594         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
114595         directories.
114596         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
114597         worry about this obsolete case any more.
114598         * lib/fts.c: Likewise.
114599         * lib/getcwd.c: Likewise.
114600         * lib/glob.h: Likewise.
114601         * lib/savedir.c: Likewise.
114603 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114605         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
114606         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
114607         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
114608         needed.
114609         All uses removed.
114610         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114611         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114612         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
114613         needed.
114614         * m4/getdate.m4 (gl_GETDATE): Likewise.
114615         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114616         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114617         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114618         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114619         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114620         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114621         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
114622         needed.
114624 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114626         * lib/memcasecmp.c: Include <limits.h>.
114627         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
114628         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
114629         Don't assume isdigit succeeds only on '0' through '9'.
114631 2006-07-05  Eric Blake  <ebb9@byu.net>
114633         * modules/getaddrinfo (Depends-on): Add snprintf.
114635 2006-07-05  Eric Blake  <ebb9@byu.net>
114637         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
114638         to avoid 'header present but could not be compiled' on cygwin.
114640 2006-07-05  Eric Blake  <ebb9@byu.net>
114642         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
114643         missing from netdb.h.
114644         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
114646 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114648         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
114649         no longer needed.
114650         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
114651         * m4/getdate.m4 (gl_GETDATE): Likewise.
114652         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114653         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114654         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114655         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114658 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114660         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
114661         All uses of is_space replaced by isspace.
114662         * lib/exit.h: Don't talk about STDC_HEADERS.
114663         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
114664         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
114665         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
114666         replaced by isprint etc.
114667         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
114668         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114669         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
114670         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
114671         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
114672         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114674 2006-07-05  Bruno Haible  <bruno@clisp.org>
114676         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
114677         the function exists, before testing against AIX.
114678         Reported by Martin Lambers <marlam@marlam.de>.
114680 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114682         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
114683         From Mark D. Baushke.
114685 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114687         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
114688         to the absolute name, not just one, to bypass Sun C 5.8's
114689         "warning: #include of /usr/include/... may be non-portable".
114691 2006-07-04  Eric Blake  <ebb9@byu.net>
114693         * modules/dirname-tests: New test module.
114694         * tests/test-dirname.c: New file, replacing dirname.c
114695         TEST_DIRNAME section that was recently deleted.
114697 2006-07-04  Bruno Haible  <bruno@clisp.org>
114699         Assume ANSI C header files and <ctype.h> functions.
114700         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
114701         (mbsnwidth): Use isprint, iscntrl instead.
114703 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114705         Merge from coreutils.
114706         * MODULES.html.sh: Add xstrtold.
114707         * modules/xstrtold: New file.
114708         * modules/cycle-check (Files): Add lib/same-inode.h.
114709         * modules/dirname (Files): Add m4/double-slash-root.m4.
114710         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
114711         * modules/mkdir-p (Files): Add lib/same-inode.h.
114712         * modules/same (Files): Add lib/same-inode.h.
114714 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114716         * m4/absolute-header.m4: Renamed from full-header-path.m4.
114717         This is to keep the terminology clean; POSIX talks about
114718         "absolute pathnames", not "full pathnames", but the GNU
114719         Coding Standards say to use "path" for something else;
114720         so use "absolute" to keep both sides happy.
114721         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
114722         Set gl_absolute_header, not gl_full_header_path.
114723         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
114724         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
114725         All uses changed.
114727         Merge from coreutils.
114729         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114731         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
114732         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
114733         want to require the building of c-strtod.o.
114734         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
114735         needs -lm directly.
114736         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
114738         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
114740         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
114741         --as-needed option if available.  Problem reported by Albert Chin in
114742         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
114743         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
114744         cc merely issues a bunch of annoying warnings for --as-needed
114745         (this problem was reported by Bob Proulx).  Also, try linking with
114746         -lm to detect a bug in binutils 2.16 (this problem was reported
114747         by Ralf Wildenhues).
114749         2006-06-18  Jim Meyering  <jim@meyering.net>
114751         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
114752         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
114753         macro.
114754         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
114755         also check for glibc-2.4's abort-inducing bug.
114757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
114758         Low-probability clean-up should be to use rmdir to get rid of
114759         the just-created directory, not unlink.
114761         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
114762         configure fail, and request a bug report to inform us about it.
114763         Add a comment that, barring reports to the contrary, in 2007 we'll
114764         assume ftruncate is universally available.
114766         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114768         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
114770         2006-03-12  Jim Meyering  <jim@meyering.net>
114772         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
114773         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
114774         * m4/same.m4 (gl_SAME): Likewise.
114775         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
114777         2006-03-11  Eric Blake  <ebb9@byu.net>
114779         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
114780         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
114781         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
114782         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
114784 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114786         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
114787         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
114788         reported by Mark D. Baushke, one in
114789         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
114791         Merge from coreutils.
114793         * lib/.cppi-disable: Add stdint_.h.
114794         * lib/.cvsignore: Add stdint.h.
114796         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114798         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
114799         both double and long double versions.
114800         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
114801         * lib/xstrtold.c: New file.
114802         * lib/xstrtod.h (xstrtold): New decl.
114804         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
114806         * lib/filemode.c (setst): Remove.
114807         (strmode): Rewrite to avoid setst.  This makes the code shorter,
114808         (arguably) clearer, and the generated code is a bit smaller on my
114809         Debian GNU/Linux stable x86 host.
114811         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114813         * lib/filemode.c: Include "filemode.h" first, to test the interface.
114814         Assume that filemode.h includes sys/types.h and sys/stat.h.
114815         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
114816         (ftypelet): Reorder to put common cases first, for efficiency.
114817         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
114818         to do 'M'.
114819         (strmode): Renamed from mode_string, and now stores 12 bytes instead
114820         of 10, for compatibility with FreeBSD.  All callers changed.
114821         (filemodestring): Now stores 12 bytes instead of 10, and sets file
114822         types that can't be deduced solely from st_mode.  First arg is now a
114823         const pointer.
114824         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
114825         (strmode): Renamed from mode_string.
114826         (filemodestring): New decl.
114827         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
114828         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
114829         needed.
114830         (S_ISPORT, S_ISWHT): New macros, if not already defined.
114832         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
114834         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
114835         fsusage.h now does that.  Include fsusage.h first, to test interface.
114836         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
114837         at most one method (the old code could have generated decls that
114838         didn't conform to C89, not that this was ever exercised).
114839         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
114841         2006-03-19  Jim Meyering  <jim@meyering.net>
114843         Work even in a chroot where d_ino values for entries in "/"
114844         don't match the stat.st_ino values for the same names.
114845         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
114846         number, iterate through all entries again, using lstat instead.
114847         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
114848         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
114850         * lib/getcwd.c (__getcwd): Clarify a comment.
114851         Use memcpy in place of a call to strcpy.
114853         2006-03-12  Jim Meyering  <jim@meyering.net>
114855         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
114856         matches that of the current directory (which we're about to chdir ".."
114857         out of), then save the dev-ino of the parent, instead.
114859         * lib/same-inode.h (SAME_INODE): New file/macro.
114860         * lib/chdir-safer.c (SAME_INODE): Remove definition.
114861         Include "same-inode.h", instead.
114862         * lib/same.c: Likewise.
114863         * lib/cycle-check.h: Include "same-inode.h".
114864         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
114865         * lib/cycle-check.c (SAME_INODE): Remove definition.
114866         * lib/root-dev-ino.h: Include "same-inode.h".
114868         2006-03-11  Eric Blake  <ebb9@byu.net>
114870         * lib/same.c (same_name): s/base_name/last_component/
114871         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
114872         * lib/filenamecat.c (file_name_concat): Likewise.
114874         2006-03-11  Eric Blake  <ebb9@byu.net>,
114875                     Paul Eggert  <eggert@cs.ucla.edu>
114877         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
114878         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
114879         drive prefix.
114880         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
114881         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
114882         (last_component): New method.
114883         * lib/dirname.c (dir_len): Determine when drive letters need a
114884         subsequent slash.  Preserve // when it is special.
114885         (dir_name): Don't append dot when drive letter is absolute.
114886         [TEST_DIRNAME]: Move into a full-blown gnulib test.
114887         * lib/basename.c (base_name): New semantics - malloc the result.
114888         Preserve // when it is special.  Preserve relative files that look
114889         like drive letters.
114890         (base_len): Preserve // when it is special.
114891         (last_component): New method, similar to old base_name semantics.
114892         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
114893         base_name.  Strip redundant slashes from ///.
114895 2006-07-03  Jim Meyering  <jim@meyering.net>
114897         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
114898         macro is used before the first cycle_check call.
114900 2006-07-03  Eric Blake  <ebb9@byu.net>
114902         * modules/dirname (Depends-on): Add xstrndup.
114904 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
114906         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
114907         test cases, so that config.log is a bit easier to follow.
114909 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
114911         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
114912         both are 64 bits, since this seems to be the tradition, and this
114913         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
114914         we ever run into a host that prefers long long to long in this
114915         case, we'll need another configure-time test.  Problem reported by
114916         Jim Meyering.
114918 2006-07-02  Eric Blake  <ebb9@byu.net>
114920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
114922 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114924         * modules/inttypes (Depends-on): No longer depends on stdint.
114925         * modules/stdint (Description): Say more about assumptions.
114926         Say that the fast types might differ.  Say macros are used.
114927         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
114928         (Makefile.am): Revise list of substituted symbols to match
114929         new stdint.m4.
114930         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
114931         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
114932         * tests/test-stdint.c (verify_same_types)
114933         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
114934         the code conforms to C99/C89.
114935         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
114936         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
114938 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114940         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
114941         but fix a bug, by requiring at least 64 bits.
114942         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
114943         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
114944         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
114945         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
114947         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
114948         changes.  Make 2.59 a prerequisite.  Check and substitute for
114949         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
114950         inttypes.h.  Do not use special include files; just use the
114951         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
114952         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
114953         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
114954         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
114955         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
114956         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
114957         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
114958         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
114959         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
114960         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
114961         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
114962         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
114963         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
114964         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
114965         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
114966         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
114967         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
114968         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
114969         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
114970         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
114971         WINT_MAX.  Check for C99 conformance more strictly, by detecting
114972         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
114973         not check for things that C99 does not require, e.g., int8_t.  If
114974         a test isn't needed unless <stdint.h> isn't working, and is
114975         unlikely to be needed for any other reason, then don't do it
114976         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
114977         size_t, since we assume C89 freestanding at least.  Do not check
114978         for sig_atomic_t, wchar_t, or wint_t, since the code now does
114979         the right thing even if the types are not defined.  Instead use:
114980         (gl_STDINT_TYPE_PROPERTIES): New macro.
114981         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
114982         testing whether <sys/types.h> clashes, as Autoconf does this for
114983         us now.  All uses removed.
114984         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
114985         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
114986         (gl_CHECK_TYPE_SAME):
114987         Remove; no longer needed.
114988         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
114989         exists, since we'll return 0 anyway in that case.
114990         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
114992 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
114994         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
114995         possible collision with system files.
114996         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
114997         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
114998         WCHAR_MIN and WCHAR_MAX in this case.
114999         (<stddef.h>): Do not include; no longer needed.
115000         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115001         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115002         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115003         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115004         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115005         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115006         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115007         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115008         !defined(__c99))]: Include in this case too, since it's harmless
115009         now.
115010         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115011         dangerous to do so.
115012         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115013         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115014         (_STDINT_MIN, _STDINT_MAX): New macros.
115015         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115016         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115017         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115018         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115019         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115020         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115021         macros, not typedefs; this simplifies things quite a bit.
115022         Use long int for all types narrower than int64_t.
115023         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115024         Define in terms of long long int or int64_t or long int,
115025         not int64_t or int32_t.  This saves some compile-time testing.
115026         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115027         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115028         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115029         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115030         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115031         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115032         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115033         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115034         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115035         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115036         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115037         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115038         undef any previous version and define our own version, for
115039         simplicity and consistency with the new macros for types.
115040         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115041         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115042         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115043         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115044         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115045         @WINT_T_SUFFIX@ to keep things simple here.
115046         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115047         Simplify by assuming typical 8/16/32/64 host, since we're
115048         already doing that elsewhere anyway.
115049         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115050         and assume long long int is 64 bits if available.  This
115051         speeds up 'configure'.
115053 2006-07-01  Eric Blake  <ebb9@byu.net>
115055         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115056         Reported by Andreas Buening.
115058 2006-07-01  Eric Blake  <ebb9@byu.net>
115060         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115062 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115064         * lib/getaddrinfo.c: fixed typo
115066 2006-06-29  Jim Meyering  <jim@meyering.net>
115068         * modules/strftime (Maintainer): Add my name, since with the
115069         FPRINTFTIME changes strftime.c has forked from glibc.
115071 2006-06-29  Eric Blake  <ebb9@byu.net>
115073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115075 2006-06-29  Eric Blake  <ebb9@byu.net>
115077         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115079 2006-06-29  Eric Blake  <ebb9@byu.net>
115081         * lib/stat_.h: New file.
115083 2006-06-29  Eric Blake  <ebb9@byu.net>
115085         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115086         unused static function.
115088 2006-06-29  Eric Blake  <ebb9@byu.net>
115090         * doc/functions.texi (Function Portability): Document missing lstat
115091         on mingw.
115093 2006-06-29  Eric Blake  <ebb9@byu.net>
115095         * MODULES.html.sh: Add sys_stat.
115096         * modules/sys_stat: New module.
115097         * modules/mkstemp (Depends-on): Add sys_stat.
115099 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115101         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115103 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115105         * m4/c-bs-a.m4: Removed.
115107 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115109         * lib/strftime.c: Assume strftime() exists.
115111 2006-06-29  Derek Price  <derek@ximbiot.com>
115113         * modules/c-bs-a: Removed - \a is C89.
115114         * MODULES.html.sh: Remove c-bs-a.
115116 2006-06-29  Bruno Haible  <bruno@clisp.org>
115118         * modules/wcwidth (License): Change to LGPL.
115120 2006-06-28  Simon Josefsson  <jas@extundo.com>
115122         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115123         on _WIN32.
115125         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115126         getnameinfo.
115128 2006-06-28  Simon Josefsson  <jas@extundo.com>
115130         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115132 2006-06-28  Simon Josefsson  <jas@extundo.com>
115134         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115135         functions there.  It will succeed on Windows XP, but on Windows
115136         2000 and (presumably) earlier, it will fail, and use the internal
115137         re-implementation.
115138         (use_win32_p): New function.
115139         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115140         Support AI_NUMERICSERV to disable getservbyname.
115141         (getnameinfo): New function, only supports
115142         NI_NUMERICHOST|NI_NUMERICSERV for now.
115144         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115145         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115146         getnameinfo.
115148 2006-06-28  Eric Blake  <ebb9@byu.net>
115150         * modules/wcwidth: New file.
115151         * modules/mbchar (Depends-on): Add wcwidth.
115152         * modules/mbswidth (Depends-on): Add wcwidth.
115153         * MODULES.html.sh: Add wcwidth.
115155 2006-06-28  Eric Blake  <ebb9@byu.net>
115157         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115160 2006-06-28  Eric Blake  <ebb9@byu.net>
115162         * lib/xvasprintf.h: Fix comments.
115164 2006-06-28  Eric Blake  <ebb9@byu.net>
115166         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115167         * lib/mbswidth.c (wcwidth): Move from here...
115168         * lib/wcwidth.h: ...to this new file.
115170 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115172         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115174         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115175         it's obsolete.
115176         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115178 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115180         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115181         Autoconf 2.60 says this stuff was obsolete.
115183 2006-06-28  Bruno Haible  <bruno@clisp.org>
115185         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115187 2006-06-28  Bruno Haible  <bruno@clisp.org>
115189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115190         gt_TYPE_WCHAR_T.
115192 2006-06-28  Bruno Haible  <bruno@clisp.org>
115194         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115195         declaration for wcwidth.
115196         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115198 2006-06-28  Bruno Haible  <bruno@clisp.org>
115200         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115201         (mkdir): Define using _mkdir.
115203 2006-06-28  Bruno Haible  <bruno@clisp.org>
115205         * lib/getaddrinfo.h: Fix POSIX URL.
115206         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115207         _WIN32.
115208         (use_win32_p): Make static.
115209         (getaddrinfo): Reject service name if it is empty or does not consist
115210         solely of decimal digits, or if its value is > 65535.
115211         (getnameinfo): Remove useless casts.
115213 2006-06-27  Simon Josefsson  <jas@extundo.com>
115215         * modules/sys_select: New file, suggested by Bruno Haible, Paul
115216         Eggert and Martin Lambers.
115218 2006-06-27  Simon Josefsson  <jas@extundo.com>
115220         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
115221         Eggert and Martin Lambers.
115223 2006-06-27  Bruno Haible  <bruno@clisp.org>
115225         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
115226         result to 0, not to empty.
115227         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
115229 2006-06-27  Bruno Haible  <bruno@clisp.org>
115231         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
115233 2006-06-26  Simon Josefsson  <jas@extundo.com>
115235         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
115236         present.
115238 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
115240         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
115241         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
115242         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
115244 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
115246         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
115248 2006-06-26  Bruno Haible  <bruno@clisp.org>
115250         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115252 2006-06-26  Bruno Haible  <bruno@clisp.org>
115254         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115256 2006-06-26  Bruno Haible  <bruno@clisp.org>
115258         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115259         SGI C compiler in pre-C99 mode.
115260         Suggested by Mark D. Baushke and Larry Jones.
115262 2006-06-26  Bruno Haible  <bruno@clisp.org>
115264         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115265         WCHAR_MAX.
115266         Reported by Mark D. Baushke and Larry Jones.
115268 2006-06-26  Bruno Haible  <bruno@clisp.org>
115270         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115271         in pre-C99 mode.
115272         Suggested by Mark D. Baushke and Larry Jones.
115274 2006-06-23  Simon Josefsson  <jas@extundo.com>
115275             Bruno Haible  <bruno@clisp.org>
115277         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115278         Emit mostlyclean-local rule.
115279         (func_emit_tests_Makefile_am): Likewise.
115280         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115282 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115284         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115286 2006-06-23  Bruno Haible  <bruno@clisp.org>
115288         * tests/test-stdint.c: Update to match ISO C 99 Technical
115289         Corrigendum 1.
115291 2006-06-23  Bruno Haible  <bruno@clisp.org>
115293         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115295 2006-06-23  Bruno Haible  <bruno@clisp.org>
115297         * lib/stdint_.h: Treat IRIX like OpenBSD.
115299 2006-06-23  Bruno Haible  <bruno@clisp.org>
115301         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115302         ISO C 99 Technical Corrigendum 1.
115304 2006-06-22  Simon Josefsson  <jas@extundo.com>
115306         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115307         MinGW.
115309 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115311         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115312         needed.  Some compiler complained about some of them.  Problem reported
115313         by Larry Jones in
115314         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115316 2006-06-21  Simon Josefsson  <jas@extundo.com>
115318         * tests/test-getaddrinfo.c: New file.
115320         * modules/getaddrinfo-tests: New file.
115322         * MODULES.html.sh: Add inet_pton.
115324         * modules/inet_pton: New file.
115326 2006-06-21  Simon Josefsson  <jas@extundo.com>
115328         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115329         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115330         of using the (limited) gnulib implementation on Windows XP.
115332         * m4/inet_pton.m4: New file.
115334 2006-06-21  Simon Josefsson  <jas@extundo.com>
115336         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115337         variable.
115339         * lib/socket_.h: Don't define WINVER.
115341         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115342         slightly modified to work in gnulib.
115344 2006-06-21  Simon Josefsson  <jas@extundo.com>
115346         * doc/gnulib.texi (Windows sockets): Add.
115348 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115350         * lib/read-file.c (fread_file): Start with buffer allocation of
115351         0 bytes rather than 1 byte; this simplifies the code.
115352         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115353         code to free buffer and save/restore errno.
115354         (internal_read_file): Remove unused local.
115356 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115358         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115359         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115360         Problem reported by Denis Excoffier in
115361         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115363 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115365         * modules/sys_socket, modules/socklen: Include sys/types since
115366         FreeBSD 4.x's sys/socket.h needs it.
115368 2006-06-19  Simon Josefsson  <jas@extundo.com>
115370         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115372 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115374         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115376 2006-06-19  Bruno Haible  <bruno@clisp.org>
115378         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115379         and FULL_PATH_INTTYPES_H in angle brackets.
115380         Reported by Mark D. Baushke <mdb@gnu.org>.
115382 2006-06-17  Eric Blake  <ebb9@byu.net>
115384         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
115385         errno.
115387 2006-06-17  Bruno Haible  <bruno@clisp.org>
115389         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
115390         <sys/inttypes.h>.
115392 2006-06-17  Bruno Haible  <bruno@clisp.org>
115394         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
115395         whether errno is declared. Assume <errno.h> declares errno.
115397 2006-06-17  Bruno Haible  <bruno@clisp.org>
115399         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
115401 2006-06-17  Bruno Haible  <bruno@clisp.org>
115403         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
115404         problem on Solaris 2.5.1.
115406 2006-06-16  Eric Blake  <ebb9@byu.net>
115408         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
115409         * lib/unicodeio.c [!defined errno]: Likewise.
115410         * lib/strtol.c [!defined errno]: Likewise.
115411         * lib/strtod.c [!defined errno]: Likewise.
115413 2006-06-15  Eric Blake  <ebb9@byu.net>
115415         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
115417 2006-06-15  Eric Blake  <ebb9@byu.net>
115419         * config/srclist.txt (ssize_t.m4): Lose sync.
115421 2006-06-15  Bruno Haible  <bruno@clisp.org>
115423         * modules/stdint (Files): Include m4/full-header-path.m4,
115424         m4/size_max.m4, m4/wchar_t.m4.
115425         (Makefile.am): Many more substitutions.
115426         * modules/stdint-tests: New file.
115427         * tests/test-stdint.c: New file.
115429 2006-06-15  Bruno Haible  <bruno@clisp.org>
115431         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
115432         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
115433         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
115434         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
115435         gl_CHECK_TYPE_SAME): New macros.
115437 2006-06-15  Bruno Haible  <bruno@clisp.org>
115439         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
115441 2006-06-15  Bruno Haible  <bruno@clisp.org>
115443         * lib/stdint_.h: Rewritten to be fully auto-configured.
115444         Fixes bug on HP-UX/IA64.
115446 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
115448         * lib/getdate.y (__attribute__): Don't define if already defined.
115449         Problem reported by Larry Jones.
115450         * lib/utimens.c (__attribute__): Likewise.
115452 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
115454         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
115455         reported by Andreas Schwab.
115457 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115458             Bruno Haible  <bruno@clisp.org>
115460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
115461         check for the declaration of strnlen and a run test that exposes the
115462         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
115463         rpl_strndup.
115465 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115466             Bruno Haible  <bruno@clisp.org>
115468         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
115470 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115472         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
115473         compile test, for Tru64 4.0D.
115475 2006-05-28  Karl Berry  <karl@gnu.org>
115477         * config/srclist.txt (printf-args.c): lose sync.
115479 2006-05-26  Martin Lambers  <marlam@marlam.de>
115481         * lib/getpass.c: Updates the test for the native W32 API, and adds
115482         missing includes, thus fixing compilation warnings.
115484 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115486         * lib/exclude.c (exclude_fnmatch): New function.
115487         (excluded_file_name): Call exclude_fnmatch.
115488         * lib/exclude.h (excluded_file_name): New prototype
115490 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
115492         * lib/tempname.c (small_open, large_open): New macros.
115493         (__open, __open64) [!_LIBC]: Remove.
115494         (__gen_tempname): Use small_open and large_open instead of __open
115495         and __open64.  This fixes a portability bug on HP-UX 11.11i
115496         reported by Simon Wing-Tang in
115497         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
115499 2006-05-24  Bruno Haible  <bruno@clisp.org>
115501         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
115502         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
115503         Reported by Thorsten Maerz <torte@netztorte.de> via
115504         Aaron Stone <aaron@serendipity.cx>.
115506 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
115509         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
115510         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
115511         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
115512         not really conditional on the cache.
115513         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
115515 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115517         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
115518         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
115519         (my_usleep): Don't mishandle maximum value.
115521 2006-05-19  Jim Meyering  <jim@meyering.net>
115523         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
115525 2006-05-17  Bruno Haible  <bruno@clisp.org>
115527         Cygwin portability.
115528         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
115530 2006-05-17  Bruno Haible  <bruno@clisp.org>
115532         * lib/stdint_.h: Fix recognition of Cygwin.
115534 2006-05-15  Bruno Haible  <bruno@clisp.org>
115536         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
115537         on libtool patch by Ralf Wildenhues.
115539 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
115541         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
115542         test for C99 conformance; (bool) 0.5 is an integer constant
115543         expression, but (bool) -0.5 is not.  Problem reported by Fedor
115544         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
115546 2006-05-11  Simon Josefsson  <jas@extundo.com>
115548         * m4/xvasprintf.m4: Fix obvious typo.
115550 2006-05-11  Jim Meyering  <jim@meyering.net>
115552         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
115553         James Lemley.
115555 2006-05-10  Simon Josefsson  <jas@extundo.com>
115557         * lib/md4.c: Typo fix, update copyright years.
115558         (K1, K2): Don't use L because it turn computations into 64-bit on
115559         64-bit platforms.
115561 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
115563         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
115564         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
115565         unwanted sign propagation, e.g., on hosts with 64-bit int.
115566         There still are some problems with reeelly weird theoretical hosts
115567         (e.g., 33-bit int) but it's not worth worrying about now.
115568         * lib/sha1.c (rol): Likewise.
115569         (K1, K2, K3, K4): Remove unnecessary L suffix.
115571 2006-05-10  Bruno Haible  <bruno@clisp.org>
115573         * lib/des.c: Cast to avoid warnings.
115575 2006-05-09  Bruno Haible  <bruno@clisp.org>
115577         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
115578         (Depends-on): Depend also on xsize, stdarg.
115579         (configure.ac): Add gl_XVASPRINTF.
115581 2006-05-09  Bruno Haible  <bruno@clisp.org>
115583         * m4/xvasprintf.m4: New file.
115585 2006-05-09  Bruno Haible  <bruno@clisp.org>
115587         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
115588         (EOVERFLOW): Define fallback value.
115589         (xstrcat): New function.
115590         (xvasprintf): Recognize the special case of a string concatenation.
115592 2006-05-08  Eric Blake  <ebb9@byu.net>
115594         * gnulib-tool (func_version): Base copyright year on CVS date.
115595         (func_emit_copyright_notice): New function.
115596         (func_emit_lib_Makefile_am): Use it.
115597         (func_emit_tests_Makefile_am): Likewise.
115598         (func_import): Likewise.
115600 2006-05-08  Bruno Haible  <bruno@clisp.org>
115602         * modules/stdarg: New file.
115603         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
115605 2006-05-08  Bruno Haible  <bruno@clisp.org>
115607         * m4/stdarg.m4: New file, from GNU gettext.
115609 2006-05-08  Bruno Haible  <bruno@clisp.org>
115611         * config/srclist.txt (build-aux/config.rpath): different from latest
115612         release.
115614 2006-05-08  Bruno Haible  <bruno@clisp.org>
115616         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
115618 2006-05-05  Jim Meyering  <jim@meyering.net>
115620         * m4/warning.m4: New file, derived from bison's file by the same name.
115622 2006-05-03  Bruno Haible  <bruno@clisp.org>
115624         * lib/stdint_.h: Shorter URL.
115625         * lib/inttypes.h: Likewise.
115627 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115629         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
115631 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115633         * lib/verify.h: Document the internals better.  Most of this change
115634         was written by Bruno Haible.
115636 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115638         * doc/verify.texi: New file, partly based on a proposal by
115639         Bruno Haible.
115641 2006-05-02  Bruno Haible  <bruno@clisp.org>
115643         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
115644         test from here...
115645         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
115647 2006-04-29  Bruno Haible  <bruno@clisp.org>
115649         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
115650         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
115652 2006-04-29  Bruno Haible  <bruno@clisp.org>
115654         * gnulib-tool: Make --update option actually work.
115656 2006-04-29  Bruno Haible  <bruno@clisp.org>
115658         * doc/gcd.texi: New file.
115659         * doc/gnulib.texi: Include it.
115661 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
115663         * lib/getdate.y (get_date): When adding relative date, start with the
115664         initial time, not with the result of the first mktime call.
115666 2006-04-25  Bruno Haible  <bruno@clisp.org>
115668         * gnulib-tool (func_import): Output the include directives in three
115669         blocks, sorted separately.
115670         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115672 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115674         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
115675         to define main with arguments, for C++.  Reported by Eric Blake.
115676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
115677         Prefer 'int main ()' to 'int main (void)', for C++.
115678         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
115679         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
115680         for 'main', for C99 and C++.
115682 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
115685         Don't assume that exit status -1 is valid.
115686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
115687         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
115688         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
115689         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
115690         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
115691         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
115692         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
115693         functions can be used without declaring them, or that you can
115694         exit with status -1.
115695         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
115697 2006-04-24  Karl Berry  <karl@gnu.org>
115699         * config/srclist.txt (longdouble.m4): sync lost.
115701 2006-04-24  Eric Blake  <ebb9@byu.net>
115703         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
115705 2006-04-24  Bruno Haible  <bruno@clisp.org>
115707         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
115708         poll() implementation in AIX.
115709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115711 2006-04-24  Bruno Haible  <bruno@clisp.org>
115713         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
115714         assigned exactly once.
115716 2006-04-23  Claudio Fontana  <claudio@gnu.org>
115717             Bruno Haible  <bruno@clisp.org>
115719         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
115720         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
115721         for AM_CPPFLAGS.
115723 2006-04-23  Bruno Haible  <bruno@clisp.org>
115725         * modules/copy-file: Depend on unistd.
115726         * modules/execute: Likewise.
115727         * modules/fatal-signal: Likewise.
115728         * modules/findprog: Likewise.
115729         * modules/mkdtemp : Likewise.
115730         * modules/pipe: Likewise.
115731         * modules/wait-process: Likewise.
115733 2006-04-23  Bruno Haible  <bruno@clisp.org>
115735         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
115736         condition was already detected.
115737         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115739 2006-04-23  Bruno Haible  <bruno@clisp.org>
115741         * lib/copy-file.c: Include <unistd.h> unconditionally.
115742         * lib/execute.c: Likewise.
115743         * lib/fatal-signal.c: Likewise.
115744         * lib/findprog.c: Likewise.
115745         * lib/mkdtemp.c: Likewise.
115746         * lib/pipe.h: Likewise.
115747         * lib/pipe.c: Likewise.
115748         * lib/wait-process.h: Likewise.
115750 2006-04-23  Bruno Haible  <bruno@clisp.org>
115752         * gnulib-tool (func_usage): Fix --import description. Document
115753         --update.
115754         (func_import): Create temporary file in a temporary directory, if
115755         --dry-run is specified. Silence errors from 'grep' when there are no
115756         m4 files in $m4dir.
115757         (func_create_testdir): Silence errors from 'grep' when there are no
115758         m4 files in $m4dir.
115759         Reported by Karl Berry <karl@freefriends.org>.
115761 2006-04-20  Bruno Haible  <bruno@clisp.org>
115763         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
115764         one argument, so that the code will be portable to Autoconf 2.60.
115765         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
115766         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115767         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
115769 2006-04-19  Derek Price  <derek@ximbiot.com>
115770             Eric Blake  <ebb9@byu.net>
115772         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
115773         rather than "/full/path.h".  Update comment to match.  Shorten &
115774         generalize m4_translit call via AS_TR_CPP.
115776 2006-04-19  Derek Price  <derek@ximbiot.com>
115777             Eric Blake  <ebb9@byu.net>
115779         * lib/inttypes.h: Correct grammar in comment.
115781 2006-04-18  Derek Price  <derek@ximbiot.com>
115782             Paul Eggert  <eggert@cs.ucla.edu>
115784         * modules/inttypes: New file.
115785         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
115787 2006-04-18  Derek Price  <derek@ximbiot.com>
115788             Paul Eggert  <eggert@cs.ucla.edu>
115790         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
115791         New files.
115793 2006-04-18  Derek Price  <derek@ximbiot.com>
115794             Paul Eggert  <eggert@cs.ucla.edu>
115796         * lib/inttypes.h: New file.
115797         * lib/strtoimax.c: Assume <inttypes.h>.
115799 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
115801         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
115802         isn't mounted.  Problem reported by Kir Kolyshkin.
115804 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
115806         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
115807         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
115808         Derek R. Price.
115809         * lib/regex.h (RE_DUP_MAX): Update comment to match current
115810         implementation.
115812 2006-04-12  Eric Blake  <ebb9@byu.net>
115814         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
115815         is now done automatically by the corresponding Autoconf macro.
115817 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
115819         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
115820         time_r.h.
115822 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115824         Merge regex changes from libc, removing some of our
115825         POSIX-conformance changes that were rejected and redoing them in a
115826         less-intrusive way.
115828         * lib/regcomp.c (re_compile_internal, init_dfa):
115829         Length arg is now size_t, not Idx.  All uses changed.
115830         (peek_token): Forward decl now says internal_function.
115831         (__re_error_msgid, __re_error_msgid_idx):
115832         Now static rather than extern with attribute_hidden.
115833         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
115834         For some reason libc prefers K&R style defns for external functions.
115835         (regerror) [!defined _LIBC]: Likewise.
115836         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
115837         (seek_collating_symbol_entry, lookup_collation_sequence_value):
115838         (build_range_exp, build_collating_symbol):
115839         Use K&R-style defn.
115840         (re_compile_fastmap): Use '\0' to memset, not 0.
115841         (utf8_sb_map): Make the calculations more obvious.
115842         (init_dfa, parse_bracket_exp, build_charclass_op):
115843         Call calloc and cast result, as glibc does.
115844         (init_word_char, fetch_token, peek_token, peek_token_bracket):
115845         (build_range_exp, build_collating_symbol):
115846         Now internal functions.
115848         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
115850         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
115851         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
115852         Don't depend on VMS; depend on __VMS instead, for POSIX
115853         namespace cleanness.
115854         (regoff_t): Define to ssize_t, not long int.
115856         Remove the REG_ macros named below.  Instead, make the old names
115857         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
115858         __USE_GNU_REGEX.
115859         (REG_BACKSLASH_ESCAPE_IN_LISTS):
115860         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
115861         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
115862         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
115863         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
115864         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
115865         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
115866         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
115867         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
115868         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
115869         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
115870         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
115871         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
115872         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
115873         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
115874         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
115875         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
115876         (REG_NREGS):
115877         Remove.  All uses replaced by the old RE_* names.
115878         (RE_BACKSLASH_ESCAPE_IN_LISTS):
115879         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
115880         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
115881         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
115882         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
115883         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
115884         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
115885         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
115886         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
115887         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
115888         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
115889         Don't bother having these macros be independent of each others'
115890         values, since they no longer exist in the POSIX name space.
115892         Rename the following member names back to their old names,
115893         unless !__USE_GNU_REGEX.  All uses changed back.
115894         (buffer): Renamed from re_buffer.
115895         (allocated): Renamed from re_allocated.
115896         (used): Renamed from re_used.
115897         (syntax): Renamed from re_syntax.
115898         (fastmap): Renamed from re_fastmap.
115899         (translate): Renamed from re_translate.
115900         (can_be_null): Renamed from re_can_be_null.
115901         (regs_allocated): Renamed from re_regs_allocated.
115902         (fastmap_accurate): Renamed from re_fastmap_accurate.
115903         (no_sub): Renamed from re_no_sub.
115904         (not_bol): Renamed from re_not_bol.
115905         (not_eol): Renamed from re_not_eol.
115906         (newline_anchor): Renamed from re_newline_anchor.
115907         (num_regs): Renamed from rm_num_regs.
115908         (start): Renamed from rm_start.
115909         (end): Renamed from rm_end.
115911         (free_state): Move up a bit.
115913         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
115914         #define to be empty.
115915         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
115916         when that is what is intended.
115917         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
115918         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
115919         (MAX): New macro.
115920         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
115921         All uses changed back to re_malloc, etc.  It's now the caller's
115922         responsibility to check for overflow; all callers changed.
115923         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
115924         (re_x2nrealloc): Remove.
115925         (free_state): Remove decl.
115927         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
115928         (re_set_registers, re_exec):
115929         Use K&R-style defn.
115931         2006-01-31  Roland McGrath  <roland@redhat.com>
115933         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
115934         Reported by Mike Frysinger <vapier@gentoo.org>.
115936         2006-01-15  Andreas Jaeger  <aj@suse.de>
115938         [BZ #1950]
115939         * lib/regex_internal.c (re_string_reconstruct): Adjust for
115940         build_wcs_upper_buffer change.
115941         (build_wcs_upper_buffer): Change return type.
115943         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
115945         * lib/regex_internal.h: Include <stdint.h> if available.
115947         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
115949         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
115951         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
115953         * lib/regcomp.c: Adjust for changed secondary hash function.
115955         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
115957         * lib/regex.h: Pretty printing.
115958         Clean up namespace a bit.
115960         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
115962         * lib/regexec.c (update_cur_sifted_state, check_arrival,
115963         check_arrival_add_next_nodes): Avoid using uninitialized variable.
115965         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115966                     Ulrich Drepper  <drepper@redhat.com>
115968         [BZ #1302]
115969         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
115970         changed.
115971         (bitset_word_t): Renamed from bitset_word.  All uses changed.
115973         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
115975         [BZ #281]
115976         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
115977         * lib/regcomp.c: Remove unnecessary uses of
115978         unsigned RE_TRANSLATE_TYPE.
115979         * lib/regex_internal.h: Likewise.
115980         * lib/regex_internal.c: Likewise.
115981         * lib/regexec.c: Likewise.
115982         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
115984         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
115986         * lib/regexec.c (find_recover_state): Remove unnecessary
115987         initialization.
115988         (transit_state_bkref): Make DFA a const pointer.
115989         (get_subexp): Likewise.
115990         (check_arrival): Likewise.
115991         (update_cur_sifted_state): Likewise.
115992         (re_search_internal): Likewise.
115993         (prune_impossible_nodes): Likewise.
115994         (acquire_init_state_context): Likewise.
115995         (proceed_next_node): Likewise.
115996         (set_regs): Likewise.
115997         (free_fail_stack_return): Likewise.
115998         (check_arrival_expand_ecl): Mark DFA parameter as const.
115999         (check_arrival_expand_ecl_sub): Likewise.
116000         (check_subexp_limits): Likewise.
116001         (sub_epsilon_src_nodes):  Likewise.
116002         (add_epsilon_src_nodes):  Likewise.
116003         (merge_state_array): Likewise.
116004         (update_regs): Likewise.
116005         (build_trtable): Likewise.
116006         (sift_states_backward): Mark MCTX parameter as const.
116007         (build_sifted_states): Likewise.
116008         (update_cur_sifted_state): Likewise.
116009         (sift_states_mkref): Likewise.
116010         (check_arrival_expand_ecl): Mark eclosure as const.
116011         (check_dst_limits_calc_pos_1): Likewise.
116012         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116013         pointer.
116015         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116017         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116018         (transit_state_sb): Likewise.
116019         (transit_state_mb): Likewise.
116020         (sift_states_iter_mb): Likewise.
116021         (check_arrival_add_next_nodes): Likewise.
116022         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116023         [_LIBC] (re_search_2_stub): Use mempcpy.
116025         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116026         mbrtowc for very simple UTF-8 case.
116028         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116029         a pointer-to-const.
116030         (re_acquire_state_context): Likewise.
116031         * lib/regex_internal.h: Adjust prototypes.
116033         * lib/regex.c: Prevent using C++ compilers.
116035         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116036         (re_acquire_state_context): Likewise.
116038 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116040         * modules/regex (Depends-on): Add ssize_t.
116042 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116044         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116045         translation table.
116047 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116049         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116051 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116052             Bruno Haible  <bruno@clisp.org>
116054         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116055         <sys/types.h> and <inttypes.h>.
116057 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116059         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116060         `__error_t_defined', so argp.h will not typedef the former.
116062 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116064         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116065         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116066         glibc names.  Even if glibc is changed to conform to POSIX, the
116067         traditional names will be available anyway, since regex depends on
116068         the extensions module.  Also, fix a longstanding typo in the
116069         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116070         reported by Emanuele Giaquinta.  Also, change sense of cached
116071         variable, so that the message makes sense.
116073 2006-03-24  Simon Josefsson  <jas@extundo.com>
116075         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116076         including some doc fixes.
116077         (base64_encode_alloc): Fix +1 bug on allocation failures.
116079 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116081         * lib/base64.c (base64_encode): Do not read past end of array with
116082         unsanitized input on systems with CHAR_BIT > 8.
116084 2006-03-24  Eric Blake  <ebb9@byu.net>
116086         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116088 2006-03-22  Karl Berry  <karl@gnu.org>
116090         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116091         * config/srclistvars.sh (COREUTILS): new var.
116093 2006-03-17  Jim Meyering  <jim@meyering.net>
116095         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116096         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116098 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116100         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116101         no longer needs it.  Instead, check that regoff_t is as least
116102         as wide as ptrdiff_t.
116104         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116105         so that our regex.h stays compatible with the installed regex.
116106         This is helpful for installers who configure --without-included-regex.
116107         Problem reported by Emanuele Giaquinta.
116109 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116111         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116112         Typedef to long int, not to off_, as POSIX will likely change
116113         in that direction.
116115 2006-03-15  Eric Blake  <ebb9@byu.net>
116117         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116119 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116121         * lib/argp-help.c (validate_uparams): Fix typo
116122         * lib/argp-parse.c (argp_default_options): Consistently begin help
116123         messages with a lowercase letter.
116125 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116127         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116128         overrun buffers and shouldn't be used (much as gets shouldn't be
116129         used).
116130         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116132 2006-03-08  Simon Josefsson  <jas@extundo.com>
116134         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116135         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116137 2006-03-08  Simon Josefsson  <jas@extundo.com>
116139         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116140         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116142 2006-03-08  Simon Josefsson  <jas@extundo.com>
116144         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116145         signal that configure disabled the device.
116147 2006-03-08  Simon Josefsson  <jas@extundo.com>
116149         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116150         languages.
116152 2006-03-07  Simon Josefsson  <jas@extundo.com>
116154         * modules/getopt (Depends-on): Add unistd.
116156         * modules/unistd: New file.
116158 2006-03-07  Simon Josefsson  <jas@extundo.com>
116160         * modules/gc-random: New file.
116162 2006-03-07  Simon Josefsson  <jas@extundo.com>
116164         * m4/unistd_h.m4: New file.
116166 2006-03-07  Simon Josefsson  <jas@extundo.com>
116168         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116169         test to be side-effect free by storing the result in the cache
116170         variable gl_cv_lib_readline, and moving the assignment of
116171         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116172         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116174 2006-03-07  Simon Josefsson  <jas@extundo.com>
116176         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116177         error on missing devices (the functions will return an error).
116179         * m4/gc.m4: Move random stuff to gc-random.m4
116181 2006-03-07  Simon Josefsson  <jas@extundo.com>
116183         * lib/unistd_.h: New file.
116185 2006-03-07  Simon Josefsson  <jas@extundo.com>
116187         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116189 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116191         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116192         Problem reported by Juan Manuel Guerrero.
116194 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116196         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116197         the unistd module.
116198         * lib/getlogin_r.c: Likewise.
116199         * lib/getlogin_r.h: Likewise.
116200         * lib/glob.c: Likewise.
116201         * lib/pagealign_alloc.c: Likewise.
116202         * lib/unistd_.h: Remove; no longer needed.
116204 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116206         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116207         Add unistd.
116208         * modules/c-stack (Depends-on): Add unistd.
116209         * modules/getlogin_r: Likewise.
116210         * modules/glob: Likewise.
116211         * modules/pagealign_alloc: Likewise.
116212         * modules/unistd (Files): Remove lib/unistd_.h.
116213         (EXTRA_DIST): Remove.
116214         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
116215         need unistd_.h.
116216         (MOSTLYCLEANFILES): Remove unistd.h-t.
116218 2006-03-03  Simon Josefsson  <jas@extundo.com>
116220         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
116222 2006-03-03  Simon Josefsson  <jas@extundo.com>
116224         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
116225         libidn and bison.
116227 2006-03-03  Simon Josefsson  <jas@extundo.com>
116229         * build-aux/maint.mk: Add indent target.
116231 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
116233         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
116234         our replacement poll.h in any case, to avoid a differing
116235         declaration from a system header.  Seen on AIX.
116237 2006-03-01  Simon Josefsson  <jas@extundo.com>
116239         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
116240         <kasal@ucw.cz>.
116242 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116244         * modules/gettime (Depends-on): Add extensions module.
116245         * modules/nanosleep (Depends-on): Likewise.
116246         * modules/settime (Depends-on): Likewise.
116248 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116250         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116251         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116252         pedantically.
116253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116254         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116256         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116257         not "==".  Reported by Ralf Wildenhues.
116259 2006-03-01  Karl Berry  <karl@gnu.org>
116261         * doc/Copyright/request-*: new files, synced from gnuorg.
116263 2006-03-01  Karl Berry  <karl@gnu.org>
116265         * config/srclist.txt (Copyright/*): new entries.
116267 2006-02-28  Simon Josefsson  <jas@extundo.com>
116269         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116271 2006-02-27  Simon Josefsson  <jas@extundo.com>
116273         * lib/base64.h: Indent #define's.  From Jim Meyering
116274         <jim@meyering.net>.
116276 2006-02-27  Jim Meyering  <jim@meyering.net>
116278         Revert the change of 2006-02-24, so these files can continue
116279         to be sync'd from gettext.
116280         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116281         of `config.h'.
116283 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116285         * modules/intprops: New file.
116286         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116287         Add intprops.
116288         * modules/getloadavg (Files): Remove lib/intprops.h.
116289         (Depends-on): Add intprops.
116290         * modules/human: Likewise.
116291         * modules/inttostr: Likewise.
116292         * modules/openat: Likewise.
116293         * modules/sig2str: Likewise.
116294         * modules/userspec: Likewise.
116295         * modules/utimecmp: Likewise.
116296         * modules/xnanosleep: Likewise.
116297         * modules/xstrtol: Likewise.
116299 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116301         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116302         * modules/lock-tests (TESTS): Use $(EXEEXT).
116303         * modules/tls-tests: Likewise.
116304         * modules/argp-tests: Likewise.
116305         (check_PROGRAMS): New var, replacing...
116306         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116308 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116310         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116311         `config.h'.
116313 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116315         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116317 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116319         Sync from coreutils.
116320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116321         gl_CHDIR_SAFER.
116323 2006-02-22  Jim Meyering  <jim@meyering.net>
116325         Sync from coreutils.
116326         * m4/chdir-safer.m4: New file.
116328 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116330         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116331         AT_FDCWD exceeds INT_MAX.
116332         * lib/openat.h (AT_FDCWD): Likewise.
116334 2006-02-17  Eric Blake  <address@hidden>
116336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116338 2006-02-16  Simon Josefsson  <jas@extundo.com>
116340         * modules/getaddrinfo (Depends-on): Add sys_socket.
116342 2006-02-15  Simon Josefsson  <jas@extundo.com>
116344         * build-aux/maint.mk: Add dsyntax-check rule.
116346 2006-02-15  Eric Blake  <ebb9@byu.net>
116348         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116349         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116350         'present but cannot compile' warnings on cygwin.
116351         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116352         use ws2tcpip.h if sys/socket.h works.
116353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116354         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116356 2006-02-14  Simon Josefsson  <jas@extundo.com>
116358         * modules/maintainer-makefile (Files): Rename.
116360         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116361         and (the local) Makefile.cfg to maint-cfg.mk.
116363         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116364         to the latter.
116366         * modules/maintainer-makefile: New module.
116368         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116369         severaly stripped to make it possible to build it up from scratch
116370         with reliable tests.
116372         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116373         fixes to permit overriding the default actions when configure and
116374         makefile are not available.
116376 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116378         Sync from coreutils.
116379         * modules/lstat (Depends-on): Don't depend on xalloc.
116380         (License): Change from GPL to LGPL, since this is now simply a
116381         replacement for a libc function.
116383 2006-02-14  Jim Meyering  <jim@meyering.net>
116385         Sync from coreutils.
116387         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
116388         failure on deficient systems, and simplify gnulib lgpl dependencies.
116389         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
116390         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
116392         * lib/xalloc-die.c: Remove unused definition of N_.
116394 2006-02-14  Jim Meyering  <jim@meyering.net>
116396         Sync from coreutils.
116397         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
116398         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
116399         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
116400         double-quote uses of that variable, to accommodate the rare case in
116401         which getmntent is available in none of the libraries checked.  This
116402         happens at least on FreeBSD 5.0.
116404 2006-02-13  Simon Josefsson  <jas@extundo.com>
116406         * gnulib-tool (Usage): Fix --import, from
116407         karl@freefriends.org (Karl Berry).
116409 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116411         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
116413 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
116415         * lib/argp-namefrob.h: Restore changes accidentally lost during the
116416         "autoupdate" on 2005-12-12.
116418 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116420         * modules/closeout (Depends-on): Remove atexit.
116422 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116424         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
116425         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
116427 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
116429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
116430         __EXTENSIONS__ if this causes compilation to fail.  Problem
116431         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
116432         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
116434 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
116436         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
116437         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
116438         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
116439         All uses changed.
116441 2006-01-26  Simon Josefsson  <jas@extundo.com>
116443         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
116444         prototype is visible on mingw32.
116446         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
116447         for mingw32.
116449         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
116450         mingw32).
116452 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
116454         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
116455         attempt to open for write; this always fails, at least on POSIX
116456         hosts.  This reinstates the 2006-01-09 change, which was
116457         inadvertently removed.
116459 2006-01-26  Bruno Haible  <bruno@clisp.org>
116461         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
116462         Reported by Paul Eggert.
116464 2006-01-26  Bruno Haible  <bruno@clisp.org>
116465             Paul Eggert  <eggert@cs.ucla.edu>
116467         * lib/stdbool_.h (_Bool)
116468         [(! (defined __cplusplus || defined __BEOS__)
116469           && !defined __GNUC__
116470           && !(defined __HP_cc || defined __xlc__
116471                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
116472                || defined __sgi))]:
116473         #define to signed char in these cases too; this simplifies
116474         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
116475         etc., separately) and makes it more conservative.
116477 2006-01-25  Simon Josefsson  <jas@extundo.com>
116479         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
116480         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
116481         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
116483 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116485         * lib/argp-namefrob.h: Bugfix. Remove stray #
116487 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
116489         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
116490         so that we test the test.
116491         Check for yet another HP-UX cc bug involving *bool |= bool.
116493 2006-01-25  Karl Berry  <karl@gnu.org>
116495         * config/srclist.txt (vasnprintf.c): sync lost.
116497 2006-01-25  Jim Meyering  <jim@meyering.net>
116499         Sync from the stable (b5) branch of coreutils:
116501         * lib/fts.c (fts_children): Don't let close() clobber errno from
116502         failed fchdir().
116504         * lib/fts.c (fts_stat): When following a symlink-to-directory,
116505         don't necessarily interpret stat-fails+lstat-succeeds as indicating
116506         a dangling symlink.  That can also happen at least for ELOOP.
116507         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
116508         FYI, this bug predates the inclusion of fts.c in coreutils.
116510         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
116511         in their own block, so pre-c99 compilers don't object.
116513         Avoid the double-free (first in fts_read, second in fts_close) that
116514         would occur when an `active' directory is made inaccessible (e.g.,
116515         via chmod a-x) during a traversal.
116516         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116517         before returning.  Reproduce this failure by
116518         mkdir -p a/b; cd a; chmod a-x . b
116519         Reported by Stavros Passas.
116521 2006-01-25  Jim Meyering  <jim@meyering.net>
116523         * lib/fileblocks.c: Remove more useless parentheses.
116524         * lib/readutmp.h: Likewise.
116526 2006-01-25  Bruno Haible  <bruno@clisp.org>
116528         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
116529         warnings.
116530         Reported by Paul Eggert.
116532 2006-01-25  Bruno Haible  <bruno@clisp.org>
116534         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
116535         rid of a trap command. For Solaris sh.
116536         Reported by Mark D. Baushke <mdb@gnu.org>.
116538 2006-01-24  Simon Josefsson  <jas@extundo.com>
116540         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
116541         Bruno.
116543 2006-01-24  Karl Berry  <karl@gnu.org>
116545         * config/srclist.txt (argp-namefrob.h): sync lost.
116547 2006-01-24  Jim Meyering  <jim@meyering.net>
116549         * modules/openat (Files): Add lib/intprops.h.
116550         From Mark D. Baushke.
116552 2006-01-24  Jim Meyering  <jim@meyering.net>
116554         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
116555         Reported by Mark D. Baushke.
116557 2006-01-24  Jim Meyering  <jim@meyering.net>
116559         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
116561 2006-01-24  Bruno Haible  <bruno@clisp.org>
116563         * modules/strnlen (Maintainer): Change from glibc to all.
116565 2006-01-24  Bruno Haible  <bruno@clisp.org>
116567         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
116568         Patch by Paul Eggert.
116570 2006-01-24  Bruno Haible  <bruno@clisp.org>
116572         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
116573         already has it.
116574         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
116575         2005-11-26.
116577         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
116578         'signed char' to avoid problems with the built-in _Bool type.
116579         Reported by Paul Eggert on 2005-11-26.
116581 2006-01-24  Bruno Haible  <bruno@clisp.org>
116583         * gnulib-tool (func_import): Avoid constructing complicated sed
116584         expressions inside backquote.
116585         Report and solution by Mark D. Baushke <mdb@gnu.org>.
116587 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
116589         These changes imported from libc.
116590         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
116591         test and two separate function calls.
116592         * lib/strndup.c (__strndup): Add libc_hidden_def.
116594 2006-01-23  Simon Josefsson  <jas@extundo.com>
116596         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
116597         Remove the test_*_SOURCES variable: automake infers it by default.
116598         * modules/tls-tests: Likewise.
116600 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116602         Work around porting bugs reported by Dieter in
116603         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
116604         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
116605         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
116606         Include "getopt.h" first, to check interface.
116607         (getenv): Declare only if defined HAVE_DECL_GETENV &&
116608         !HAVE_DECL_GETENV.
116609         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
116610         (__strndup): Revert to K&R-style function dfns, the glibc style.
116611         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
116612         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
116613         Include strnlen.h first, to get prototype properly.
116614         (strnlen): Renamed from __strnlen.
116615         Remove weak alias.
116617 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116619         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
116621 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116623         * config/srclist.txt: Adjust to reflect glibc reorganization.
116624         This affects only comments.
116626 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116628          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
116629          Reported by Bruce Korb <bkorb@gnu.org>.
116631 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
116633         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
116634         to pacify gcc -Wswitch-default.
116636 2006-01-22  Bruno Haible  <bruno@clisp.org>
116638         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
116639         temporary buffer for sprintf, take into account the precision also
116640         for 'd', 'i', 'u', 'o', 'x', 'X'.
116642 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116644         * modules/argp-tests: New module
116645         * tests/test-argp.c: New file
116646         * tests/test-argp-2.sh: New file
116648 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116650         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
116651         (__argp_base_name): Removed
116652         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
116653         typo.
116654         (__argp_base_name): Provide macro definition or extern declaration
116655         depending on the configuration
116657 2006-01-20  Simon Josefsson  <jas@extundo.com>
116659         * modules/inet_ntop (Depends-on): Depend on sys_socket.
116661 2006-01-20  Simon Josefsson  <jas@extundo.com>
116663         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
116665 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
116667         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
116668         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
116669         Suggested by Bruno Haible.
116671 2006-01-20  Karl Berry  <karl@gnu.org>
116673         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
116674         until changes propagate, I guess.
116676 2006-01-19  Simon Josefsson  <jas@extundo.com>
116678         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
116680 2006-01-19  Simon Josefsson  <jas@extundo.com>
116682         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
116684 2006-01-19  Simon Josefsson  <jas@extundo.com>
116686         * gnulib-tool: Set check_PROGRAMS.
116688         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116689         modules/des-tests, modules/gc-arcfour-tests,
116690         modules/gc-arctwo-tests, modules/gc-des-tests,
116691         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116692         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116693         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116694         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116695         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116696         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
116697         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
116698         test_*_SOURCES.
116700 2006-01-18  Simon Josefsson  <jas@extundo.com>
116702         * modules/socklen (Depends-on): Depend on sys_socket.
116704 2006-01-18  Simon Josefsson  <jas@extundo.com>
116706         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116707         modules/des-tests, modules/gc-arcfour-tests,
116708         modules/gc-arctwo-tests, modules/gc-des-tests,
116709         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116710         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116711         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116712         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116713         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116714         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
116715         $(EXEEXT) to automake TESTS variable, for mingw32.
116717 2006-01-17  Simon Josefsson  <jas@extundo.com>
116719         * modules/socklen (Include): Need sys/socket.h.
116721 2006-01-17  Bruno Haible  <bruno@clisp.org>
116723         * modules/ssize_t (Include): Add <sys/types.h>.
116725 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
116727         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
116728         it's not portable and it doesn't work with cross-compiles.
116729         Problem reported by Bruno Haible.  Fix missing-$ typo in
116730         'test "gl_cv_ignore_unused_libraries" ...' that prevented
116731         -zignore from being used with Sun's C compiler.
116733 2006-01-12  Simon Josefsson  <jas@extundo.com>
116735         * lib/base64.c: Fix warning, reported by Bruno Haible
116736         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
116738 2006-01-12  Bruno Haible  <bruno@clisp.org>
116740         * modules/ldd: New file.
116741         * build-aux/ldd.sh.in: New file.
116742         * MODULES.html.sh (Support for building libraries and executables): Add
116743         ldd.
116745 2006-01-12  Bruno Haible  <bruno@clisp.org>
116747         * m4/ldd.m4: New file.
116749 2006-01-12  Bruno Haible  <bruno@clisp.org>
116751         * gnulib-tool (func_import, func_create_testdir): Don't go into an
116752         endless loop while replacing $auxdir with build-aux.
116754 2006-01-11  Simon Josefsson  <jas@extundo.com>
116756         * lib/stdint_.h (SIZE_MAX): Add missing (.
116758 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
116760         Sync from coreutils.
116761         * lib/md5.c: Fix commentary typos.
116762         (alignof, UNALIGNED_P): No need for a GCC-specific version.
116763         * lib/md5.h (__attribute__): Remove; unused.
116764         * lib/sha1.c: Fix commentary to match md5 better.
116765         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
116766         so that we don't need to worry about alignment.  All uses changed.
116767         This merges the 2005-10-28 md5 change into sha1.
116769 2006-01-11  Jim Meyering  <jim@meyering.net>
116771         Sync from coreutils.
116772         * lib/md5.c (OP): Fix spacing.
116774 2006-01-11  Bruno Haible  <bruno@clisp.org>
116776         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116777         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
116778         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
116780 2006-01-11  Bruno Haible  <bruno@clisp.org>
116782         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116783         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
116784         the "early" section as well.
116786 2006-01-11  Bruno Haible  <bruno@clisp.org>
116788         Avoid "ar: no archive members specified" error on MacOS X.
116789         * gnulib-tool (func_modules_add_dummy): New function.
116790         (func_import, func_create_testdir): Invoke it.
116792 2006-01-11  Bruno Haible  <bruno@clisp.org>
116794         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
116795         with $auxdir in AC_CONFIG_FILES statements.
116797 2006-01-11  Bruno Haible  <bruno@clisp.org>
116799         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
116800         Initialize also noinst_HEADERS to empty.
116802 2006-01-11  Bruno Haible  <bruno@clisp.org>
116804         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
116805         variables.
116806         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
116807         autoreconf.
116809 2006-01-11  Bruno Haible  <bruno@clisp.org>
116811         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
116812         overridable by the user.
116813         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116815 2006-01-10  Simon Josefsson  <jas@extundo.com>
116817         * modules/sys_socket: New file.
116819 2006-01-10  Simon Josefsson  <jas@extundo.com>
116821         * m4/sys_socket_h.m4: New file.
116823 2006-01-10  Simon Josefsson  <jas@extundo.com>
116825         * lib/socket_.h: New file.
116827 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116829         * modules/readutmp (Maintainer): Add myself.
116831 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116833         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
116834         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
116835         People who are still concerned with buggy memcmp implementations
116836         can invoke gl_FUNC_MEMCMP themselves.
116838 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116840         * lib/regex_internal.h (BITSET_WORD_BITS):
116841         Work around a bug in 64-bit PGC (before version 6.1-2), where the
116842         preprocessor mishandles large unsigned values as if they were signed.
116843         Problem reported by Claudio Fontana in
116844         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
116846 2006-01-10  Jim Meyering  <jim@meyering.net>
116848         Avoid the double-free (first in fts_read, second in fts_close) that
116849         would occur when an `active' directory is made inaccessible (e.g.,
116850         via chmod a-x) during a traversal.
116851         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116852         before returning.  Reproduce this failure by
116853         mkdir -p a/b; cd a; chmod a-x . b
116854         Reported by Stavros Passas.
116856         Sync from coreutils.
116857         * lib/sha1.c: Tweak grammar in a comment.
116859 2006-01-10  Jim Meyering  <jim@meyering.net>
116861         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
116862         Patch by Joerg Sonnenberger.
116864 2006-01-10  Bruno Haible  <bruno@clisp.org>
116866         * modules/readutmp: Depend on module free.
116867         * modules/strtok_r: Depend on module restrict.
116869 2006-01-10  Bruno Haible  <bruno@clisp.org>
116871         * modules/gettext (configure.ac): Add an invocation of
116872         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
116874 2006-01-10  Bruno Haible  <bruno@clisp.org>
116876         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
116877         Reported by Werner Lemberg <wl@gnu.org>.
116879 2006-01-10  Bruno Haible  <bruno@clisp.org>
116881         * lib/localcharset.c: Update from GNU gettext.
116883 2006-01-10  Bruno Haible  <bruno@clisp.org>
116885         * lib/argp.h (__const): Remove macro. Use const instead.
116886         * lib/argp-fmtstream.h (__const): Likewise.
116887         * lib/glob_.h (__const): Remove macro.
116888         * lib/glob-libc.h: Use const instead of __const.
116890 2006-01-10  Bruno Haible  <bruno@clisp.org>
116892         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
116893         variable.
116894         Needed to avoid an automake error regarding the 'gettext' module.
116896 2006-01-09  Simon Josefsson  <jas@extundo.com>
116898         * modules/inet_ntop (Depends-on): Add restrict.
116900 2006-01-09  Simon Josefsson  <jas@extundo.com>
116902         * modules/gc-rijndael-tests (License): Put under LGPL.
116904         * modules/gc-des-tests (License): Likewise.
116906         * modules/gc-arcfour-tests (License): Likewise.
116908         * modules/gc-arctwo-tests (License): Likewise.
116910         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
116912         * modules/gc-hmac-sha1-tests (Files): Likewise.
116914         * modules/gc-hmac-md5-tests (License): Likewise.
116916         * modules/gc-sha1-tests (License): Likewise.
116918         * modules/gc-md5-tests (License): Likewise.
116920         * modules/gc-md4-tests (License): Likewise.
116922         * modules/gc-md2-tests (License): Likewise.
116924         * modules/gc-tests (License): Likewise.
116926         * modules/des-tests (License): Likewise.
116928         * modules/md4-tests (License): Likewise.
116930         * modules/md2-tests (License): Likewise.
116932 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116934         Sync from coreutils:
116936         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
116937         * modules/lib-ignore: New file.
116938         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
116939         chdir-safer.m4, lchmod.m4.
116940         * modules/openat: Add mkdirat.c, openat-priv.h.
116942 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116944         Sync from coreutils.
116945         * m4/lib-ignore.m4: New file.
116946         * m4/lchmod.m4: New file.
116948 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116950         Sync from coreutils.
116951         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
116952         for write access: POSIX says that must fail.
116953         * lib/fts.c (diropen): Likewise.
116954         * lib/save-cwd.c (save_cwd): Likewise.
116955         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
116956         well, for minor improvements on hosts that lack O_DIRECTORY.
116957         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
116958         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
116959         Fall back on chown if open failed with EACCES.
116961         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
116962         Report an error at compile-time if only a 1-second nominal clock
116963         resolution is found.
116965         * lib/lchmod.h: New file.
116966         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
116967         (make_dir_parents): Use lchown rather than chown, and
116968         lchmod rather than chmod.
116970         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
116971         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
116972         "proc" reported by n0dalus.
116974         * lib/mountlist.c: Include <limits.h>.
116975         (dev_from_mount_options)
116976         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
116977         New function.  It no longer assumes "dev=" has the System V meaning
116978         on Linux (since it doesn't).  It also parses "dev=" more carefully.
116979         (read_file_system_list)
116980         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
116981         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
116982         dev= in that case.
116984         * lib/posixtm.h (PDS_PRE_2000): New macro.
116985         * lib/posixtm.c (year): Arg is now syntax_bits rather than
116986         allow_century.  All usages changed.  Reject dates outside the range
116987         1969-1999 if PDS_PRE_2000 is used.
116989 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
116991         Sync from coreutils.
116992         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
116993         (Time of day items): Mention the possibility of leap seconds.
116994         Problem reported by Dr. David Alan Gilbert.
116996 2006-01-09  Jim Meyering  <jim@meyering.net>
116998         Sync from coreutils.
117000         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117002         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117004         * lib/modechange.c (mode_compile): Reject an invalid mode string
117005         that starts with an octal digit.  From Andreas Gruenbacher.
117007         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117008         and dup to open_safer and dup_safer, respectively.
117009         (openat_permissive): Fix typo in comment.
117011         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117012         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117013         (_): Remove; no longer needed.
117014         (openat): Renamed from rpl_openat; no need for rpl_openat
117015         since openat.h renames openat for us.
117016         Replace most of the body with a call to openat_permissive,
117017         to avoid duplicate code.
117018         Port to (probably hypothetical) environments were mode_t is
117019         wider than int.
117020         (openat_permissive): Require mode arg, so that we can check
117021         types better.  Put it just after flags.  Change cwd failure
117022         indicator from pointer-to-bool to pointer-to-errno-value.
117023         All callers changed.
117024         Invoke openat_save_fail and/or openat_restore_fail if
117025         cwd_errno is null, so that openat can call us.
117026         (openat_permissive, fdopendir, fstatat, unlinkat):
117027         Simplify errno handling to avoid some duplicate code,
117028         as it's OK to set errno on success.
117029         * lib/openat.h: Revamp code so that function macros depend on
117030         __OPENAT_PREFIX only, not also on AT_FDCWD.
117031         (openat_ro): Remove.  Caller changed to use openat_permissive.
117032         (openat_permissive): Now a macro, if not a function.
117033         (openat_restore_fail, openat_save_fail): Now always functions,
117034         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117036         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117037         and openat.c.
117038         * lib/mkdirat.c: Include openat-priv.h.
117039         Remove definitions of macros defined therein.
117040         * lib/openat.c: Likewise.
117042         * lib/mkdirat.c (mkdirat): New file and function.
117043         * lib/openat.h (mkdirat): Declare.
117045         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117047         * lib/openat.h (openat_permissive): Declare.
117048         (openat_ro): Define.
117050         * lib/openat.c (EXPECTED_ERRNO): New macro.
117051         (openat_permissive): New function -- used in remove.c rewrite.
117052         (all functions): Set errno just before returning, only if there
117053         was an actual failure.
117054         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117056         Emulate openat-family functions using Linux's procfs, if possible.
117057         Idea and some code based on Ulrich Drepper's glibc changes.
117059         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117060         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117061         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117062         before falling back on save_cwd and restore_cwd.
117063         (fdopendir, fstatat, unlinkat): Likewise.
117065         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117066         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117068         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117069         as second argument to va_arg.  Otherwise, some versions of gcc
117070         warn that `if this code is reached, the program will abort'.
117072 2006-01-09  Jim Meyering  <jim@meyering.net>
117074         Sync from coreutils.
117075         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117076         Require openat-priv.h.
117078 2006-01-09  Bruno Haible  <bruno@clisp.org>
117080         * modules/strnlen (Include): Use strnlen.h.
117082 2006-01-09  Bruno Haible  <bruno@clisp.org>
117084         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117086 2006-01-09  Bruno Haible  <bruno@clisp.org>
117088         * lib/sysexit_.h (EX_OK): New macro.
117089         Suggested by Martin Lambers <marlam@marlam.de>.
117091 2006-01-09  Bruno Haible  <bruno@clisp.org>
117093         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117094         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117096 2006-01-09  Bruno Haible  <bruno@clisp.org>
117098         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117099         numbers.
117101 2006-01-09  Bruno Haible  <bruno@clisp.org>
117103         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117104         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117105         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117106         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117108 2006-01-09  Bruno Haible  <bruno@clisp.org>
117110         * build-aux/javacomp.sh.in: New file, moved from lib/.
117111         * modules/javacomp-script (Files): Update.
117112         (configure.ac): Add AC_CONFIG_FILES invocation.
117113         (EXTRA_DIST): Remove variable.
117115         * build-aux/javaexec.sh.in: New file, moved from lib/.
117116         * modules/javaexec (Files): Update.
117117         (configure.ac): Add AC_CONFIG_FILES invocation.
117118         (EXTRA_DIST): Remove javaexec.sh.in.
117120         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117121         * modules/csharpcomp-script (Files): Update.
117122         (configure.ac): Add AC_CONFIG_FILES invocation.
117123         (EXTRA_DIST): Remove variable.
117125         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117126         * modules/csharpexec (Files): Update.
117127         (configure.ac): Add AC_CONFIG_FILES invocation.
117128         (EXTRA_DIST): Remove csharpexec.sh.in.
117130 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117132         Sync from coreutils.
117134         Add POSIX ACL support
117135         * lib/acl.h (copy_acl, set_acl): Add declarations.
117136         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117137         systems other than Linux.
117138         (chmod_or_fchmod): New function: use fchmod when possible,
117139         and chmod otherwise.
117140         (file_has_acl): Add a POSIX ACL implementation, with a
117141         Linux-specific subcase.
117142         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117143         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117144         acls are unsupported.
117145         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117146         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117147         are unsupported.
117149 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117151         Sync from coreutils.
117152         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117154 2006-01-07  Bruno Haible  <bruno@clisp.org>
117156         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117157         gl_EARLY.
117159 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117161         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117162         Problem reported for Mingw by Mark Junker.
117164 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117166         * README: Gnulib normally doesn't generate a tarball.
117168 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117170         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117171         long int, not int, for nanosecond counts, so that people who are
117172         used to POSIX struct timespec won't be surprised.  Reported by Jim
117173         Meyering.
117175 2005-12-28  Bruno Haible  <bruno@clisp.org>
117177         * build-aux/config.rpath: Update from GNU gettext.
117179 2005-12-16  Jim Meyering  <jim@meyering.net>
117181         * modules/fprintftime: New module.
117182         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117184 2005-12-16  Jim Meyering  <jim@meyering.net>
117186         * m4/fprintftime.m4: New file.
117188 2005-12-16  Jim Meyering  <jim@meyering.net>
117190         * lib/fprintftime.c, lib/fprintftime.h: New files.
117192 2005-12-15  Simon Josefsson  <jas@extundo.com>
117194         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117195         new m4/socklen.m4.
117197 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117199         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117200         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117202 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117204         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117205         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117206         struct uparams is valid. Fall back to the default values if it is
117207         not.
117209 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117211         * modules/argp (Files): Add argp-pin.c
117212         (Depends-on): dirname
117213         (lib_SOURCES): Add argp-pin.c
117215 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117217         * m4/argp.m4:  Check if program_invocation_name and
117218         program_invocation_short_name are declared and define appropriate
117219         macros if they are not.
117221 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117223         * lib/argp-help.c (__argp_base_name): New function
117224         (__argp_short_program_name): Rewrite using __argp_base_name
117225         * lib/argp-namefrob.h: Define program_invocation_name and
117226         program_invocation_short_name if requested
117227         (__argp_base_name): Add prototype
117228         * lib/argp-parse.c (argp_def): Use gettext wrappers
117229         (argp_default_parser): Use __argp_base_name
117230         * lib/argp-pin.c: New file. Defines program_invocation_name and
117231         program_invocation_short_name on systems that lack them.
117233 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117235         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
117236         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117237         porting problem reported by Georg Schwarz in
117238         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117240 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117242         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
117243         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117244         porting problem reported by Georg Schwarz in
117245         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117247 2005-12-05  Bruno Haible  <bruno@clisp.org>
117249         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117250         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117251         Reported by Mark Junker <mjscod@gmx.de>.
117253 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117255         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117256         Use implementation from Albert Chin, with some
117257         comments/corrections by Stepan Kasal and myself.
117259 2005-12-02  Bruno Haible  <bruno@clisp.org>
117261         * gnulib-tool (func_import): Accept GPLed build tool modules when
117262         --lgpl is given.
117263         * modules/csharpcomp-script: New file.
117264         * modules/csharpcomp: Depend on it.
117265         * modules/javacomp-script: New file.
117266         * modules/javacomp: Depend on it.
117267         Suggested by Simon Josefsson.
117269 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117271         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117272         statement, to work around an HP-UX 10.20 compiler bug reported by
117273         Peter O'Gorman.
117275 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117277         * modules/savedir (Depends-on): Add openat.
117279 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117281         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117282         (uintmax_t) [defined uintmax_t]: Do not declare.
117283         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117284         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117285         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117286         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117287         sake of portability to weird hosts that C allows (though we don't
117288         know of any practical examples).
117290         * lib/savedir.h (fdsavedir): New decl.
117291         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117292         contains most of the former guts of savedir.
117293         (savedir): Use savedirstream.
117294         Include "openat.h".
117296 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117298         * modules/obstack (Files): Add m4/ulonglong.m4.
117299         Problem reported by Davide Angelocola.
117301 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117303         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117304         coreutils no longer futzes with rounding modes.
117306 2005-11-14  Jim Meyering  <jim@meyering.net>
117308         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117309         replacement of mkstemp.
117311 2005-11-10  Simon Josefsson  <jas@extundo.com>
117313         * lib/readline.c: Remove EOL.
117315 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117317         * modules/gethrxtime (Depends-on): Add gettime.
117319 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117321         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117322         or gettimeofday; no longer needed.
117324 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117326         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117327         time business.
117328         (gethrxtime) [! (HAVE_NANOUPTIME
117329         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117330         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117331         our own approximation.
117333 2005-11-08  Eric Blake  <ebb9@byu.net>
117335         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117337 2005-11-08  Eric Blake  <ebb9@byu.net>
117339         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117341 2005-11-04  Bruno Haible  <bruno@clisp.org>
117343         * gnulib-tool: Implement --update mode.
117345 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117347         Fix porting problem reported by Theodoros V. Kalamatianos.
117348         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117349         Don't assume that futimes failing means we must fail.
117351 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117353         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117354         variables to suggest the intended function of the PATH_MAX check.
117356 2005-10-30  Kean Johnston  <jkj@sco.com>
117358         Trivial changes to support SCO systems.
117359         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117360         as PATH_MAX.
117361         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117362         where __ptr is null when no I/O is pending.
117364 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117366         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117367         leave errno alone.  Problem reported by Dmitry V. Levin.
117369 2005-10-28  Simon Josefsson  <jas@extundo.com>
117371         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117372         Test more.
117374         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117376         * modules/md2, modules/md2-tests: New files.
117378 2005-10-28  Simon Josefsson  <jas@extundo.com>
117380         * m4/inet_ntop.m4: More tests.
117382         * m4/gc-md2.m4, md2.m4: New file.
117384 2005-10-28  Simon Josefsson  <jas@extundo.com>
117386         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
117387         "restrict" keywords, as per POSIX.  Protect the function
117388         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
117389         Don't use K&R prototypes.  Check the sprintf return values.
117390         Re-define EAFNOSUPPORT if not present.  Indent.
117392         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
117393         suggested by Bruno Haible <bruno@clisp.org>.
117395         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
117397         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
117399         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
117400         libgcrypt).
117402         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
117404         * lib/md2.h, lib/md2.c: New files.
117406 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
117408         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
117409         errno alone.  Problem reported by Frederic Jolliton.
117411 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
117413         * modules/verify (License): Change from GPL to LGPL.  This is a
117414         tiny module and there are apparently near-equivalents that are
117415         under the BSD license.
117417 2005-10-24  Simon Josefsson  <jas@extundo.com>
117419         * modules/sha1: Relicense to LGPL.
117421 2005-10-24  Simon Josefsson  <jas@extundo.com>
117423         * lib/md4.h: Shrink buffer size, now that we changed the type.
117425 2005-10-23  Simon Josefsson  <jas@extundo.com>
117427         * gnulib-tool (func_import): Fix --tests-base.
117429 2005-10-22  Simon Josefsson  <jas@extundo.com>
117431         * modules/arcfour (Depends-on): Need stdint.
117433 2005-10-22  Simon Josefsson  <jas@extundo.com>
117435         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
117436         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
117438 2005-10-22  Simon Josefsson  <jas@extundo.com>
117440         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
117441         suggested by Bruno Haible <bruno@clisp.org>.
117443 2005-10-22  Simon Josefsson  <jas@extundo.com>
117445         * lib/crc.h: Include stddef.h, for size_t.
117447 2005-10-22  Simon Josefsson  <jas@extundo.com>
117449         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
117450         arcfour_context struct (simplify test vector testing in GNU
117451         Shishi).
117453 2005-10-21  Simon Josefsson  <jas@extundo.com>
117455         * modules/des, modules/des-tests: New files.
117457         * modules/gc-des, modules/gc-des-tests: New files.
117459         * tests/test-des.c, tests/test-gc-des.c: New file.
117461 2005-10-21  Simon Josefsson  <jas@extundo.com>
117463         * modules/arctwo, modules/arctwo-tests: New files.
117465         * tests/test-arctwo.c: New file.
117467         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
117469         * tests/test-gc-arctwo.c: New file.
117471 2005-10-21  Simon Josefsson  <jas@extundo.com>
117473         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
117474         Bruno Haible <bruno@clisp.org>.
117476         * m4/gc-des.m4: New file.
117478 2005-10-21  Simon Josefsson  <jas@extundo.com>
117480         * m4/arctwo.m4: New file.
117482         * m4/gc-arctwo.m4: New file.
117484 2005-10-21  Simon Josefsson  <jas@extundo.com>
117486         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
117487         block.
117489 2005-10-21  Simon Josefsson  <jas@extundo.com>
117491         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
117492         <bruno@clisp.org>.
117494         * lib/hmac-sha1.c (hmac_sha1): Likewise.
117496         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
117497         Bruno Haible <bruno@clisp.org>.
117499         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
117500         <bruno@clisp.org>.
117502 2005-10-21  Simon Josefsson  <jas@extundo.com>
117504         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
117506 2005-10-21  Simon Josefsson  <jas@extundo.com>
117508         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
117510 2005-10-21  Simon Josefsson  <jas@extundo.com>
117512         * lib/des.h, lib/des.c: New files.
117514         * lib/gc-gnulib.c: Support DES.c
117516 2005-10-21  Simon Josefsson  <jas@extundo.com>
117518         * lib/arctwo.h, lib/arctwo.c: New files.
117520         * lib/gc-gnulib.c: Support ARCTWO.
117522 2005-10-21  Simon Josefsson  <jas@extundo.com>
117524         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
117525         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117527 2005-10-21  Simon Josefsson  <jas@extundo.com>
117529         * gnulib-tool (func_import, func_create_testdir): Define automake
117530         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
117531         Makefile.am snippet),
117532         suggested by Bruno Haible <bruno@clisp.org>.
117534         * modules/gc (Makefile.am): Use it.
117536 2005-10-21  Bruno Haible  <bruno@clisp.org>
117538         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
117539         patch.
117541 2005-10-19  Simon Josefsson  <jas@extundo.com>
117543         * tests/test-gc-rijndael.c: New file.
117545         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
117547 2005-10-19  Simon Josefsson  <jas@extundo.com>
117549         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
117550         interface too.
117552 2005-10-19  Simon Josefsson  <jas@extundo.com>
117554         * tests/test-gc-arcfour.c: New file.
117556         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
117558 2005-10-19  Simon Josefsson  <jas@extundo.com>
117560         * modules/gc-md4, modules/gc-md4-tests: New file.
117562         * tests/test-gc-md4.c: New file.
117564 2005-10-19  Simon Josefsson  <jas@extundo.com>
117566         * m4/gc-md4.m4: New file.
117568 2005-10-19  Simon Josefsson  <jas@extundo.com>
117570         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
117571         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
117572         <kasal@ucw.cz>.
117574 2005-10-19  Simon Josefsson  <jas@extundo.com>
117576         * m4/gc-arcfour.m4: New file.
117578         * m4/gc-rijndael.m4: New file.
117580 2005-10-19  Simon Josefsson  <jas@extundo.com>
117582         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
117584 2005-10-19  Simon Josefsson  <jas@extundo.com>
117586         * lib/gc-gnulib.c: Support ARCFOUR.
117588 2005-10-19  Simon Josefsson  <jas@extundo.com>
117590         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
117591         support.
117593         * lib/gc.h: Add ECB enum type.
117595         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
117597 2005-10-18  Simon Josefsson  <jas@extundo.com>
117599         * tests/test-md5.c: New file.
117601         * modules/md5-tests: New file.
117603 2005-10-18  Simon Josefsson  <jas@extundo.com>
117605         * tests/test-md4.c: New file.
117607         * modules/md4, modules/md4-tests: New files.
117609 2005-10-18  Simon Josefsson  <jas@extundo.com>
117611         * m4/md4.m4: New file.
117613 2005-10-18  Simon Josefsson  <jas@extundo.com>
117615         * lib/md4.h, lib/md4.c: New files, based on md5.?.
117617 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
117619         * gnulib-tool (func_create_testdir): Omit the second check whether
117620         BUILT_SOURCES in nonempty.
117622 2005-10-17  Simon Josefsson  <jas@extundo.com>
117624         * tests/test-rijndael.c: New file.
117626 2005-10-17  Simon Josefsson  <jas@extundo.com>
117628         * modules/sha1: Depend on stdint instead of md5.
117630         * modules/md5: Depend on stdint, remove uint32_t.
117632 2005-10-17  Simon Josefsson  <jas@extundo.com>
117634         * modules/gc-sha1-tests: New file.
117636         * tests/test-gc-sha1.c: New file.
117638 2005-10-17  Simon Josefsson  <jas@extundo.com>
117640         * m4/md5.m4: Remove call to uint32_t.m4.
117642 2005-10-17  Simon Josefsson  <jas@extundo.com>
117644         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
117646         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
117647         md5.h.
117649         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
117651         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
117653 2005-10-17  Simon Josefsson  <jas@extundo.com>
117655         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
117657 2005-10-17  Simon Josefsson  <jas@extundo.com>
117659         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
117661 2005-10-17  Simon Josefsson  <jas@extundo.com>
117663         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
117665         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
117667 2005-10-17  Bruno Haible  <bruno@clisp.org>
117669         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
117670         that it can also be used in a test.
117672 2005-10-16  Bruno Haible  <bruno@clisp.org>
117674         * gnulib-tool (func_emit_tests_Makefile_am): Also define
117675         TESTS_ENVIRONMENT, so that individual tests can augment it.
117677         * gnulib-tool (func_create_testdir): Use an intermediate target for
117678         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
117679         macros, like $(ALLOCA_H), which cannot be passed through the command
117680         line.
117682 2005-10-15  Simon Josefsson  <jas@extundo.com>
117684         * modules/rijndael-tests: New file.
117686         * modules/rijndael: New file.
117688 2005-10-15  Simon Josefsson  <jas@extundo.com>
117690         * m4/rijndael.m4: New file.
117692 2005-10-15  Simon Josefsson  <jas@extundo.com>
117694         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
117696         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
117698 2005-10-14  Simon Josefsson  <jas@extundo.com>
117700         * tests/test-arcfour.c: New file.
117702         * modules/arcfour, modules/arcfour-tests: New files.
117704 2005-10-14  Simon Josefsson  <jas@extundo.com>
117706         * m4/arcfour.m4: New file.
117708 2005-10-14  Simon Josefsson  <jas@extundo.com>
117710         * lib/arcfour.h, lib/arcfour.c: New files.
117712 2005-10-14  Roland McGrath  <roland@redhat.com>
117714         Import from libc.  [BZ #1331]
117715         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
117716         macro argument.
117717         Reported by Matej Vela <vela@debian.org>.
117719 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117721         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
117722         include <wchar.h>; no longer needed.
117724 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117726         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
117728 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
117729         and  Ulrich Drepper  <drepper@redhat.com>
117731         Import from libc.
117732         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
117733         instead of inline stream orientation test and two separate
117734         function calls.  Pay no attention to USE_IN_LIBIO.
117736 2005-10-13  Simon Josefsson  <jas@extundo.com>
117738         * modules/gc-hmac-md5-tests: New file.
117740         * tests/test-gc-hmac-sha1.c: New file.
117742         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
117744         * modules/gc-hmac-md5-tests: New file.
117746         * tests/test-gc-md5.c: New file.
117748         * modules/gc-md5-tests: New file.
117750 2005-10-13  Simon Josefsson  <jas@extundo.com>
117752         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
117753         Move memory allocation outside of loop.
117755 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
117757         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
117758         intermediate directory is in a read-only file system.  Problem
117759         reported by Eric Blake.
117761 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
117763         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
117765 2005-10-12  Simon Josefsson  <jas@extundo.com>
117767         * tests/test-hmac-sha1.c: New file.
117769         * modules/hmac-sha1-tests: New file.
117771         * modules/hmac-sha1: New file.
117773 2005-10-12  Simon Josefsson  <jas@extundo.com>
117775         * modules/gc-sha1: New file.
117777 2005-10-12  Simon Josefsson  <jas@extundo.com>
117779         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
117781         * tests/test-gc-pbkdf2-sha1.c: New file.
117783 2005-10-12  Simon Josefsson  <jas@extundo.com>
117785         * modules/gc-md5, modules/gc-hmac-md5: New files.
117787         * modules/gc (Files): Remove md5, memxor and hmac files.
117789 2005-10-12  Simon Josefsson  <jas@extundo.com>
117791         * m4/gc-pbkdf2-sha1.m4: New file.
117793         * m4/gc-hmac-sha1.m4: New file.
117795         * m4/gc-sha1: New file.
117797         * m4/hmac-sha1.m4: New file.
117799 2005-10-12  Simon Josefsson  <jas@extundo.com>
117801         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
117803         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
117805 2005-10-12  Simon Josefsson  <jas@extundo.com>
117807         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
117808         suggested by Bruno Haible <bruno@clisp.org>.
117810 2005-10-12  Simon Josefsson  <jas@extundo.com>
117812         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
117814 2005-10-12  Simon Josefsson  <jas@extundo.com>
117816         * lib/gc-pbkdf2-sha1.c: New file.
117818         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
117820 2005-10-12  Simon Josefsson  <jas@extundo.com>
117822         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
117824         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
117826 2005-10-12  Simon Josefsson  <jas@extundo.com>
117828         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
117829         GC_USE_HMAC_MD5, respectively.
117831         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
117832         (gc_md5): Fix typo.
117834         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
117836         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
117838         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
117840 2005-10-12  Bruno Haible  <bruno@clisp.org>
117842         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
117843         Reported by Stepan Kasal <kasal@ucw.cz>.
117845 2005-10-11  Simon Josefsson  <jas@extundo.com>
117847         * tests/test-crc.c: New file.
117849         * modules/crc, modules/crc-tests: New files.
117851 2005-10-11  Simon Josefsson  <jas@extundo.com>
117853         * m4/crc.m4: New file.
117855 2005-10-11  Simon Josefsson  <jas@extundo.com>
117857         * lib/gc.h: Add gc_hash and gc_hash_buffer.
117859         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
117861         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
117863 2005-10-11  Simon Josefsson  <jas@extundo.com>
117865         * lib/crc.h, lib/crc.c: New files.
117867         * lib/gc.h (gc_hash_buffer): Add doc.
117869 2005-10-11  Bruno Haible  <bruno@clisp.org>
117871         * modules/c-strcasestr: New file.
117872         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
117874 2005-10-11  Bruno Haible  <bruno@clisp.org>
117876         * modules/c-strcase: New file.
117877         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
117879 2005-10-11  Bruno Haible  <bruno@clisp.org>
117881         * lib/strcasecmp.c: Include limits.h.
117882         (strcasecmp): Avoid integer overflow on exotic platforms.
117883         * lib/strncasecmp.c: Include limits.h.
117884         (strncasecmp): Avoid integer overflow on exotic platforms.
117885         Reported by Paul Eggert.
117887 2005-10-11  Bruno Haible  <bruno@clisp.org>
117889         * lib/c-strcasestr.h: New file, from GNU gettext.
117890         * lib/c-strcasestr.c: New file, from GNU gettext.
117892 2005-10-11  Bruno Haible  <bruno@clisp.org>
117894         * lib/c-strcase.h: New file, from GNU gettext.
117895         * lib/c-strcasecmp.c: New file, from GNU gettext.
117896         * lib/c-strncasecmp.c: New file, from GNU gettext.
117898 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
117900         * modules/mempcpy (License): GPL -> LGPL.
117901         * modules/strchrnul (License): Likewise.
117902         * modules/sysexits (License): Likewise.
117904 2005-10-08  Simon Josefsson  <jas@extundo.com>
117906         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
117908 2005-10-07  Simon Josefsson  <jas@extundo.com>
117910         * m4/memxor.m4: Remove gl_C_RESTRICT call.
117912 2005-10-06  Simon Josefsson  <jas@extundo.com>
117914         * tests/test-hmac-md5.c: New file.
117916         * modules/hmac-md5-tests: New file.
117918         * modules/hmac-md5: New file.
117920 2005-10-06  Simon Josefsson  <jas@extundo.com>
117922         * m4/hmac-md5.m4: New file.
117924         * m4/memxor.m4: Require gl_C_RESTRICT.
117926 2005-10-06  Simon Josefsson  <jas@extundo.com>
117928         * lib/memxor.c (memxor): Avoid casts and warnings.
117930 2005-10-06  Simon Josefsson  <jas@extundo.com>
117932         * lib/hmac-md5.c: New file.
117934         * lib/hmac.h: New file.
117936 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
117938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
117939         promotes to int, not unsigned int, to catch the AIX 5.3
117940         compiler bug.
117942 2005-10-05  Simon Josefsson  <jas@extundo.com>
117944         * modules/memxor: New file.
117946         * modules/iconv (Files): Move config.rpath to havelib, it is used
117947         there.
117949         * modules/havelib (Files): Add config.rpath.
117951 2005-10-05  Simon Josefsson  <jas@extundo.com>
117953         * m4/memxor.m4: New file.
117955 2005-10-05  Simon Josefsson  <jas@extundo.com>
117957         * lib/memxor.c (memxor): Fix compiler error.
117959         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
117960         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
117962         * lib/memxor.h, lib/memxor.c: New files.
117964         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
117965         we assume all systems have it, suggested by Jim Meyering
117966         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
117967         any systems lack sys/socket.h; mingw32 is known to lack it, but we
117968         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
117969         same reasons.
117971 2005-10-05  Simon Josefsson  <jas@extundo.com>
117973         * config/srclist.txt: Add glibc bug 1423 for md5.h.
117975 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
117977         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
117978         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
117979         needed, since the source code now assumes these .h files.
117981 2005-10-05  Derek Price  <derek@ximbiot.com>
117983         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
117985 2005-10-05  Bruno Haible  <bruno@clisp.org>
117987         * modules/stdint (License): Change to LGPL.
117989 2005-10-04  Simon Josefsson  <jas@extundo.com>
117991         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
117992         D. Baushke" <mdb@gnu.org>.
117994 2005-10-04  Bruno Haible  <bruno@clisp.org>
117996         * lib/verify.h (verify_true): Provide alternative definition for C++.
117998 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118000         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118001         (SSIZE_MAX): New macro, if not already defined.
118002         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118003         than 2 GiB.
118005 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118007         Sync from coreutils.
118008         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118009         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118010         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118011         ULLONG_MAX doesn't work with 2.7.2.1.
118013 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118015         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118016         From Ben Pfaff.
118018         * modules/exclude (Depends-on): Depend on verify.
118019         * modules/strtoimax (Depends-on): Likewise.
118020         * modules/utimecmp (Depends-on): Likewise.
118022 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118024         * lib/exclude.c: Include verify.h.
118025         (verify): Remove.  All callers changed to use verify.h's version.
118026         * lib/strtoimax.c: Likewise.
118027         * lib/utimecmp.c: Likewis.e
118029         Sync from coreutils.
118030         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118031         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118032         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118033         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118034         bother returning ENOSYS if settimeofday or stime fails; just let
118035         them return whatever errno they want to return.
118036         * lib/utimens.c: Include unistd.h, for dup2.
118037         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118038         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118040 2005-10-02  Jim Meyering  <jim@meyering.net>
118042         Sync from coreutils.
118043         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118044         from glibc-2.2.5 that fails for read-only files.
118046 2005-10-02  Jim Meyering  <jim@meyering.net>
118048         Sync from coreutils.
118049         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118050         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118051         `#if HAVE_CONFIG_H'.
118052         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118053         Remove AT_FDCWD test.
118054         Do not consume the fd unless successful.
118055         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118056         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118057         block, so that we don't even try to compile it if settimeofday is
118058         available.  This works around a compilation failure on OSF1 V5.1,
118059         due to stime requiring a `long int*' while tv_sec is `int'.
118061 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118063         Sync from coreutils.
118064         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118065         against `yes', rather than just testing for nonempty.
118067 2005-10-01  Simon Josefsson  <jas@extundo.com>
118069         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118070         and Darwin.
118072         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118073         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118074         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118075         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118076         Check if struct addrinfo is declared.
118078 2005-10-01  Simon Josefsson  <jas@extundo.com>
118080         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118081         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118082         AI_* and EAI_* definitions.  Protect function declarations.
118084 2005-10-01  Jim Meyering  <jim@meyering.net>
118086         Sync from coreutils.
118088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118089         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118090         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118091         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118092         in the inet and nsl libraries.  Required on Solaris 5.7.
118094 2005-10-01  Jim Meyering  <jim@meyering.net>
118096         Sync from coreutils.
118097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118098         in the inet and nsl libraries.  Required on Solaris 5.7.
118100 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118102         * lib/getdelim.c (getdelim): Remove unused variables.
118104 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118106         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118107         so that the code works even with ancient cpp.  Portability problem
118108         with GCC 2.7.2.1 reported by Thomas M.Ott.
118110 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118112         * modules/regex (Depends-on): Add strcase.
118114         * modules/gethostname (Licence): Change from GPL to LGPL, since
118115         gethostname.c is a trivial implementation of a standard library
118116         function.
118117         * modules/poll (License): Change from GPL to LGPL, since it's
118118         derived from LGPL code.
118120 2005-09-27  Jim Meyering  <jim@meyering.net>
118122         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118123         HAVE_CONFIG_H.
118125         * lib/intprops.h (signed_type_or_expr__): Define.
118126         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118127         for unsigned types.
118129 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118131         * lib/verify.h (verify_expr): Remove, replacing with:
118132         (verify_true): New macro that returns true instead of void.
118133         (verify_type__): Remove.
118134         (verify): Use verify_true rather than verify_type__.
118136 2005-09-26  Bruno Haible  <bruno@clisp.org>
118138         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118139         is necessary.
118140         (lib_SOURCES): Remove mbchar.c.
118141         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118142         (Files): Add m4/mbrtowc.m4.
118143         * modules/mbiter: Likewise.
118144         * modules/mbuiter: Likewise.
118146 2005-09-26  Bruno Haible  <bruno@clisp.org>
118148         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118149         compile mbchar.c if they are not both present.
118150         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118151         * m4/mbiter.m4 (gl_MBITER): Likewise.
118152         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118153         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118154         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118156 2005-09-25  Jim Meyering  <jim@meyering.net>
118158         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118159         also uses socklen_t.
118161 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118163         * lib/utimens.c (ENOSYS): Define if not already defined.
118164         (futimens): Support having a null PATH if the file descriptor
118165         is nonnegative.
118167         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118168         Remove.
118169         (__attribute): Define to empty unless GCC 3.1 or later.
118170         This works around a core dump on OpenBSD 3.4, which has GCC
118171         2.95.3, which dumps core when given __attribute__(()).  It also
118172         simplifies other tests, since we really don't want to bother with
118173         worrying about which ancient version of GCC supported what.
118174         Original problem reported by Yoann Vandoorselaere, with part of
118175         the fix suggested by Derek Price.
118177 2005-09-24  Jim Meyering  <jim@meyering.net>
118179         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118180         so we can once again use a positive bitfield width of 1 -- now we
118181         don't have to explain why we were using a bitfield width of 2.
118183 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118185         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118186         and similarly for the other external symbols.  Problem reported
118187         by James Gallager.
118189         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118190         bug reported by Jim Meyering.
118192         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118194         not needed, since socklen is a prerequisite module.
118196 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118198         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118199         Problem reported by Eric Blake.
118200         (getaddrinfo): Initialize se so that it's not garbage.
118201         Redo internal storage allocation so that it doesn't make unportable
118202         assumptions about alignment.
118203         Fix a memory leak.
118205         * lib/utimens.c (futimens): Use futimesat if available.
118206         Prefer it to futimes since it doesn't have the futimes bug.
118208         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
118209         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
118210         Instead, declare a function that returns a pointer to an array,
118211         and use verify_type__ to declare the size of the array.
118212         Problem and germ of a solution reported by Bruno Haible.
118213         (verify_type__): Use 2, not 1, for bitfield size, to avoid
118214         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
118216 2005-09-23  Jim Meyering  <jim@meyering.net>
118218         Sync from coreutils.
118219         Correct build failure (socklen_t not defined) on at least
118220         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
118221         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
118223 2005-09-23  Jim Meyering  <jim@meyering.net>
118225         * modules/getaddrinfo (Depends-on): Add socklen.
118227 2005-09-23  Bruno Haible  <bruno@clisp.org>
118229         * tests/test-verify.c: New file.
118231 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118233         Sync from coreutils.
118235         * modules/argmatch (Depends-on): Add verify.
118236         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
118237         unistd-safer.
118238         * modules/save-cwd (Depends-on): Likewise.
118240         * modules/openat (Files): Add lib/openat-die.c.
118241         (Depends-on): Remove error, exitfail.
118242         Add dirname.
118244         * modules/verify: New file.
118245         * MODULES.html.sh (Diagnostics <assert.h>): New section,
118246         with "verify" module.
118248 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118250         Sync from coreutils.
118252         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118253         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118254         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118255         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118256         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118257         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118258         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118259         Don't bother checking for string.h, stdlib.h, unistd.h.
118260         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118261         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118262         module's job.
118263         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118264         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118266         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118267         (gl_GETDATE): Use it.
118269         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118271 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118273         Sync from coreutils.
118275         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118276         stat-time.h.
118277         * lib/argmatch.h: Include verify.h
118278         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118279         (ARGMATCH_ASSERT): Remove; unused.
118280         * lib/canonicalize.c: Assume STDC_HEADERS.
118281         * lib/exclude.c: Include "strcase.h".
118282         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118283         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118284         and stdio-safer.h.
118285         (getusershell): Call fopen, not fopen_safer.
118286         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118287         Do not include unistd-safer.h.
118288         (save_cwd): Don't call fd_safer; no longer needed
118289         now that we include fcntl--.h.
118291         * lib/getdate.y (relative_time): New type.
118292         (RELATIVE_TIME_0): New constant.
118293         (parser_control): Use relative_time instead of doing it ourselves.
118294         (%union): Add new relative_time rel member.
118295         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118296         Now typeless.
118297         (relunit, relunit_snumber): Now of type rel.
118298         (zone, rel, relunit, get_date): Adjust to above changes.
118300         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118301         Do not include unistd-safer.h.
118302         (getloadavg): Don't call fd_safer; no longer needed
118303         now that we include fcntl--.h.
118305         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118306         (make_dir_parents): Treat ENOSYS like EEXIST.
118308         Improve quality of diagnostics on restore_cwd failure.
118309         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118310         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118311         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118312         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118313         each time through the loop.  Do not diagnose restore_cwd failure;
118314         that is the caller's job (and perhaps the caller does not care).
118316         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118317         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118318         If the file already exists but is not a directory, don't bother
118319         to try to make its parents.
118320         Close potential file descriptor leak if we can't chdir("/") (!).
118321         Don't always return true if chdir($PWD) fails; return true only
118322         if the requested action was done successfully (except for the
118323         chdir($PWD)).
118324         Don't log final directory unless we actually made it.
118325         Refactor to avoid duplicate code to fix up permissions.
118326         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118328         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118329         to make it a bit faster and (I hope) clearer.
118330         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118331         Fix bug in formats like %2N.
118333         * lib/verify.h: New file.
118335 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118337         Sync from coreutils.
118338         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118340 2005-09-22  Jim Meyering  <jim@meyering.net>
118342         Sync from coreutils.
118344         * m4/lstat.m4 (gl_FUNC_LSTAT):
118345         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118346         Remove obsolete comment.
118347         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118348         * m4/xstrtod.m4: Likewise.
118350         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118352 2005-09-22  Jim Meyering  <jim@meyering.net>
118354         Sync from coreutils.
118356         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118358         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118359         the .tm_year member, since otherwise gcc-4.0 would now warn about
118360         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118362         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118363         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118365         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118366         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118367         when run in a time zone for which daylight savings time is in effect
118368         for the starting date.
118370         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118371         stop us from restricting permissions of just-created absolute-named
118372         directories.
118373         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118374         to restore initial working directory.
118375         * lib/mkdir-p.c (make_dir_parents): New parameter:
118376         different_working_dir, to tell caller if/when we change the working
118377         directory and are unable to return to the initial one.
118378         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118379         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118380         `return false'.  This fixes a bug introduced on 2004-07-30.
118382         * lib/openat.c (fdopendir): Be sure to close the supplied
118383         file descriptor before returning.  This makes our replacement
118384         implementation a little closer to Solaris's, where fdopendir
118385         ties the file descriptor to the returned DIR* pointer.
118386         * lib/openat.c (unlinkat): New function.
118387         * lib/openat.h (unlinkat): Add prototype.
118388         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
118389         (openat_restore_fail): Rename from openat_restore_die.
118390         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
118392         Provide an alternative to exiting immediately upon save_cwd or
118393         restore_cwd failure.  Now, an application can arrange e.g.,
118394         to perform a longjump in that case.
118395         * lib/openat.c: Include dirname.h.
118396         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
118397         (rpl_openat, fdopendir, fstatat): Call openat_save_die
118398         and openat_restore_die rather than calling error directly.
118399         Don't include "error.h" or "exitfail.h"; they're no longer needed.
118401         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
118402         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
118403         define.
118405         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
118406         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
118407                             int utc, int nanoseconds);
118408         Background:
118409         date should not have to allocate a megabyte of virtual memory to
118410         handle a format argument like +%1048575T.  When implemented with
118411         strftime, it must allocate such a buffer, use strftime to fill it
118412         in, print it, then free it.
118413         With fprintftime, it simply prints everything and exits.
118414         With no need for memory allocation, that's one fewer way to fail.
118415         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
118416         optional field width, not before, so we accept %9:z, not %:9z.
118417         (my_strftime): Be sure to use L_('x') for literals.
118419         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
118420         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
118421         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
118422         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
118423         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
118424         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
118425         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
118426         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
118427         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
118428         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
118429         * lib/xgethostname.c, lib/xreadlink.c:
118430         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
118432         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
118433         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
118434         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
118435         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118436         and don't include <sys/file.h>).
118438 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
118440         Sync from coreutils.
118442         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
118443         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
118444         [!LDAV_DONE]: Avoid unused variable warning.
118446 2005-09-21  Bruno Haible  <bruno@clisp.org>
118448         * lib/unicodeio.h (unicode_to_mb): New declaration.
118450 2005-09-20  Derek Price  <derek@ximbiot.com>
118452         * lib/getaddrinfo.c: Don't include <netdb.h> included from
118453         getaddrinfo.h.
118455 2005-09-20  Bruno Haible  <bruno@clisp.org>
118457         * gnulib-tool: Remove trailing slashes from the values specified for
118458         --source-base, --m4-base, --tests-base, --aux-dir.
118459         Suggested by Simon Josefsson <jas@extundo.com>.
118461 2005-09-20  Bruno Haible  <bruno@clisp.org>
118463         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
118464         func_modules_to_filelist, func_import, func_create_testdir): Make all
118465         sorting results locale-independent, so that gnulib-cache.m4 doesn't
118466         change when gnulib-tool is invoked in a different locale.
118468 2005-09-19  Simon Josefsson  <jas@extundo.com>
118470         * m4/socklen.m4: Fix typo.
118472 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118474         Use a consistent style for including <config.h>.
118475         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
118476         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
118477         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
118478         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
118479         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
118480         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
118481         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
118482         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
118483         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
118484         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
118485         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
118486         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
118487         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
118488         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
118489         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
118490         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
118491         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
118492         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
118493         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
118494         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
118495         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
118496         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
118497         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
118498         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
118499         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
118500         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
118501         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
118502         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
118503         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
118504         lib/xstrtoumax.c, lib/yesno.c:
118505         Standardize inclusion of config.h.
118506         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
118507         lib/inttostr.h:  Removed inclusion of config.h from header files.
118508         * lib/inttostr.c:  Adjusted in-tree users.
118509         * lib/timespec.h: Remove superfluous warning to include config.h.
118510         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
118511         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
118512         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
118513         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
118514         config.h with HAVE_CONFIG_H.
118516 2005-09-19  Jim Meyering  <jim@meyering.net>
118518         * modules/pathmax (License): Change to LGPL.
118520 2005-09-19  Derek Price  <derek@ximbiot.com>
118522         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
118524 2005-09-19  Bruno Haible  <bruno@clisp.org>
118526         * gnulib-tool (import): Provide default for --tests-base.
118528 2005-09-19  Bruno Haible  <bruno@clisp.org>
118530         * doc/quote.texi: New file, extracted from gnulib.texi.
118531         * doc/ctime.texi: New file, extracted from gnulib.texi.
118532         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
118533         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
118534         * doc/gnulib.texi: Include them.
118536 2005-09-18  Bruno Haible  <bruno@clisp.org>
118538         Portability fix.
118539         * gnulib-tool (func_readlink): New function.
118540         (func_ln_if_changed): Use it.
118542 2005-09-18  Bruno Haible  <bruno@clisp.org>
118544         * gnulib-tool: Support --with-tests also with --import.
118545         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
118546         (func_import): Use variables $testsbase and $inctests. Emit a
118547         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
118548         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
118549         SUBDIRS += $testsdir.
118550         (func_create_testdir): Update.
118552 2005-09-18  Bruno Haible  <bruno@clisp.org>
118554         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
118555         instead of $dry_run.
118556         (func_cp_if_changed, func_mv_if_changed): Remove functions.
118557         (func_ln_if_changed): Don't handle dry-run here.
118558         (func_import): In dry-run mode, detect more precisely which actions
118559         would be performed, and don't use "...ing" verbs.
118561 2005-09-18  Bruno Haible  <bruno@clisp.org>
118563         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
118564         (func_import): Use join on two temporary files instead of three nested
118565         loops, in order to determine which files are new or old.
118567 2005-09-18  Bruno Haible  <bruno@clisp.org>
118569         * gnulib-tool (func_import): Comment out code that spits out the
118570         new files with --dry-run.
118572 2005-09-18  Bruno Haible  <bruno@clisp.org>
118574         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
118576 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118578         * lib/stat-time.h: New file.
118579         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
118580         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
118581         in a different way.
118582         (timespec_cmp): New function.
118583         * lib/utimecmp.c: Include stat-time.h.
118584         (SYSCALL_RESOLUTION): Depend on whether various struct stat
118585         members exist, not on the obsolescent ST_MTIM_NSEC.
118586         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
118588 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118590         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
118592 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118594         * MODULES.html.sh (File system functions): Add stat-time.
118595         * modules/stat-time: New file.
118596         * modules/timespec (Files): Remove m4/st_mtim.m4; this
118597         is now done in a different way, by the stat-time module.
118598         * modules/utimecmp (Depends-on): Add stat-time.
118600 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
118602         * m4/st_mtim.m4: Remove.  Superseded by...
118603         * m4/stat-time.m4: New file.
118604         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
118605         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
118607 2005-09-15  Derek Price  <derek@ximbiot.com>
118609         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
118611 2005-09-15  Derek Price  <derek@ximbiot.com>
118613         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
118614         * lib/regex_internal.c: Ditto, using this...
118615         (__GNUC_PREREQ): ...new macro.
118616         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
118617         using...
118618         (__GNUC_PREREQ): ...this new macro.
118620         * lib/strstr.h: Include string.h. Define strstr as a macro here.
118622 2005-09-15  Derek Price  <derek@ximbiot.com>
118623             Paul Eggert  <eggert@cs.ucla.edu>
118625         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
118626         changes, consolidating in...
118627         * lib/regex_internal.h: ...this file.
118629 2005-09-13  Jim Meyering  <jim@meyering.net>
118631         * lib/canon-host.c: Filter through gnu indent and reword comments
118632         slightly.
118633         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
118635 2005-09-13  Derek Price  <derek@ximbiot.com>
118637         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
118638         failure.
118639         Reported by Jim Meyering  <jim@meyering.net>.
118641 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118643         * lib/base64.c: Typo.
118644         (base64_encode): Put b64str in initialized data section.
118646 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
118648         Merge glibc and coreutils changes into gnulib, plus a few
118649         extra fixes.
118650         * lib/md5.c: Use #error rather than a string.
118651         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
118652         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
118653         (__attribute__): Define to empty for non recent-GCC.
118654         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
118655         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
118656         Renamed from their non-__ counterparts, with new macros replacing
118657         them if not _LIBC.  Add __THROW attribute.
118658         (rol): Remove.
118659         (struct md5_ctx): Align buffer if using GCC.
118660         * lib/sha1.h (struct sha1_ctx): Likewise.
118661         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
118662         The old name was backwards.
118663         (NOTSWAP): Remove; not used.
118664         (rol): New macro, moved here from md5.h.
118665         (sha1_process_block): Remove a FIXME that doesn't make sense.
118667 2005-09-12  Derek Price  <derek@ximbiot.com>
118669         Return usable errors from canon-host.
118670         * lib/canon-host.h: New file.
118671         * lib/canon-host.c (canon_host): Wrap...
118672         (canon_host_r): ...this new function, which now relies exclusively on
118673         getaddrinfo.
118674         (ch_strerror): New function.
118675         (last_cherror): New global.
118676         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
118677         interface.
118678         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
118679         void *.
118680         (freeaddrinfo): Free ai->ai_canonname when set.
118682 2005-09-12  Derek Price  <derek@ximbiot.com>
118684         Make canon-host require getaddrinfo.
118685         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
118686         AC_LIBSOURCE canon-host.h.  Call...
118687         (gl_PREREQ_CANON_HOST): ...this new function, which requires
118688         gl_GETADDRINFO.
118689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
118691 2005-09-12  Derek Price  <derek@ximbiot.com>
118693         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
118694         LGPL.
118695         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
118697 2005-09-12  Derek Price  <derek@ximbiot.com>
118699         * lib/gai_strerror.c: Include config.h when available.  Include
118700         getaddrinfo.h before other headers to test interface.
118701         Reported by Larry Jones <lawrence.jones@ugs.com>.
118703 2005-09-12  Derek Price  <derek@ximbiot.com>
118704             Paul Eggert  <eggert@cs.ucla.edu>
118706         * modules/glob (Files): Add glob-libc.h.
118708 2005-09-12  Derek Price  <derek@ximbiot.com>
118709             Paul Eggert  <eggert@cs.ucla.edu>
118711         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
118712         glob_.h, glob-libc.h.
118713         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
118715 2005-09-12  Derek Price  <derek@ximbiot.com>
118716             Paul Eggert  <eggert@cs.ucla.edu>
118718         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
118719         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
118720         protecting things that should be done only in gnulib contexts.
118721         * lib/glob_.h: New file, containing only the glob things needed for
118722         gnulib.
118723         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
118724         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
118725         (glob, globfree, glob_pattern_p): Now defined simply in terms of
118726         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
118727         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
118728         and to respect the namespace rules better.
118730 2005-09-08  Simon Josefsson  <jas@extundo.com>
118732         * modules/socklen: New file.
118734 2005-09-08  Simon Josefsson  <jas@extundo.com>
118736         * m4/socklen.m4: New file.
118738 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118740         * modules/utimens (Files): Add m4/utimbuf.m4, since
118741         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
118742         Reported by Sergey Poznyakoff.
118744 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118746         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
118747         definitions, since that's the preferred style in glibc.
118748         Fix a minor spacing issue, and update copyright notice to match
118749         glibc's.
118751 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118753         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
118755 2005-09-06  Simon Josefsson  <jas@extundo.com>
118757         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
118758         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
118760 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118762         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
118763         warning.
118765 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118767         * config/srclist.txt: Add glibc bug 1302.
118769 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
118771         Change bitset word type from unsigned int to unsigned long int,
118772         as this has better performance on typical 64-bit hosts.
118773         Port bitset code to hosts with unusual word sizes.
118774         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
118775         (build_collating_symbol):
118776         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
118777         argument is a bitset.  This is merely a style issue, but it makes
118778         it clearer that an entire array is expected.
118779         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
118780         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
118781         Port to the case where bitset_word is not the same as unsigned int.
118782         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
118783         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
118784         Likewise.
118785         * lib/regexec.c (check_dst_limits_calc_pos_1,
118786         check_subexp_matching_top):
118787         (build_trtable, group_nodes_into_DFAstates):
118788         Likewise.
118789         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
118790         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
118791         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
118792         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
118793         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
118794         * lib/regcomp.c (optimize_subexps, lower_subexp):
118795         Work even if bitset_word has holes in its bitwise representation.
118796         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
118797         * lib/regexec.c (check_dst_limits_calc_pos_1,
118798         check_subexp_matching_top):
118799         Likewise.
118800         * lib/regex_internal.c (re_string_reconstruct):
118801         Don't assume UCHAR_MAX == 255.
118802         * lib/regex_internal.h (bitset_set_all): Likewise.
118803         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
118804         All uses changed.
118805         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
118806         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
118807         All uses changed.
118808         (BITSET_WORD_MAX): New macro.
118809         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
118810         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
118811         (bitset_empty, bitset_copy):
118812         Prefer sizeof (bitset) to multiplying it out ourselves.
118813         (bitset_not_merge): Remove; unused.
118814         (bitset_contain): Return bool, not unsigned int with one bit on.
118815         All callers changed.
118816         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
118817         alignment than re_node_set; do this by defining a new internal
118818         type struct dests_alloc and using it to allocate memory.
118820 2005-09-05  Bruno Haible  <bruno@clisp.org>
118822         * gnulib-tool (func_import): Fix comparison in handling of symbolic
118823         links.
118825 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
118827         * modules/size_max (Makefile.am): Add size_max.h
118829 2005-09-04  Derek Price  <derek@ximbiot.com>
118831         * gnulib-tool (func_import): Fix reversed $symbolic logic.
118833 2005-09-03  Simon Josefsson  <jas@extundo.com>
118835         * gnulib-tool: Fix typo.
118837 2005-09-03  Simon Josefsson  <jas@extundo.com>
118839         * config/srclist.txt: Add glibc bug 1293.
118841 2005-09-03  Derek Price  <derek@ximbiot.com>
118843         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
118844         From Larry Jones <lawrence.jones@ugs.com>.
118846 2005-09-02  Simon Josefsson  <jas@extundo.com>
118848         * modules/socklen: New file.
118850 2005-09-02  Simon Josefsson  <jas@extundo.com>
118852         * modules/havelib: New module.
118854         * modules/gettext, modules/iconv, modules/lock, modules/readline:
118855         Use havelib.
118857 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
118859         Check for arithmetic overflow when calculating sizes, to prevent
118860         some buffer-overflow issues.  These patches are conservative, in the
118861         sense that when I couldn't determine whether an overflow was possible,
118862         I inserted a run-time check.
118863         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
118864         macros.
118865         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
118866         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
118867         (re_xnrealloc, re_x2nrealloc): New inline functions.
118868         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
118869         parse_bracket_exp):
118870         (build_equiv_class, build_charclass): Check for arithmetic overflow
118871         in size expression calculations.
118872         * lib/regex_internal.c (re_string_realloc_buffers):
118873         (build_wcs_upper_buffer, re_node_set_add_intersect):
118874         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
118875         (re_dfa_add_node, register_state): Likewise.
118876         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
118877         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
118878         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
118879         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
118881 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
118883         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
118884         m4/ulonglong.m4.  Problem reported by Martin Lambers.
118886 2005-09-02  Bruno Haible  <bruno@clisp.org>
118888         Support for lib vs. lib64 distinction on biarch platforms.
118889         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
118890         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
118891         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
118893 2005-09-02  Bruno Haible  <bruno@clisp.org>
118895         * gnulib-tool (import): In the other first-use case, provide defaults
118896         as well.
118898 2005-09-02  Bruno Haible  <bruno@clisp.org>
118900         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
118901         patches not yet found in the latest gettext release.
118903 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
118905         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
118906         to avoid a collision with bits/local_lim.h in glibc.
118907         All uses changed.  Problem reported by Dmitry V. Levin in
118908         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
118910         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
118911         bugs in int versus size_t comparisons.
118912         (re_string_context_at): Fix bug where the code assumed that
118913         Idx is signed.
118915         Use bool where appropriate.
118916         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
118917         All callers changed.
118918         (calc_eclosure_iter): Likewise, for ROOT arg.
118919         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
118920         (build_charclass_op): Likewise, for NON_MATCH arg.
118921         * lib/regex_internal.c (re_string_allocate, re_string_construct):
118922         (re_string_construct_common): Likewise, for ICASE arg.
118923         * lib/regexec.c (re_search_2_stub, re_search_stub):
118924         Likewise, for RET_LEN arg.
118925         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
118926         (set_regs): Likewise, for FL_BACKTRACK arg.
118927         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
118928         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
118929         (calc_eclosure_iter, parse_bracket_exp):
118930         Use bool for internal variables that are booleans.
118931         * lib/regexec.c (re_search_internal, check_matching,
118932         proceed_next_node):
118933         (set_regs, build_sifted_states, sift_states_bkref):
118934         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
118935         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
118936         (find_collation_sequence_value):
118937         Likewise.
118938         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
118939         (re_node_set_compare):
118940         Return bool, not int. All callers changed.
118941         * lib/regexec.c (check_halt_node_context, check_dst_limits):
118942         (build_trtable, check_node_accept): Likewise.
118943         * lib/regex_internal.h: Include stdbool.h.
118945         Fix bugs uncovered when converting to bool.
118946         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
118947         failure instead of charging ahead blindly.
118948         * lib/regex_internal.c (register_state): Likewise.
118949         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
118950         for freeing internal storage.
118951         (group_nodes_into_DFA_states): Use unsigned int, not int, for
118952         bitset pieces used as boolean, to avoid undefined behavior
118953         on hosts that do int overflow checking.
118955 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
118957         * config/srclist.txt: Add glibc bugs 1285-1287.
118959 2005-09-01  Jim Meyering  <jim@meyering.net>
118961         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
118962         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
118963         Require gl_STAT_MACROS, too.
118965 2005-09-01  Bruno Haible  <bruno@clisp.org>
118967         * gnulib-tool (import): In the first-use case, provide defaults.
118969 2005-09-01  Bruno Haible  <bruno@clisp.org>
118971         * gnulib-tool (func_import): Remove the .tmp files.
118973 2005-09-01  Bruno Haible  <bruno@clisp.org>
118975         * gnulib-tool (func_import): Fix handling of symbolic links.
118977 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
118979         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
118980         old glibc regex code mishandles strings longer than 2**31 bytes.
118981         This patch fixes this when the regex code is used in gnulib
118982         (i.e., outside glibc).
118984         This patch should not affect the use of the regex code inside
118985         glibc.  No doubt this problem also needs to be handled for glibc
118986         as well, but the result will be an incompatible change to the
118987         glibc ABI, and the old ABI will have to be supported too.  That
118988         can be the subject for another patch.
118990         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
118991         governing whether the rest of this patch is active.  By default,
118992         the macro is disabled and the patch has no effect.
118993         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
118994         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
118995         (struct re_pattern_buffer, re_search, re_search_2, re_match):
118996         (re_match_2, re_set_registers): Use the new types.
118997         * lib/regex_internal.h (Idx, re_hashval_t): New types.
118998         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
118999         New macros.
119000         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119001         (re_string_context_at, bin_tree_t, re_dfastate_t):
119002         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119003         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119004         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119005         (re_string_char_size_at, re_string_wchar_at):
119006         (re_string_elem_size_at):
119007         Use the new types and macros to port to 64-bit hosts.
119008         Use unsigned types for internal values, so that the code
119009         mostly works even for arrays larger than SSIZE_MAX.
119010         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119011         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119012         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119013         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119014         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119015         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119016         (calc_inveclosure, parse_dup_op, build_range_exp):
119017         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119018         (fetch_number, create_token_tree, mark_opt_subexp):
119019         Likewise.
119020         * lib/regex_internal.c (re_string_construct_common,
119021         create_ci_newstate):
119022         (create_cd_newstate, re_string_allocate, re_string_construct):
119023         (re_string_realloc_buffers, build_wcs_upper_buffer):
119024         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119025         (re_string_reconstruct, re_string_peek_byte_case):
119026         (re_string_fetch_byte_case, re_string_context_at):
119027         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119028         (re_node_set_init_copy, re_node_set_add_intersect):
119029         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119030         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119031         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119032         (re_acquire_state, re_acquire_state_context, register_state):
119033         Likewise.
119034         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119035         search_cur_bkref_entry):
119036         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119037         (re_search_internal, re_search_2_stub, re_search_stub)
119038         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119039         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119040         (update_cur_sifted_state, check_dst_limits):
119041         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119042         (check_subexp_limits, sift_states_bkref, merge_state_array):
119043         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119044         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119045         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119046         (expand_bkref_cache, check_node_accept_bytes):
119047         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119048         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119049         (acquire_init_state_context, check_halt_node_context):
119050         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119051         (sift_states_backward, clean_state_log_if_needed):
119052         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119053         (find_recover_state, transit_state_sb, transit_state_mb):
119054         (transit_state_bkref, build_trtable, match_ctx_clean):
119055         Likewise.
119056         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119057         to work around an assumption that REG_MISSING is negative.
119059         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119060         (seek_collating_symbol_entry) [defined _LIBC]:
119061         (lookup_collation_sequence_value) [defined _LIBC]:
119062         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119063         Use prototypes rather than old-style function definitions.
119064         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119065         (transit_state_sb) [0]:
119066         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119068         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119069         rm_eo.
119071         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119072         (optimize_subexps, lower_subexp):
119073         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119074         since the signed shift might overflow.  Use 1u<<31 instead.
119075         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119076         Likewise.
119077         * lib/regexec.c (check_dst_limits_calc_pos_1,
119078         check_subexp_matching_top): Likewise.
119080         * lib/regcomp.c (optimize_subexps, lower_subexp):
119081         Use CHAR_BIT rather than 8, for clarity.
119082         * lib/regexec.c (check_dst_limits_calc_pos_1):
119083         (check_subexp_matching_top): Likewise.
119084         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119085         have to worry about portability issues when shifting it left.
119086         Remove no-longer-needed test for table_size > 0.
119087         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119088         in a word, as the resulting behavior is undefined.
119089         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119090         in one case, a <= should have been an <, and in another case the
119091         whole test was missing.
119092         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119093         the standard name CHAR_BIT.
119094         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119095         this is not true on one's complement and signed-magnitude hosts.
119097         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119098         next_last_offset.
119099         (struct re_dfa_t): Remove unused member states_alloc.
119100         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119102 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119104         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119105         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119106         and large-file glibc and in 32-bit large-file Solaris.
119108 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119110         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119111         lengths fit in regoff_t; this isn't true if regoff_t is the same
119112         width as size_t.
119113         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119114         (= START + RANGE) instead of RANGE.  This avoids overflow
119115         problems when regoff_t is the same width as size_t.
119116         All callers changed.
119117         (re_search_2_stub): Check for overflow when adding the
119118         sizes of the two strings.
119119         (re_search_stub): Check for overflow when adding START
119120         to RANGE; if it occurs, substitute the extreme value.
119122 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119124         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119126 2005-08-31  Jim Meyering  <jim@meyering.net>
119128         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119129         a pointer-to-const.
119130         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119131         (register_state): Likewise.
119132         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119133         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119134         (group_nodes_into_DFAstates): Likewise.
119136 2005-08-31  Jim Meyering  <jim@meyering.net>
119138         * check-module: Add a FIXME comment.
119140 2005-08-31  Eric Blake  <ebb9@byu.net>
119142         * modules/unistd-safer (Files): Add unistd--.h.
119143         * modules/stdio-safer (Files): Add stdio--.h.
119145 2005-08-31  Derek Price  <derek@ximbiot.com>
119147         * lib/getdelim.c (getdelim): Return EOF on EOF.
119148         Reported by Larry Jones <lawrence.jones@ugs.com>.
119150 2005-08-31  Bruno Haible  <bruno@clisp.org>
119152         Avoid unnecessary diffs in the generated lib/Makefile.am.
119153         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119154         the generated files.
119155         (func_import): Don't set cmd.
119157 2005-08-31  Bruno Haible  <bruno@clisp.org>
119159         * lib/strstr.c: Include <stddef.h>, for NULL.
119160         * lib/strcasestr.c: Likewise.
119161         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119163 2005-08-31  Bruno Haible  <bruno@clisp.org>
119165         * gnulib-tool: New option --macro-prefix.
119166         (func_import): Use macro_prefix.
119167         (import): Handle option --macro-prefix.
119169 2005-08-31  Bruno Haible  <bruno@clisp.org>
119171         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119172         Also use new variables cached_lgpl, cached_libtool.
119174 2005-08-31  Bruno Haible  <bruno@clisp.org>
119176         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119177         always instantiating them.
119179 2005-08-31  Bruno Haible  <bruno@clisp.org>
119181         * gnulib-tool (func_import): Read the previous cached settings
119182         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119183         earlier added by gnulib but are now dropped. Warn when a gnulib file
119184         overwrites a non-gnulib file.
119186 2005-08-31  Bruno Haible  <bruno@clisp.org>
119188         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119189         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119190         projects that don't keep autogenerated files in CVS. Put into
119191         actioncmd only the specified modules, not the transitive closure.
119193 2005-08-31  Bruno Haible  <bruno@clisp.org>
119195         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119196         Create directories that shall be filled.
119197         (import): Don't look for gl_* macros in configure.ac. Recurse across
119198         all directories containing a gnulib-cache.m4 files, if meaningful.
119200 2005-08-31  Bruno Haible  <bruno@clisp.org>
119202         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119203         (import): Set seen_libtool when we see gl_LIBTOOL.
119205 2005-08-31  Bruno Haible  <bruno@clisp.org>
119207         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119208         declaration macro definitions from generated gnulib.m4.
119210 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
119212         * lib/iconvme.h: Add prototype for iconv_alloc.
119214 2005-08-29  Simon Josefsson  <jas@extundo.com>
119216         * lib/iconvme.c: Fix errno.
119218 2005-08-29  Bruno Haible  <bruno@clisp.org>
119220         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
119221         that it works when the directory contains spaces.
119223 2005-08-29  Bruno Haible  <bruno@clisp.org>
119225         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
119227 2005-08-29  Bruno Haible  <bruno@clisp.org>
119229         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
119230         Emit more advice.
119232 2005-08-29  Bruno Haible  <bruno@clisp.org>
119233         and Stepan Kasal  <kasal@ucw.cz>
119235         * check-module: If more parameters are given, check each of them
119236         separately; add more exceptions, as noted by Jim Meyering.
119237         (check_module): New procedure.
119238         (%exempt_header): Now contains all exceptions.
119240 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
119242         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
119244 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119246         * lib/iconvme.c: Split iconv_string into iconv_alloc.
119248 2005-08-28  Bruno Haible  <bruno@clisp.org>
119250         * m4/gnulib-tool.m4: New file.
119252 2005-08-27  Jim Meyering  <jim@meyering.net>
119254         * modules/unistd-safer (Files): Add pipe-safer.c.
119255         * modules/fcntl-safer (Files): Add creat-safer.c.
119257 2005-08-27  Jim Meyering  <jim@meyering.net>
119259         * m4/stdlib-safer.m4: New file.  From coreutils.
119260         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119261         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119262         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119263         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119264         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119266 2005-08-27  Jim Meyering  <jim@meyering.net>
119268         * lib/fopen-safer.c: Merge minor changes from coreutils.
119269         * lib/dup-safer.c: Likewise.
119270         * lib/fd-safer.c: Likewise.
119272         Merge from coreutils.
119273         * lib/stdio--.h: New file.
119274         * lib/stdlib--.h: New file.
119275         * lib/mkstemp-safer.c: New file.
119277         GNU tar needs these.
119278         * lib/pipe-safer.c: New file.
119279         * lib/creat-safer.c: New file.
119280         * lib/fcntl--.h (creat): Define to creat_safer.
119281         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119282         * lib/unistd--.h (pipe): Define to pipe_safer.
119283         * lib/unistd-safer.h: Declare pipe_safer.
119285 2005-08-26  Simon Josefsson  <jas@extundo.com>
119287         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119288         Haible <bruno@clisp.org>.
119290 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119292         * lib/regex_internal.h: Remove all references to
119293         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119294         or better.
119295         (bitset_not, bitset_merge, bitset_not_merge):
119296         (bitset_mask, re_string_allocate, re_string_construct):
119297         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119298         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119299         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119300         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119301         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119302         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119303         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119304         (re_acquire_state_context):
119305         Remove unnecessary forward decls.
119306         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119307         Put __attribute at function definition,
119308         now that the function decl has been removed.
119309         * lib/regex_internal.c (re_string_peek_byte_case):
119310         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119311         Likewise.
119313 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119315         * m4/regex.m4: Add AC_PREREQ(2.50).
119316         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119318 2005-08-25  Simon Josefsson  <jas@extundo.com>
119320         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119321         __fsetlocking.
119323 2005-08-25  Simon Josefsson  <jas@extundo.com>
119325         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119326         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119327         GLIBC specific code.
119329 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119331         Make regex safe for g++.  This fixes one real bug (an "err"
119332         that should have been "*err").  g++ problem reported by
119333         Sam Steingold.
119334         * lib/regex_internal.h (re_calloc): New macro, consistent with
119335         re_malloc etc.  All callers of calloc changed to use re_calloc.
119336         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119337         not int.  All callers changed.
119338         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119339         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119340         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119341         (find_recover_state): Change "err" to "*err"; this fixes what
119342         appears to be a real bug.
119343         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119344         versus int.
119346 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119348         * modules/regex (Depends-on): Add malloc, since the code
119349         assumes that !malloc(0) means failure.
119351 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119353         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119355         alloca modernization/simplification for regex.
119356         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119357         needs to be at the start of the file, and can be moved into
119358         regex_internal.h and simplified.
119359         * lib/regex_internal.h: Include <alloca.h>.
119360         (__libc_use_alloca) [!defined _LIBC]: New macro.
119361         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119362         now works outside glibc.
119364 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119366         * config/srclist.txt: Add glibc bugs 1241, 1245.
119368 2005-08-25  Jim Meyering  <jim@meyering.net>
119370         * lib/open-safer.c: Include <config.h>.
119371         Otherwise, we'd lose LARGEFILE support in any file using
119372         e.g. "fcntl--.h"
119374 2005-08-25  Bruno Haible  <bruno@clisp.org>
119376         * m4/minmax.m4: Require autoconf 2.52.
119377         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119378         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119379         alternatives of translit over the alphabet.
119380         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
119382 2005-08-24  Simon Josefsson  <jas@extundo.com>
119384         * tests/test-getpass.c: New file.
119386 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119388         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
119389         for GNU regex features.
119391 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119393         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
119394         * lib/regex.h (regerror): Likewise.
119396         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
119397         requires this.  (The code never needed it.)
119399         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
119400         All uses of recently-renamed identifiers changed to use the new,
119401         POSIX-compliant names.  The code will build and run just fine
119402         without these changes, but it's better to eat our own dog food
119403         and use the standard-conforming names.
119405         * lib/regex.h: Fix a multitude of POSIX name space violations.
119406         These changes have an effect only for programs that define
119407         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
119408         do not change anything for programs compiled in the normal way.
119409         Also, there is no effect on the ABI.
119411         (_REGEX_SOURCE): New macro.
119412         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
119413         defined and _GNU_SOURCE is not; this fixes a name space violation.
119415         Rename the following macros to obey POSIX requirements.
119416         The old names are still visible as macros if _REGEX_SOURCE is defined.
119417         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
119418         RE_BACKSLASH_ESCAPE_IN_LISTS.
119419         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
119420         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
119421         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
119422         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
119423         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
119424         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
119425         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
119426         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
119427         (REG_INTERVALS): renamed from RE_INTERVALS.
119428         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
119429         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
119430         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
119431         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
119432         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
119433         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
119434         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
119435         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
119436         RE_UNMATCHED_RIGHT_PAREN_ORD.
119437         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
119438         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
119439         (REG_DEBUG): renamed from RE_DEBUG.
119440         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
119441         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
119442         unusual, since we can't clash with the POSIX REG_ICASE.
119443         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
119444         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
119445         (REG_NO_SUB): renamed from RE_NO_SUB.
119446         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
119447         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
119448         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
119449         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
119450         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
119451         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
119452         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
119453         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
119454         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
119455         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
119456         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
119457         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
119458         RE_SYNTAX_POSIX_MINIMAL_BASIC.
119459         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
119460         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
119461         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
119462         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
119463         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
119464         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
119465         (REG_FIXED): Renamed from REGS_FIXED.
119466         (REG_NREGS): Renamed from RE_NREGS.
119468         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
119469         of other REG_* macros, since POSIX says the user is allowed to
119470         #undef these macros selectively.
119472         (reg_errcode_t): Update comment stating what other tables need
119473         to be consistent.
119475         Rename the following enum values to obey POSIX requirements.
119476         The old names are still visible as macros.
119477         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
119478         is not defined, since GNU is supposed to be a superset of POSIX as
119479         much as possible, and since we want reg_errcode_t to be a signed
119480         type for implementation consistency.
119481         (_REG_NOERROR): Renamed from REG_NOERROR.
119482         (_REG_NOMATCH): Renamed from REG_NOMATCH.
119483         (_REG_BADPAT): Renamed from REG_BADPAT.
119484         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
119485         (_REG_ECTYPE): Renamed from REG_ECTYPE.
119486         (_REG_EESCAPE): Renamed from REG_EESCAPE.
119487         (_REG_ESUBREG): Renamed from REG_ESUBREG.
119488         (_REG_EBRACK): Renamed from REG_EBRACK.
119489         (_REG_EPAREN): Renamed from REG_EPAREN.
119490         (_REG_EBRACE): Renamed from REG_EBRACE.
119491         (_REG_BADBR): Renamed from REG_BADBR.
119492         (_REG_ERANGE): Renamed from REG_ERANGE.
119493         (_REG_ESPACE): Renamed from REG_ESPACE.
119494         (_REG_BADRPT): Renamed from REG_BADRPT.
119495         (_REG_EEND): Renamed from REG_EEND.
119496         (_REG_ESIZE): Renamed from REG_ESIZE.
119497         (_REG_ERPAREN): Renamed from REG_ERPAREN.
119498         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
119499         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
119500         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
119501         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
119503         (_REG_RE_NAME, _REG_RM_NAME): New macros.
119504         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
119505         changed.  But support the old name if the new one is not defined
119506         and if _REGEX_SOURCE.
119508         Change the following member names in struct re_pattern_buffer.
119509         The old names are still supported if !_REGEX_SOURCE.
119510         The new names are always supported, regardless of _REGEX_SOURCE.
119511         (re_buffer): Renamed from buffer.
119512         (re_allocated): Renamed from allocated.
119513         (re_used): Renamed from used.
119514         (re_syntax): Renamed from syntax.
119515         (re_fastmap): Renamed from fastmap.
119516         (re_translate): Renamed from translate.
119517         (re_can_be_null): Renamed from can_be_null.
119518         (re_regs_allocated): Renamed from regs_allocated.
119519         (re_fastmap_accurate): Renamed from fastmap_accurate.
119520         (re_no_sub): Renamed from no_sub.
119521         (re_not_bol): Renamed from not_bol.
119522         (re_not_eol): Renamed from not_eol.
119523         (re_newline_anchor): Renamed from newline_anchor.
119525         Change the following member names in struct re_registers.
119526         The old names are still supported if !_REGEX_SOURCE.
119527         The new names are always supported, regardless of _REGEX_SOURCE.
119528         (rm_num_regs): Renamed from num_regs.
119529         (rm_start): Renamed from start.
119530         (rm_end): Renamed from end.
119532         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
119533         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
119534         Prepend __ to parameter names.
119536         Undo yesterday's changes.
119538 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119540         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
119541         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
119542         lib/regex.c.
119544 2005-08-24  Jim Meyering  <jim@meyering.net>
119546         Sync from coreutils.
119547         * m4/fcntl-safer.m4: New file.
119549         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
119550         and object files for this module.
119552 2005-08-24  Jim Meyering  <jim@meyering.net>
119554         Sync from coreutils.
119555         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
119557 2005-08-24  Jim Meyering  <jim@meyering.net>
119559         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
119560         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
119562 2005-08-24  Jim Meyering  <jim@meyering.net>
119564         * modules/fcntl-safer: New module.
119565         * modules/fts (Depends-on): Add fcntl-safer.
119566         * MODULES.html.sh (File descriptor based Input/Output):
119567         Add fcntl-safer.
119569 2005-08-24  Bruno Haible  <bruno@clisp.org>
119571         Support for unit test modules.
119572         * modules/README: Mention tests modules.
119573         * modules/TEMPLATE-TESTS: New file.
119574         * gnulib-tool: New options --extract-tests-module, --with-tests and
119575         --tests-base (unused for the moment).
119576         (testsbase, inctests): New variables.
119577         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
119578         (func_verify_module): Exclude TEMPLATE-TESTS.
119579         (func_verify_nontests_module, func_verify_tests_module): New functions.
119580         (func_get_dependencies): Add implicit dependency for tests modules.
119581         (func_get_tests_module): New function.
119582         (func_modules_transitive_closure): When --with-tests was specified,
119583         include the unit tests as well, unless explicitly avoided.
119584         (func_emit_lib_Makefile_am): Ignore the tests modules here.
119585         (func_emit_tests_Makefile_am): New function.
119586         (func_create_testdir): When --with-tests was specified, emit a
119587         tests/ directory.
119588         * MODULES.html.sh (Future developments): Update.
119590 2005-08-24  Bruno Haible  <bruno@clisp.org>
119592         * modules/tls-tests: New file.
119593         * tests/test-tls.c: New file, from GNU gettext.
119595 2005-08-24  Bruno Haible  <bruno@clisp.org>
119597         * modules/lock-tests: New file.
119598         * tests/test-lock.c: New file, from GNU gettext.
119600 2005-08-24  Bruno Haible  <bruno@clisp.org>
119602         * lib/lock.h: Add multiple inclusion guard.
119603         * lib/tls.h: Add multiple inclusion guard.
119605 2005-08-24  Bruno Haible  <bruno@clisp.org>
119607         * gnulib-tool: Add support for the --aux-dir option to
119608         --create-testdir, --create-megatestdir, --test, --megatest.
119609         (func_create_testdir, func_create_megatestdir): Optionally emit a
119610         AC_CONFIG_AUX_DIR directive.
119611         (create-testdir, create-megatestdir, test, megatest): Provide a
119612         default value for $auxdir.
119614 2005-08-24  Bruno Haible  <bruno@clisp.org>
119616         * gnulib-tool (import): Use compound statement instead of subshell
119617         where possible.
119619 2005-08-24  Bruno Haible  <bruno@clisp.org>
119621         * gnulib-tool (import): Change --aux-dir default to "build-aux".
119623 2005-08-24  Bruno Haible  <bruno@clisp.org>
119625         * gnulib-tool (func_version): Update.
119627 2005-08-24  Bruno Haible  <bruno@clisp.org>
119629         * gnulib-tool (func_import, func_create_testdir,
119630         func_create_megatestdir): Quote all autoconf macro arguments.
119632 2005-08-24  Bruno Haible  <bruno@clisp.org>
119634         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
119635         option --force, because --force causes the aclocal.m4 of each
119636         subdirectory to be newer than the corresponding config.h.in.
119638 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119640         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
119641         All contents moved to gl_REGEX.
119642         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
119643         assume that it does.
119645 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119647         * lib/regex.h (REG_NOSYS)
119648         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
119649         Define, since POSIX requires it as of 2001.
119650         (_REG_ENOSYS)
119651         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
119652         New private symbol, used to keep the enum signed in all cases.
119653         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
119654         Youngman in
119655         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
119657         * lib/regex_internal.c (re_string_skip_chars, register_state):
119658         (calc_state_hash):
119659         Remove forward decls; no longer needed now that we use prototypes.
119660         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
119661         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
119662         (clean_state_log_if_needed): Likewise.
119664 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119666         * config/srclist.txt: Add glibc bugs 1231-1233.
119668 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119670         Fix problems reported by Sam Steingold in
119671         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
119672         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
119673         assumed that reg_errcode_t is a signed type, which is not
119674         necessarily true if _XOPEN_SOURCE is not defined.
119675         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
119676         since some compilers warn about it otherwise.
119678 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119680         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
119681         (init_word_char, create_initial_state, duplicate_node_closure):
119682         (fetch_token, peek_token_bracket, build_range_exp):
119683         (build_collating_symbol): Remove forward decls; no longer needed
119684         now that we use prototypes.
119686         * lib/regcomp.c:
119687         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
119688         (re_compile_fastmap_iter, regcomp, regerror, regfree):
119689         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
119690         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
119691         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
119692         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
119693         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
119694         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
119695         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
119696         (build_range_exp, build_collating_symbol, parse_bracket_exp):
119697         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
119698         (build_charclass, build_charclass_op, fetch_number, create_tree):
119699         (create_token_tree, mark_opt_subexp, duplicate_tree):
119700         Use prototypes rather than old-style definitions.
119702         * lib/regex_internal.c:
119703         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
119704         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
119705         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119706         (re_string_reconstruct, re_string_peek_byte_case):
119707         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
119708         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119709         (re_node_set_init_copy, re_node_set_add_intersect):
119710         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119711         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119712         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119713         (re_acquire_state, re_acquire_state_context, register_state):
119714         (create_ci_newstate, create_cd_newstate, free_state):
119715         Likewise.
119716         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
119717         re_search_2):
119718         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
119719         (re_search_internal, prune_impossible_nodes):
119720         (acquire_init_state_context, check_matching, static):
119721         (check_halt_node_context, check_halt_state_context, proceed_next_node):
119722         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
119723         (update_regs, sift_states_backward, build_sifted_states):
119724         (clean_state_log_if_needed, merge_state_array):
119725         (update_cur_sifted_state, add_epsilon_src_nodes):
119726         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
119727         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
119728         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
119729         (find_recover_state, check_subexp_matching_top, transit_state_mb):
119730         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
119731         (check_arrival, check_arrival_add_next_nodes):
119732         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119733         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119734         (check_node_accept_bytes, check_node_accept, extend_buffers):
119735         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
119736         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
119737         (sift_ctx_init):
119738         Likewise.
119740         * lib/regex_internal.h:
119741         (re_string_allocate, re_string_construct, re_string_reconstruct):
119742         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
119743         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
119744         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
119745         (re_string_context_at, re_string_peek_byte_case):
119746         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
119747         is defined, since we now use prototypes always.
119749         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
119750         C89 or better.  All uses removed.
119752 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119754         * config/srclist.txt: Add glibc bugs 1220-1227.
119756 2005-08-20  Jim Meyering  <jim@meyering.net>
119758         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
119759         of unused local, dfa.
119761 2005-08-20  Bruno Haible  <bruno@clisp.org>
119763         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
119765 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119767         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
119768         (re_node_set_insert_last, re_dfa_add_node):
119769         Rename local variables to avoid GCC shadowing warnings.
119771 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119773         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
119774         [defined lint]: Suppress bogus uninitialized-variable warnings.
119776         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
119777         and let the caller return REG_ESPACE if out of space.  This
119778         removes an uninitialied-variable warning with GCC 4.0.1, and also
119779         avoids taking the address of a local variable.  All callers
119780         changed.
119782 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119784         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
119785         $LIBCSRC/posix/regexec.c.
119786         Add glibc bug 1217 for regcomp.c.
119788 2005-08-19  Jim Meyering  <jim@meyering.net>
119790         * lib/regexec.c (proceed_next_node): Redo local variables to
119791         avoid GCC shadowing warnings.
119793 2005-08-18  Bruno Haible  <bruno@clisp.org>
119795         * lib/strstr.c (strstr): Fix return value in multibyte case.
119796         * lib/strcasestr.c (strcasestr): Likewise.
119798 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
119800         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
119802 2005-08-17  Jim Meyering  <jim@meyering.net>
119804         Make the %s format (seconds since the epoch) work for a negative
119805         number and when used with a zero-padded field width, e.g. %015s.
119807         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
119808         label so that it precedes the code to set `digits'.  Otherwise,
119809         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
119810         print `00-22'.  Now, it prints `-0022', as it should.
119812 2005-08-17  Bruno Haible  <bruno@clisp.org>
119814         * modules/strstr (Files): Add m4/mbrtowc.m4.
119815         (Depends-on): Add mbuiter.
119817 2005-08-17  Bruno Haible  <bruno@clisp.org>
119819         * modules/strcasestr: New file.
119820         * MODULES.html.sh (String handling, based on ANSI C 89): Add
119821         strcasestr.
119823 2005-08-17  Bruno Haible  <bruno@clisp.org>
119825         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
119827 2005-08-17  Bruno Haible  <bruno@clisp.org>
119829         * modules/mbuiter: New file.
119830         * MODULES.html.sh (Extended multibyte and wide character utilities):
119831         Add mbuiter.
119833 2005-08-17  Bruno Haible  <bruno@clisp.org>
119835         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
119836         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
119838 2005-08-17  Bruno Haible  <bruno@clisp.org>
119840         * m4/strcasestr.m4: New file.
119842 2005-08-17  Bruno Haible  <bruno@clisp.org>
119844         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
119845         * lib/strstr.c: Completely rewritten, with multibyte locale support.
119847 2005-08-17  Bruno Haible  <bruno@clisp.org>
119849         * lib/strcasestr.h: New file.
119850         * lib/strcasestr.c: New file.
119852 2005-08-17  Bruno Haible  <bruno@clisp.org>
119854         * lib/strcasecmp.c: Use mbuiter.h.
119856 2005-08-17  Bruno Haible  <bruno@clisp.org>
119858         * lib/mbuiter.h: New file.
119860 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
119862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
119863         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
119864         and gl_GETOPT are both invoked via different paths (as happens
119865         with GNU tar CVS because it uses both argp and getopt), the former
119866         wins.
119868 2005-08-16  Bruno Haible  <bruno@clisp.org>
119870         * modules/tls: New file.
119871         * MODULES.html.sh (Multithreading): Add tls.
119873 2005-08-16  Bruno Haible  <bruno@clisp.org>
119875         * modules/strnlen1: New file.
119876         * MODULES.html.sh (String handling): Add strnlen1.
119878 2005-08-16  Bruno Haible  <bruno@clisp.org>
119880         * modules/strcase (Files): Add m4/mbrtowc.m4.
119881         (Depends-on): Add strnlen1, mbchar.
119883 2005-08-16  Bruno Haible  <bruno@clisp.org>
119885         * modules/mbiter: New file.
119886         * MODULES.html.sh (Extended multibyte and wide character utilities):
119887         Add mbiter.
119889 2005-08-16  Bruno Haible  <bruno@clisp.org>
119891         * modules/mbfile: New file.
119892         * MODULES.html.sh (Extended multibyte and wide character utilities):
119893         Add mbfile.
119895 2005-08-16  Bruno Haible  <bruno@clisp.org>
119897         * modules/mbchar: New file.
119898         * MODULES.html.sh (Extended multibyte and wide character utilities):
119899         New section.
119901 2005-08-16  Bruno Haible  <bruno@clisp.org>
119903         * m4/tls.m4: New file, from GNU gettext.
119905 2005-08-16  Bruno Haible  <bruno@clisp.org>
119907         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
119908         always.
119909         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
119911 2005-08-16  Bruno Haible  <bruno@clisp.org>
119913         * m4/mbiter.m4: New file.
119915 2005-08-16  Bruno Haible  <bruno@clisp.org>
119917         * m4/mbfile.m4: New file.
119919 2005-08-16  Bruno Haible  <bruno@clisp.org>
119921         * m4/mbchar.m4: New file.
119923 2005-08-16  Bruno Haible  <bruno@clisp.org>
119925         * lib/tls.h: New file, from GNU gettext.
119926         * lib/tls.c: New file, from GNU gettext.
119928 2005-08-16  Bruno Haible  <bruno@clisp.org>
119930         * lib/strnlen1.h: New file.
119931         * lib/strnlen1.c: New file.
119933 2005-08-16  Bruno Haible  <bruno@clisp.org>
119935         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
119936         (mbi_init): Update.
119937         (mbi_avail, mbi_advance): Let the iteration end before the terminating
119938         NUL byte, not after it.
119940 2005-08-16  Bruno Haible  <bruno@clisp.org>
119942         * lib/strcase.h (strcasecmp): Add note in comments.
119943         * lib/strncasecmp.c: Use code from strcasecmp.c.
119944         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
119945         (strcasecmp): Work correctly in multibyte locales.
119947 2005-08-16  Bruno Haible  <bruno@clisp.org>
119949         * lib/mbiter.h: New file.
119951 2005-08-16  Bruno Haible  <bruno@clisp.org>
119953         * lib/mbfile.h: New file.
119955 2005-08-16  Bruno Haible  <bruno@clisp.org>
119957         * lib/mbchar.h: New file.
119958         * lib/mbchar.c: New file.
119960 2005-08-16  Bruno Haible  <bruno@clisp.org>
119962         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
119963         the valid ones. Makes the comparison operations transitive:
119964         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
119965         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
119967 2005-08-15  Simon Josefsson  <jas@extundo.com>
119969         * modules/ssize_t (License): Change to 'unlimited'.
119971         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
119973 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
119975         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
119976         Add comments for each pending glibc patch.
119978 2005-08-15  Bruno Haible  <bruno@clisp.org>
119980         * lib/regex.h (__restrict_arr): Don't define to __restrict if
119981         __cplusplus is defined.
119983 2005-08-14  Jim Meyering  <jim@meyering.net>
119985         Sync from coreutils.
119987         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
119988         Use the hash-table-based cycle-detection code not just when
119989         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
119990         Reported by James Youngman in
119991         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
119992         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
119993         FTS_TIGHT_CYCLE_CHECK.
119994         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
119995         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
119996         once again.
119997         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
119998         * lib/fts.c (fd_safer): Remove decl.
119999         Include fcntl--.h rather than unistd-safer.h
120000         (fts_safe_changedir): Don't call fd_safer; no longer needed
120001         now that we include fcntl--.h.
120003 2005-08-12  Simon Josefsson  <jas@extundo.com>
120005         * modules/getndelim2: Use ssize_t module.
120006         * modules/getnline: Likewise.
120007         * modules/safe-read: Likewise.
120008         * modules/xreadlink: Likewise.
120010         * modules/ssize_t: New file.
120012 2005-08-12  Simon Josefsson  <jas@extundo.com>
120014         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120016 2005-08-12  Simon Josefsson  <jas@extundo.com>
120018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120019         ssize_t.
120021 2005-08-12  Simon Josefsson  <jas@extundo.com>
120023         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120024         readline, getdelim and check_version.
120025         (Support for systems lacking ISO C 99: Sizes of integer types):
120026         Add size_max.
120028 2005-08-12  Bruno Haible  <bruno@clisp.org>
120030         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120032 2005-08-11  Simon Josefsson  <jas@extundo.com>
120034         * modules/readline: New file.
120036         * modules/strnlen (Files): Add strnlen.h.
120038 2005-08-11  Simon Josefsson  <jas@extundo.com>
120040         * m4/readline.m4: New file.
120042 2005-08-11  Simon Josefsson  <jas@extundo.com>
120044         * lib/readline.h, readline.c: New file.
120046 2005-08-11  Simon Josefsson  <jas@extundo.com>
120048         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120049         gl_AVOID.
120051 2005-08-11  Bruno Haible  <bruno@clisp.org>
120053         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120055 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120057         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120059 2005-08-10  Simon Josefsson  <jas@extundo.com>
120061         * tests/test-iconvme.c: New file.
120063 2005-08-10  Simon Josefsson  <jas@extundo.com>
120065         * m4/strnlen.m4: New file.
120067         * m4/strndup.m4: Don't check for strnlen declaration, done in
120068         strnlen.m4.
120070 2005-08-10  Simon Josefsson  <jas@extundo.com>
120072         * lib/strndup.c: Use strnlen.h.
120074         * lib/strnlen.h: New file.
120076 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120078         * README: Typos.
120080 2005-08-02  Simon Josefsson  <jas@extundo.com>
120082         * modules/readline: New file.
120084 2005-08-02  Simon Josefsson  <jas@extundo.com>
120086         * modules/getdelim: New file.
120088         * modules/getline: Rewrite, don't use getndelim2.
120090 2005-08-02  Simon Josefsson  <jas@extundo.com>
120092         * m4/getline.m4: Separate out getdelim stuff into separate module.
120094         * m4/getdelim.m4: New file.
120096 2005-08-02  Simon Josefsson  <jas@extundo.com>
120098         * lib/getline.h, getline.c: Rewrite.
120100         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120102 2005-07-31  Bruno Haible  <bruno@clisp.org>
120104         * lib/lock.h (gl_lock_initializer): New macro.
120105         (gl_lock_define_initialized): Use it.
120106         (gl_rwlock_initializer): New macro.
120107         (gl_rwlock_define_initialized): Use it.
120108         (gl_recursive_lock_initializer): New macro.
120109         (gl_recursive_lock_define_initialized): Use it.
120111 2005-07-30  Karl Berry  <karl@gnu.org>
120113         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120114         Report from Ben Pfaff, regarding getopt.
120116 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120118         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120119         normal way.
120120         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120121         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120122         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120123         (gl_GETOPT): Use the new macros.  Most of the implementation
120124         is moved to the new macros.  This is for programs like Emacs
120125         that don't want all the functionality of gl_GETOPT.
120127 2005-07-26  Bruno Haible  <bruno@clisp.org>
120129         * m4/lock.m4: Update from GNU gettext.
120131 2005-07-26  Bruno Haible  <bruno@clisp.org>
120133         * lib/lock.h: Update from GNU gettext.
120134         * lib/lock.c: Update from GNU gettext.
120136 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120138         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120139         obsolescent AC_TRY_RUN.  Include the default includes files, for
120140         'exit'.
120142 2005-07-24  Bruno Haible  <bruno@clisp.org>
120144         * modules/visibility: New file.
120145         * MODULES.html.sh (Misc): Add visibility.
120147 2005-07-24  Bruno Haible  <bruno@clisp.org>
120149         * m4/visibility.m4: New file.
120151 2005-07-24  Bruno Haible  <bruno@clisp.org>
120153         * doc/visibility.texi: New file.
120155 2005-07-22  Bruno Haible  <bruno@clisp.org>
120157         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120158         $(ALLOCA_H), redundant through BUILT_SOURCES.
120159         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120160         redundant through BUILT_SOURCES.
120161         * modules/byteswap (Makefile.am): Remove explicit dependency on
120162         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120163         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120164         $(FNMATCH_H), redundant through BUILT_SOURCES.
120165         * modules/getopt (Makefile.am): Remove explicit dependency on
120166         $(GETOPT_H), redundant through BUILT_SOURCES.
120167         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120168         redundant through BUILT_SOURCES.
120169         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120170         redundant through BUILT_SOURCES.
120171         * modules/stdbool (Makefile.am): Remove explicit dependency on
120172         $(STDBOOL_H), redundant through BUILT_SOURCES.
120173         * modules/stdint (Makefile.am): Remove explicit dependency on
120174         $(STDINT_H), redundant through BUILT_SOURCES.
120175         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120176         Remove explicit dependency on $(SYSEXITS_H).
120177         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120179 2005-07-18  Simon Josefsson  <jas@extundo.com>
120181         * lib/check-version.c (check_version): Accept identical versions too.
120183 2005-07-18  Bruno Haible  <bruno@clisp.org>
120185         * modules/lock: New file.
120186         * MODULES.html.sh (Multithreading): New section.
120188 2005-07-18  Bruno Haible  <bruno@clisp.org>
120190         * m4/lock.m4: New file, from GNU gettext.
120192 2005-07-18  Bruno Haible  <bruno@clisp.org>
120194         * lib/lock.h: New file, from GNU gettext.
120195         * lib/lock.c: New file, from GNU gettext.
120197 2005-07-18  Bruno Haible  <bruno@clisp.org>
120199         * lib/lock.h (gl_once_t): New type.
120200         (gl_once_define, gl_once): New macros.
120201         * lib/lock.c (fresh_once): New variable.
120202         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120203         functions.
120205 2005-07-16  Simon Josefsson  <jas@extundo.com>
120207         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120208         workaround, suggested by Bruno.
120210 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120212         * modules/xalloc (Depends-on): Add xalloc-die.
120213         * modules/xvasprintf (Depends-on): Add xalloc-die.
120215 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120217         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
120218         with a minor change.
120220 2005-07-15  Bruno Haible  <bruno@clisp.org>
120222         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
120223         When using lib/poll.c, define poll as rpl_poll.
120225 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
120227         * modules/argp (Depends-on): Remove unlocked-io.
120229 2005-07-14  Derek Price  <derek@ximbiot.com>
120231         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
120232         for glob symlink bug.
120234 2005-07-14  Bruno Haible  <bruno@clisp.org>
120236         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
120237         Instead, test for *_unlocked function declarations directly.
120239 2005-07-11  Simon Josefsson  <jas@extundo.com>
120241         * modules/size_max: New file.
120243         * modules/xsize: Depend on size_max module for size_max.m4.
120245 2005-07-11  Simon Josefsson  <jas@extundo.com>
120247         * lib/size_max.h: New file.
120249 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120251         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120252         copyright symbol and the year.
120253         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120254         (version_etc_va): Use parameterized copyright notice.
120255         Reword to conform to the current GNU coding standards.
120257 2005-07-11  Karl Berry  <karl@gnu.org>
120259         * doc/gnulib.texi (Quoting): new node.
120260         (Initial import): more info, from Patrice.
120262 2005-07-11  Bruno Haible  <bruno@clisp.org>
120264         * gnulib-tool (func_usage): Document option --avoid.
120265         (Command line options): Handle --avoid.
120266         (func_acceptable): New function.
120267         (func_modules_transitive_closure): Use it.
120269 2005-07-11  Bruno Haible  <bruno@clisp.org>
120271         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120272         Reported by Jim Meyering.
120274 2005-07-10  Bruno Haible  <bruno@clisp.org>
120276         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120277         Needed when size_t is smaller than 'unsigned int'.
120278         Reported by Paul Eggert.
120280 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120282         * modules/argp (Depends-on): Add unlocked-io
120284 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120286         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120287         block of defines.
120289 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120291         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120292         fix now.
120294 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120295         and Paul Eggert  <eggert@cs.ucla.edu>
120297         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120298         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120300 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120302         * modules/regex (Files): Add lib/regex_internal.c,
120303         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120304         (Depends-on): Add extensions.
120305         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120307 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120309         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120310         pathconf.
120311         * m4/same.m4 (gl_SAME): Likewise.
120312         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120314         * m4/regex.m4: Adjust to new libc regex implementation.
120315         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120316         all the .c and .h parts of (the new) regex.
120317         Quote the m4 stuff better.
120318         Check for RE_ICASE bug of old gnulib.
120319         Check for REG_STARTEND of recent libc.
120320         Rename local variables from jm_* to gl_*.
120321         Quote operand of "test -f".
120322         Say "recent enough" version of libc, not "version 2".
120323         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120324         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120325         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120326         Remove check for btowc, isascii.
120327         Require AM_LANGINFO_CODESET.
120329 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120331         * lib/regex.c, regex.h: Sync from libc.
120332         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120333         * lib/regexec.c:
120334         New files, synced from libc, except that regex_internal.h
120335         currently has a small porting fix.
120337 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120339         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120340         regex_internal.c, regexec.c.
120341         Add regex_internal.h too, but as a comment, since the libc version
120342         is currently broken in gnulib mode.
120344 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120346         Support programs like Emacs that use gnulib but not gettext.
120347         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120348         * modules/gettext-h: New file.
120349         * modules/gettext (Files): Remove lib/gettext.h.
120350         (Depends-on): Add gettext-h.
120351         (Makefile.am): Remove lib_SOURCES.
120352         * modules/argmatch, modules/c-stack, modules/closeout:
120353         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120354         * modules/execute, modules/file-type, modules/getaddrinfo:
120355         * modules/getopt, modules/human, modules/javacomp:
120356         * modules/javaexec, modules/mkdir-p, modules/obstack:
120357         * modules/openat, modules/pagealign_alloc, modules/pipe:
120358         * modules/quotearg, modules/regex, modules/rpmatch:
120359         * modules/unicodeio, modules/userspec, modules/version-etc:
120360         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120361         * modules/xsetenv:
120362         Depend on gettext-h, not gettext.
120364 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120366         * gnulib-tool (func_import): Add support for 'public domain' license.
120367         * modules/alloca, modules/atexit, modules/memmove:
120368         Now public domain, not GPL.
120369         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120370         * modules/realloc, modules/strerror, modules/strtod:
120371         Now LGPL, not GPL.
120373 2005-07-05  Bruno Haible  <bruno@clisp.org>
120375         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120376         autoconf CVS. Needed for mingw.
120378 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120380         Remove the dependency of the strftime module on the tzset module.
120381         * modules/strftime (Depends-on): Remove dependency on tzset.
120383 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120385         Remove the dependency of the strftime module on the tzset module.
120386         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
120387         gl_FUNC_TZSET_CLOBBER.
120389 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120391         Remove the dependency of the strftime module on the tzset module.
120392         * lib/strftime.c (my_strftime)
120393         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
120394         Copy the input structure, to work around some of the bug with
120395         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
120396         Solaris releases, you should also use the tzset module, but we won't
120397         require it as a dependency any more since we don't want LGPLed code
120398         to depend on GPLed code.
120400 2005-07-02  Jim Meyering  <jim@meyering.net>
120402         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
120403         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
120404         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
120405         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
120407 2005-07-02  Jim Meyering  <jim@meyering.net>
120409         * lib/backupfile.c (backup_args): Change a `0' to NULL.
120411 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
120413         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
120414         declares only 'struct timespec;' (!).
120416 2005-07-01  Jim Meyering  <jim@meyering.net>
120418         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
120419         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
120420         * lib/save-cwd.c, tempname.c:
120421         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120422         and don't include <sys/file.h>).
120424 2005-06-29  Jim Meyering  <jim@meyering.net>
120426         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
120427         type name.  Use the variable name instead.
120428         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
120429         Likewise.
120431 2005-06-28  Simon Josefsson  <jas@extundo.com>
120433         * modules/check-version (Files): Add check-version.m4.
120435 2005-06-28  Simon Josefsson  <jas@extundo.com>
120437         * m4/check-version.m4: New file, suggested by Jim Meyering
120438         <jim@meyering.net>.
120440 2005-06-28  Simon Josefsson  <jas@extundo.com>
120442         * lib/check-version.h, lib/check-version.c: New files.
120444 2005-06-28  Simon Josefsson  <jas@extundo.com>
120446         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
120447         collision with global variable.  Better indentation.  Don't
120448         increment buffer pointer beyond buffer end.  Based on comments
120449         from Paul Eggert <eggert@cs.ucla.edu>.
120451         * lib/base64.h: Indent.
120453 2005-06-28  Simon Josefsson  <jas@extundo.com>
120455         * doc/gnulib.texi (Library version handling): New section.
120457 2005-06-28  Jim Meyering  <jim@meyering.net>
120459         * check-module (find_included_lib_files): Hard-code another
120460         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
120461         but modules/fts-lgpl (correctly) does not list those files.
120463         * modules/canonicalize (Files): Add lib/pathmax.h.
120465 2005-06-25  Simon Josefsson  <jas@extundo.com>
120467         * modules/check-version: New file.
120469 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
120471         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
120472         initializer of struct addrinfo, as an indication that we don't
120473         care how many members the structure has.
120475 2005-06-24  Derek Price  <derek@ximbiot.com>
120476         and Bruno Haible  <bruno@clisp.org>
120478         Remove stat module & update lstat.
120479         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
120480         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
120481         * m4/stat.m4: Remove this file.
120483 2005-06-24  Derek Price  <derek@ximbiot.com>
120484         and Bruno Haible  <bruno@clisp.org>
120486         Remove stat module & update lstat.
120487         * lib/stat.c: Remove this file...
120488         (slash_aware_lstat): ...moving this content and its support...
120489         * lib/lstat.c (rpl_lstat): ...into here.
120490         * lib/lstat.h: New file.
120492 2005-06-24  Derek Price  <derek@ximbiot.com>
120493         and Bruno Haible  <bruno@clisp.org>
120495         Remove stat module & update lstat.
120496         * config/srclist.txt (libc sources): Remove stat.
120498 2005-06-24  Derek Price  <derek@ximbiot.com>
120499         and Bruno Haible  <bruno@clisp.org>
120501         Remove stat module & update lstat.
120502         * MODULES.html.sh (stat): Remove.
120503         * MODULES.html: Regenerated.
120504         * modules/lstat (Description): Correct function name.
120505         (Files): Add "lstat.h".
120506         (Depends-on): Remove stat, add xalloc, stat-macros.
120507         * modules/stat: Remove this file.
120508         (Include): Add "lstat.h", remove <sys/stat.h>.
120510 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
120512         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
120513         (ranged_convert): Don't save conversion in a temporary struct.
120514         This causes a warning with GCC 4.0.0, and anyway in the typical
120515         case it's not worth the extra 100 bytes or so of code.
120516         (ranged_convert, __mktime_internal): When calling a function via a
120517         pointer P, use P () rather than (*P) (), as we now assume C89 or
120518         better.
120520 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120522         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
120523         "who -r" failed to give output.  Problem reported by Tim Waugh.
120525         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
120526         (xcalloc): Use it to avoid needless tests.
120527         Problem reported by Jim Meyering.
120529 2005-06-20  Derek Price  <derek@ximbiot.com>
120531         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
120532         unnecessary for Autoconfs > 2.59c.
120534 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120536         * lib/argp.h (__option_is_short): Check upper limit of
120537         __key. Isprint() requires its argument to have the value
120538         of an unsigned char or EOF.
120540 2005-06-16  Jim Meyering  <jim@meyering.net>
120542         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
120543         when either N or S is zero.
120545 2005-06-16  Derek Price  <derek@ximbiot.com>
120547         * m4/bison.m4: Declare YACC & YFLAGS precious.
120549 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
120551         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
120552         multibyte string or pattern, fall back on unibyte matching.
120553         Problem reported by James Youngman.
120555 2005-06-08  Bruno Haible  <bruno@clisp.org>
120557         * modules/csharpcomp: New file.
120558         * MODULES.html.sh (C#): Add csharpcomp.
120560 2005-06-08  Bruno Haible  <bruno@clisp.org>
120562         * m4/csharpcomp.m4: New file, from GNU gettext.
120564 2005-06-08  Bruno Haible  <bruno@clisp.org>
120566         * lib/csharpcomp.h: New file, from GNU gettext.
120567         * lib/csharpcomp.c: New file, from GNU gettext.
120568         * lib/csharpcomp.sh.in: New file, from GNU gettext.
120570 2005-06-08  Bruno Haible  <bruno@clisp.org>
120572         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
120573         warning on mingw.
120575 2005-06-07  Derek Price  <derek@ximbiot.com>
120577         Sync from CVS.
120578         * lib/glob_.h: Indent nested #ifdef.
120580 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120582         Sync from coreutils.
120583         Use "file name" when talking about file names, instead of "filename"
120584         or "path", as per the GNU coding standards.
120585         * lib/mkdir-p.c: Renamed from makepath.c.
120586         (make_dir_parents): Renamed from make_path.  All callers changed.
120587         * lib/mkdir-p.h: Likewise.  All includers changed.
120588         * lib/filenamecat.c: Renamed from path-concat.c.
120589         (file_name_concat): Renamed from path_concat.  All callers changed.
120590         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
120591         * lib/filenamecat.h: Likewise.  All includers changed.
120592         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
120593         in comments or local variable names.
120594         * lib/basename.c: Likewise.
120595         * lib/canonicalize.c, canonicalize.h: Likewise.
120596         * lib/dirname.c, dirname.h: Likewise.
120597         * lib/euidaccess.c: Likewise.
120598         * lib/exclude.c: Likewise
120599         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
120600         * lib/fsusage.c, fsuage.h: Likewise.
120601         * lib/fts.c, fts_.h: Likewise.
120602         * lib/getcwd.c: Likewise.
120603         * lib/getloadavg.c: Likewise.
120604         * lib/mkstemp.c: Likewise.
120605         * lib/mountlist.c, mountlist.h: Likewise.
120606         * lib/openat.c, openat.h: Likewise.
120607         * lib/readlink-stub.c: Likewise.
120608         * lib/readutmp.c, readutmp.h: Likewise.
120609         * lib/rename.c: Likewise.
120610         * lib/rmdir.c: Likewise.
120611         * lib/same.c: Likewise.
120612         * lib/savedir.c: Likewise.
120613         * lib/stripslash.c: Likewise.
120614         * lib/tempname.c: Likewise.
120615         * lib/xreadlink.c: Likewise.
120616         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
120617         All uses changed.
120618         * lib/exclude.h: Likewise.
120620         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
120621         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120622         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
120623         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120624         * lib/pathmax.h: Include <limits.h> unconditionally, since other
120625         files have been getting away with it for years (MORE/BSD 4.3
120626         is extinct now).
120627         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
120628         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120630         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
120631         Define to 256, not 255, as per modern POSIX.
120633 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120635         Sync from coreutils.
120636         Use "file name" when talking about file names, instead of "filename"
120637         or "path", as per the GNU coding standards.
120638         * MODULES.html.sh: mkdir-p renamed from makepath.
120639         filenamecat renamed from path-concat.
120640         * modules/filenamecat: Renamed from modules/path-concat.
120641         (Files): filenamecat.h and filenamecat.c renamed from
120642         path-concat.h and path-concat.c.
120643         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
120644         (Include): filenamecat.h, not path-concat.h.
120645         * modules/mkdir-p: Renamed from modules/makepath.
120646         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
120647         makepath.c.
120648         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
120649         (Include): mkdir-p.h, not makepath.h.
120651 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120653         Sync from coreutils.
120654         * m4/mkdir-p.m4: Renamed from makepath.m4.
120655         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
120656         Rename files from makepath.c to mkdir-p.c, and from
120657         makepath.h to mkdir-p.h.
120658         * m4/filenamecat.m4: Renamed from path-concat.m4.
120659         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
120660         Rename files from path-concat.c to filenamecat.c,
120661         and from path-concat.h to filenamecat.h.
120662         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
120663         "file name" in local variables or comments.
120664         * m4/rename.m4: Likewise.
120666 2005-06-01  Bruno Haible  <bruno@clisp.org>
120668         * modules/csharpexec: New file.
120669         * MODULES.html.sh (C#): New section.
120671 2005-06-01  Bruno Haible  <bruno@clisp.org>
120673         * m4/csharp.m4: New file, from GNU gettext.
120674         * m4/csharpexec.m4: New file, from GNU gettext.
120676 2005-06-01  Bruno Haible  <bruno@clisp.org>
120678         * lib/csharpexec.h: New file, from GNU gettext.
120679         * lib/csharpexec.c: New file, from GNU gettext.
120680         * lib/csharpexec.sh.in: New file, from GNU gettext.
120682 2005-05-31  Derek Price  <derek@ximbiot.com>
120683             Paul Eggert  <eggert@cs.ucla.edu>
120685         Sync from cvs.
120686         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120688 2005-05-31  Derek Price  <derek@ximbiot.com>
120689             Paul Eggert  <eggert@cs.ucla.edu>
120691         Sync from cvs.
120692         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120694 2005-05-29  Derek Price  <derek@ximbiot.com>
120696         * config/srclist.txt (glob_.h, glob.c): Add these files.
120698 2005-05-29  Derek Price  <derek@ximbiot.com>
120700         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
120701         * modules/glob: New file.
120702         * modules/getlogin_r: Add link to POSIX spec in description.
120704 2005-05-29  Derek Price  <derek@ximbiot.com>
120705             Paul Eggert  <eggert@cs.ucla.edu>
120707         * m4/glob.m4: New file.
120709 2005-05-29  Derek Price  <derek@ximbiot.com>
120710             Paul Eggert  <eggert@cs.ucla.edu>
120712         * lib/glob_.h, lib/glob.c: New files.
120714 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120716         * modules/fts (Files): Remove m4/inttypes-pri.m4.
120717         * modules/fts-lgpl (Depends-on): Remove gettext.
120719 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
120722         and don't require gt_INTTYPES_PRI.
120724 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120726         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
120728         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
120729         the configuration hassle isn't worth it.
120730         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
120731         (LONGEST_MODIFIER, PRIuMAX): Remove.
120733 2005-05-27  Bruno Haible  <bruno@clisp.org>
120735         * lib/getlogin_r.h: Remove second include of <stddef.h>.
120737 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
120739         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
120740         _POSIX_PTHREAD_SEMANTICS for Solaris.
120742 2005-05-25  Derek Price  <derek@ximbiot.com>
120744         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
120746 2005-05-25  Derek Price  <derek@ximbiot.com>
120747             Paul Eggert  <eggert@cs.ucla.edu>
120749         * modules/getlogin_r, m4/getlogin_r.m4: New files.
120750         * lib/getlogin_r.c, getlogin_r.h: New files.
120752 2005-05-25  Bruno Haible  <bruno@clisp.org>
120753             Derek Price  <derek@ximbiot.com>
120755         * lib/getlogin_r.h: Simplify API documentation.
120757 2005-05-23  Derek Price  <derek@ximbiot.com>
120759         * modules/minmax (Files): Add m4/minmax.m4.
120760         (configure.ac): Add gl_MINMAX.
120762 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
120764         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
120765         so that unistd-safer.h (GPL'ed code) need not be included.
120767 2005-05-22  Bruno Haible  <bruno@clisp.org>
120769         * m4/minmax.m4: New file.
120770         Based on a patch by Derek Price <derek@ximbiot.com>.
120772 2005-05-22  Bruno Haible  <bruno@clisp.org>
120774         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
120775         (INT64_MIN): Fix definition.
120776         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
120778         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
120779         NEED_SIGNED_INT_TYPES.
120781         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
120782         HAVE_SYSTEM_INTTYPES.
120784 2005-05-22  Bruno Haible  <bruno@clisp.org>
120786         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
120787         Also include <sys/param.h> if it defines MIN, MAX.
120788         Based on a patch by Derek Price <derek@ximbiot.com>.
120790 2005-05-21  Jim Meyering  <jim@meyering.net>
120792         * modules/fts (Files): Add m4/inttypes-pri.m4.
120793         (Depends-on): Add lstat and remove gettext.  Alphabetize.
120795 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120797         New fts module.
120798         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
120799         (setup_dir, free_dir): New functions.
120800         (enter_dir, leave_dir): Define trivial
120801         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
120802         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
120803         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
120804         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
120805         Move to fts-cycle.c.
120806         (fts_open): Use setup_dir.
120807         (fts_close): Use free_dir.
120808         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
120809         This adds a label and some gotos, but the alternatives were messier.
120810         Check for memory allocation failure when entering a dir.
120811         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
120812         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
120813         (FTS): New member fts_cycle, that is a union that contains the
120814         old active_dir_ht and cycle_state.  All uses changed to mention
120815         fts_cycle.ht and fts_cycle.state.
120816         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
120817         fts.c, with the following changes:
120818         (setup_dir, free_dir): New functions.
120819         (enter_dir): Now returns bool.  Return true if successful, false
120820         if memory exhausted.  All callers changed.
120821         Do not bother partly cleaning up on
120822         memory allocation failure; that is free_dir's job.
120823         However, free ad if hash_insert fails, to avoid memory leak.
120824         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
120825         fts->fts_options to see which union member to use.
120827 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120829         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
120830         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
120832 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120834         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
120836 2005-05-20  Jim Meyering  <jim@meyering.net>
120838         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
120839         Now a macro, to pacify GCC.
120841 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120843         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
120844         of -1.
120846 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120848         * lib/chown.c (rpl_chown): Return -1 on failure.
120850 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
120852         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
120853         Don't check for stddef.h.
120854         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
120855         don't use its results.
120856         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
120857         since we include them unconditionally.  Don't require
120858         AM_STDBOOL_H, since stdbool is a prerequisite.
120859         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
120860         since we assume C89 or better.
120861         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
120862         as we don't use their results.
120863         Don't check for fchdir, memmove, memset, strrchr, as we use
120864         them unconditionally.
120865         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
120866         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
120868 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
120870         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
120871         Include <stddef.h> unconditionally, since we assume C89 now.
120872         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
120873         * lib/fts.c: Include fts_.h first, to check interface.
120874         Do not include intprops.h; no longer needed.
120875         Include cycle-check.h and hash.h, since fts_.h no longer does.
120876         Remove unnecessary casts of closedir to void.
120877         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
120878         decide whether to decrement nlinks.
120879         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
120880         (FTS): Use struct hash_table * instead of Hash_table, so that
120881         we no longer need to include hash.h here.
120883 2005-05-18  Jim Meyering  <jim@meyering.net>
120885         * modules/dirfd (License): Change to LGPL.  Most of the code
120886         is already in the public domain.
120888 2005-05-18  Jim Meyering  <jim@meyering.net>
120890         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
120891         Reported by Yoann Vandoorselaere.
120893 2005-05-17  Jim Meyering  <jim@meyering.net>
120895         * m4/fts.m4: New file, from coreutils.
120897 2005-05-17  Jim Meyering  <jim@meyering.net>
120899         * lib/fts.c, lib/fts_.h: New files, from coreutils.
120901 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120903         Sync from coreutils.
120904         * m4/unlinkdir.m4: New file.
120906 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120908         Sync from coreutils.
120909         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
120910         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
120911         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
120912         White space changes only.
120913         * lib/makepath.c (make_path): Port to hosts where leading "//" is
120914         special.
120915         * lib/yesno.c: Include getline.h, not ctype.h.
120916         (yesno): Don't remove leading white space; POSIX doesn't allow it.
120917         Use getline to remove arbitrary restriction on response length.
120919 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
120921         * config/srclist-update: Spell out "Street" in FSF postal
120922         mail address; this is the style the FSF seems to prefer.
120924         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
120925         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
120926         this updates FSF postal mail address.
120928         Sync from coreutils.
120929         * modules/unlinkdir: New file.
120930         * modules/yesno (Depends-on): Add getline.
120931         * MODULES.html.sh (File system functions): Add unlinkdir.
120933 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120935         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
120936         lib/strsep.h:
120937         Change the initial comment to refer to GPL, not LGPL.
120938         gnulib-tool will change it to LGPL as needed.
120940         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
120941         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
120942         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
120943         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
120944         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
120945         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
120946         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
120947         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
120948         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
120949         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
120950         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
120951         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
120952         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
120953         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
120954         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
120955         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
120956         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
120957         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
120958         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
120959         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
120960         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
120961         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
120962         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
120963         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
120964         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
120965         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
120966         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
120967         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
120968         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
120969         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
120970         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
120971         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
120972         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
120973         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
120974         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
120975         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
120976         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
120977         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
120978         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
120979         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
120980         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
120981         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
120982         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
120983         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
120984         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
120985         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
120986         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
120987         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
120988         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
120989         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
120990         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120991         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
120992         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
120993         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
120994         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
120995         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
120996         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
120997         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
120998         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
120999         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121000         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121001         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121002         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121003         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121004         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121005         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121006         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121007         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121008         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121009         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121010         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121011         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121012         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121013         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121014         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121015         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121016         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121017         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121018         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121019         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121020         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121021         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121022         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121023         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121024         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121025         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121026         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121027         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121028         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121029         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121030         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121031         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121032         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121033         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121034         lib/yesno.c, lib/yesno.h:
121035         Update FSF postal mail address.
121037 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121039         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121040         tests/test-memmem.c, tests/test-stpncpy.c:
121041         Update FSF postal mail address.
121043 2005-05-13  Bruno Haible  <bruno@clisp.org>
121045         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121046         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121047         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121048         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121049         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121050         Add support for 64-bit integers in the MSVC compiler.
121052 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121054         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121056 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121058         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121060 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121062         * doc/getdate.texi (General date syntax): Don't say that date
121063         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121064         Problem reported by Nic Ferrier.
121066 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121068         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121069         specified in ai_socktype. Fix invalid ai_protocol
121070         check. ai_protocol is usually set to 0 or depending on
121071         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121072         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121073         ai_socktype / ai_protocol in the returned addrinfo structure.
121075 2005-05-10  Simon Josefsson  <jas@extundo.com>
121077         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121078         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121080 2005-05-10  Karl Berry  <karl@gnu.org>
121082         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121083         (from http://www.gnu.org/licenses).
121084         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121085         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121086         fdl.texi suffices.
121088 2005-05-10  Karl Berry  <karl@gnu.org>
121090         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121091         (COPYING.DOC): remove.
121093         * config/srclist-update: new FSF address.
121095 2005-05-10  Derek Price  <derek@ximbiot.com>
121097         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121098         possible.
121100 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121101             Bruno Haible  <bruno@clisp.org>
121103         * modules/inet_ntop: New file.
121104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121105         inet_ntop.
121107 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121108             Bruno Haible  <bruno@clisp.org>
121110         * m4/inet_ntop.m4: New file.
121112 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121113             Bruno Haible  <bruno@clisp.org>
121115         * lib/inet_ntop.h: New file.
121116         * lib/inet_ntop.c: New file, from glibc with modifications.
121118 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121120         * modules/time_r (License): Change to LGPL.
121121         * modules/extensions (License): Change to LGPL.  Actually,
121122         the license is more permissive than that, but currently gnulib-tool
121123         doesn't know how to handle more-permissive licenses.
121125         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121126         Problem reported by Dave Love.
121128 2005-05-08  Jim Meyering  <jim@meyering.net>
121130         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121131         blank.
121133 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121135         * modules/argmatch (Depends-on): Add stdbool.
121136         * modules/backupfile (Depends-on): Likewise.
121137         * modules/chdir-long (Depends-on): Likewise.
121138         * modules/closeout (Depends-on): Likewise.
121139         * modules/cycle-check (Depends-on): Likewise.
121140         * modules/dirname (Depends-on): Likewise.
121141         * modules/fnmatch (Depends-on): Likewise.
121142         * modules/fsusage (Depends-on): Likewise.
121143         * modules/fwriteerror (Depends-on): Likewise.
121144         * modules/getcwd (Depends-on): Likewise.
121145         * modules/getloadavg (Depends-on): Likewise.
121146         * modules/hard-locale (Depends-on): Likewise.
121147         * modules/makepath (Depends-on): Likewise.
121148         * modules/mountlist (Depends-on): Likewise.
121149         * modules/nanosleep (Depends-on): Likewise.
121150         * modules/posixtm (Depends-on): Likewise.
121151         * modules/quotearg (Depends-on): Likewise.
121152         * modules/readtokens (Depends-on): Likewise.
121153         * modules/readtokens0 (Depends-on): Likewise.
121154         * modules/readutmp (Depends-on): Likewise.
121155         * modules/save-cwd (Depends-on): Likewise.
121156         * modules/strftime (Depends-on): Likewise.
121157         * modules/userspec (Depends-on): Likewise.
121158         * modules/utimecmp (Depends-on): Likewise.
121159         * modules/xgetcwd (Depends-on): Likewise.
121160         * modules/xnanosleep (Depends-on): Likewise.
121161         * modules/xstrtod (Depends-on): Likewise.
121162         * modules/yesno (Depends-on): Likewise.
121164 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121166         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121167         needless checks.
121169 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121171         Merge from coreutils.  Among other things,
121172         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121173         * lib/fd-safer.c: New file.
121174         * lib/fcntl-safer.h, open-safer.c: Remove.
121175         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121176         * lib/dup-safer.c: Include unistd-safer.h first.
121177         Don't include errno.h.
121178         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121179         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121180         * lib/file-type.c: Rely on file-type.h change.
121181         * lib/getloadavg.c: Include unistd-safer.h.
121182         (getloadavg): Use safer open.
121183         * lib/getusershell.c: Include "stdio-safer.h".
121184         (getusershell): Use safer fopen.
121185         * lib/long-options.c (long_options): Use NULL rather than 0.
121186         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121187         'free'.
121188         * lib/modechange.c: Likewise.
121189         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121190         (MODE_DONE): New constant.
121191         (struct mode_change): Remove 'next' member.
121192         (make_node_op_equals): New function; like the old one of the
121193         same name, except it allocates an array.
121194         (mode_compile, mode_create_from_ref): Use it.
121195         (mode_compile): Allocate result as an array, not a linked list.
121196         Parse octal string ourself, so that we catch mistakes like "+0".
121197         (mode_adjust): Arg is an array, not a linked list.
121198         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121199         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121200         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121201         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121202         Remove.  This is now stat-macros.h's job.
121203         (talloc): Remove.  All callers replaced by xalloc, so that
121204         our invokers don't have to worry about reporting memory failures.
121205         (make_node_op_equals): Remove.
121206         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121207         New constants.
121208         (struct mode_change): Moved here from modechange.h.
121209         (mode_append_entry): Remove.
121210         (mode_compile): Remove MASKED_OPS arg, since it encouraged
121211         apps to have incorrect behavior.  Use simpler algorithm for head
121212         and tail.  Don't futz with umask; that's now the job of mode_adjust.
121213         Detect more invalid usages rather than having somewhat-random behavior.
121214         Don't insert an "a=" action, as that leads to incorrect behavior.
121215         (mode_compile, mode_create_from_ref): Return NULL on error instead
121216         of an enum, since now there's only one way to have an error.  All
121217         callers changed.
121218         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
121219         at the correct time.  Simplify calculation of "+u" and its ilk.
121220         Don't mishandle "+X".
121221         (mode_free): Remove "register" and localize decls.
121222         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121223         (struct mode_change): Move to modechange.c; callers don't
121224         need to see this stuff.
121225         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
121226         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
121227         (mode_change, mode_adjust): Reflect the new signatures noted above.
121228         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
121229         that might redefine system include files.
121230         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
121231         (my_usleep): Use NULL rather than (void *) 0.
121232         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
121233         Use siginterrupt to specify that system calls should be interrupted.
121234         (rpl_nanosleep): Move initialization of suspended closer to call of
121235         my_usleep.
121236         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
121237         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
121238         (desirable_utmp_entry): New function.
121239         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
121240         using x2nrealloc, to simplify logic.
121241         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
121242         size calculation.  Do not assume utmp file is a regular file.
121243         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
121244         (READ_UTMP_CHECK_PIDS): New constant.
121245         * lib/save-cwd.c: Include unistd-safer.h.
121246         (save_cwd): Use fd_safer.
121247         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
121248         [!_LIBC] Include "stat-macros.h" instead.
121249         * lib/unistd-safer.h (fd_safer): New decl.
121251 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121253         * modules/getloadavg (Depends-on): Add unistd-safer.
121254         * modules/getusershell (Depends-on): Add stdio-safer.
121255         * modules/lstat (Depends-on): Remove xalloc.
121256         * modules/mkstemp (Depends-on): Add stat-macros.
121257         * modules/modechange (Depends-on): Remove xstrtol.
121258         Add stat-macros, xalloc.
121259         * modules/save-cwd (Depends-on): Add unistd-safer.
121260         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121261         * modules/unistd-safer (Files): Add lib/fd-safer.c
121262         (Makefile.am): Remove lib_SOURCES.
121264         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121265         Remove fcntl-safer; unistd-safer supersedes it.
121267 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121269         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121270         AC_HEADER_STAT.
121271         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121272         (gl_PREREQ_CHOWN): Remove.
121273         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121274         it.  Don't require AC_HEADER_STAT.
121275         (gl_PREREQ_LSTAT): Remove.
121276         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121277         Don't require AC_HEADER_STAT.
121278         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121279         (gl_PREREQ_RMDIR): Remove.
121280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121281         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121282         the stat-macros module a prerequisite.
121283         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121284         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121285         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121286         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121287         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121288         variable names.
121289         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121290         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121291         variable prefixes.
121292         * m4/fcntl-safer.m4: Remove.
121293         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121294         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121295         Invoke gl_PREREQ_FD_SAFER.
121296         (gl_PREREQ_FD_SAFER): New macro.
121297         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121298         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121299         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121300         Remove duplicate call to AC_LIBOBJ(readutmp).
121301         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121303         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121304         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121306 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121308         * MODULES.html.sh (Misc): Add byteswap.
121310 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121312         * modules/getcwd (Depends-on): Add extensions.
121313         * modules/openat (Depends-on): Likewise.
121315 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121317         * modules/byteswap: New file.
121319 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121321         * m4/byteswap.m4: New file.
121323 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121325         * lib/byteswap_.h: New file.
121327 2005-04-25  Karl Berry  <karl@gnu.org>
121329         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121331 2005-04-25  Albert Chin  <china@thewrittenword.com>
121333         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121334         Toolkit C bug.
121336 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121338         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121339         (func_ln_if_changed): Remove forcibly for no error message
121340         in case file does not exist.
121342 2005-04-19  Simon Josefsson  <jas@extundo.com>
121344         * gnulib-tool (Options): Make --symlink mean --symbolic.
121346 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121348         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121350 2005-04-16  Simon Josefsson  <jas@extundo.com>
121352         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121354 2005-04-15  Simon Josefsson  <jas@extundo.com>
121356         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121358 2005-04-15  Simon Josefsson  <jas@extundo.com>
121360         * gnulib-tool: Rename --symlink to --symbolic.
121362 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121364         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121365         symbolic links to files instead of copying/moving.  Add --aux-dir,
121366         specifying directory relative --dir where auxiliary build tools
121367         are placed.
121369 2005-04-14  Bruno Haible  <bruno@clisp.org>
121371         * modules/allocsa (License): Change to LGPL.
121372         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121374 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121376         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121377         that "UTC +1 second" continues to work.  Problem reported
121378         by Dmitry V. Levin.
121379         (relunit_snumber): New rule.
121380         (relunit): Use it.
121382 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
121384         * lib/getdate.y (universal_time_zone_table): New constant.
121385         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
121386         universal_time_zone_table.
121387         (lookup_zone): Prefer universal_time_zone_table to
121388         local_time_zone_table, so that "GMT" time stamps are allowed in
121389         London during the summer.  Problem reported by Ian Abbott.
121391 2005-04-12  Jim Meyering  <jim@meyering.net>
121393         * lib/human.c (humblock): Set *options even when returning due to
121394         xstrtoumax conversion failure.  Thanks to a used-uninitialized
121395         warning from gcc-4.
121397 2005-04-09  Jim Meyering  <jim@meyering.net>
121399         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
121400         -Wuninitialized: initialize tm0.tm_year.
121402 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
121404         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
121405         count, since there's no maximum.  All uses changed.
121406         Add member dsts_seen.
121407         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
121408         not being INT_MAX.
121409         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
121410         Use pc_rels_seen to decide whether a date is absolute.
121412         * lib/getdate.y (number): Don't overwrite year.
121413         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
121414         check.
121416 2005-04-02  Simon Josefsson  <jas@extundo.com>
121418         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
121419         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
121421 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
121423         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
121424         where no absolute path name can be longer than PATH_MAX.
121426 2005-03-27  Jim Meyering  <jim@meyering.net>
121428         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
121430 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
121432         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
121433         "one's complement" -> "ones' complement" in comment, as per Knuth.
121434         "value of type" -> "type or expression" in comment.
121435         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
121437 2005-03-26  Jim Meyering  <jim@meyering.net>
121439         Comment nits.
121440         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
121441         Correct typos: s/or/of/.
121443 2005-03-26  Jim Meyering  <jim@meyering.net>
121445         * modules/check-include-files: Move to ../ and rename to...
121446         * check-module: ...this.
121448 2005-03-25  Jim Meyering  <jim@meyering.net>
121450         * modules/xvasprintf (Files): Add xalloc.h.
121452 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
121454         * modules/gettext (Files): config/config.rpath ->
121455         build-aux/config.rpath
121456         * modules/iconv (Files): Likewise.
121457         Problem reported by Oskar Liljeblad.
121459 2005-03-23  Jim Meyering  <jim@meyering.net>
121461         * modules/check-include-files: New script to check for
121462         missing dependencies, multiple includes, etc.
121464         * modules/c-strtold (Depends-on): Add xalloc.
121465         * modules/c-strtod (Depends-on): Add xalloc.
121466         * modules/hash (Depends-on): Add xalloc.
121467         (Files): Remove lib/xalloc.h.
121469         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
121470         * modules/userspec (Files): Add lib/inttostr.h.
121472 2005-03-23  Jim Meyering  <jim@meyering.net>
121474         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
121476 2005-03-22  Jim Meyering  <jim@meyering.net>
121478         * modules/stat-macros: New module.
121479         * modules/canonicalize, modules/euidaccess, modules/file-type,
121480         * modules/filemode, modules/lchown, modules/makepath,
121481         * modules/rmdir, modules/stat: Depend on new stat-macros module
121482         rather than listing lib/stat-macros.h manually.
121483         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
121485 2005-03-22  Jim Meyering  <jim@meyering.net>
121487         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
121489 2005-03-22  Bruno Haible  <bruno@clisp.org>
121491         * config/srclist.txt: Replace target directory 'config' with
121492         'build-aux'.
121493         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
121494         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
121495         ../build-aux/.
121497 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
121499         * modules/chdir-long (Depends-on): Add mempcpy.
121501         * modules/acl, modules/backupfile, modules/c-strtod,
121502         modules/c-strtold, modules/canon-host, modules/canonicalize,
121503         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
121504         modules/exclude, modules/exitfail, modules/file-type,
121505         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
121506         modules/getdate, modules/getline, modules/getpagesize,
121507         modules/getpass, modules/getugroups, modules/group-member,
121508         modules/hard-locale, modules/hash, modules/human, modules/idcache,
121509         modules/inttostr, modules/long-options, modules/makepath,
121510         modules/md5, modules/memcasecmp, modules/memcoll,
121511         modules/modechange, modules/mountlist, modules/path-concat,
121512         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
121513         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
121514         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
121515         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
121516         modules/strftime, modules/strndup, modules/strverscmp,
121517         modules/timespec, modules/unlocked-io, modules/userspec,
121518         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
121519         modules/yesno:
121520         Remove lib_SOURCES line from Makefile.am section, as this is now
121521         done automatically by the corresponding Autoconf macro.
121523 2005-03-21  Jim Meyering  <jim@meyering.net>
121525         Changes imported from coreutils.
121527         * lib/cycle-check.c: Don't include xalloc.h.
121529         * lib/path-concat.c: Don't include assert.h.
121530         (path_concat): Remove assertion that would have triggered
121531         for ABASE starting with more than one slash.
121532         Reported by Andreas Schwab.
121534         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
121535         properly when ABASE is an absolute file name.
121536         Correct the description of this function.
121537         Include <assert.h>.
121538         Add an assertion and a test driver.
121539         This fixes a bug introduced on 2004-07-02.
121540         Andreas Schwab reported the resulting failure of cp --parents:
121541         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
121543 2005-03-21  Jim Meyering  <jim@meyering.net>
121545         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
121546         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
121548 2005-03-21  Jim Meyering  <jim@meyering.net>
121549         and  Paul Eggert  <eggert@cs.ucla.edu>
121551         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
121552         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
121553         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
121554         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
121555         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
121556         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
121557         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
121558         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
121559         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
121560         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
121561         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
121562         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
121563         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
121564         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
121565         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
121566         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
121567         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
121568         for these modules.
121570 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
121572         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
121573         (which shouldn't happen), generate nothing instead of returning 0
121574         immediately, so that nstrftime (NULL, ...) doesn't return 0.
121576 2005-03-16  Bruno Haible  <bruno@clisp.org>
121578         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
121579         HAVE_LONGLONG_64BIT.
121581 2005-03-16  Bruno Haible  <bruno@clisp.org>
121583         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
121584         HAVE_LONGLONG_64BIT.
121586 2005-03-16  Bruno Haible  <bruno@clisp.org>
121588         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
121589         HAVE_LONGLONG_64BIT.
121591 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121593         * lib/strftime.c (my_strftime): Prepend space to format so that we can
121594         reliably distinguish strftime failure from empty output on POSIX
121595         hosts.
121597 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121599         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
121600         (iconv_string): Don't guess a size-zero buffer, as that might cause
121601         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
121602         result would be 'too large', where 'too large' is (heuristically)
121603         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
121604         overflow concerns.  This will prevent some unwanted malloc failures
121605         when the inputs are very large.
121607 2005-03-15  Karl Berry  <karl@gnu.org>
121609         * config/srclist.txt (config.rpath): from gettext.
121610         * config/config.rpath: update.
121612 2005-03-15  Bruno Haible  <bruno@clisp.org>
121614         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
121615         to 'negate'.
121617         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
121618         variable.
121620         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
121621         results.
121623 2005-03-14  Simon Josefsson  <jas@extundo.com>
121625         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
121626         <fx@gnu.org>.
121628 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
121630         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
121631         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
121632         intprops.h.
121633         * lib/strtol.c: Likewise.
121635 2005-03-14  Jim Meyering  <jim@meyering.net>
121637         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
121638         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
121639         to be nonzero so that we (and caller) can detect the difference
121640         between a valid zero-length expansion and an error return, even
121641         when the underlying strftime fails before writing anything into
121642         that location.
121644 2005-03-14  Bruno Haible  <bruno@clisp.org>
121646         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
121647         Update from GNU gettext 0.14.3.
121649 2005-03-10  Jim Meyering  <jim@meyering.net>
121651         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
121653 2005-03-10  Jim Meyering  <jim@meyering.net>
121655         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
121656         so that this module works on systems without fchdir.
121658 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
121660         Factor int-properties macros into a single file, except for
121661         glibc-related files.
121662         * lib/intprops.h: New file.
121663         * lib/getloadavg.c: Include it instead of limits.h.
121664         (INT_STRLEN_BOUND): Remove.
121665         * lib/human.c: Include intprops.h.
121666         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
121667         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
121668         302/1000.
121669         * lib/inttostr.h: Include intprops.h instead of limits.h.
121670         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
121671         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
121672         for consistency with intprops.h.
121673         (time_t_is_integer, twos_complement_arithmetic): Use them.
121674         * lib/sig2str.h: Include <signal.h>, intprops.h.
121675         (INT_STRLEN_BOUND): Remove.
121676         * lib/strftime.c (TYPE_SIGNED): Remove.
121677         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
121678         * lib/strtol.c: Adjust comments to match intprops.h.
121679         * lib/userspec.c: Include intprops.h.
121680         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
121681         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
121682         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
121683         instead of rolling our own expressions.
121684         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
121686         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
121687         instead of int.
121688         (my_strftime): Do not mishandle years close to INT_MAX, by doing
121689         the right thing even if adding 1900 would overflow.  Similarly
121690         for tm_mon + 1 and tm_yday + 1.
121691         Make %Y always equivalent to %C%y, and similarly for %G and %g.
121692         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
121693         (DO_SIGNED_NUMBER): New macro.
121694         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
121696 2005-03-07  Bruno Haible  <bruno@clisp.org>
121698         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
121700 2005-03-07  Bruno Haible  <bruno@clisp.org>
121702         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
121704 2005-03-04  Derek R. Price  <derek@ximbiot.com>
121706         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
121707         (func_import): Only replace files via --import when they have actually
121708         changed.
121710 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121712         * m4/mmap-anon.m4: New file.
121713         * m4/pagealign_alloc.m4: New file.
121715 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121716             Bruno Haible  <bruno@clisp.org>
121718         * modules/pagealign_alloc: New file.
121719         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
121721 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121722             Bruno Haible  <bruno@clisp.org>
121724         * lib/pagealign_alloc.h: New file.
121725         * lib/pagealign_alloc.c: New file.
121727 2005-03-03  Bruno Haible  <bruno@clisp.org>
121729         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
121730         Use an all-permissive copyright notice, recommended by RMS.
121732 2005-03-02  Bruno Haible  <bruno@clisp.org>
121734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
121735         of AIX, the replacement has to be done only after <string.h> is
121736         included, therefore not in config.h. stpncpy.h does the replacement,
121737         and stpncpy.c uses it.
121739 2005-03-02  Bruno Haible  <bruno@clisp.org>
121741         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
121742         stpncpy.c uses it.
121744 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121746         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
121747         The workaround isn't strictly needed for POSIX conformance, and
121748         it's too much of a pain to configure and maintain.  We'll ask
121749         people to fix their kernels instead.
121750         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
121751         (NANOSLEEP_BUG_WORKAROUND): Remove.
121752         (xnanosleep): Remove the workaround.
121754 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121756         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
121757         Reported by Derek Price.
121758         (Include): Add "timespec.h".
121760         * modules/xnanosleep (Depends-on): Remove gethrxtime.
121762 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121764         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
121765         to detect nanosleep bug.
121767 2005-03-01  Bruno Haible  <bruno@clisp.org>
121769         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
121771 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
121773         * modules/gethrxtime: New file.
121774         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
121775         (Depends-on): Add gethrxtime.
121776         (configure.ac): Add gl_XNANOSLEEP.
121777         (Makefile.am): Remove lib_SOURCES line.
121779 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121781         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
121782         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
121784 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121786         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
121787         * lib/timespec.h (gettime): Return void, since it always
121788         succeeds now.  All uses changed.
121789         * lib/gettime.c (gettime): Likewise.
121790         [HAVE_NANOTIME]: Prefer nanotime.
121791         Assume gettimeofday succeeds, as POSIX requires.
121792         Assime time () succeeds, since other code already does.
121793         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
121794         (timespec_subtract): Remove.
121795         (NANOSLEEP_BUG_WORKAROUND): New constant.
121796         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
121797         things considerably.  Use it only on GNU/Linux hosts, since the
121798         workaround shouldn't be needed elsewhere.
121800 2005-02-24  Bruno Haible  <bruno@clisp.org>
121802         * modules/gettext (Files): Add m4/glibc2.m4.
121804 2005-02-24  Bruno Haible  <bruno@clisp.org>
121806         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
121807         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
121808         * m4/progtest.m4:
121809         Update from GNU gettext 0.14.2.
121810         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
121812 2005-02-24  Bruno Haible  <bruno@clisp.org>
121814         * lib/localcharset.c: Update from GNU gettext 0.14.2.
121815         * lib/config.charset: Update from GNU gettext 0.14.2.
121817 2005-02-24  Bruno Haible  <bruno@clisp.org>
121819         * lib/gettext.h: Update from GNU gettext 0.14.2.
121821 2005-02-23  Simon Josefsson  <jas@extundo.com>
121823         * m4/iconvme.m4: New file.
121825 2005-02-23  Jim Meyering  <jim@meyering.net>
121827         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
121828         change.
121829         Thanks to Bruno Haible for catching it.
121831 2005-02-22  Simon Josefsson  <jas@extundo.com>
121833         * modules/iconvme: New file.
121835         * MODULES.html.sh: Add iconvme.
121837 2005-02-22  Simon Josefsson  <jas@extundo.com>
121839         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
121841 2005-02-22  Simon Josefsson  <jas@extundo.com>
121843         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
121845 2005-02-22  Jim Meyering  <jim@meyering.net>
121847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
121848         s/ifndef/ifdef/.
121850 2005-02-20  Neil Conway  <neilc@samurai.com>
121852         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
121853         returned by OSX/Darwin if the specified buffer is not large
121854         enough for the hostname.
121856 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121858         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
121859         pass it to _help, otherwise the latter coredumps trying to
121860         dereference state.root_argp.
121862 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121864         * modules/chdir-long (Depends-on): Add memrchr.
121865         * modules/memrchr (Files): Add lib/memrchr.h.
121866         (Include): "memrchr.h".
121868 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121870         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
121872 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121874         * lib/memrchr.h: New file.
121875         * lib/chdir-long.c: Include it.
121876         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
121877         Don't bother including stddef.h.
121879 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
121881         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
121882         inclusion.
121883         Include <sys/types.h>, for dev_t.
121884         (ME_DUMMY, ME_REMOTE): Move from here....
121885         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
121886         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
121887         Dmitry V. Levin.
121888         Include mountlist.h first, to test the interface.
121890 2005-01-29  Bruno Haible  <bruno@clisp.org>
121892         * lib/progname.c (program_name): Initialize.
121893         Needed when linking statically on MacOS X.
121895 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
121897         Sync from coreutils.
121898         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
121899         (Depends-on): Add c-strtod.
121900         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
121902 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
121904         Sync from coreutils.
121905         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
121907         Remove files that are specific to coreutils.
121908         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
121910 2005-01-28  Bruno Haible  <bruno@clisp.org>
121912         * modules/javacomp: New file.
121913         * MODULES.html.sh (Java): Add javacomp.
121915 2005-01-28  Bruno Haible  <bruno@clisp.org>
121917         * m4/javacomp.m4: New file, from GNU gettext.
121919 2005-01-28  Bruno Haible  <bruno@clisp.org>
121921         * lib/javacomp.sh.in: New file, from GNU gettext.
121922         * lib/javacomp.h: New file, from GNU gettext.
121923         * lib/javacomp.c: New file, from GNU gettext.
121925 2005-01-26  Simon Josefsson  <jas@extundo.com>
121927         * lib/gai_strerror.c: Use GPL in header.
121929 2005-01-26  Bruno Haible  <bruno@clisp.org>
121931         * modules/javaexec: New file.
121932         * MODULES.html.sh (Java): Add javaexec.
121934 2005-01-26  Bruno Haible  <bruno@clisp.org>
121936         * m4/javaexec.m4: New file, from GNU gettext.
121938 2005-01-26  Bruno Haible  <bruno@clisp.org>
121940         * lib/javaexec.sh.in: New file, from GNU gettext.
121941         * lib/javaexec.h: New file, from GNU gettext.
121942         * lib/javaexec.c: New file, from GNU gettext.
121944 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121946         * modules/lchown (Depends-on): Remove lchown.h
121948 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121950         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
121951         must be defined if the header file was not found, in order
121952         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
121954 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121956         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
121957         initializers for struct pentry_state.
121958         (__argp_error): Check return value of __asprintf
121959         (__argp_failure): Translate error message
121961         * lib/argp-parse.c: Removed braces around the expansion of N_()
121963 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
121965         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
121966         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
121967         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
121968         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
121969         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
121970         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
121971         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
121972         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
121973         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
121974         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
121975         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
121976         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
121977         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
121978         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
121979         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
121980         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
121981         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
121982         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
121983         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
121984         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
121985         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
121986         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
121987         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
121988         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
121989         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
121990         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
121991         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
121992         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
121993         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
121994         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
121995         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
121996         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
121997         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
121998         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
121999         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122000         Use an all-permissive copyright notice, recommended by RMS.
122002 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122004         * modules/chdir-long (Depends-on): Remove mempcpy.
122006 2005-01-21  Jim Meyering  <jim@meyering.net>
122008         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122009         same value as for Solaris 9.
122011         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122012         component length.  This included changing the parameter to be
122013         of type `char *' rather than `char const *'.
122014         * lib/chdir-long.h (chdir_long): Update prototype.
122016         * lib/openat.c (fdopendir, fstatat): New functions.
122017         * lib/openat.h: Include headers required for use of DIR and struct
122018         stat.
122019         [AT_SYMLINK_NOFOLLOW]: Define.
122020         (fdopendir, fstatat): Add prototypes.
122022 2005-01-21  Bruno Haible  <bruno@clisp.org>
122024         * modules/classpath: New file.
122025         * MODULES.html.sh (Java): Add classpath.
122027 2005-01-21  Bruno Haible  <bruno@clisp.org>
122029         * lib/classpath.h: New file, from GNU gettext.
122030         * lib/classpath.c: New file, from GNU gettext.
122032 2005-01-20  Simon Josefsson  <jas@extundo.com>
122034         * modules/version-etc-fsf: New file.
122036 2005-01-20  Simon Josefsson  <jas@extundo.com>
122038         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122039         * lib/version-etc.c: Remove version_etc_copyright.
122040         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122041         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122043 2005-01-20  Simon Josefsson  <jas@extundo.com>
122045         * lib/base64.h (isbase64): Add.
122047         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122048         using a unsigned prototype, don't inline.
122049         (base64_decode): Use it.
122051 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122053         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122054         it.
122056 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122058         * lib/save-cwd.c (save_cwd): Remove code to support the case
122059         where fchdir is missing or flaky.
122061 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122063         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122065 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122067         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122068         AC_LIBSOURCES now does this.
122069         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122070         with new ullong_max module.
122072 2005-01-19  Bruno Haible  <bruno@clisp.org>
122074         * modules/sh-quote: New file.
122075         * MODULES.html.sh (Executing programs): Add sh-quote.
122077 2005-01-19  Bruno Haible  <bruno@clisp.org>
122079         * lib/sh-quote.h: New file, from GNU gettext.
122080         * lib/sh-quote.c: New file, from GNU gettext.
122082 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122084         Merge from coreutils.
122085         * m4/ullong_max.m4: New file.
122086         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122087         (gl_MACROS): Assume localeconv exists.
122089 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122091         Merge changes from coreutils, as described below in several
122092         changelogs dated today.
122094         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122095         (O_DIRECTORY): Remove; not needed here, since "." must be
122096         a directory.  All uses removed.
122097         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122098         universal on Suns, and we also need to test for IRIX.
122099         Revamp code to use 'if' rather than '#if'.
122100         Avoid unnecessary comparison of cwd->desc to 0.
122102         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122103         for known valid error numbers rather than observed invalid ones.
122105 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122107         * modules/ullong_max: New file.
122109         * modules/chdir-long, modules/openat: New files.
122110         * modules/save-cwd (Depends-on): Depend on chdir-long.
122111         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122113 2005-01-18  Jim Meyering  <jim@meyering.net>
122115         Merge from coreutils.
122116         * m4/chdir-long.m4, m4/openat.m4: New files.
122117         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122118         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122119         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122120         is sane and DOES follow symlinks.  Besides, testing 20 different
122121         systems found no broken chown implementations.
122122         Prompted by a change in rsync's copy of this macro.
122123         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122125         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122127         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122128         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122129         NULL-means-set-to-current-time semantics.
122130         Remove temporary file immediately, rather than waiting
122131         for configure's at-exit trap code to do it.
122133 2005-01-18  Jim Meyering  <jim@meyering.net>
122135         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122137         * lib/utimens.c (futimens): Account for the fact that futimes
122138         can also fail with errno == ENOSYS or errno == ENOENT.
122139         Patch from Dmitry V. Levin.
122141         Change the name of the robust chdir function from chdir to chdir_long.
122142         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122143         (restore_cwd): Use chdir_long, not chdir.
122144         * lib/chdir-long.c: Renamed from chdir.c.
122145         * lib/chdir-long.h: Renamed from chdir.h.
122146         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122147         Hurd.
122149 2005-01-18  Bruno Haible  <bruno@clisp.org>
122151         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122152         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122153         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122154         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122155         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122156         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122157         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122158         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122159         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122160         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122161         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122162         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122163         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122164         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122165         Use an all-permissive copyright notice, recommended by RMS.
122167 2005-01-18  Bob Proulx  <bob@proulx.com>
122169         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122170         simplify offsetof() macro construct to avoid compile failure with
122171         native HP-UX 11.0 ANSI C compiler.
122173 2005-01-17  Bruno Haible  <bruno@clisp.org>
122175         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122176         redundant because stpncpy.m4 takes care of it.
122178 2005-01-17  Bruno Haible  <bruno@clisp.org>
122180         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122182 2005-01-17  Bruno Haible  <bruno@clisp.org>
122184         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122185         used.
122187 2005-01-17  Bruno Haible  <bruno@clisp.org>
122189         * lib/fwriteerror.h (fwriteerror): Change specification to include
122190         fclose.
122191         * lib/fwriteerror.c: Include <stdbool.h>.
122192         (fwriteerror): At the end, close the file stream. Record whether
122193         stdout was already closed.
122195 2005-01-17  Bruno Haible  <bruno@clisp.org>
122197         * lib/execute.c (environ): Declare if needed.
122198         * lib/pipe.c (environ): Likewise.
122199         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122201 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122203         * modules/argp: Depend on vsnprintf
122205 2005-01-10  Jim Meyering  <jim@meyering.net>
122207         * modules/closeout (Depends-on): Add atexit.
122209 2005-01-06  Bruno Haible  <bruno@clisp.org>
122211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
122213 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
122215         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
122216         definitions to be after all include files, to avoid collisions.
122217         Problem reported by Bob Proulx.
122219 2005-01-04  Jim Meyering  <jim@meyering.net>
122221         Changes imported from coreutils.
122222         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
122223         as the mkstemp template, use a temporary directory and an
122224         8.3-friendly template to avoid trouble on systems like DJGPP.
122225         Reported by Juan M. Guerrero via Stepan Kasal.
122226         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
122227         close. Remove the temporary directory right away, rather than waiting
122228         for configure's at-exit trap code to do it.
122229         Suggestion from Stepan Kasal.
122231 2005-01-01  Simon Josefsson  <jas@extundo.com>
122233         * gnulib-tool: Print #include directives when --import'ing.
122235 2004-12-28  Simon Josefsson  <jas@extundo.com>
122237         * tests/test-base64.c: Include required header files.  Remove
122238         unused variables.
122240 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122242         * modules/error (Depends-on): Remove gettext.
122244 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122246         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
122247         not needed.  This removes a dependency on the gettext module.
122248         [defined _LIBC]: Do not include <libintl.h>; not needed.
122250 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122252         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122253         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122255 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122257         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122258         HAVE_DECL_STRTOLD.
122260 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122262         * modules/getdate (Depends-on): Remove alloca-opt.
122264 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122266         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122268 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122270         * lib/argp-parse.c: Include <stddef.h>.
122271         (alignof, alignto): New macros.
122272         (parser_init): Don't assume that void * is aligned sufficiently
122273         for struct option.
122275         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122276         need to extend the stack.
122277         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122278         large.
122280 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122282         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122284 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122286         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122287         (2004-10-24) change.  Apparently this was a false alarm.
122289         * modules/getdate: Depend on alloca-opt, not alloca.
122291 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122293         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122294         Remove now-obsolete comment about AIX.
122295         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122296         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122297         (YYMAXDEPTH): New macro.
122299 2004-12-18  Simon Josefsson  <jas@extundo.com>
122301         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122303 2004-12-18  Bruno Haible  <bruno@clisp.org>
122305         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122307 2004-12-18  Bruno Haible  <bruno@clisp.org>
122309         * lib/fatal-signal.c (fatal_signals): Make non-const.
122310         (init_fatal_signals): New function.
122311         (uninstall_handlers, install_handlers): Ignore signals that were set to
122312         SIG_IGN.
122313         (at_fatal_signal): Call init_fatal_signals.
122314         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122315         SIG_IGN.
122316         Reported by Paul Eggert.
122318 2004-12-18  Bruno Haible  <bruno@clisp.org>
122320         * doc/alloca.texi: New file.
122321         * doc/alloca-opt.texi: New file.
122323 2004-12-17  Jim Meyering  <jim@meyering.net>
122325         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122326         Otherwise, install-sh could exit with improper exit status when
122327         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122329 2004-12-16  Simon Josefsson  <jas@extundo.com>
122331         * tests/test-base64.c: Add license.
122333 2004-12-15  Stepan Kasal  <address@hidden>
122335         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122337 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122339         * modules/getcwd (Files): Add m4/d-ino.m4.
122340         Suggested by Mark D. Baushke.
122342 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122344         * lib/getdate.y (textint): New member "negative".
122345         (time_zone_hhmm): New function.
122346         Expect 14 shift-reduce conflicts, not 13.
122347         (o_colon_minutes): New rule.
122348         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122349         (yylex): Set the "negative" member of signed numbers.
122351 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122353         * doc/getdate.texi (Time of day items, Time zone items):
122354         Describe new formats +00:00, UTC+00:00.
122356 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122358         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122359         spurious "-l"s.  Problem reported by Stepan Kasal.
122361 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122363         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122364         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122366 2004-12-04  Simon Josefsson  <jas@extundo.com>
122368         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122369         Vandoorselaere <yoann@prelude-ids.org>.
122371 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122373         Changes imported from coreutils.
122374         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122375         exist.
122376         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122378 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122380         Changes imported from coreutils.
122381         * lib/hard-locale.c: Assume <locale.h> exists.
122382         Include "strdup.h".
122383         (GLIBC_VERSION): New macro.
122384         (hard_locale): Assume setlocale exists.
122385         Rewrite to avoid #ifdef.
122386         Use strdup rather than malloc + strcpy.
122387         * lib/human.c: Assume <locale.h> exists.
122388         (human_readable): Assume localeconv exists.
122390 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122392         * modules/hard-locale (Depends-on): Add strdup.
122394 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
122396         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
122397         convert T2, not T.  (Imported from libc.)
122399 2004-11-30  Simon Josefsson  <jas@extundo.com>
122401         * modules/restrict (License): Change to LGPL.
122403 2004-11-30  Simon Josefsson  <jas@extundo.com>
122405         * m4/restrict.m4: Add copyright and copying conditions.
122407 2004-11-30  Simon Josefsson  <jas@extundo.com>
122409         * m4/base64.m4: New file.
122411 2004-11-30  Simon Josefsson  <jas@extundo.com>
122413         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
122414         base64.
122416         * tests/test-base64.c: New file.
122418         * modules/base64: New file.
122420 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122422         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
122423         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
122425         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
122427 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122429         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
122430         (__getcwd.c): Don't restore errno; glibc doesn't.
122431         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
122432         first, falling back to our code only if its results look suspicious.
122433         Ensure that the resulting buffer is only as large as necessary.
122435         * lib/readutmp.c: Include readutmp.h first.
122436         Include <errno.h>, since readutmp.h no longer does that.
122437         * lib/readutmp.h: Don't include <errno.h>,
122438         <sys/param.h>, <time.h>; not needed to establish interface.
122439         (errno): Remove decl.
122440         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
122441         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
122442         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
122444 2004-11-28  Simon Josefsson  <jas@extundo.com>
122446         * lib/base64.h, base64.c: New file.
122448 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
122450         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
122452 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
122454         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
122455         (Depends-on): Remove pathmax, same.  Add mempcpy.
122456         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
122457         (Makefile.am): Append getcwd.h to lib_SOURCES.
122458         (Include): Add getcwd.h.
122459         (Maintainer): Change from Jim Meyering to "all, glibc",
122460         since getdate now uses intended-for-glibc code.
122461         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
122462         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
122464 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122466         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
122467         HP's ANSI C compiler.
122468         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
122469         Declaring int functions causes warnings on some modern systems and
122470         shouldn't be needed to compile on ancient ones.
122471         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
122472         defined.
122474         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
122475         with the following changes.
122476         (__set_errno): Parenthesize properly.
122477         Include <stdbool.h>.
122478         (MIN, MAX, MATCHING_INO): New macros.
122479         (__getcwd): Define with prototype, not K&R form.
122480         Use heuristics to allocate default buffer on stack if possible.
122481         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
122482         behavior, and to avoid the PATH_MAX limit when computing
122483         ../../../../...
122484         Use MATCHING_INO to compare inode number to file.
122485         Check for arithmetic overflow in size calculations.
122486         Fix bug in reallocation of dot array that caused getcwd to fail
122487         on directories nested deeper than 75.
122488         Be more careful about saving errno on error.
122489         Do not use realloc; use only free+malloc, as this is a bit
122490         more flexible and avoids a needless copy operation.
122491         Do not inspect st_dev and st_ino for symbolic links; POSIX
122492         doesn't specify the latter.
122493         Check for closedir errors.
122494         Avoid needless casts.
122495         Use "#ifdef weak_alias" around weak_alias, to be like other
122496         glibc code.
122497         The following changes to getcwd.c have effect only when used in
122498         gnulib; they have no effect inside glibc proper.
122499         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
122500         as alloca isn't used.
122501         (alloca, __alloca): Likewise.
122502         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
122503         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122504         unconditionally, as gnulib assumes C89 or better.
122505         Do not include <sys/param.h>.
122506         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
122507         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
122508         better.
122509         (NULL) [!defined NULL]: Remove; we assume C89 or better.
122510         Include <dirent.h> in a way that is compatible with modern Autoconf.
122511         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
122512         New macros, if not already defined.
122513         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
122514         Use "_LIBC", not "defined _LIBC", for consistency.
122515         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
122516         a mempcpy module.
122517         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
122518         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
122519         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
122520         credit only to Jim Meyering and adjust the copyright dates.
122521         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
122522         <stdlib.h>, <unistd.h>, "pathmax.h".
122523         Instead, include "xgetcwd.h" (first) and "getcwd.h".
122524         (INITIAL_BUFFER_SIZE): Remove.
122525         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
122527 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
122530         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
122531         Use the _ONCE methods, for efficiency.
122532         Check for fcntl.h.  In test program, include <errno.h>
122533         and <fcntl.h> if available.  Remove old K&R cruft from
122534         test program.  Check for common errors in GNU/Linux,
122535         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
122536         don't do AC_LIBOBJ, as that's getcwd.m4's job.
122537         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
122538         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
122539         name accordingly.
122540         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
122541         accommodate new getcwd.c.
122542         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
122543         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
122544         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
122545         that's all we need now.
122547 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122549         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
122550         argp-parse.c depends on getopt internals, that means we should
122551         always use our getopt, to be on the safe side.
122552         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
122553         order not to spoil the result of an eventual previous invocation
122554         of gl_GETOPT_SUBSTITUTE.
122556 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122558         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
122559         redefinition warnings. To avoid them, include the defines
122560         in `#if !defined __need_getopt ... #endif'. The only place
122561         where __getopt_argv_const is used is in definitions
122562         of getopt_long and getopt_long_only below, which are as well
122563         protected by `#ifndef __need_getopt'.
122564         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
122565         __need_getopt after including <stdio.h> and <unistd.h> These
122566         headers might have defined it.
122568 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122570         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
122572 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122574         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
122575         (futimens): New function, which uses futimes if available.
122576         (futimens, utimens): Support timespec==NULL, with same semantics
122577         as utime and utimens.
122578         * lib/utimens.h (futimens): New decl.
122580 2004-11-23  Jim Meyering  <jim@meyering.net>
122582         * lib/getopt_.h: Remove trailing blanks.
122584 2004-11-23  Jim Meyering  <jim@meyering.net>
122586         * lib/__fpending.c: Add comment.
122588 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
122590         * modules/canonicalize (Depends-on): Add xreadlink.
122591         Problem reported by James Youngman.
122593 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
122595         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
122596         New macros.
122597         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
122598         optopt): Use them instead of invoking ## directly; otherwise, the
122599         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
122601 2004-11-19  Bruno Haible  <bruno@clisp.org>
122603         * lib/strtok_r.c: Move comments from here...
122604         * lib/strtok_r.h: ... to here.
122606 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122608         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
122609         implementations that mishandle size_t overflow.
122611 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122613         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
122614         might fail.  Problem reported by Yoann Vandoorselaere.
122615         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
122616         implementations that mishandle size_t overflow.
122618 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122620         * modules/canon-host (Depends-on): Add strdup.
122622 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122624         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
122626 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122628         * lib/canon-host.c: Include "strdup.h".
122629         (canon_host): Use getaddrinfo if available, so that IPv6 works.
122630         Use strdup instead of malloc/strcpy to duplicate strings.
122632         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
122633         (human_space_before_unit): New constant.
122634         * lib/human.c (human_readable): Support it.
122636         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
122637         (xgetcwd): Set errno correctly when failing.
122638         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
122639         the failure is actually due to a PATH_MAX problem.
122641         Further getopt changes to make it more likely that glibc will
122642         buy the changes back.
122643         * lib/getopt.c (POSIXLY_CORRECT): New constant.
122644         (getopt): Use it, so to preserve glibc semantic
122645         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
122646         when compiling for libc.
122647         * lib/getopt_.h (__getopt_argv_const): Bring it back.
122648         (getopt_long, getopt_long_only): Use it.
122650         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122651         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
122652         (getopt): Argv is now char * const *, as per standard.
122653         (_getopt_internal_r, _getopt_internal): Argv is now char **,
122654         not char *__getopt_argv_const *.
122655         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122656         _getopt_long_only_r): Likewise.
122657         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
122658         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122659         _getopt_long_r, _getopt_long_only_r): Likewise.
122660         * lib/getopt_.h (__getopt_argv_const): Remove.
122661         (getopt): Argv is now char * const *, as per standard.
122663         * lib/getdate.y (tORDINAL): New token.
122664         (day, relunit): Allow it for relative times.
122665         (relative_time_table): Use tORDINAL for ordinals.
122667 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122669         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
122670         Document that "second" isn't allowed as an ordinal number.
122672 2004-11-16  Jim Meyering  <jim@meyering.net>
122674         * modules/closeout (Depends-on): Add fpending.
122676 2004-11-15  Jim Meyering  <jim@meyering.net>
122678         * lib/closeout.c: Include "__fpending.h" once again.
122679         Include <stdbool.h>.
122680         (close_stdout): Don't fail just because stdout was closed initially,
122681         since some programs don't write to stdout in the normal course of
122682         operation (other than --version and --help), and we don't want this
122683         function to make e.g. `touch file >&-' fail.
122684         But do fail if it was closed and someone has tried to write to it.
122685         E.g., `printf foo >&-' must fail.
122687 2004-11-13  Jim Meyering  <jim@meyering.net>
122689         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
122691 2004-11-12  Simon Josefsson  <jas@extundo.com>
122693         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
122694         small doc fix is still pending.
122696 2004-11-11  Simon Josefsson  <jas@extundo.com>
122698         * modules/strtok_r: New file.
122700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122701         strtok_r.
122703 2004-11-11  Simon Josefsson  <jas@extundo.com>
122705         * m4/strtok_r.m4: New file.
122707         * m4/getopt.m4: Replace opterr.
122709 2004-11-11  Simon Josefsson  <jas@extundo.com>
122711         * lib/strtok_r.h, strtok_r.c: New file.
122713 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122715         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
122716         of replacing opterr, getopt, etc.  This should handle the
122717         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
122719 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122721         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
122722         we can stop lying to compilers about the constness of argv when we
122723         are compiled outside glibc.
122724         (getopt, getopt_long, getopt_long_only): Use it.
122725         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122726         _getopt_internal, getopt): Likewise.
122727         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122728         _getopt_long_only_r): Likewise.
122729         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122730         _getopt_long_r, _getopt_long_only_r): Likewise.
122732         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
122733         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
122734         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
122735         the other external symbols.
122736         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
122737         declaration, since the above renaming now works around collisions.
122739 2004-11-11  Jim Meyering  <jim@meyering.net>
122741         * lib/linebreak.c: Remove trailing blanks.
122742         * lib/alloca_.h: Likewise.
122743         * lib/acosl.c: Likewise.
122744         * lib/euidaccess.c: Likewise.
122745         * lib/allocsa.h: Likewise.
122747 2004-11-10  Simon Josefsson  <jas@extundo.com>
122749         * m4/getaddrinfo.m4: New file.
122751 2004-11-10  Simon Josefsson  <jas@extundo.com>
122753         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
122755 2004-11-10  Simon Josefsson  <jas@extundo.com>
122757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122758         getaddrinfo.
122760         * modules/getaddrinfo: New file.
122762 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122764         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
122766 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122768         * lib/mktime.c (SHR): New macro, which is a portable
122769         substitute for >> that should work even on Crays.
122770         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
122771         Problem reported by Mark D. Baushke in
122772         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
122773         * lib/getdate.y (SHR): Likewise.
122774         (tm_diff): Use it.
122775         * lib/strftime.c (SHR): Likewise.
122776         (tm_diff): Use it.
122777         * lib/quotearg.c (struct quoting_options): Use unsigned int for
122778         quote_these_too, so that right shifts are well defined.  All uses
122779         changed.
122781 2004-11-10  Jim Meyering  <jim@meyering.net>
122783         Ensure that no close failure goes unreported.
122784         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
122785         return early when it seems there's nothing to flush.
122786         Don't include __fpending.h.
122788 2004-11-10  Jim Meyering  <jim@meyering.net>
122790         * modules/closeout (Depends-on): Remove fpending.
122792 2004-11-10  Jim Meyering  <jim@meyering.net>
122794         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
122796 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122798         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
122799         gl_FUNC_STRFTIME.
122800         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
122801         and AC_REQUIRE when possible, to avoid duplicate checks.
122802         Check for <wchar.h>.
122804 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122806         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
122808 2004-11-09  Bruno Haible  <bruno@clisp.org>
122810         * m4/sockpfaf.m4: New file.
122812 2004-11-05  Bruno Haible  <bruno@clisp.org>
122814         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
122815         Reported by Mark D. Baushke <mdb@cvshome.org>.
122817 2004-11-04  Bruno Haible  <bruno@clisp.org>
122819         2004-09-11  Bruno Haible  <bruno@clisp.org>
122820                 * allocsa.valgrind: New file.
122821         2004-02-06  Bruno Haible  <bruno@clisp.org>
122822                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
122823                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
122824                 Reported by Christopher Seip <chris.seip@hp.com>.
122826 2004-11-04  Bruno Haible  <bruno@clisp.org>
122828         * modules/allocsa (Files): Add lib/allocsa.valgrind.
122829         (Makefile.am): Distribute it.
122831 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
122833         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
122834         with errno == ERANGE if the buffer is too small.
122835         Problem reported by Mark D. Baushke.
122837 2004-11-03  Albert Chin  <china@thewrittenword.com>
122838             Paul Eggert  <eggert@cs.ucla.edu>
122840         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
122841         equivalent, substitute $ac_type for equivalent type rather than
122842         blindly using uint32_t *always* which won't work if uint32_t is not
122843         available.  Define _UINT32_T to work around typedef of uint32_t if
122844         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
122845         2.5.1.
122847 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122849         * m4/jm-macros.m4: Sync from coreutils.
122850         (gl_MACROS): Check for mbrlen, for pathchk.
122851         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
122853 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122855         * lib/xreadlink.c (MAXSIZE): New macro.
122856         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
122857         size does not exceed MAXSIZE.  Avoid cast.
122858         As suggested by Mark D. Baushke in
122859         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
122860         if readlink fails with buffer size just under MAXSIZE, try again
122861         with MAXSIZE.
122863 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122865         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
122867 2004-11-02  Derek R. Price  <derek@ximbiot.com>
122868         and  Paul Eggert  <eggert@cs.ucla.edu>
122870         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
122871         (get_date): Overparenthesize to avoid GCC warning.
122873 2004-11-02  Bruno Haible  <bruno@clisp.org>
122875         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
122876         returns void.
122878 2004-11-02  Bruno Haible  <bruno@clisp.org>
122880         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
122881         function returns void.
122883 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
122885         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
122886         fflush_unlocked, flockfile, funlockfile, funlockfile,
122887         fputs_unlocked, putc_unlocked.
122889 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
122891         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
122892         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
122893         already declared.
122895 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122897         * modules/getdate (Files): Add doc/getdate.texi.
122898         (Depends-on): Add setenv, xalloc.
122900 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122902         * lib/getdate.y: Add support for TZ="foo" within a date string.
122903         Fix some bugs near time_t boundaries.  Reject dates with
122904         out-of-range components, e.g., "Sept 31".
122905         Include <stdlib.h>, "setenv.h", "xalloc.h".
122906         (ISDIGIT_LOCALE): Remove; unused.
122907         Note that the TZ and time functions used here are not reentrant.
122908         (mktime_ok, get_tz): New functions.
122909         (TZBUFSIZE): New constant.
122910         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
122911         This requires that we sometimes generate our own TZ="XXX..." setting.
122913 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
122915         * doc/getdate.texi: New file, from coreutils with modifications for
122916         the new TZ parsing.
122918 2004-10-27  Derek R. Price  <derek@ximbiot.com>
122920         * lib/mktime.c (not_equal_tm): Remove redundant check.
122922 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
122924         * modules/regex (lib_SOURCES): Add regex.c.
122925         Reported by James Youngman in
122926         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
122928 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
122930         * lib/getdate.y: Use Bison 1.875 features, and some minor
122931         code cleanups.  This change does not affect semantics.
122932         Don't include <stdlib.h>; no longer needed.
122933         Don't include unlocked-io.h; only the "#if TEST" code uses
122934         stdio, and performance isn't crucial there.
122935         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
122936         Bison 1.875 features as described below.
122937         All uses of "PC." replaced by "pc->".
122938         (YYSTYPE): Add a forward declaration.
122939         (yylex, yyerror): Use full prototypes in forward decls.
122940         Use "%pure-parser" rather than obsolescent "%pure_parser".
122941         Use %parse-param and %lex-param instead of obsolescent
122942         YYPARSE_PARAM and YYLEX_PARAM.
122943         (meridian_table, month_and_day_table, time_units_table,
122944         relative_time_table, time_zone_table, military_table,
122945         lookup_zone, lookup_word, get_date):
122946         Use NULL instead of 0 where appropriate.
122947         (to_hour): Avoid abort (), to avoid a dependency on
122948         stdlib.h.
122949         (yyerror, yylex): Now accepts parser_control * arg.
122950         (main) [TEST]: Use '\0' rather than 0 for char.
122952 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
122954         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
122956 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
122958         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
122959         It's now the caller's responsibility to handle the case where
122960         !HAVE_GETPAGESIZE && !defined getpagesize.
122962         * lib/mktime.c (leapyear): Arg is long int, not int.
122964 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
122966         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
122968 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
122970         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
122971         missing.  Problem reported by James Youngman.
122973 2004-10-16  Simon Josefsson  <jas@extundo.com>
122975         * gnulib-tool: Fix comments.  Fix parse problem.
122976         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
122978 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
122980         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
122981         implementation of getopt_long.  Problem reported by Alexander Taler in:
122982         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
122984 2004-10-15  Bruno Haible  <bruno@clisp.org>
122986         * gnulib-tool: Untabify. Initialize supplied_libname.
122987         (func_usage): More homogenous output.
122988         (func_modules_transitive_closure, func_modules_to_filelist,
122989         func_emit_lib_Makefile_am): New functions.
122990         (func_import): New function, extracted from big case statement. Use
122991         func_get_license, func_modules_transitive_closure,
122992         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
122993         opt_lgpl. Don't use test -a, as it's not portable.
122994         (func_create_testdir): Use func_modules_transitive_closure,
122995         func_modules_to_filelist, func_emit_lib_Makefile_am.
122997 2004-10-15  Bruno Haible  <bruno@clisp.org>
122999         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123001 2004-10-15  Bruno Haible  <bruno@clisp.org>
123003         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123004         the portions belonging to each module.
123005         Suggested by Derek Robert Price <derek@ximbiot.com>.
123007 2004-10-12  Simon Josefsson  <jas@extundo.com>
123009         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123010         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123011         to real functions.
123013 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123015         * modules/vsnprintf: New file.
123017 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123019         * m4/vsnprintf.m4: New file.
123021 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123023         * lib/vsnprintf.h: New file.
123024         * lib/vsnprintf.c: New file.
123026 2004-10-11  Bruno Haible  <bruno@clisp.org>
123028         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123029         vsnprintf.
123031 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123033         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123035 2004-10-07  Bruno Haible  <bruno@clisp.org>
123037         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123038         fits into the provided buffer.
123040 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123042         * lib/diacrit.c, diacrit.h: Add GPL notice.
123044         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123045         notice.
123046         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123047         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123048         This avoids a potential constant-folding bug.
123050 2004-10-05  Bruno Haible  <bruno@clisp.org>
123052         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123053         for the declaration of strsep.
123055 2004-10-05  Bruno Haible  <bruno@clisp.org>
123057         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123059 2004-10-04  Simon Josefsson  <jas@extundo.com>
123061         * modules/memmem: New file.
123062         * tests/test-memmem.c: New file.
123063         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123065 2004-10-04  Simon Josefsson  <jas@extundo.com>
123067         * m4/memmem.m4: New file.
123069 2004-10-04  Simon Josefsson  <jas@extundo.com>
123071         * lib/memmem.h: New file.
123072         * lib/memmem.c: New file, taken from glibc.
123074 2004-10-04  Simon Josefsson  <jas@extundo.com>
123076         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123077         '#ifdef USE_UNLOCKED_IO'.
123079 2004-10-04  Simon Josefsson  <jas@extundo.com>
123081         * config/srclist.txt: Add memmem from glibc.
123083 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123085         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123087         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123088         modules/exclude, modules/getdate, modules/getline,
123089         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123090         modules/getusershell, modules/linebuffer, modules/md5,
123091         modules/mountlist, modules/posixtm, modules/readtokens,
123092         modules/readutmp, modules/regex, modules/sha1,
123093         modules/version-etc, modules/yesno:
123094         Remove dependency on unlocked-io.
123096 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123098         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123100         * m4/unlocked-io.m4: Add copyright notice.
123101         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123103 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123105         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123106         * lib/xmalloc.c (xmemdup): Likewise.
123107         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123108         XFREE): Remove these long-obsolescent macros.
123109         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123110         * lib/xstrdup.c: Remove.
123112         * lib/regex.c (re_comp): Cast gettext return value to char *,
123113         Problem reported by Martin Neitzel via Mark D. Baushke.
123115 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123117         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123118         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123119         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123120         regex.c, sha1.c, version-etc.c, yesno.c:
123121         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123122         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123123         the includer's responsibility.
123125         Sync from coreutils.
123127         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123128         points to the start of a string, as the C Standard says the
123129         resulting behavior is undefined.
123131         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123132         simple -> simple_backups, numbered_existing ->
123133         numbered_existing_backups, numbered -> numbered_backups
123134         to avoid shadowing problems.  All uses changed.
123135         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123136         * lib/backupfile.c (check_extension, numbered_backup):
123137         Rename locals to avoid shadowing 'basename'.
123138         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123139         once.
123141         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123142         * lib/.cvsignore: Add getopt.h.
123144 2004-10-04  Bruno Haible  <bruno@clisp.org>
123146         * modules/README: New file.
123147         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123148         not a module.
123150 2004-10-02  Jim Meyering  <jim@meyering.net>
123152         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123154 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123156         * modules/strsep: New file.
123158 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123160         * m4/strsep.m4: New file.
123162 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123164         * lib/strsep.h: New file.
123165         * lib/strsep.c: New file.
123167 2004-10-01  Simon Josefsson  <jas@extundo.com>
123169         * lib/snprintf.c (snprintf): Handle size==0.
123171 2004-10-01  Simon Josefsson  <jas@extundo.com>
123172             Bruno Haible  <bruno@clisp.org>
123174         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123175         (snprintf): Declare 'args'.
123177 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123179         * lib/snprintf.c: Remove comments as to why each header is needed.
123181 2004-10-01  Bruno Haible  <bruno@clisp.org>
123183         * MODULES.html.sh: Add strsep.
123185 2004-09-30  Simon Josefsson  <jas@extundo.com>
123187         * modules/snprintf: New file.
123189 2004-09-30  Simon Josefsson  <jas@extundo.com>
123191         * m4/snprintf.m4: New file.
123193 2004-09-30  Simon Josefsson  <jas@extundo.com>
123195         * lib/snprintf.h, lib/snprintf.c: New files.
123197 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123199         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123200         (hol_entry_help): Never translate an empty string.
123201         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123202         * lib/argp.h (OPTION_NO_TRANS): New option.
123204 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123206         * modules/argp (Maintainer): Replace Simon Josefsson
123207         by Sergey Poznyakoff.
123209 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123211         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
123212         changes merged back into glibc.
123214 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123216         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
123218 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
123220         * lib/xvasprintf.c: Include xalloc.h.
123221         (xvasprintf): Use xalloc_die, not xmalloc_die.
123223 2004-09-29  Bruno Haible  <bruno@clisp.org>
123225         * modules/alloca-opt: New file, derived from modules/alloca.
123226         * modules/allocsa: Depend on alloca-opt instead of alloca.
123227         * modules/setenv: Likewise.
123228         * modules/vasnprintf: Likewise.
123229         * MODULES.html.sh: Add alloca-opt.
123231 2004-09-28  Simon Josefsson  <jas@extundo.com>
123233         * gnulib-tool: New parameter --lgpl, to asseert that modules are
123234         LGPL, and to replace license template from GPL to LGPL.
123236 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123238         * modules/dummy: Change license to LGPL.
123240 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123242         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
123244 2004-09-24  Simon Josefsson  <jas@extundo.com>
123246         * modules/minmax (License): Change from GPL to LGPL.
123248 2004-09-23  Simon Josefsson  <jas@extundo.com>
123250         * gnulib-tool (--import): Typo.
123252 2004-09-23  Simon Josefsson  <jas@extundo.com>
123254         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123256 2004-09-22  Bruno Haible  <bruno@clisp.org>
123258         * modules/*: Add 'License' field.
123259         * gnulib-tool: Accept --extract-license option.
123260         (func_get_license): New function.
123262 2004-09-21  Bruno Haible  <bruno@clisp.org>
123264         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123265         Reported by Simon Josefsson.
123267 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123269         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123270         gl_AC_TYPE_LONG_LONG.
123272 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123274         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123276 2004-09-18  Simon Josefsson  <jas@extundo.com>
123277         and  Paul Eggert  <eggert@cs.ucla.edu>
123279         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123280         calls with autoreconf.  Define GL_LIB.
123282 2004-09-14  Karl Berry  <karl@gnu.org>
123284         * config/srclist.txt: unsync setenv.c, sigh.
123286 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123288         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123289         Problem reported by Bruno Haible in:
123290         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123292 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123294         * config/srclist.txt: Comment out argp-pvh.c.
123296 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123298         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123299         in case some system header has #define'd it.  Problem reported by
123300         Soeren D. Schulze in
123301         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123303 2004-09-09  Karl Berry  <karl@gnu.org>
123305         * regex.[ch]: delete from the root.  These were supposed to be
123306                 synced with emacs cvs, but this has not happened for about
123307                 a year, and anyway nothing else uses emacs regex.[ch].
123308                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123309                 lib/regex[.ch] is untouched.
123311 2004-09-09  Bruno Haible  <bruno@clisp.org>
123313         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123315 2004-09-09  Bruno Haible  <bruno@clisp.org>
123317         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123318         modifications.
123319         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123321 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123323         * modules/xvasprintf: New file.
123324         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123326 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123328         * lib/xvasprintf.h: New file.
123329         * lib/xvasprintf.c: New file.
123330         * lib/xasprintf.c: New file.
123332 2004-09-08  Bruno Haible  <bruno@clisp.org>
123334         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123336 2004-09-08  Bruno Haible  <bruno@clisp.org>
123338         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123339         length is > INT_MAX.
123340         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123341         more.
123343 2004-09-08  Bruno Haible  <bruno@clisp.org>
123345         * lib/stdint_.h: New file, taken from GNU clisp.
123347 2004-09-08  Bruno Haible  <bruno@clisp.org>
123348             Oskar Liljeblad  <oskar@osk.mine.nu>
123350         * modules/stdint: New file.
123351         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123353 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123355         Import from coreutils.
123356         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123357         strings on unbounded length.  alloca's performance benefits aren't
123358         that important here.
123359         (V_STRDUP): Remove.
123360         (parse_with_separator): New function, with most of the internals
123361         of the old parse_user_spec.  Allow user to omit both user and group,
123362         for compatibility with FreeBSD.
123363         Clone only the user name, not the entire spec.
123364         Do not set *uid, *gid unless entirely successful.
123365         Avoid memory leak in some failing cases.
123366         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123367         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123368         (parse_user_spec): Rewrite to use parse_with_separator.
123370 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123372         * modules/userspec: Don't depend on alloca.
123374 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123376         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123378 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123380         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
123381         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
123382         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
123384 2004-08-16  Simon Josefsson  <jas@extundo.com>
123386         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
123387         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
123388         Add --dry-run for --import.
123389         Let user provided command line parameters override configure.ac
123390         settings.
123392 2004-08-12  Simon Josefsson  <jas@extundo.com>
123394         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
123395         as discussed with Paul Eggert in threads rooted at
123396         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
123397         and
123398         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
123399         Before, the test was empty, and relied on ELIDE_CODE in source
123400         code.)
123401         (gl_PREREQ_GETOPT): New macro.
123402         (gl_GETOPT): Use them.
123404 2004-08-12  Simon Josefsson  <jas@extundo.com>
123406         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
123407         * lib/getopt_.h: Renamed from getopt.h.
123409 2004-08-12  Simon Josefsson  <jas@extundo.com>
123411         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
123412         Change default library name from libfoo to libgnu.
123413         Now, if you have a configure.ac that says:
123414                 gl_SOURCE_BASE(gl)
123415                 gl_M4_BASE(gl/m4)
123416                 gl_MODULES(error getopt etcetera)
123417                 gl_INIT
123418         you can import all you need by running:
123419                 ../gnulib/gnulib-tool --import
123421         * modules/getopt (Files): Rename getopt.h to getopt_.h.
123422         (Makefile.am): Rewrite, use logic from argz.
123423         (Include): Use <getopt.h> instead of "getopt.h".
123425 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123427         * modules/argp (Files): Add m4/unlocked-io.m4.
123428         (Depends-on): Add extensions.
123430 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123432         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
123433         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
123434         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
123435         Check for program_invocation_name, program_invocation_short_name,
123436         flockfile, funlockfile, features.h, _getopt_long_only_r.
123438 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123440         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
123441         its complicated substitute.
123442         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
123443         and program_invocation_name.
123444         (__argp_basename) [!_LIBC]: Remove; the only use was
123445         replaced by its body.
123446         (__argp_short_program_name): Change condition from
123447         !defined __argp_short_program_name to
123448         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
123449         to match argp-namefrob.h.
123450         (__argp_failure): Don't assume strerror_r returns char *.
123451         * lib/argp-parse.c (N_): Define unconditionally.
123452         (argp_default_options): Fill out initializers with 0 to avoid
123453         gcc warnings.
123455 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123457         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
123458         getopt1.c.
123460 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123462         Merge from coreutils.
123464         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
123466         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
123467         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
123469 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123471         Merge from coreutils.
123473         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
123474         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
123475         for Reliant Unix 5.43.
123477         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
123478         (union fooround): Use uintmax_t, not long int.
123479         The rest is a merge from libc:
123480         [defined _LIBC]: Include <shlib-compat.h>.
123481         (_obstack) [defined _LIBC]: Remove after 2.3.4.
123483         * lib/settime.c (settime): Recode to avoid warning with
123484         Sun Forte C 6U2.
123486         * lib/strverscmp.c: Convert to UTF-8.
123488 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123490         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
123491         m4/uintmax_t.m4.
123493 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123495         * modules/xalloc-die: New file.
123496         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
123498         * modules/md5 (Files): Add m4/uint32_t.m4.
123499         * modules/sha1: Renamed from modules/sha.
123500         (Files):
123501         Rename lib/sha.h to lib/sha1.h.
123502         Rename lib/sha.c to lib/sha1.c.
123503         Rename m4/sha.m4 to m4/sha1.m4.
123504         (lib_SOURCES): Likewise.
123505         (configure.ac): Rename gl_SHA to gl_SHA1.
123506         (Include): sha.h -> sha1.h.
123508 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123510         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
123511         * m4/sha1.m4: Renamed from sha.m4.
123512         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
123514 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123516         * lib/obstack.h (obstack_empty_p):
123517         Don't assume that chunk->contents is suitably aligned.
123518         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
123519         Likewise. Problem reported by Benno in
123520         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
123522         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
123523         readable.  This could be improved further but it'd take some work.
123525 2004-08-08  Simon Josefsson  <jas@extundo.com>
123527         * modules/xgethostname (Depends-on): Remove exit and error (not
123528         used).
123530         * modules/getpass-gnu: Add getpass.h.
123531         (Depends-on): Add stdbool.
123532         * modules/getpass: Add getpass.h.
123534 2004-08-08  Simon Josefsson  <jas@extundo.com>
123536         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
123537         Check getpass declaration.
123539 2004-08-08  Simon Josefsson  <jas@extundo.com>
123541         * lib/xgethostname.c: Don't include error.h (not used).
123543         * lib/getpass.h: Add.
123544         * lib/getpass.c: Include getpass.h first.
123546 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
123548         * lib/xalloc-die.c: New file.
123549         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
123550         All uses removed.
123551         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
123552         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
123553         xalloc-die.c.
123554         (_, N_, xalloc_die): Move to xalloc-die.c.
123555         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
123556         so that we needn't mess with xalloc_msg_memory_exhausted.
123558         * lib/sha1.h: Renamed from sha.h.
123559         (SHA1_H): Renamed from _SHA_H.
123560         (sha1_ctx): Renamed from sha_ctx.
123561         (sha1_init_ctx): Renamed from sha_init_ctx.
123562         (sha1_process_block): Renamed from sha_process_block.
123563         (sha1_process_bytes): Renamed from sha_process_bytes.
123564         (sha1_finish_ctx): Renamed from sha_finish_ctx.
123565         (sha1_read_ctx): Renamed from sha_read_ctx.
123566         (sha1_stream): Renamed from sha_stream.
123567         (sha1_buffer): Renamed from sha_buffer.
123568         * lib/sha1.c: Likewise; renamed from sha.c.
123569         Do not include <sys/types.h>.
123570         Include <stddef.h> rather than <stdlib.h>.
123572 2004-08-08  Bruno Haible  <bruno@clisp.org>
123574         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
123575         FILESYSTEM_PREFIX_LEN.
123576         * lib/progreloc.c: Likewise.
123577         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
123579 2004-08-06  Simon Josefsson  <jas@extundo.com>
123581         * modules/progname (Depends-on): Don't depend on stdbool.
123583 2004-08-06  Simon Josefsson  <jas@extundo.com>
123585         * modules/getsubopt: New file.
123586         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123587         getsubopt.
123589 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123591         More merge from coreutils.
123593         * m4/utimens.m4, m4/utimecmp.m4: New files.
123594         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
123595         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
123596         prereq.m4, sha.m4: Import changes from coreutils.
123598 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123600         More merge from coreutils.
123601         * modules/raise, modules/readtokens0, modules/utimens:
123602         * modules/utimecmp, module/xnanosleep: New files.
123603         * modules/strftime: Add lib/strftime.h.
123604         Change include from <time.h> to "strftime.h".
123605         * modules/yesno: Add lib/yesno.h.
123606         * modules/backupfile: Remove lib/addext.c.
123607         * modules/euidaccess: Add stat-macros.h.
123608         * modules/canonicalize, modules/euidaccess,
123609         modules/filemode, modules/lchown, modules/makepath,
123610         modules/rmdir, modules/stat: Likewise.
123612 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123614         Merge from tar.
123615         * lib/argp-help.c (make_hol, hol_append): Don't assume that
123616         SIZE_MAX is a valid preprocessor constant.
123617         (__argp_basename): Change from "#ifndef _LIBC"
123618         to "#ifndef __argp_short_program_name", so that
123619         we don't compile these functions for tar.
123621         More merges from coreutils.
123622         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
123623         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
123624         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
123625         * lib/addext.c: Remove; no longer needed.
123626         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
123627         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
123628         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
123629         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
123630         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
123631         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
123632         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
123633         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
123634         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
123635         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
123636         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
123637         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
123638         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
123639         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
123640         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
123641         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
123642         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
123643         Import changes from coreutils.
123645 2004-08-05  Simon Josefsson  <jas@extundo.com>
123647         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
123649 2004-08-05  Simon Josefsson  <jas@extundo.com>
123651         * m4/getsubopt.m4: New file.
123653 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123655         Merge from coreutils.
123657         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
123658         * m4/getcwd-path-max.m4: New files.
123660         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
123661         FILESYSTEM_PREFIX_LEN ->
123662         FILE_SYSTEM_PREFIX_LEN.
123663         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
123664         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
123665         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
123666         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
123668         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
123669         prerequisite modules now handle the DOS stuff.
123670         Don't check for unistd.h.
123672 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123674         Merge from coreutils.
123676         * lib/.gdb-history: Remove; this doesn't belong here.
123678         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
123679         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
123680         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
123681         * lib/getcwd.c: New files.
123683         * lib/dirname.h: Include <stdbool.h>.
123684         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
123685         for consistency with POSIX terminology.  All uses changed.
123686         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
123687         (strip_trailing_slashes): Use bool for booleans.
123688         * lib/stripslash.c (strip_trailing_slashes): Likewise.
123690         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
123691         sometimes returns a positive errno value even when it succeeds.
123692         (print_errno_message) [!LIBC]: Fall back on strerror if
123693         __strerror_r fails.
123695         * lib/path-concat.c (mempcpy): Don't define if a system header defines
123696         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
123697         (longest_relative_suffix): New function.
123698         (path_concat): Use it.  Assume first argument is not NULL.
123699         Port to DOS.  Omit redundant separators.
123700         Report an error instead of returning NULL.
123701         Use mempcpy instead of memcpy.
123702         (xpath_concat): Remove: not declared or used.
123704         * lib/same.h: Include <stdbool.h>
123705         (same_name): Return bool, not int.
123706         * lib/same.c (same_name): Likewise.
123707         (errno): Don't declare; we assume C89 or better now.
123709         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
123710         if not already defined.
123712         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
123713         * lib/dup-safer.c (errno): Likewise.
123715 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123717         Merge from coreutils.
123718         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
123719         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
123720         * modules/path-concat: Don't depend on strdup.
123722 2004-08-03  Simon Josefsson  <jas@extundo.com>
123724         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
123725         * lib/progname.h: Don't include stdbool.h.
123727 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123729         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
123730         * MODULES.html.sh (func_all_modules): Remove fatal.
123732 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123734         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
123736 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123738         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
123739         working.
123741 2004-08-02  Simon Josefsson  <jas@extundo.com>
123743         * lib/getsubopt.h: New file, with comments from Bruno Haible.
123744         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
123745         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
123747 2004-08-01  Simon Josefsson  <jas@extundo.com>
123749         * lib/xgetdomainname.c: Include stdlib.h, for free().
123751 2004-07-19  Bruno Haible  <bruno@clisp.org>
123753         * MODULES.html.sh (func_all_modules): Add dummy.
123755 2004-07-16  Simon Josefsson  <jas@extundo.com>
123757         * modules/dummy: New file.
123759 2004-07-16  Simon Josefsson  <jas@extundo.com>
123761         * lib/dummy.c: New file.
123763 2004-07-16  Bruno Haible  <bruno@clisp.org>
123765         * lib/backupfile.h: Add extern "C" for C++.
123766         * lib/closeout.h: Likewise.
123767         * lib/copy-file.h: Likewise.
123768         * lib/findprog.h: Likewise.
123769         * lib/full-write.h: Likewise.
123770         * lib/pathname.h: Likewise.
123771         * lib/progname.h: Likewise.
123772         * lib/stpcpy.h: Likewise.
123773         * lib/stpncpy.h: Likewise.
123774         * lib/strcase.h: Likewise.
123775         * lib/strstr.h: Likewise.
123776         * lib/xalloc.h: Likewise.
123778         * lib/mbswidth.h: Add extern "C" for C++.
123779         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
123781 2004-07-13  Robert Millan  <robertmh@gnu.org>
123783         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
123785 2004-07-09  Simon Josefsson  <jas@extundo.com>
123787         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
123788         failed without this.)
123790 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123792         * modules/chown (Files): Add lib/fchown-stub.c, since
123793         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
123795 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123797         * lib/fchown-stub.c: New file.
123799 2004-06-24  Jim Meyering  <jim@meyering.net>
123801         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
123803 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123805         * modules/argz: Omit "#include".
123807         * MODULES.html.sh (func_all_modules): Add calloc, to match
123808         2004-06-01 addition of calloc module.
123810 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123812         * m4/argz.m4: New file, which is autoupdated from libtool.
123814 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123816         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
123817         libtool.
123819 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123821         * config/srclist-update: Don't insist on "USA." before the
123822         close-comment, as libtool omits the period and puts the */ on a
123823         separate line.
123824         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
123825         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
123827 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
123829         * modules/argz: New file.
123830         * MODULES.html.sh (func_all_modules): Add argz.
123832 2004-06-12  Jim Meyering  <jim@meyering.net>
123833         and  Paul Eggert  <eggert@cs.ucla.edu>
123835         * modules/hash (Files): Add lib/xalloc.h.
123836         * modules/pipe (Depends-on): Add wait-process.
123837         * modules/stat (Depends-on): Add xalloc.
123838         * modules/userspec (Files): Add lib/userspec.h.
123839         * modules/xstrto
123841         Upgrade from gettext-0.13.
123842         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
123843         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
123844         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
123846 2004-06-10  Jim Meyering  <jim@meyering.net>
123848         * lib/calloc.c: New file.
123850 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
123852         * lib/getdate.y (yylex): Allow space between sign and number.
123853         Problem reported by Dan Jacobson.
123855 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
123857         Merge from coreutils CVS.
123859         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
123860         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
123861         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
123862         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
123863         xstrtol.m4: Fix copyright date and/or serial number.
123865         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
123866         See if we need an fchown replacement.
123867         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
123868         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
123869         and use the replacement function if we detect either defect.
123871         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
123872         gl_UTIMECMP.
123874 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
123875         and  Jim Meyering  <jim@meyering.net>
123877         Merge from coreutils CVS.
123879         * lib/stat-macros.h: New file, with contents from file-type.h
123880         and coreutils' system.h.
123881         * lib/file-type.c: Include "stat-macros.h".
123882         * lib/file-type.h (file_type): Move all macro definitions to new file,
123883         stat-macros.h.
123885         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
123886         Wrap old code with this conditional.
123887         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
123888         function that does not dereference symlinks.
123889         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
123891         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
123892         dependency problems.
123893         (xreadlink): Accept new arg SIZE, for efficiency.
123894         All decls and uses changed.
123895         * lib/xreadlink.h: Include <stddef.h>, for size_t.
123897         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
123898         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
123900         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
123901         sysexits.h.
123903 2004-06-01  Jim Meyering  <jim@meyering.net>
123905         * m4/calloc.m4: New file.
123907 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
123909         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
123910         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
123911         Also, fix a typo in a diagnostic.
123913 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
123915         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
123916         or AC_FUNC_REALLOC.
123918 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
123920         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
123921         macros to be defined.
123922         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
123923         the allocator returns NULL because the requested size is zero.
123925 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
123927         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
123928         var.  Add comment explaining why libc still defines it.  This
123929         merges the following patch from glibc:
123930         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
123932 2004-05-20  Andreas Schwab  <schwab@suse.de>
123934         * m4/free.m4: Replace free if it not known to work, not the other
123935         way round.
123937 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
123939         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
123940         present in glibc since revision 1.1 of this file.
123941         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
123942         obstack_alignment_mask, obstack_alloc, obstack_base,
123943         obstack_blank, obstack_blank_fast, obstack_chunk_size,
123944         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
123945         obstack_grow0, obstack_init, obstack_int_grow,
123946         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
123947         obstack_next_free, obstack_object_size, obstack_ptr_grow,
123948         obstack_ptr_grow_fast, obstack_room): Remove declarations of
123949         nonexistent functions.
123951 2004-05-18  Karl Berry  <karl@gnu.org>
123953         * config/srclist.txt: break link for vasnprintf.c.
123955 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
123957         Port obstack to the AS/400, where pointers are 16 bytes wide and
123958         you cannot cast an integer to a valid pointer.  This patch is
123959         currently waiting to be integrated into glibc; see
123960         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
123962         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
123963         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
123964         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
123965         (struct obstack): temp member is now a union of a pointer and
123966         an integer, instead of an integer.  All integer uses changed.
123967         This does not affect the physical layout of struct obstack,
123968         except on hosts (like the AS/400) where the size or alignment of
123969         void * is greater than that of ptrdiff_t.
123970         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
123971         __STDC__)]: Store temporary in pointer member of union, not
123972         integer member.
123973         * lib/obstack.c: Include <stddef.h>, for offsetof.
123974         (struct fooalign): Remove; it doesn't need a name.
123975         (union fooround): Change double to long double, and add void *.
123976         (DEFAULT_ALIGNMENT): Use offsetof to compute.
123977         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
123978         not a macro.  Hence the values are always int; so remove all
123979         casts-to-int in uses.
123981 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
123983         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
123984         we can get this patch merged into glibc.
123986 2004-05-17  Derek R. Price  <derek@ximbiot.com>
123987             Paul Eggert  <eggert@cs.ucla.edu>
123989         * m4/argp: Depend on alloca.
123991 2004-05-17  Derek R. Price  <derek@ximbiot.com>
123992             Paul Eggert  <eggert@cs.ucla.edu>
123994         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
123995         freecoding.
123997 2004-05-17  Bruno Haible  <bruno@clisp.org>
123999         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124000         precision that consists of a '.' followed by an empty digit string.
124001         Patch by Tor Lillqvist <tml@iki.fi>.
124003 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124006         for backward compatibility with older code.  We need our own
124007         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124008         it under some other name, and our alloca.h will define it.
124010 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124011             Derek Price  <derek@ximbiot.com>
124013         * lib/alloca.c: Include <alloca.h>, to get our interface.
124014         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124015         include <alloca.h> first.  Use C89 prototype for alloca; this
124016         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124017         Use #elif for simplicity, since we can assume C89 now.
124018         Don't try to source the system alloca.h since it will not be found
124019         and to prevent recursively including its replacement.
124020         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124021         * lib/regex.c: Likewise.
124023 2004-05-16  Derek Price  <derek@ximbiot.com>
124024             Paul Eggert  <eggert@cs.ucla.edu>
124026         getline cleanup.  This changes the getndelim2 API: both order of
124027         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124028         no delimiter).
124030         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124031         interface does that.
124032         (getline): Always use getdelim, so that we don't have two
124033         copies of this code.
124034         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124035         if available.
124036         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124037         (GETNDELIM2_MAXIMUM): New macro.
124038         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124039         instead of the old practice of delim2==0.  All callers changed.
124040         Return -1 on overflow, instead of returning junk.
124041         Do not set *linesize unless allocation succeeds.
124042         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124043         that we include sys/types.h.
124044         * lib/getnline.h: Likewise.
124045         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124046         (getndelim2): Reorder arguments.
124047         * lib/getnline.c (getnline, getndelim):
124048         Don't discard the NMAX argument.
124049         (getnline): Invoke getndelim, to avoid code duplication.
124050         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124051         of (size_t) -1 by callers of the getnline family.
124053 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124055         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124056         Check for gettimeofday.
124057         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124058         Check for settimeofday, stime.
124060 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124062         * lib/nanosleep.c (suspended): Change its type from int to
124063         sig_atomic_t volatile.
124064         (first_call): Make it private to rpl_nanosleep, and have it
124065         be zero initially as that's a bit faster.
124066         (my_usleep): Round up fractional times instead of truncating them,
124067         as this is the usual meaning for 'sleep'.
124069         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124070         doesn't work.
124071         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124072         (ENOSYS): Define if not defined.
124073         (settime): Fall back on stime if it exists and settimeofday fails.
124074         But don't bother with fallbacks if a method fails with errno == EPERM.
124076 2004-05-11  Jim Meyering  <jim@meyering.net>
124078         Prior to this change, the save_cwd caller required read access to the
124079         current directory on most systems (ones with the fchdir function).
124081         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124082         fails, try write-only, and finally, resort to using xgetcwd.
124084 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124086         * lib/obstack.c, obstack.h: Import changes from libc.
124088 2004-04-28  Bruno Haible  <bruno@clisp.org>
124090         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124091         also implicitly appends .exe to executables.
124092         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124093         accepts Windows pathnames.
124094         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124095         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124096         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124097         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124098         Reported by Derek Robert Price <derek@ximbiot.com>.
124100 2004-04-21  Karl Berry  <karl@gnu.org>
124102         * config/srclist.txt (localcharset.c): break sync.
124104 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124106         * m4/host-os.m4: Add a copyright notice.
124108 2004-04-20  Jim Meyering  <jim@meyering.net>
124110         Change UTILS_ to gl_ in AC_DEFINE'd names.
124111         Change utils_- and jm_-prefixed variables, too.
124112         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124113         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124116         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124117         Don't emit trailing blanks.
124118         Also rename jm_-prefixed variables to have gl_ prefix.
124120         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124121         Also rename jm_-prefixed variables to have gl_ prefix.
124123         * m4/jm-macros.m4: Reflect the renamings.
124124         * m4/prereq.m4: Likewise.
124126 2004-04-20  Jim Meyering  <jim@meyering.net>
124128         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124129         memory.
124131 2004-04-20  Jim Meyering  <jim@meyering.net>
124132             Bruno Haible  <bruno@clisp.org>
124134         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124135         memory when realloc fails.
124137 2004-04-19  Jim Meyering  <jim@meyering.net>
124139         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124140         now that readutmp.c may call `free (0)'.
124142 2004-04-19  Bruno Haible  <bruno@clisp.org>
124144         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124145         * m4/inttypes_h.m4: Likewise.
124146         * m4/stdint_h.m4: Likewise.
124147         * m4/intmax_t.m4: Likewise.
124148         * m4/uintmax_t.m4: Likewise.
124150 2004-04-18  Jim Meyering  <jim@meyering.net>
124152         * m4/prereq.m4: Don't forbid jm_ prefix.
124154         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124155         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124156         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124157         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124158         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124159         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124160         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124161         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124162         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124163         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124164         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124165         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124166         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124167         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124168         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124169         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124170         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124171         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124172         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124174 2004-04-18  Jim Meyering  <jim@meyering.net>
124176         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124177         failure, don't leak memory and do call END_UTMP_ENT.
124179 2004-04-16  Jim Meyering  <jim@meyering.net>
124181         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124182         coreutils' stat program.
124183         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124185 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124187         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124188         C89.
124189         (CHAR_BIT): Remove, since we assume C89.
124190         Include <stdint.h> if available, as per current Autoconf CVS advice.
124192 2004-03-31  Jim Meyering  <jim@meyering.net>
124194         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124195         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124196         * m4/xalloc.m4: Likewise.
124198 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124200         Merge from coreutils.
124202         * m4/inttostr.m4: New file.
124203         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124204         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124205         Require gl_CLOCK_TIME.
124206         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124208 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124210         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
124211         not bool, to be more consistent with Unix conventions.
124212         Suggested by Bruno Haible.
124214         Merge from coreutils.
124216         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
124217         * lib/umaxtostr.c: New files.
124219         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
124220         the usual <time.h> dance.
124221         (get_date): Change signature to support fractional time stamps.
124222         All callers changed.
124223         * lib/getdate.y: Include "getdate.h" first, as we can now
124224         assume C89 and don't need to worry about 'const'.
124225         Similarly, include "unlocked-io.h" near start, not in middle.
124226         Include <limits.h>.
124227         (textint.value): Use long int rather than int.
124228         (textint.digits): Use size_t rather than int.
124229         (BILLION, LOG10_BILLION): New constants.
124230         (parser_control): New member rel_ns.  Members day_ordinal,
124231         time_zone, month, day, hour, minutes, rel_year, rel_month,
124232         rel_day, rel_hour, rel_minutes, rel_seconds
124233         are now long int, not int.  Member seconds is now struct timespec,
124234         not int.  New member timespec_seen.  Members dates_seen, days_seen,
124235         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
124236         not int.
124237         (%union.intval): Now long int, not int.
124238         New member timespec.
124239         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
124240         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
124241         (spec): Now is a timespec or an item list.
124242         (timespec, items): New nonterminals.
124243         (time, rel, relunit, number, get_date):
124244         Add support for fractional seconds.
124245         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
124246         (gmtime, localtime, mktime): Remove decls; not needed with C89.
124247         (to_hour): First arg is now long int, not int.
124248         (to_year): Returns long int, not int.
124249         Don't treat year -70 like 70.
124250         (tm_diff): Returns long int, not int.
124251         (lookup_word): Use bool instead of int when appropriate.
124252         (yylex): Use size_t for count, not int.
124253         Detect overflow when parsing large integer constants.
124254         Add support for fractions.
124255         (get_date): Make pointers 'const' if possible.
124256         Use more-portable code to detect integer overflow.
124257         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124258         Don't use ctime; it's not reliable if the year has >4 digits.
124260         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124261         This is for compatibility with BSD.
124263         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124264         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124265         From coreutils' system.h.
124267         * lib/userspec.c: Don't include "posixver.h".
124268         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124269         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124270         compatible extension.  Simplify code by removing a boolean int
124271         that was always nonzero if a string was nonnull.
124273 2004-03-30  Jim Meyering  <jim@meyering.net>
124275         Merge from coreutils.
124277         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124278         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124279         on some systems one must include <grp.h> before it.
124280         Reported by Christian Krackowizer.
124282 2004-03-30  Jim Meyering  <jim@meyering.net>
124284         Merge from coreutils.
124286         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124288         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124289         an empty input stream.
124291         * lib/readtokens.c: Include <stdbool.h>.
124292         (readtoken): Use `size_t' rather than int/long.
124293         All callers adjusted.
124294         Use `bool' rather than `int' where appropriate.
124295         Use memset rather than an explicit loop.
124296         Use x2nrealloc rather than xrealloc.
124297         Allow the use of `\0' as a delimiter.
124298         (readtokens): Likewise.
124299         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124301 2004-03-30  Jim Meyering  <jim@meyering.net>
124303         * m4/realloc.m4: Remove file, since now it does no more than
124304         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124305         the `configure.ac' section of module/realloc.
124306         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124308 2004-03-30  Bruno Haible  <bruno@clisp.org>
124310         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124311         nonnull.
124313 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124315         Merge changes to getloadavg.c from coreutils and Emacs.
124317         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124318         Define to an expression, not to the empty string.
124319         Include cloexec.h and xalloc.h.
124320         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124321         Use set_cloexec_flag rather than rolling our own.
124322         * lib/cloexec.c, lib/cloexec.h: New files.
124324 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124326         * m4/cloexec.m4: New file.
124328 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124330         * lib/getopt.h: Sync with libc CVS.
124332 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124333             Bruno Haible  <bruno@clisp.org>
124335         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124336         mbswidth.
124338 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124339             Bruno Haible  <bruno@clisp.org>
124341         * lib/mbswidth.h: Include <wchar.h> only if
124342         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124343         <wchar.h>.
124344         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124346 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124348         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124349         Sync with libc CVS.
124350         * lib/getopt_int.h: New file, also synced from libc.
124352 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124354         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124355         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124356         Bring back getopt.c, getopt.h, getopt1.c.
124358 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124360         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124361         All uses changed.  Check for sa_sigaction member; this fixes
124362         a bug first reported by Jason Andrade in
124363         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124365 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124367         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124368         '#if' expressions.  Unlike the code it replaces, it does not
124369         depend on (defined _SC_PAGESIZE).  However, it does depend on
124370         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124371         first reported by Jason Andrade in
124372         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124374 2004-02-25  Simon Josefsson  <jas@extundo.com>
124376         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124378 2004-02-25  Simon Josefsson  <jas@extundo.com>
124380         * lib/strdup.h: New file.
124381         * lib/strdup.c: Include it.
124382         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
124383         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
124385 2004-02-23  Karl Berry  <karl@gnu.org>
124387         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
124388         (from fencepost.gnu.org:/gd/gnuorg).
124390 2004-02-23  Karl Berry  <karl@gnu.org>
124392         * config/srclistvars.sh (GNUORG) [karl]: redefine.
124393         * config/srclist.txt: add maintain/standards documents.
124395 2004-02-18  Bruno Haible  <bruno@clisp.org>
124397         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
124398         Reported by Derek Robert Price <derek@ximbiot.com>.
124400 2004-02-16  Karl Berry  <karl@gnu.org>
124402         * config/mkinstalldirs, install-sh: update from automake.
124404 2004-02-06  Karl Berry  <karl@gnu.org>
124406         * m4/po.m4: update from gettext 0.14.1.
124408 2004-02-06  Karl Berry  <karl@gnu.org>
124410         * lib/config.charset: update from gettext 0.14.1.
124412 2004-02-05  Paul Eggert  <eggert@twinsun.com>
124414         Add comments and code, prompted by suggestions from Bruno Haible
124415         for sh-quote.
124416         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
124417         describing the enum quoting_style values.
124418         * lib/quotearg.c (quotearg_alloc): New function.
124419         (quotearg_buffer_restyled): Treat lone { and } as special.
124420         Treat = as special.  Work around bug with older shells
124421         that "see" a '\' that is really the 2nd byte of a multibyte char.
124422         Quote empty string with shell_quoting_style.
124424 2004-02-03  Bruno Haible  <bruno@clisp.org>
124426         * m4/pipe.m4: New file, from GNU gettext.
124428 2004-02-03  Bruno Haible  <bruno@clisp.org>
124430         * lib/pipe.h: New file, from GNU gettext.
124431         * lib/pipe.c: New file, from GNU gettext.
124433 2004-01-27  Bruno Haible  <bruno@clisp.org>
124435         * m4/execute.m4: New file, from GNU gettext.
124437 2004-01-27  Bruno Haible  <bruno@clisp.org>
124439         * lib/execute.h: New file, from GNU gettext.
124440         * lib/execute.c: New file, from GNU gettext.
124441         * lib/w32spawn.h: New file, from GNU gettext.
124443 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124445         Merge from diffutils.
124447         * lib/file-type.c (file_type): Add typed memory objects.
124448         * lib/file-type.h (S_TYPEISTMO): New macro.
124450         * lib/c-stack.h (c_stack_action): Remove argv argument.
124451         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
124452         (die): Don't calculate message unless segv_action returns.
124453         (get_stack_location, min_address_from_argv, max_address_from_argv,
124454         volatile stack_base, volatile_stack_size): Remove.
124455         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
124456         that every segmentation violation is a stack overflow.  (Ouch!)
124457         See Debian bug 136249 (still outstanding) for more info about why
124458         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
124460 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124462         Exit-status fix from coreutils.
124464         Use exit_failure consistently in place of EXIT_FAILURE,
124465         so that program exit statuses are consistent on failure.
124467         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
124468         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
124469         * lib/argmatch.h: Comment fix to match the above.
124470         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
124471         Now a macro referring to exit_failure, instead of a separate
124472         variable.  Include "exitfail.h" to get it.
124473         * lib/xstrtol.h: Include "exitfail.h".
124474         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
124476         * lib/long-options.c (parse_long_options): Use prototype
124477         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
124478         for clarity.
124480 2004-01-21  Jim Meyering  <jim@meyering.net>
124482         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
124483         so as not to conflict with a different-sized __mktime_internal
124484         function in GNU libc.
124485         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
124486         Problem building statically-linked `ls' reported by Michael Brunnbauer.
124488 2004-01-20  Karl Berry  <karl@gnu.org>
124490         * config/config.guess: update from config.
124492         * config/srclistvars.sh: GNUWWWLICENSES for karl.
124494 2004-01-20  Bruno Haible  <bruno@clisp.org>
124496         Safer stack allocation.
124497         * lib/setenv.c: Include allocsa.h.
124498         (alloca): Remove fallback definition.
124499         (freea): Remove macro.
124500         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
124501         instead of freea.
124503 2004-01-20  Bruno Haible  <bruno@clisp.org>
124505         * m4/eealloc.m4: New file, from GNU gettext.
124507 2004-01-20  Bruno Haible  <bruno@clisp.org>
124509         * m4/allocsa.m4: New file, from GNU gettext.
124511 2004-01-20  Bruno Haible  <bruno@clisp.org>
124513         * lib/xallocsa.h: New file, from GNU gettext.
124514         * lib/xallocsa.c: New file, from GNU gettext.
124516 2004-01-20  Bruno Haible  <bruno@clisp.org>
124518         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
124520 2004-01-20  Bruno Haible  <bruno@clisp.org>
124522         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
124523         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
124524         specially.
124526 2004-01-20  Bruno Haible  <bruno@clisp.org>
124528         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
124529         patch.
124531 2004-01-20  Bruno Haible  <bruno@clisp.org>
124533         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
124535 2004-01-20  Bruno Haible  <bruno@clisp.org>
124537         * lib/eealloc.h: New file.
124539 2004-01-20  Bruno Haible  <bruno@clisp.org>
124541         * lib/binary-io.h: Avoid warnings on Cygwin.
124543 2004-01-20  Bruno Haible  <bruno@clisp.org>
124545         * lib/allocsa.h: New file, from GNU gettext.
124546         * lib/allocsa.c: New file, from GNU gettext.
124548 2004-01-18  Karl Berry  <karl@gnu.org>
124550         * doc/gpl.texi, doc/lgpl.texi: new files.
124552 2004-01-18  Karl Berry  <karl@gnu.org>
124554         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
124555         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
124557 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124559         Merge from coreutils.
124561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
124562         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
124563         (gl_DEFAULT_POSIX2_VERSION): Move
124564         the documentation from 'configure' into 'config.hin',
124565         so that 'configure --help' isn't burdened by it and
124566         we don't have to worry about its formatting there.
124567         Reword the documentation so that it's more succinct
124568         and can be run together into a single paragraph.
124569         * m4/same.m4 (gl_SAME): Check for pathconf.
124571 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124573         Merge from coreutils.
124575         * lib/posixver.c: Include posixver.h.
124577         * lib/same.c: Include <stdbool.h>, <limits.h>.
124578         (_POSIX_NAME_MAX): Define if not defined.
124579         (MIN): New macro.
124580         (same_name): If file names are silently truncated, report
124581         that the file names are the same if they are the same after
124582         the silent truncation.
124584         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
124585         conversion function.
124586         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
124587         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
124588         longer needed.
124590 2004-01-15  Jim Meyering  <jim@meyering.net>
124592         Merge from coreutils.
124594         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
124595         if no library is required.
124596         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
124597         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
124598         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
124599         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
124600         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
124601         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
124602         value, $ac_cv_search_crypt, if it's "none required".
124603         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
124604         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
124605         not gl_FUNC_GETLOADAVG.
124606         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
124607         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
124609 2004-01-15  Jim Meyering  <jim@meyering.net>
124611         Merge from coreutils.
124613         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
124614         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
124615         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
124617         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
124618         optional configure-time default.
124620         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124622         * lib/xreadlink.c (xreadlink): Correct outdated comment.
124624 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
124626         Merge from coreutils.
124628         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
124629         value, $ac_cv_search_nanosleep, if it's "none required".
124631 2004-01-14  Paul Eggert  <eggert@twinsun.com>
124633         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
124634         with like-named macro in fnmatch.c.
124635         (EXT): Use an internal constant instead.
124637         Merge fnmatch patches from glibc.
124638         * lib/fnmatch.c (mbsinit): Remove define.
124639         Add libc_hidden_ver (__fnmatch, fnmatch).
124640         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
124641         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
124643 2004-01-14  Karl Berry  <karl@gnu.org>
124645         * config/install-sh: update from automake.
124647 2004-01-13  Karl Berry  <karl@gnu.org>
124649         * config/install-sh: update from automake.
124651 2004-01-09  Karl Berry  <karl@gnu.org>
124653         * config/install-sh: update from automake.
124655 2004-01-05  Karl Berry  <karl@gnu.org>
124657         * config/config.{sub,guess}: update from config.
124659 2003-12-31  Karl Berry  <karl@gnu.org>
124661         * config/depcomp: update from automake.
124663 2003-12-14  Karl Berry  <karl@gnu.org>
124665         * lib/config.charset: update from gettext-runtime.
124667 2003-12-03  Paul Eggert  <eggert@twinsun.com>
124669         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
124670         Bug reported by Alfred M. Szmidt.
124672 2003-12-03  Bruno Haible  <bruno@clisp.org>
124674         * m4/gettext.m4: Upgrade from gettext-0.13.
124675         * m4/po.m4: Upgrade from gettext-0.13.
124676         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
124677         * m4/intmax.m4: New file, from gettext-0.13.
124678         * m4/printf-posix.m4: New file, from gettext-0.13.
124680 2003-11-29  Karl Berry  <karl@gnu.org>
124682         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
124684 2003-11-25  Paul Eggert  <eggert@twinsun.com>
124685             Bruno Haible  <bruno@clisp.org>
124687         * lib/printf-parse.h: Don't include sys/types.h.
124688         (ARG_NONE): New macro.
124689         (char_directive): Change type of *arg_index fields to size_t.
124690         * lib/printf-parse.c: Don't include sys/types.h.
124691         (SSIZE_MAX): Remove macro.
124692         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
124693         Remove unnecessary overflow check.
124694         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
124695         fields.
124697 2003-11-25  Bruno Haible  <bruno@clisp.org>
124699         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
124701 2003-11-25  Bruno Haible  <bruno@clisp.org>
124703         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
124704         gt_TYPE_SSIZE_T.
124706 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124708         * modules/alloca: Remove dependency on xalloc.
124710 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124712         * lib/alloca.c: Remove dependency on xalloc module.
124713         (xalloc_die): Remove.
124714         (memory_full) [!defined emacs]: New macro.
124715         [!defined emacs]: Don't include xalloc.h.
124716         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
124717         address arithmetic overflows.  Change datatypes a bit to avoid
124718         unnecessary casts.
124720 2003-11-22  Jim Meyering  <jim@meyering.net>
124722         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
124723         s/size/size_t/.
124725 2003-11-21  Karl Berry  <karl@gnu.org>
124727         * config/config.{sub,guess}: update from config.
124729 2003-11-18  Karl Berry  <karl@gnu.org>
124731         * config/config.{sub,guess}: update from config.
124733         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
124735 2003-11-17  Paul Eggert  <eggert@twinsun.com>
124737         * README: Mention that S+T cannot overflow if S is the size of
124738         an existing object and T is sufficiently small.
124740 2003-11-17  Jim Meyering  <jim@meyering.net>
124742         On systems without utime and without a utimes function capable of
124743         dealing with a NULL struct utimbuf* argument, this utime replacement
124744         could -- in unusual circumstances -- leak a file descriptor.
124745         * lib/utime.c: Include <unistd.h> and <errno.h>.
124746         (utime_null): Be sure to close `fd' and to preserve errno.
124747         Reported by Geoff Collyer via Arnold Robbins.
124749 2003-11-17  Bruno Haible  <bruno@clisp.org>
124751         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
124752         (Depends-on): Add xsize.
124754 2003-11-17  Bruno Haible  <bruno@clisp.org>
124756         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
124758 2003-11-17  Bruno Haible  <bruno@clisp.org>
124760         * lib/vasnprintf.c (alloca): Remove fallback definition.
124761         (freea): Remove definition.
124762         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
124763         Reported by Paul Eggert.
124765 2003-11-16  Paul Eggert  <eggert@twinsun.com>
124766             Bruno Haible  <bruno@clisp.org>
124768         Protect against address arithmetic overflow.
124769         * lib/printf-args.h: Include stddef.h.
124770         (arguments): Change type of field 'count' to size_t.
124771         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
124772         'unsigned int' where appropriate.
124773         * lib/printf-parse.h: Include sys/types.h.
124774         (char_directive): Change type of *arg_index fields to ssize_t.
124775         (char_directives): Change type of fields 'count', max_*_length to
124776         size_t.
124777         * lib/printf-parse.c: Include sys/types.h and xsize.h.
124778         (SSIZE_MAX): Define fallback value.
124779         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
124780         instead of 'int' where appropriate. Check a_allocated, d_allocated
124781         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
124782         * lib/vasnprintf.c: Include xsize.h.
124783         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
124784         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
124785         overflow. Avoid wraparound when converting a width or precision from
124786         decimal to binary.
124788 2003-11-16  Bruno Haible  <bruno@clisp.org>
124790         Update from GNU gettext.
124791         * lib/printf-parse.c: Generalize to it can be compiled for wide
124792         strings.
124793         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
124794         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
124795         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
124796         SNPRINTF): New macros.
124797         Don't include <alloca.h> if the file is used inside libintl.
124798         (local_wcslen): New function, for Solaris 2.5.1.
124799         (VASNPRINTF): Use it instead of wcslen.
124801 2003-11-16  Bruno Haible  <bruno@clisp.org>
124803         * lib/xsize.h (xmax): New function.
124804         (xsum, xsum3, xsum4): Declare as "pure" functions.
124806 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124808         * modules/xalloc (Files): Undo latest change, since xalloc.h
124809         no longer needs SIZE_MAX or PTRDIFF_MAX.
124811 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124813         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
124814         gl_PTRDIFF_MAX.
124816 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124818         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
124819         "return", to pacify some unknown compiler.  Problem reported
124820         by Joerg Schilling.
124822 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124824         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
124825         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
124826         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
124827         heuristic is just as accurate as far as we know, and it removes a
124828         dependency on size_max.m4 and ptrdiff_max.m4.
124830 2003-11-11  Bruno Haible  <bruno@clisp.org>
124832         * modules/xsize (Files): Add m4/size_max.m4.
124833         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
124835 2003-11-11  Bruno Haible  <bruno@clisp.org>
124837         * m4/size_max.m4: New file.
124838         * m4/ptrdiff_max.m4: New file.
124839         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
124840         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
124841         (gl_XALLOC): Invoke it.
124843 2003-11-11  Bruno Haible  <bruno@clisp.org>
124845         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
124846         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
124847         defined.
124849 2003-11-10  Paul Eggert  <eggert@twinsun.com>
124851         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
124852         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
124853         rejected some allocations of exactly SIZE_MAX - 2 bytes.
124854         From Bruno Haible.
124855         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
124856         not (size_t) -1, since it's defined here.
124858 2003-11-09  Karl Berry  <karl@gnu.org>
124860         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
124862 2003-11-06  Paul Eggert  <eggert@twinsun.com>
124864         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
124865         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
124866         Reject sizes of exactly SIZE_MAX bytes.
124867         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
124868         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
124870 2003-11-05  Bruno Haible  <bruno@clisp.org>
124872         * lib/xsize.h: Include limits.h, to avoid a possible collision with
124873         SIZE_MAX defined in <limits.h> on Solaris.
124875 2003-11-04  Jim Meyering  <jim@meyering.net>
124877         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
124878         variable names, rather than @VAR@.
124879         * modules/poll: Likewise.
124881 2003-11-04  Bruno Haible  <bruno@clisp.org>
124883         * modules/xsize: New file.
124884         * modules/linebreak: Depend on xsize.
124885         * MODULES.html.sh (func_all_modules): Add xsize.
124887 2003-11-04  Bruno Haible  <bruno@clisp.org>
124889         * m4/xsize.m4: New file.
124891 2003-11-04  Bruno Haible  <bruno@clisp.org>
124893         * lib/xsize.h: New file.
124894         * lib/linebreak.c: Include xsize.h.
124895         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
124896         argument for overflow.
124897         Suggested by Paul Eggert.
124899 2003-11-03  Karl Berry  <karl@gnu.org>
124901         * config/config.{guess,sub}: update from config.
124903 2003-11-03  Jim Meyering  <jim@meyering.net>
124905         * modules/userspec (lib_SOURCES): Add userspec.h.
124906         (Include): Add "userspec.h".
124907         Improve description.
124909 2003-11-03  Jim Meyering  <jim@meyering.net>
124911         * lib/userspec.c: Include "userspec.h".
124912         * lib/userspec.h: New file.
124914 2003-11-03  Bruno Haible  <bruno@clisp.org>
124916         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
124918 2003-11-03  Bruno Haible  <bruno@clisp.org>
124920         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
124921         available, to avoid (extremely rare) race condition.
124922         Suggested by Paul Eggert.
124924 2003-11-02  Karl Berry  <karl@gnu.org>
124926         * config/srclist.txt (vasprintf.c): sync broken, sigh.
124928 2003-10-31  Paul Eggert  <eggert@twinsun.com>
124930         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
124931         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
124932         (read_filesystem_list): Set and use me_type_malloced.
124933         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
124934         whatever the type happens to be), for brevity and consistency.
124935         Check for size calculation overflow on Alphas running OSF/1.
124937 2003-10-31  Jim Meyering  <jim@meyering.net>
124939         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
124941         * lib/linebuffer.c: Include <string.h> for declaration of memset.
124943 2003-10-30  Paul Eggert  <eggert@twinsun.com>
124944             Bruno Haible  <bruno@clisp.org>
124946         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
124947         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
124949 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
124951         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
124952         netbsd*-gnu*.  Suggested by Robert Millan.
124954 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124956         * modules/group-member: Depend on stdbool.
124958 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124960         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
124962 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124964         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
124965         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
124966         after the 'gnu' in these cases.  This fixes some bugs in the
124967         previous change, and is based on suggestions by Robert Millan.
124969 2003-10-29  Paul Eggert  <eggert@twinsun.com>
124971         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
124972         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
124973         no longer needed.
124974         * lib/quotearg.c (quotearg_n_options): Use it.
124975         * lib/group-member.c: Include <stdbool.h>.
124976         (free_group_info): Arg is now const *; don't free arg.
124977         (get_group_info): Now returns bool and accepts struct group_info *,
124978         rather than returning a malloc'ed struct group_info *.
124979         All uses changed.  Check for overflow in internal size calculation.
124981         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
124982         rather than xmalloc/xrealloc.
124983         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
124984         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
124985         conformance bug: the old code used a pointer after freeing the
124986         storage that it addressed.
124987         * lib/hash.c (hash_initialize): Simplify the code by using
124988         xalloc_oversized rather than doing it by hand.
124989         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
124990         the buffer preserved.  Use free and xmalloc instead.
124991         * lib/quotearg.c (quotearg_n_options): Likewise.
124992         Use a simpler test for size overflow.  Don't use xalloc_oversized
124993         because unsigned int might be wider than size_t (!); this suggests
124994         that we should switch from unsigned int to size_t for slot numbers.
124996 2003-10-28  Paul Eggert  <eggert@twinsun.com>
124998         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
124999         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125000         NetBSD kernels.  Requested by Richard Stallman.
125002 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125004         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125005         to allocate the returned structure.  Do not allocate a subarray,
125006         as x2nrealloc will do that.
125007         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125008         instead of xnrealloc.
125009         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125011 2003-10-27  Bruno Haible  <bruno@clisp.org>
125013         * lib/stdbool_.h: Better support for BeOS.
125015 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125017         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125018         now uses inline.
125020 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125022         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125023         callers that want to do their own size-overflow checking.  Include
125024         <stdbool.h>, since xalloc_oversized returns bool.
125025         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125026         to use xalloc_oversized.
125028         Add two functions x2realloc, x2nrealloc, for programs that grow
125029         arrays dynamically by doubling their sizes.
125030         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125031         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125032         New functions.
125034         Port to C99 semantics for 'inline' of external functions.
125035         Bug reported by Bruno Haible.
125036         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125037         with the old contents of xnmalloc.
125038         (xnmalloc, xmalloc): Use it.
125039         (xnrealloc_inline): New static inline function,
125040         with the old contents of xnrealloc.
125041         (xnrealloc, xrealloc): Use it.
125043         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125044         that.
125046 2003-10-26  Karl Berry  <karl@gnu.org>
125048         * config/srclist.txt (COPYING.DOC): no longer available from
125049         /gd/gnuorg; don't know where the ultimate source is.
125051 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125053         Fix several address-calculation bugs in the hash modules,
125054         plus some minor code cleanup.
125056         * lib/hash.h: Include <stdbool.h>, for bool.
125057         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125058         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125059         hash_get_n_entries, hash_get_max_bucket_length,
125060         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125061         hash_rehash): Use size_t rather than unsigned.
125062         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125063         hash_get_n_buckets_used, hash_get_n_entries,
125064         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125065         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125066         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125067         Likewise.
125068         (SIZE_MAX): Define if not defined.
125069         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125070         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125071         hash_print):
125072         Use const * when possible.
125073         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125074         (check_tuning): Fix bug: if tuning parameters were very close to
125075         0 or 1, rounding errors could have caused subscript violations.
125076         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125077         (hash_initialize): Add 'fail:' label
125078         to free table and return NULL, and use it to simplify code.
125079         Use calloc rather than clearing the storage ourself.
125080         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125081         buffer size calculations.
125082         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125083         Include <stddef.h>, for size_t.
125084         * lib/hash-pjw.c (hash_pjw): Likewise.
125085         Switch to method described by Bruno Haible.
125086         Include <limits.h>, for CHAR_BIT.
125087         (SIZE_BITS): New macro.
125089 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125091         * m4/getline.m4 (AM_FUNC_GETLINE):
125092         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125093         hosts.  Problem reported by Derek Robert Price in
125094         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125095         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125096         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125098 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125100         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125101         ceiling the allocation at NMAX bytes rather than silently
125102         discarding input bytes before NMAX is reached.  This makes
125103         a difference only if NMAX exceeds SIZE_MAX / 2.
125105         * lib/obstack.c: Merge from glibc.
125106         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125107         Add libc_hidden_def (_obstack_newchunk).
125108         (_obstack_free) [! defined _LIBC]: Remove.
125109         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125110         a clone of the function body.
125111         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125112         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125114         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125115         glibc.
125116         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125117         arg to memcpy.
125119         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125120         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125121         Don't use lvalue casts, as GCC plans to remove support for them
125122         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125123         was also present in the non-GCC version, indicating that this
125124         code had always been buggy and had never been widely used.
125125         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125126         Use the fast variant of each macro, rather than copying the
125127         definiens of the fast variant; that way, we'll be more likely to
125128         catch future bugs in the fast variants.
125130 2003-10-20  Bruno Haible  <bruno@clisp.org>
125132         * modules/wait-process: New file.
125133         * MODULES.html.sh (func_all_modules): Add wait-process.
125135 2003-10-20  Bruno Haible  <bruno@clisp.org>
125137         * m4/wait-process.m4: New file.
125139 2003-10-20  Bruno Haible  <bruno@clisp.org>
125141         * lib/wait-process.h: New file, from GNU gettext.
125142         * lib/wait-process.c: New file, from GNU gettext.
125144 2003-10-19  Jim Meyering  <jim@meyering.net>
125146         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125147         HPUX 10.20.
125149 2003-10-18  Karl Berry  <karl@gnu.org>
125151         * config/config.guess: update from config.
125153 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125155         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125156         (getgroups): First arg is int, not size_t.
125157         Don't let 'free' mangle errno.
125159 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125161         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125163 2003-10-16  Karl Berry  <karl@gnu.org>
125165         * config/config.{guess,sub}: update from config.
125167 2003-10-16  Jim Meyering  <jim@meyering.net>
125169         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125170         memcpy.
125172 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125174         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125175         (SIZE_MAX): Remove.
125176         (new_exclude, add_exclude_file): Initial size no longer needs to
125177         be a power of 2.
125178         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125179         our own address arithmetic overflow checking.
125181         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125182         (fnmatch): Do not alloca more than 2000 wide characters;
125183         instead, use malloc for large buffers.
125184         Check for address arithmetic overflow, and return -1
125185         with errno set to ENOMEM in that case.
125186         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125187         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125188         instead, return -1.  Check for address arithmetic overflow.
125190 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125192         Handle invalid suffixes and overflow independently, so that
125193         callers can treat them independently as needed.  Fix some bugs in
125194         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125195         suffix for a human-readable blocksize.  The major caller-visible
125196         change is the addition of a new
125197         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125198         that both overflow and suffix chars were found.
125200         * lib/human.c (humblock): Don't check separately for invalid suffix
125201         char; that is xstrtoumax's job (now that its bug is fixed).
125202         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125203         INTMAX_MAX]: New macros.
125204         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125205         TYPE_MAXIMUM): New macros.
125206         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125207         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125208         if overflow occurs, as it's what __strtol does and it's more useful
125209         in practice.
125210         (__xstrtol): If __strtol reports some error other than ERANGE,
125211         reflect it to the caller as LONGINT_INVALID.  If it reports
125212         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
125213         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
125214         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
125215         value.
125216         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
125217         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
125218         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
125219         [defined UINTMAX_MAX]: New macros.
125221 2003-10-14  Bruno Haible  <bruno@clisp.org>
125223         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
125225 2003-10-14  Bruno Haible  <bruno@clisp.org>
125227         * m4/sig_atomic_t: New file, from GNU gettext.
125228         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
125230 2003-10-14  Bruno Haible  <bruno@clisp.org>
125232         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
125233         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
125234         Also use volatile where needed.
125236 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125238         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
125239         Change maintainer from Bruno Haible to 'all'.
125241 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125243         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
125245 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125247         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
125248         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125249         and define in terms of the other primitives.
125250         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125251         (SIZE_MAX): Define if not already defined.
125252         (array_size_overflow): New function.
125253         (xalloc_die): Abort instead of exiting if 'error' returns.
125254         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125255         (xmalloc, xrealloc): Use them.
125256         (xcalloc): Check for address arithmetic overflow.
125257         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125258         a bit faster than strcpy.
125260 2003-10-10  Simon Josefsson  <jas@extundo.com>
125262         * modules/argp (Depends-on): Add restrict and strcase.
125264 2003-10-10  Simon Josefsson  <jas@extundo.com>
125266         * m4/argp.m4: Add AC_C_INLINE.
125268 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125270         Merge getpass from libc, plus a few fixes.
125272         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125273         Include <stdbool.h>.
125274         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125275         __fsetlocking to empty.
125276         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125277         do include <bits/libc-lock.h>.
125278         Do not include <fcntl.h>; not needed.
125279         [_LIBC]: Include <wchar.h>.
125280         (NOTCANCEL_MODE): New macro.
125281         (flockfile, funlockfile) [_LIBC]: New macros.
125282         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125283         [!_LIBC]: New macros.
125284         (call_fclose): New function.
125285         (getpass): Use it.  Save tty stream separately; this simplifies the
125286         code and makes it more reliable if stdin happens to equal stdout.
125287         Invoke __fsetlocking on tty.
125288         Handle thread cancellation if needed.
125289         Namespace cleanup (use __tcgetattr, __getline).
125290         Use bool for Booleans.
125291         [USE_IN_LIBIO]: Handle wide streams.
125292         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125293         stream might go where.
125295         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125296         doesn't have to include <stdio.h> before us.
125297         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125298         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125299         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125300         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125301         if not declared, so that we can use getpass.c code from libc without
125302         rewriting it.
125303         (flockfile, ftrylockfile, funlockfile): New macros.
125305 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125307         * modules/getpass: Depend on stdbool.
125309 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125311         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125313 2003-10-07  Karl Berry  <karl@gnu.org>
125315         * config/config.{guess,sub}: update from config.
125317 2003-10-06  Jim Meyering  <jim@meyering.net>
125318             Bruno Haible  <bruno@clisp.org>
125320         This lets translators provide better translations for the
125321         "Written by ..." part of --version output.
125322         * lib/version-etc.h: Include stdarg.h.
125323         (version_etc_copyright): Declare as readonly.
125324         (version_etc): Make this function variadic with a NULL-terminated list
125325         of author name strings.
125326         (version_etc_va): New declaration.
125327         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125328         (version_etc_copyright): Declare as readonly.
125329         (version_etc_va): New function. Provide a different translatable string
125330         for each possible number of authors < 10. Abbreviate when there are 10
125331         authors or more.
125332         (version_etc): Make this function variadic. Call version_etc_va.
125333         Suggestion from Gary V. Vaughan.
125335         * lib/long-options.h (parse_long_options): Change prototype: the
125336         authors string is moved to the end and becomes variadic.
125337         * lib/long-options.c: Include stdarg.h.
125338         (parse_long_options): Make this function variadic, too.
125339         Call version_etc_va, not version_etc.
125341 2003-10-06  Bruno Haible  <bruno@clisp.org>
125343         * modules/version-etc-2: Remove file.
125344         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125346 2003-10-06  Bruno Haible  <bruno@clisp.org>
125348         * modules/fatal-signal: New file.
125349         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125351 2003-10-06  Bruno Haible  <bruno@clisp.org>
125353         * m4/fatal-signal.m4: New file.
125354         * m4/signalblocking.m4: New file, from GNU gettext.
125356 2003-10-06  Bruno Haible  <bruno@clisp.org>
125358         * lib/version-etc-2.h: Remove file.
125359         * lib/version-etc-2.c: Remove file.
125361 2003-10-06  Bruno Haible  <bruno@clisp.org>
125363         * lib/fatal-signal.h: New file, from GNU gettext.
125364         * lib/fatal-signal.c: New file, from GNU gettext.
125366 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125368         * README: Rework advice for preventing empty .o files.
125369         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125370         not <sys/types.h>.
125372 2003-10-04  Karl Berry  <karl@gnu.org>
125374         * lib/argp*: update from libc.
125376 2003-10-04  Karl Berry  <karl@gnu.org>
125378         * config/config.{guess,sub}: update from config.
125380 2003-10-02  Bruno Haible  <bruno@clisp.org>
125382         * modules/lchown (Include): Add lchown.h.
125383         * modules/time_r (Include): Use "..." syntax.
125384         * modules/xgetdomainname (Include): Add xgetdomainname.h.
125386 2003-10-01  Simon Josefsson  <jas@extundo.com>
125388         * MODULES.html.sh (func_all_modules): Move gethostname from section
125389         'based on' to section 'lacking' POSIX:2001.
125391 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
125393         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
125394         to output mode on the same stream.
125396 2003-09-29  Paul Eggert  <eggert@twinsun.com>
125398         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
125399         Fix arg typo in previous patch.
125401 2003-09-28  Jim Meyering  <jim@meyering.net>
125403         * lib/error.c: Correct cpp indentation.
125405 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125407         * modules/free: New file.
125409 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125411         * m4/free.m4: New file.
125413 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125415         * lib/minmax.h (MIN, MAX)
125416         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
125417         Omit the special code that used __typeof__, since we worry that
125418         it could be more trouble than it's worth.  See:
125419         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
125420         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
125422         * lib/free.c: New file.
125424 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
125426         Trivial fixes to Makefile.am parts of module listings.
125427         * modules/strstr: Append strstr.h to lib_SOURCES.
125428         * modules/strcase: Likewise, for strcase.h.
125430 2003-09-27  Karl Berry  <karl@gnu.org>
125432         * config/mkinstalldirs: update from automake.
125434 2003-09-26  Paul Eggert  <eggert@twinsun.com>
125436         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
125437         (error_tail): Do not loop, reallocating temporary buffer, since
125438         the output cannot contain more wide characters than the input
125439         contains bytes, the size must be big enough already.  This avoids
125440         one potential size overflow calculation.  Check for size overflow
125441         when calculating temporary buffer size.  Free temporary buffer
125442         when done, if it was allocated with malloc; this plugs a memory
125443         leak.  Remove casts from void * to pointers, that are no longer
125444         needed now that we're assuming C89 or better.
125446         Merge error changes from glibc.
125448         * lib/error.c, error.h: Update copyright notice header to match glibc.
125449         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
125450         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
125451         Disable cancellation while printing error.
125452         * lib/error.h: Prepend __ to parameter names.
125454 2003-09-26  Jim Meyering  <jim@meyering.net>
125456         * lib/error.c (error_tail): Move some declarations
125457         into inner scope where the local variables are used.
125459 2003-09-26  Bruno Haible  <bruno@clisp.org>
125461         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
125462         stpncpy().
125463         Don't define stpncpy through config.h; it's now done through stpncpy.h.
125465 2003-09-26  Bruno Haible  <bruno@clisp.org>
125467         * lib/stpncpy.h (gnu_stpncpy): New declaration.
125468         (stpncpy): Define as alias for gnu_stpncpy.
125469         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
125471 2003-09-25  Simon Josefsson  <jas@extundo.com>
125473         * lib/xgetdomainname.h: New file.
125474         * lib/xgetdomainname.c: New file.
125476 2003-09-25  Simon Josefsson  <jas@extundo.com>
125477             Bruno Haible  <bruno@clisp.org>
125479         * modules/getdomainname: New file.
125480         * modules/xgetdomainname: New file.
125481         * MODULES.html.sh (func_all_modules): Add getdomainname,
125482         xgetdomainname.
125484 2003-09-25  Simon Josefsson  <jas@extundo.com>
125485             Bruno Haible  <bruno@clisp.org>
125487         * m4/getdomainname.m4: New file.
125489 2003-09-25  Simon Josefsson  <jas@extundo.com>
125490             Bruno Haible  <bruno@clisp.org>
125492         * lib/getdomainname.h: New file.
125493         * lib/getdomainname.c: New file.
125495 2003-09-25  Karl Berry  <karl@gnu.org>
125497         * lib/argp-fmtstream.c, argp-help.c: update from libc.
125499 2003-09-25  Karl Berry  <karl@gnu.org>
125501         * config/install-sh: update from automake.
125503 2003-09-25  Bruno Haible  <bruno@clisp.org>
125505         * modules/version-etc-2: New file, from modules/version-etc with
125506         modifications.
125507         * MODULES.html.sh (func_all_modules): Add version-etc-2.
125509 2003-09-25  Bruno Haible  <bruno@clisp.org>
125511         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
125512         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
125514 2003-09-24  Simon Josefsson  <jas@extundo.com>
125516         * modules/xgethostname: Add xgethostname.h.
125518 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125520         * lib/linebuffer.c (freebuffer): Don't free the argument, just
125521         the buffer associated with the argument.  Bug reported by
125522         Simon Josefsson.
125524 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125526         * README: Document assumptions that 'int' is at least 32 bits
125527         wide, that integer arithmetic is 2's complement without overflow,
125528         that there are no holes in integer values, that adding sizes of
125529         two nonoverlapping objects can't overflow, and that all-bits-zero
125530         yields scalar zero.  Fix spelling and capitalization typos.
125532 2003-09-19  Karl Berry  <karl@gnu.org>
125534         * lib/argp.h: update from libc.
125536 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125538         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
125539         to avoid spurious warnings like "AC_RUN_IFELSE was called before
125540         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
125542 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125544         * gnulib-tool: Use "test -h", not "test -L", for portability
125545         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
125546         (tags_regexp): Remove, since \| doesn't conform to POSIX.
125547         (sed_extract_prog): Issue s commands one-by-one, rather than
125548         using \| in one s command.
125550 2003-09-16  Paul Eggert  <eggert@twinsun.com>
125552         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
125553         input error, instead of returning NULL the next time we are called
125554         (and therefore losing track of errno).
125556 2003-09-16  Bruno Haible  <bruno@clisp.org>
125558         * gnulib-tool (func_create_testdir): Warn about duplicated
125559         dependencies.
125561 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125563         * modules/argmatch, modules/fatal, modules/obstack,
125564         modules/xalloc, modules/xgethostname: Sort dependencies by
125565         importance, not alphabetically.
125567 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125569         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
125570         fails, so that the caller gets the proper errno.
125572         * lib/readutmp.c (read_utmp): Likewise.
125573         Check for fstat error.  Close stream and free storage
125574         when failing.
125576 2003-09-14  Karl Berry  <karl@gnu.org>
125578         * config/srclist.txt (strdup.c): disable for c89 changes.
125580 2003-09-14  Jim Meyering  <jim@meyering.net>
125582         * lib/getloadavg.c: Correct cpp indentation.
125583         * lib/strdup.c: Likewise.
125584         * lib/vasnprintf.c: Likewise.
125586 2003-09-14  Bruno Haible  <bruno@clisp.org>
125588         * modules/fwriteerror: New file.
125589         * MODULES.html.sh (func_all_modules): Add fwriteerror.
125591 2003-09-14  Bruno Haible  <bruno@clisp.org>
125593         * lib/fwriteerror.h: New file.
125594         * lib/fwriteerror.c: New file.
125596 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125598         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
125599         modules/xgethostname, modules/xalloc: Depend on exit.
125601 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125603         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
125605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
125606         and AC_MINIX, too, so that their extensions are available.
125608         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
125609         This macro has been superseded by gl_BACKUPFILE.
125611         More patches to assume C89 or better.
125613         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
125615         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
125616         unconditionally.
125617         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
125618         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
125619         Include <string.h>, <stdlib.h> unconditionally.
125620         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
125621         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
125622         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
125623         headers or for string.h.
125624         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
125625         or strtoul.
125627         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
125628         headers.
125629         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
125630         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125631         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
125632         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
125633         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125634         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
125635         memcpy, memset.
125636         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
125637         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
125638         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
125639         strtol.
125640         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
125641         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
125642         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
125643         strtoul.
125645 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125647         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
125648         * lib/obstack.c [!defined _LIBC]: Likewise.
125649         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
125650         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
125651         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
125653         More changes to assume C89 or better.
125655         * lib/error.c (error_tail): Assume vprintf.
125657         * lib/argmatch.c (getenv): Remove decl.
125658         * lib/progreloc.c (get_full_program_name): Define via prototype.
125659         * lib/setenv.c (clearenv): Likewise.
125660         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
125661         needed.
125662         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
125663         (malloc, memcpy): Remove decls.
125664         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
125665         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
125666         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125667         (memcpy): Remove macro.
125668         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
125669         (__P): Remove.  All uses removed.
125670         (PTR): Remove.  All uses changed to void *.
125671         (CHAR_BIT, NULL): Remove.
125672         (spaces, zeros, memset_space, memset_zero)
125673         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
125674         Remove.
125675         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
125676         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
125677         Define with prototype.
125678         Remove now-unnecessary prototype decl.
125679         (extra_args_spec): Assume ANSI C.  All uses changed.
125680         (extra_args_spec_iso): Remove.
125681         (my_strftime, emacs_strftimeu): Define via prototype.
125682         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
125683         unconditionally.
125684         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
125685         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
125686         (strtoul, strtol): Remove decls.
125687         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
125688         LONG_MAX): Remove.
125689         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125690         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
125691         (LOCALE_PARAM_PROTO): New macro.
125692         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
125693         (INTERNAL (strtol), strtol): Define with a prototype.
125694         (PARAMS): Remove.  All uses removed.
125695         * lib/tempname.c: Include <string.h> unconditionally.
125696         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
125697         * lib/xgethostname.c (main): Define with a prototype.
125698         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
125699         Include <stdlib.h> unconditionally.
125700         (calloc, malloc, realloc, free): Remove decls.
125701         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
125702         Include <stdlib.h> unconditionally.  Sort include file names.
125703         (strtod): Remove.
125704         (xstrtod): Define with a prototype.
125705         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
125706         (strtol, strtoul): Remove decls.
125708 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125710         More patches to assume C89 or better.
125711         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
125712         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
125713         string.h, memchr, STDC_HEADERS.
125715 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125717         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
125718         Include <stdlib.h>, <string.h> unconditionally.
125719         Remove now-unnecessary cast to char *.
125720         * lib/strnlen.c: Include <string.h> unconditionally.
125721         * lib/yesno.c (yesno): Define with a prototype.
125723 2003-09-11  Bruno Haible  <bruno@clisp.org>
125725         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
125727 2003-09-10  Jim Meyering  <jim@meyering.net>
125729         * lib/error.c: Correct indentation of cpp directives.
125731 2003-09-10  Bruno Haible  <bruno@clisp.org>
125733         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
125734         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
125735         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
125736         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
125737         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
125738         <stdlib.h> and <string.h> checks.
125739         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
125740         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
125742 2003-09-10  Bruno Haible  <bruno@clisp.org>
125744         * lib/strcspn.c: Include <string.h> unconditionally.
125745         * lib/strpbrk.c: Include <string.h> unconditionally.
125746         * lib/strstr.c: Include <string.h> unconditionally.
125747         * lib/unicodeio.c: Include <string.h> unconditionally.
125748         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
125749         * lib/unsetenv.c: Likewise.
125750         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
125751         * lib/yesno.c: Include <stdlib.h> unconditionally.
125752         (rpmatch): Add prototype.
125754 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125756         More patches to assume C89 or better.
125757         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
125758         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
125759         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
125760         or for string.h.
125761         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
125762         stdlib.h.
125763         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
125764         C headers.
125765         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
125766         string.h.
125767         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
125768         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
125769         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
125770         or for string.h.
125771         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
125772         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
125773         C headers.
125774         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
125775         memcpy.
125776         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
125777         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
125778         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
125779         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
125780         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
125781         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
125782         string.h, free.
125783         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
125784         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
125785         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
125786         C headers, or for string.h.
125787         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
125788         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
125789         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
125790         headers, memory.h, stdlib.h, string.h, strings.h.
125791         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
125792         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
125793         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
125794         strchr.
125795         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
125796         headers, memory.h, string.h.
125797         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
125798         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
125799         free.
125800         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
125801         headers.
125802         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
125803         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
125804         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
125805         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
125806         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
125808 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125810         More K&R removal.
125812         * lib/acosl.c (main): Use a prototype.
125813         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
125814         tanl.c: Likewise.
125816         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
125818         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
125819         (getopt, etopt_long, getopt_long_only, _getopt_internal)
125820         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
125821         with a prototype.
125822         * lib/getopt.c (const): Remove macro.
125823         Include <string.h> unconditionally.
125824         (my_index): Remove; all uses changed to strchr.
125825         (strlen): Remove decl.
125826         (exchange): Remove forward decl; no longer needed.
125827         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
125828         Define with prototype.
125829         * lib/getopt1.c (const): Remove macro.
125830         (getopt_long, getopt_long_only, main): Define with prototype.
125832         * lib/getugroups.c: Include <string.h> unconditionally.
125834         * lib/getusershell.c: Include <stdlib.h> unconditionally.
125835         (getusershell, setusershell, endusershell, readname, main):
125836         Define with prototypes.
125838         * lib/group-member.c: Include group-member.h first.
125839         Include <stdlib.h> unconditionally.
125841         * lib/hard-locale.c: Include hard-locale.h first.
125842         Include <stdlib.h>, <string.h> unconditionally.
125844         * lib/hash.c (free, malloc): Remove decls.
125845         Include <stdlib.h> unconditionally.
125847         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
125848         (getenv): Do not declare.
125850         * lib/idcache.c: Include <string.h> unconditionally.
125852         * lib/long-options.c: Include long-options.h first, to test interface.
125853         Include <stdlib.h> unconditionally.
125855         * lib/makepath.c: Include makepath.h first, to test interface.
125856         Include <stdlib.h> and <string.h> unconditionally.
125858         * lib/linebuffer.c: Include <stdlib.h>.
125859         (free): Remove decl.
125861         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
125862         stddef.h. rpl_malloc returns void *, not char *.
125863         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
125864         prototype.
125866         * lib/md5.h: Include <limits.h> unconditionally.
125867         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
125868         (__P): Remove; all uses removed.
125869         * lib/md5.c: Include "md5.h" first.
125870         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
125871         md5_buffer, md5_process_bytes, md5_process_block):
125872         Define with prototypes.
125873         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
125874         * lib/sha.c: Include "sha.h" first.
125875         Include <stdlib.h>, <string.h> unconditionally.
125877         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
125878         * lib/memcmp.c (__ptr_t): Likewise.
125879         * lib/memrchr.c (__ptr_t): Likewise.
125880         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
125881         Include <string.h> unconditionally.
125882         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
125883         * lib/memchr.c: Include <stdlib.h> unconditionally.
125884         * lib/memchr.c (LONG_MAX): Remove.
125885         * lib/memrchr.c (LONG_MAX): Likewise.
125886         * lib/memchr.c (__memchr): Define via a prototype.
125887         * lib/memrchr.c (__memrchr): Likewise.
125888         * lib/memcmp.c (__P): Remove, and remove all uses.
125889         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
125890         Remove forward decls; no longer needed.
125891         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
125892         Use types required by C89 in prototype.
125894         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
125895         * lib/savedir.c: Likewise.
125896         * lib/mkdir.c (free): Remove decl.
125897         * lib/rmdir.c (rmdir): Define with a prototype.
125898         * lib/savedir.c: Include savedir.h first, to test interface.
125900         * lib/mktime.c (STDC_HEADERS): Remove.
125901         Include <stdlib.h>, <string.h> unconditionally.
125903         * lib/modechange.c: Include <stdlib.h> unconditionally.
125904         (malloc): Remove decl.
125906         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
125907         (free): Remove decl.
125909         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
125910         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
125911         (This type really should be intptr_t, but that's a C99ism.)
125912         (_obstack_memcpy): Remove: all uses changed to memcpy.
125913         Include <string.h> unconditionally.
125914         (struct obstack): Assume __STDC__ for types of members
125915         chunkfun, freefun, extra_arg.
125916         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
125917         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
125918         obstack_begin, obstack_specify_allocation,
125919         obstack_specify_allocation_with_arg, obstack_chunkfun,
125920         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
125921         Remove unprototyped decls and the macros that use them.
125922         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
125923         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
125924         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
125925         (defined __STDC__ && __STDC__)]:
125926         Remove nonprototyped code.
125927         Include <stdlib.h> unconditionally.
125928         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
125929         _obstack_allocated_p, _obstack_free, obstack_free,
125930         _obstack_memory_used, print_and_abort):
125931         Define using prototypes.
125932         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
125933         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
125934         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
125935         obstack_next_free, obstack_object_size, obstack_room) [0]:
125936         Remove unused, unprototyped code.
125938         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
125940         * lib/physmem.c (physmem_total, physmem_available, main): Define
125941         with prototypes.
125943         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
125944         (main): Define with a prototype.
125946         * lib/posixver.c (getenv): Remove decl.
125948         * lib/putenv.c (malloc): Returns void *, not char *.
125949         Include <string.h> unconditionally.
125950         (strchr, memcpy, NULL): Do not define.
125952         * lib/readtokens.c: Include readtokens.h first, to test interface.
125953         Include <stdlib.h>, <string.h> unconditionally.
125954         (init_tokenbuffer): Define with a prototype.
125956         * lib/regex.c (PARAMS): Remove.  All uses removed.
125957         All uses of _RE_ARGS removed, too.
125958         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
125959         unconditionally.
125960         (bzero): Assume memset exists.
125961         (memcmp, memcpy, NULL): Remove.
125962         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
125963         char, or assignments to local vars of type signed char.
125964         (init_syntax_once, PREFIX(extract_number_and_incr),
125965         PREFIX(print_partial_compiled_pattern),
125966         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
125967         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
125968         PREFIX(regex_grow_registers), PREFIX(regex_compile),
125969         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
125970         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
125971         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
125972         wcs_compile_range, byte_compile_range, truncate_wchar,
125973         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
125974         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
125975         count_mbs_length, wcs_re_match_2_internal,
125976         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
125977         PREFIX(alt_match_null_string_p),
125978         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
125979         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
125980         regfree, PREFIX(extract_number)): Define with prototype.  Remove
125981         now-unnecessary declaration, if any.
125982         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
125983         regcomp, regexec):
125984         Remove now-unnecessary casts among pointer types.
125985         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
125987         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
125988         (free): Remove decl.
125990         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
125992         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
125993         (free): Remove decl.
125995         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
125996         * lib/xgetcwd.c: Likewise.
125998         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
125999         (free): Remove decl.
126001         * lib/strchrnul.c (strchrnul): Define with a prototype.
126002         Fix bug: c_in was not converted to char before searching.
126004         The following changes are not K&R related:
126006         * lib/group-member.h: Include <sys/types.h>, so that this file is
126007         self-contained.
126008         * lib/makepath.h: Likewise.
126010         * lib/getusershell.c (readname, default_index, line_size, readname):
126011         Use size_t, not int, for sizes.
126012         (readname): If the size overflows, report an error instead of
126013         looping forever.
126015 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126017         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126018         libc.
126020 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126022         * README: New section: portability guidelines.
126024 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126026         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126027         C89 spec.
126029 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126031         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126033 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126035         Assume C89 or better; remove K&R cruft.
126036         A few of these changes were first proposed by Derek Robert Price
126037         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126039         * lib/addext.c: Include <string.h> unconditionally.
126040         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126041         Don't declare getenv or malloc.
126043         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126044         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126045         (NULL): Remove.
126046         (find_stack_direction, alloca): Use prototypes.
126048         * lib/atexit.c (atexit): Define using a prototype.
126050         * lib/basename.c, dirname.c, stripslash.c:
126051         Include <string.h> unconditionally.
126053         * lib/bcopy.c: Include <stddef.h>.
126054         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126056         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126058         * lib/error.h (error, error_at_line, error_print_progname)
126059         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126060         * lib/error.c: Include error.h first, to check interface.
126061         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126062         (VA_START): Remove; all uses changeed to va_start.
126063         (exit, strerror): Remove decls.
126064         (error_print_progname): Prototype uncondionally.
126065         Don't include <errno.h>; no longer needed.
126066         (private_strerror): Remove.
126067         (error_tail): Always define.
126068         (error, error_at_line): Assume C89 or better; always use prototypes.
126069         * lib/fatal.c: Include "fatal.h" first, to test interface.
126070         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126071         (VA_START): Remove; all uses changed to va_start.
126072         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126073         this case.
126074         (exit): Remove decl.
126075         (fatal): Prototype unconditionally.  Assume va_start works.
126076         Abort at end, to pacify gcc.
126078         * lib/euidaccess.c (main): Define with a prototype.
126080         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126082         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126084         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126085         prototypes.
126086         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126087         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126088         (getenv): Remove decl.
126089         (fnmatch): Define using a prototype.
126090         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126091         (FCT): Define using a prototype.
126093         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126095         * lib/gethostname.c: Include <stddef.h>.
126096         (gethostname): Define with prototype.  Length is size_t, not int.
126098 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126100         Assume C89 or better; remove K&R cruft.
126101         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126102         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126103         string.h, getenv, malloc.
126104         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126105         headers.
126106         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126107         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126108         do not check for strerror.
126109         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126110         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126111         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126112         do not check for doprnt or vprintf.
126113         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126114         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126116 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126118         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126119         getversion.c should have been removed then, but was accidentally
126120         preserved.
126122         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126123         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126125 2003-09-08  Karl Berry  <karl@gnu.org>
126127         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126128                 config, forget about prep.
126130         * config/depcomp, missing: update from automake.
126132 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126134         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126135         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126137 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126139         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126140         copy_tm_result.  Bug reported by Simon Josefsson in
126141         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126143 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126145         * m4/time_r.m4: New file.
126146         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126147         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126148         is. Check for timegm declaration.
126149         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126150         Do not check for gmtime_r.
126151         Replace mktime if __mktime_internal does not exist and if mktime
126152         hasn't been replaced already.
126154 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126156         * lib/time_r.c, lib/time_r.h: New files.
126158         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126159         __localtime_r.
126160         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126161         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126163         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126164         __gmtime_r.
126165         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126166         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126167         Include <time_r.h>.
126169         * lib/timegm.c: Switch to glibc implementation, with the following
126170         changes:
126171         [defined HAVE_CONFIG_H]: Include <config.h>.
126172         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126173         (__mktime_internal) [!defined _LIBC]: New decl.
126174         (__gmtime_r) [!defined _LIBC]: New macro and function.
126175         (timegm): Use a prototype, since gnulib assumes C89.
126176         Do not bother declaring tmp to be const, as it's not really usefu.
126177         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126178         (timegm): Declare only if HAVE_DECL_TIMEGM.
126180 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126182         * MODULES.html.sh (func_all_modules): Add time_r.
126183         * modules/time_r: New file.
126184         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126185         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126187 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126189         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126190         Bug reported by Lute Kamstra in
126191         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126193         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126194         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126195         course with correspondingly smaller numbers for tomorrow and
126196         yesterday.  From Tadayoshi Funaba.  Originally installed into
126197         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126198         coreutils merge?).
126200 2003-08-31  Simon Josefsson  <jas@extundo.com>
126202         * modules/timegm: New file.
126203         * MODULES.html.sh (func_all_modules): Add timegm.
126205 2003-08-31  Simon Josefsson  <jas@extundo.com>
126207         * m4/timegm.m4: New file.
126209 2003-08-31  Simon Josefsson  <jas@extundo.com>
126211         * lib/timegm.h: New file.
126212         * lib/timegm.c: New file.  Based on
126213         wget-1.8.2/src/http.c:mktime_from_utc.
126215 2003-08-31  Karl Berry  <karl@gnu.org>
126217         * lib/argp.h: update from libc.
126219 2003-08-28  Bruno Haible  <bruno@clisp.org>
126221         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
126222         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
126223         followed by '#define fnmatch fnmatch_posix' gives an error.
126225 2003-08-28  Bruno Haible  <bruno@clisp.org>
126227         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
126228         warning on QNX, which defines O_BINARY to 000000.
126230 2003-08-27  Jim Meyering  <jim@meyering.net>
126232         * m4/mkstemp.m4: Require that the system mkstemp be able to create
126233         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
126234         would fail after 32.  Reported by Danny Levinson.  Details here:
126235         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
126237 2003-08-24  Bruno Haible  <bruno@clisp.org>
126239         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
126240         MSVC7 <stdio.h> is included later.
126242 2003-08-22  Simon Josefsson  <jas@extundo.com>
126244         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
126246 2003-08-20  Karl Berry  <karl@gnu.org>
126248         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126250 2003-08-20  Bruno Haible  <bruno@clisp.org>
126252         * modules/progname: New file.
126253         * MODULES.html.sh (func_all_modules): Add progname.
126255 2003-08-20  Bruno Haible  <bruno@clisp.org>
126257         * lib/progname.h: New file, from GNU gettext.
126258         * lib/progname.c: New file, from GNU gettext.
126259         * lib/progreloc.c: New file, from GNU gettext.
126261 2003-08-19  Jim Meyering  <jim@meyering.net>
126263         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126264         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126266 2003-08-19  Bruno Haible  <bruno@clisp.org>
126268         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126269         more.
126271 2003-08-19  Bruno Haible  <bruno@clisp.org>
126273         * lib/xstrdup.c: Assume <string.h> exists.
126275 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126277         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126278         in makefile rules.
126280 2003-08-18  Jim Meyering  <jim@meyering.net>
126282         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126283         * m4/lib-ld.m4: Likewise.
126285 2003-08-18  Jim Meyering  <jim@meyering.net>
126287         * lib/setenv.h: Indent nested cpp directive.
126288         * lib/vasnprintf.c: Remove trailing blanks.
126290 2003-08-17  Simon Josefsson  <jas@extundo.com>
126292         * modules/xstrndup: New file.
126293         * MODULES.html.sh (func_all_modules): Add xstrndup.
126295 2003-08-17  Simon Josefsson  <jas@extundo.com>
126297         * modules/argp: Fix autoconf macro name. Add more dependencies.
126299 2003-08-17  Simon Josefsson  <jas@extundo.com>
126301         * m4/xstrndup.m4: New file.
126303 2003-08-17  Simon Josefsson  <jas@extundo.com>
126305         * m4/argp.m4: New file.
126307 2003-08-17  Simon Josefsson  <jas@extundo.com>
126308             Bruno Haible  <bruno@clisp.org>
126310         * lib/xstrndup.h: New file.
126311         * lib/xstrndup.c: New file.
126313 2003-08-17  Bruno Haible  <bruno@clisp.org>
126315         * modules/strndup (Files, Include): Add lib/strndup.h.
126317 2003-08-17  Bruno Haible  <bruno@clisp.org>
126319         * modules/euidaccess (Files): Add lib/euidaccess.h.
126321 2003-08-17  Bruno Haible  <bruno@clisp.org>
126323         * lib/strndup.h: New file.
126325 2003-08-17  Bruno Haible  <bruno@clisp.org>
126327         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126328         like AC_GNU_SOURCE.
126329         * modules/extensions (configure.ac): Comment out the invocation of
126330         gl_USE_SYSTEM_EXTENSIONS.
126332 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126334         Merges from coreutils, etc.
126335         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126336         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126337         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126338         fixing a typo.
126339         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126340         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126342 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126344         Document merge from coreutils.
126345         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126346         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126347         * modules/utime: Add m4/utimes-null.m4.
126349 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126351         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126352         space, undoing this 2003-08-12 change:
126353         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126355 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126357         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126358         strtoul.c from libc, undoing this 2003-08-12 change:
126359         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126361 2003-08-16  Jim Meyering  <jim@meyering.net>
126363         Merges from coreutils.
126364         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126365         prefix.  Adjust cache variables similarly.  Create 500 rather than
126366         just 300 files, to exercise bug on Darwin6.5, too.
126367         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126368         $missing_dir.
126369         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126370         AM_SYS_POSIX_TERMIOS.
126371         Reported by mkc@mathdogs.com.
126372         Also change use of $am_cv_sys_posix_termios
126373         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126374         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126375         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126376         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126377         in /proc/mounts until it finds one with matching device number.  This
126378         is unnecessary when the FILE argument *is* a mount point.  No stat call
126379         is necessary in that case.  So, disable the statvfs-testing code on
126380         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
126381         as RedHat bug# 84846.
126382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126383         to 1MB, so as not to render systems with no stack size limit (e.g.,
126384         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126385         Include <unistd.h>.  On some systems,
126386         it is required for the definition of _SC_PAGESIZE.
126388 2003-08-16  Jim Meyering  <jim@meyering.net>
126390         Merge from coreutils.
126391         * lib/xstrtoimax.c: #else #if -> #elif.
126392         * lib/xstrtoumax.c: Likewise.
126394 2003-08-16  Jim Meyering  <jim@meyering.net>
126396         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
126397         * m4/utimes.m4: Removed.
126398         * m4/utimes-null.m4: Renamed from utimes.m4.
126400         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126401         to 1MB, so as not to render systems with no stack size limit (e.g.,
126402         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126403         Include <unistd.h>.  On some systems,
126404         it is required for the definition of _SC_PAGESIZE.
126406 2003-08-16  Jim Meyering  <jim@meyering.net>
126407         and Paul Eggert  <eggert@cs.ucla.edu>
126409         Merges from coreutils, etc.
126411         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
126412         using the latest version from cvs.  This avoids problems with #line
126413         directives using a vendor (Sun) compiler.
126414         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
126415         Don't set GETGROUPS_LIB here; now it's
126416         done via getgroups.m4's wrapper function.
126417         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
126418         rather than just in sh-util/configure.in, so that the
126419         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
126420         same.
126421         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
126422         AC_FUNC_GETLOADAVG where to find getloadavg.c.
126423         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
126424         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
126425         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
126426         Remove code that is now done by the newly-required macros.
126427         Append $(EXEEXT) to DF_PROG.
126428         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
126429         Do not invoke or require the following here,
126430         since prereq.m4 or some gnulib .m4 now does this for us:
126431         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
126432         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
126433         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
126434         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
126435         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
126436         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
126437         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
126438         AC_FUNC_OBSTACK.
126439         Do not replace the following functions, as this is now the job
126440         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
126441         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
126442         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
126443         atexit getpass, strdup, getpagesize.
126444         Replace 'raise'.
126445         Do not check for the following functions, as this is now the job
126446         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
126447         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
126448         setregid.
126449         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
126450         Check for sys/sysctl.h.
126451         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
126452         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
126453         of checking for ssize_t ourselves.
126455         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
126456         Require every macro that gnulib/modules/* suggests for us.
126457         (jm_PREREQ_ADDEXT): New macro.
126458         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
126459         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
126461         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
126462         (gl_PHYSMEM): Use it.
126463         Also check for `table' function.
126464         Check for new headers and functions.
126465         Add check for sys/sysmp.h.
126466         With suggestions from Kaveh Ghazi.
126467         Ignore headers that are present but cannot be compiled.  This
126468         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
126469         C 5.4.
126471 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126473         Document merge from coreutils.
126474         * modules/userspec: Depend on posixver.
126475         * modules/strftime: Depend on tzset.
126477 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126479         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
126480         rather than tab, after '#' in shell-script copyright notices.
126481         Suggested by Bruno Haible.
126483 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126485         * config/srclist-update: Use three spaces, rather than tab, after '#'
126486         in shell-script copyright notices.  Suggested by Bruno Haible.
126487         Remove unnecessary parenthesization in regular expression.
126489 2003-08-15  Jim Meyering  <jim@meyering.net>
126491         Merge from coreutils.
126492         * lib/xgethostname.c: Include <stdlib.h>.
126493         (xghostname): Don't exit for anything other than memory-related
126494         failure; just return NULL.
126495         * lib/userspec.c: Include "posixver.h".
126496         (parse_user_spec): Accept `.' as a separator only
126497         in pre-POSIX-200112 mode.
126498         * lib/strtoimax.c: Use #elif rather than #else #if.
126499         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
126500         Remove function, now that we can rely on a working tzset function.
126501         [!_LIBC]: Ensure that the required autoconf test has been run.
126502         [!defined _NL_CURRENT && HAVE_STRFTIME]:
126503         Use underlying_strftime for %r.
126504         * lib/sha.c: Merge in some clean-up and optimization changes from
126505         glibc.
126506         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126507         Ensure that it is a multiple of 64.
126508         Rearrange loop exit tests so as to avoid performing an
126509         additional fread after encountering an error or EOF.
126510         * lib/realloc.c: Update copyright date.
126512 2003-08-15  Jim Meyering  <jim@meyering.net>
126513         and Paul Eggert  <eggert@twinsun.com>
126515         Merge from coreutils.
126516         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
126517         member but strut utmpx does not.  Needed for AIX 4.3.3.
126518         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
126520 2003-08-15  Jim Meyering  <jim@meyering.net>
126521         and Paul Eggert  <eggert@cs.ucla.edu>
126523         Merges from coreutils, etc.
126524         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
126525         Require gl_FUNC_TZSET_CLOBBER.
126526         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
126527         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
126528         members.
126530 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126532         Help the merge from coreutils.
126533         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
126534         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
126535         * m4/tzset.m4: Use it too.
126537 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126539         * modules/tzset: New file.
126541 2003-08-14  Jim Meyering  <jim@meyering.net>
126543         Merges from coreutils.
126544         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
126545         variable names, rather than @FNMATCH_H@.
126546         * modules/alloca: Likewise for $(ALLOCA_H).
126548         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
126549         the three copies of the literal target, `fnmatch.h'.
126550         * modules/alloca (alloca.h): Likewise.
126552 2003-08-14  Jim Meyering  <jim@meyering.net>
126554         Merge from coreutils.
126555         * m4/tzset.m4: New file.
126556         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
126557         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
126558         otherwise, AIX 5.1 systems would end up using the latter.
126559         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
126560         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
126561         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
126562         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
126564 2003-08-14  Jim Meyering  <jim@meyering.net>
126566         Merge from coreutils.
126567         * lib/obstack.h: Whitespace changes.
126568         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
126569         and xcalloc return values.
126570         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
126571         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
126572         hang on OSF/1 5.1 for DIR on both local and remote file systems.
126573         Reported by (and fix confirmed by) Nelson H. F. Beebe.
126574         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
126575         error from mntctl.
126576         Use mntctl's return value to drive the entry-processing loop, since
126577         we can't rely on the value of the vmt_length member in the last
126578         entry.  On some systems doing so could result in exhausting
126579         virtual memory.  Based in part on a patch from Mike Jetzer.
126581 2003-08-14  Jim Meyering  <jim@meyering.net>
126582         and Paul Eggert  <eggert@twinsun.com>
126584         Merges from coreutils, plus other fixes.
126585         * lib/physmem.c: Merge in portability changes from gcc/libiberty
126586         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
126587         for credits and details.  Thanks to Kaveh Ghazi for helping
126588         to keep these files in sync.
126589         (ARRAY_SIZE): Define it.
126590         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
126591         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
126592         (memcasecmp): Don't assume size_t fits in unsigned int.
126593         Remove casts and duplicate code.
126594         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
126595         (memcpy): Remove definition.
126596         Merge in some clean-up and optimization changes from glibc.
126597         [BLOCKSIZE]: Move definition to top of file.
126598         Ensure that it is a multiple of 64.
126599         Rearrange loop exit tests so as to avoid performing an
126600         additional fread after encountering an error or EOF.
126601         * lib/md5.h (md5_uintptr): Define.
126602         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
126603         return to the initial working directory.  Preserve errno
126604         for caller.
126605         * lib/idcache.c: Include "xalloc.h".
126606         (xmalloc, xrealloc): Remove decls.
126607         (getuser): Remove casts no longer required in C89.
126608         * lib/human.c: Include stdio.h, for sprintf.
126609         * lib/group-member.c: Include "xalloc.h".
126610         (xmalloc, xrealloc): Remove decls.
126611         (get_group_info): Remove casts no longer required in C89.
126612         * lib/getusershell.c (readname): Remove casts no longer required in
126613         C89.
126614         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
126615         * lib/getline.c: Whitespace fix, from coreutils.
126617 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126619         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
126620         Check for isascii.
126622         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126623         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126624         Undo previous (whitespace-only) change.
126626 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126628         * lib/exclude.c: Include <ctype.h>
126629         (IN_CTYPE_DOMAIN): New macro.
126630         (is_space): New fn.
126631         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
126632         and empty lines.
126634         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126635         Undo previous (whitespace-only) change.
126637 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126639         * config/srclist-update: Change update back to the old behavior,
126640         leaving whitespace alone.  Use one 'sed' command rather than a
126641         pipeline.
126642         (fixlicense): Now a variable, not a function.
126643         (remove_trailing_blanks): Remove.
126644         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
126645         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126646         Undo previous (whitespace-only) change.
126648 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126650         Merge from coreutils.
126651         * modules/euidaccess: Add lib_SOURCES, include for new
126652         file euidaccess.h
126654 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126656         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126657         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126658         Normalize leading white space and remove trailing white space.
126660         Merge from coreutils
126661         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
126663         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
126664         0.12.1.  These files are now being upgraded automatically by
126665         ../config/srclist-update.
126667 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126669         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126670         Normalize leading white space and remove trailing white space.
126671         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
126672         notice, as per ../config/srclist-update.
126674         Merge from coreutils.
126675         * lib/euidaccess.h: New file.
126676         * lib/euidaccess.c: Include it.
126677         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
126678         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
126679         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
126681 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126683         * config/srclist-update: Add copyright notice.
126684         (remove_id_lines, remove_trailing_blanks): New constants.
126685         (fixfile): Use them to normalize spacing a bit in copied files.
126686         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126687         Normalize leading white space and remove trailing white space.
126689         * config/texinfo.tex: Sync with texinfo.
126691         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
126692         strtoul.c from libc, to merge coreutils whitespace changes.
126694         * config/srclist.txt: Get the following m4 files from gettext:
126695         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
126696         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
126697         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
126698         wint_t.m4.
126700 2003-08-12  Karl Berry  <karl@gnu.org>
126702         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
126703         been made.
126705 2003-08-11  Paul Eggert  <eggert@twinsun.com>
126707         * modules/gnu-source, m4/gnu-source.m4:
126708         Remove; we're assuming Autoconf 2.54 or later now.
126709         Suggested by Bruno Haible.
126710         * MODULES.html.sh (func_all_modules): Remove gnu-source.
126712 2003-08-11  Bruno Haible  <bruno@clisp.org>
126714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
126716 2003-08-11  Bruno Haible  <bruno@clisp.org>
126718         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
126719         (vasnprintf): Use it instead of wcslen.
126721 2003-08-11  Bruno Haible  <bruno@clisp.org>
126723         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
126724         value to ensure that _Bool promotes to int. Use #define for _Bool when
126725         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
126727 2003-08-10  Karl Berry  <karl@gnu.org>
126729         * lib/regex.h: update from libc (whitespace fix).
126731 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126733         Merge some files from coreutils.  These changes were
126734         originally made by Jim Meyering.
126735         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
126736         many older Unixes require this.
126737         * lib/alloca.c (alloca): Remove cast to argument of free;
126738         no longer needed in C89.
126739         * lib/alloca_.h, regex.h: Fix white space to match
126740         what GNU indent does.
126742 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126744         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
126745         apparently Emacs's Unicode mode got confused before my 2003-08-05
126746         checkin.
126748 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126750         * m4/extensions.m4: New file.
126751         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
126752         Require gl_USE_SYSTEM_EXTENSIONS.
126753         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
126754         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
126756 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126758         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
126759         * modules/extensions, modules/gnu-source: New files.
126760         * modules/timespec, modules/unlocked-io: Depend on extensions.
126762 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126764         * modules/restrict: New file.
126765         * MODULES.html.sh (func_all_modules): Add restrict.
126766         * modules/regex: Depend on restrict.
126768 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126770         * m4/restrict.m4: New file.
126771         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
126773 2003-08-07  Bruno Haible  <bruno@clisp.org>
126775         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
126776         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
126778 2003-08-07  Bruno Haible  <bruno@clisp.org>
126780         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
126781         makes the module 'getndelim2' compatible with the module 'getline'.
126783 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126785         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
126786         byte with "\201" to avoid glitches when editing that source file
126787         with multi-gnome-terminal.
126789 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126791         * lib/bumpalloc.h: Remove.
126793 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126795         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
126796         * modules/bumpalloc: Remove.
126798 2003-08-04  Paul Eggert  <eggert@twinsun.com>
126800         * lib/getloadavg.c: Change copyright notice and spacing to conform to
126801         GNU coding style.
126803         Merge from coreutils.
126804         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
126805         1. From glibc.
126806         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
126807         from Karl Berry, implemented by Jim Meyering.
126808         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
126809         from Dmitry V. Levin.
126810         Remove anachronistic cast of xrealloc.
126811         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
126812         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
126813         type. Otherwise, it wouldn't compile with at least /bin/cc on
126814         ymp-cray-unicos9.0.2.X.
126815         Combine two mostly-identical uses of alloca into one.
126816         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
126818 2003-08-04  Dave Love  <d.love@dl.ac.uk>
126820         [From Emacs.]
126822         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
126823         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
126824         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
126825         obsolete NLIST_NAME_UNION.
126826         [__GNU__]: Undef BSD and FSCALE.
126827         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
126829 2003-08-03  Paul Eggert  <eggert@twinsun.com>
126831         * lib/stdbool_.h (_Bool): Make it signed char, instead of
126832         an enum type, so that it's guaranteed to promote to int.  See:
126833         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
126835 2003-08-03  Karl Berry  <karl@gnu.org>
126837         * config/depcomp: update from automake.
126839 2003-07-31  Paul Eggert  <eggert@twinsun.com>
126841         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
126842         (strerror): Don't assume that a printable int fits in 14 bytes.
126844 2003-07-31  Bruno Haible  <bruno@clisp.org>
126846         * modules/getpass-gnu: New file.
126847         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
126849 2003-07-31  Bruno Haible  <bruno@clisp.org>
126851         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
126853 2003-07-24  Karl Berry  <karl@gnu.org>
126855         * config/missing: update from automake.
126857 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
126858             Bruno Haible  <bruno@clisp.org>
126860         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
126861         * lib/getline.c (getline, getdelim): Likewise.
126862         Remove _GNU_SOURCE define; now it's defined in config.h through
126863         m4/getline.m4.
126865 2003-07-23  Karl Berry  <karl@gnu.org>
126867         * config/config.sub: update from prep.
126869 2003-07-22  Paul Eggert  <eggert@twinsun.com>
126871         * modules/xalloc (Depends-on): Add exitfail.
126872         * modules/xmemcoll: Likewise.
126874 2003-07-22  Paul Eggert  <eggert@twinsun.com>
126876         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
126877         over-parenthesization in macros.
126879         Sync with coreutils.
126881         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
126882         required by C99.
126884         Use `exit_failure' for xalloc and xmemcoll instead of their own
126885         private exit-failure variables.
126886         * lib/xalloc.h (xalloc_exit_failure): Remove.
126887         * lib/xmalloc.c: Likewise.  Include exitfail.h.
126888         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
126889         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
126890         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
126891         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
126893 2003-07-20  Jim Meyering  <jim@meyering.net>
126895         * modules/closeout (Depends-on): Add exitfail.
126896         Suggestion from Bruno Haible.
126898 2003-07-19  Karl Berry  <karl@gnu.org>
126900         * config/config.sub: update from prep.
126902 2003-07-18  Paul Eggert  <eggert@twinsun.com>
126904         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
126905         Remove.
126906         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
126907         to test that it can stand by itself.  Include "exitfail.h".
126908         Clients should set exit_failure instead.
126909         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
126911 2003-07-18  Bruno Haible  <bruno@clisp.org>
126913         * modules/getndelim2: New file.
126914         * modules/getline: Share files with module getndelim2.
126915         * modules/getnline: Depend on getndelim2 instead of sharing files with
126916         it. Add getnline.c to lib_SOURCES.
126917         * MODULES.html.sh (func_all_modules): Add getndelim2.
126919 2003-07-18  Bruno Haible  <bruno@clisp.org>
126921         * m4/getndelim2.m4: New file.
126922         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
126923         invoke gl_PREREQ_GETNDELIM2.
126924         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
126925         gl_PREREQ_GETNDELIM2.
126926         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
126927         gl_GETNDELIM2.
126929 2003-07-18  Bruno Haible  <bruno@clisp.org>
126931         * lib/getndelim2.h: New file.
126932         * lib/getndelim2.c: Make into a module of its own. Include config.h,
126933         getndelim2.h.
126934         (getndelim2): Make non-static. Change return type to ssize_t.
126935         * lib/getline.h: Change argument names.
126936         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
126937         * lib/getnline.c: Include getndelim2.h.
126939 2003-07-18  Andreas Schwab  <schwab@suse.de>
126941         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
126943 2003-07-17  Karl Berry  <karl@gnu.org>
126945         * config/config.sub: update from prep.
126947 2003-07-17  Bruno Haible  <bruno@clisp.org>
126949         * modules/getnline: New file.
126950         * modules/getline: Add lib/getndelim2.c to source file list.
126951         * MODULES.html.sh (func_all_modules): Add getnline.
126953 2003-07-17  Bruno Haible  <bruno@clisp.org>
126955         * m4/getnline.m4: New file.
126957 2003-07-17  Bruno Haible  <bruno@clisp.org>
126959         * m4/Makefile.am.in: Remove file.
126960         * m4/Makefile.am: Remove file.
126961         * m4/Makefile.in: Remove file.
126963 2003-07-17  Bruno Haible  <bruno@clisp.org>
126965         * lib/getnline.h: New file.
126966         * lib/getnline.c: New file.
126967         * lib/getndelim2.c: New file, extracted from getline.c.
126968         (getndelim2): Renamed from getdelim2, with added nmax argument.
126969         * lib/getline.c: Include getndelim2.c.
126970         (getdelim2): Moved out to getndelim2.c.
126971         (getline, getdelim): Update.
126973 2003-07-17  Bruno Haible  <bruno@clisp.org>
126975         * lib/Makefile.am: Remove file.
126976         * lib/Makefile.in: Remove file.
126978 2003-07-17  Bruno Haible  <bruno@clisp.org>
126980         * configure.in: Remove file.
126981         * Makefile.in: Remove file.
126983 2003-07-17  Bruno Haible  <bruno@clisp.org>
126985         * MODULES.html.sh: Put the </BODY> right before </HTML>.
126987 2003-07-16  Karl Berry  <karl@gnu.org>
126989         * config/srclist-update: was running fixlicense twice, which caused
126990                 texinfo.tex to be nullified for some reason.  Simplify,
126991                 $gplsrc is no longer needed as far as I can see?
126993 2003-07-16  Jim Meyering  <jim@meyering.net>
126995         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
126997 2003-07-15  Paul Eggert  <eggert@twinsun.com>
126999         * config/srclist.txt: Get the following files from gettext-runtime/intl
127000         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127001         ref-del.sin.  From Bruno Haible.
127002         * config/srclist-update (fixfile): Change grep pattern again, since the
127003         previous fix didn't work (there was another trailing $).  Use
127004         '[$]' to escape the $s.
127006 2003-07-15  Karl Berry  <karl@gnu.org>
127008         * lib/vasnprintf.c: update from gettext.
127010 2003-07-15  Karl Berry  <karl@gnu.org>
127012         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127013         gets expanded when surrounded by '$'.
127015 2003-07-15  Jim Meyering  <jim@meyering.net>
127017         * modules/save-cwd: Don't depend on error.  From Derek Price.
127019 2003-07-15  Jim Meyering  <jim@meyering.net>
127021         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127023 2003-07-14  Simon Josefsson  <jas@extundo.com>
127025         * modules/mempcpy: New file.
127026         * MODULES.html.sh (func_all_modules): Add mempcpy.
127028 2003-07-14  Simon Josefsson  <jas@extundo.com>
127030         * m4/mempcpy.m4: New file.
127032 2003-07-14  Simon Josefsson  <jas@extundo.com>
127034         * lib/mempcpy.h: New file.
127035         * lib/mempcpy.c: New file.
127037 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127039         * modules/getdate, modules/posixtm: Depend on mktime.
127041 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127043         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127044         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127045         unicodeio.c, unicodeio.h, unlocked-io.h:
127046         Switch from LGPL to GPL.
127048 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127050         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127051         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127052         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127053         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127054         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127055         updated automatically by ../config/srclist-update.  This changes
127056         their license from LPGL to GPL.
127058 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127060         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127061         assumed to refer to the root of the most recent stable gettext version.
127062         * config/srclistvars.sh: Add defaults for eggert.
127063         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127064         Match "This program" as well as "The program".  This is needed
127065         for gettext.
127067 2003-07-14  Jim Meyering  <jim@meyering.net>
127069         Don't emit diagnostics.  Let callers do that.
127070         * lib/save-cwd.c: Don't include "error.h".
127071         (save_cwd): Don't call error.  Ensure that errno is valid
127072         when returning nonzero.
127074         * lib/save-cwd.h (restore_cwd): Update prototype.
127075         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127076         Simplify.  Don't call error upon failure.  Let callers do that.
127077         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127078         when auditing is enabled.  But don't bother updating the #if.
127080 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127082         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127083         it breaks C++ compilation.
127084         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127086 2003-07-10  Simon Josefsson  <jas@extundo.com>
127088         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127090 2003-07-10  Jim Meyering  <jim@meyering.net>
127092         * m4/clock_time.m4: Remove trailing blank.
127093         * m4/intmax_t.m4: Likewise.
127095 2003-07-10  Jim Meyering  <jim@meyering.net>
127097         * lib/vasnprintf.c: Remove trailing blanks.
127098         Make cpp indentation consistent.
127100 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127102         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127103         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127104         Switch from LGPL to GPL.
127106 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127108         * config/srclist.txt: Sort sublists.  Add
127109         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127110         that differ from gnulib for one reason or another; we'd like this list
127111         to be smaller but for now let's document what we have.
127113 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127115         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127116         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127117         and sweeter "eval x=$x".
127118         * config/srclist.txt: Get lib/argp* from glibc.
127120 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127122         * lib/mktime.c: Fix some boundary cases and remove need for floating
127123         point.
127125         Issue a compile-time diagnostic if time_t is floating point, or if
127126         two's complement arithmetic is not in effect, or if arithmetic
127127         right shift does not propagate the sign.  These assumptions were
127128         all in the original code but they weren't checked.
127130         (TIME_T_MIDPOINT, verify): New macros.
127131         (__isleap): Remove; it has integer overflow problems.
127132         (leapyear): New function, without those problems.
127133         (ydhms_tm_diff): Remove; splitting into two parts.
127134         (ydhms_diff): New function, containing the arithmetic part of
127135         the old ydhms_tm_diff function.  Issue a compile-time
127136         diagnostic if we are not using C99 integer division.
127137         Avoid casts when possible.
127138         (guess_time_tm): New function, containing the checking part of
127139         the old ydhms_tm_diff function.  Return the new value, rather than
127140         the difference between it and the old.  Accept a new argument T
127141         so that *T specifies the old value.  Check for overflow in the result.
127143         (__mktime_internal): Use a time_t offset, not a long int offset.
127144         This undoes the 2003-06-04 change, which is no longer needed now
127145         that we have better overflow checking.
127146         (localtime_offset): Likewise.
127148         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127149         and long are 64-bit but int is only 32-bit.
127150         (ydhms_diff): Use long int to store year1 and yday1.
127151         Issue a compile-time diagnostic if long int is not wide enough.
127153         (__mktime_internal): Use long int to store adjusted year and yday.
127154         Use plain C rather than preprocessor commands, if that doesn't
127155         affect efficiency.
127156         Check for overflow (and try to repair) after each probe
127157         rather than checking only at the very end.  This avoids some bugs
127158         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127159         does not equal GMT offset at maximum time).
127160         Use integer to check for overflow rather than floating point; this
127161         is more portable to non-IEEE hosts, and is a tad faster.
127162         When we detect that we are oscillating between two values,
127163         don't check whether tm_isdst has the requested value, since
127164         we already know the answer.  When tm_isdst has the wrong value,
127165         use a different heuristic to find the right one, based on the
127166         extreme values actually observed in practice in tz2003a,
127167         rather than the (overly optimistic) "previous 3 calendar quarters".
127169         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127170         "T const" to accommodate glibc style.
127171         (check_result): Use less-confusing report format.  "long" -> "long int.
127172         (main): Likewise.
127173         Don't loop if the iteration overflows time_t.
127174         Allow a negative step in the iteration.
127176 2003-07-06  Karl Berry  <karl@gnu.org>
127178         * config/depcomp: update from automake.
127179         * config/config.sub: update from prep.
127181 2003-07-03  Karl Berry  <karl@gnu.org>
127183         * config/config.guess: update from prep.
127185 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127187         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127188         xreadlink.c now includes it unconditionally.
127190 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127192         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127193         having it depend on HAVE_SYS_TYPES_H.
127195 2003-07-01  Bruno Haible  <bruno@clisp.org>
127197         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127198         <sys/types.h> should be sufficient.
127199         Reported by Paul Eggert.
127201 2003-06-26  Karl Berry  <karl@gnu.org>
127203         * config/depcomp: update from automake.
127205 2003-06-26  Bruno Haible  <bruno@clisp.org>
127207         * modules/human: Depend on module stdbool.
127209 2003-06-25  Bruno Haible  <bruno@clisp.org>
127211         * modules/readlink: New file.
127212         * modules/xreadlink: Depend on it.
127213         * MODULES.html.sh (func_all_modules): Add readlink.
127215 2003-06-25  Bruno Haible  <bruno@clisp.org>
127217         * m4/readlink.m4: New file.
127219 2003-06-25  Bruno Haible  <bruno@clisp.org>
127221         * lib/readlink.c: New file.
127223 2003-06-22  Karl Berry  <karl@gnu.org>
127225         * config/srclist.txt: update mkinstalldirs from automake.
127226         * config/mkinstalldirs: update.
127228 2003-06-22  Bruno Haible  <bruno@clisp.org>
127230         Portability to mingw32.
127231         * m4/ssize_t.m4: New file, from GNU gettext.
127232         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
127233         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
127235 2003-06-22  Bruno Haible  <bruno@clisp.org>
127237         * modules/safe-read: Add m4/ssize_t.m4.
127238         * modules/xreadlink: Add m4/ssize_t.m4.
127240 2003-06-20  Bruno Haible  <bruno@clisp.org>
127242         Assume C89, so PARAMS isn't needed.
127243         * lib/unicodeio.h (PARAMS): Remove.
127244         * lib/unicodeio.c: Don't use PARAMS.
127246 2003-06-18  Karl Berry  <karl@gnu.org>
127248         * config/config.{guess,sub}: update from prep.
127250 2003-06-18  Jim Meyering  <jim@meyering.net>
127252         Merge changes from coreutils.
127253         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127254         Remove explicit declarations of xmalloc and realloc.
127255         Include xalloc.h.
127256         (read_utmp): Remove anachronistic cast of xmalloc.
127258 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127260         Assume C89, so PARAMS isn't needed.
127261         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127262         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127263         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127264         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127265         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127266         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127267         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127268         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127269         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127270         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127271         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127272         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127273         no longer needed. Anyway, config.h should always be included before any
127274         other file.
127276 2003-06-11  Simon Josefsson  <jas@extundo.com>
127278         * modules/sysexits: New file.
127279         * MODULES.html.sh (func_all_modules): Add sysexits.
127281 2003-06-11  Simon Josefsson  <jas@extundo.com>
127283         * lib/sysexit_.h: New file.
127285 2003-06-11  Derek Price  <derek@ximbiot.com>
127287         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127288         necessary.
127290 2003-06-11  Bruno Haible  <bruno@clisp.org>
127292         * m4/sysexits.m4: New file.
127294 2003-06-10  Simon Josefsson  <jas@extundo.com>
127296         * lib/argp.h: New file, from glibc.
127297         * lib/argp-ba.c: New file, from glibc.
127298         * lib/argp-eexst.c: New file, from glibc.
127299         * lib/argp-fmtstream.c: New file, from glibc.
127300         * lib/argp-fmtstream.h: New file, from glibc.
127301         * lib/argp-fs-xinl.c: New file, from glibc.
127302         * lib/argp-help.c: New file, from glibc.
127303         * lib/argp-namefrob.h: New file, from glibc.
127304         * lib/argp-parse.c: New file, from glibc.
127305         * lib/argp-pv.c: New file, from glibc.
127306         * lib/argp-pvh.c: New file, from glibc.
127307         * lib/argp-xinl.c: New file, from glibc.
127309 2003-06-10  Simon Josefsson  <jas@extundo.com>
127311         * modules/strchrnul: New file.
127313 2003-06-10  Simon Josefsson  <jas@extundo.com>
127315         * modules/argp: New file.
127317 2003-06-10  Simon Josefsson  <jas@extundo.com>
127319         * m4/strchrnul.m4: New file.
127321 2003-06-10  Simon Josefsson  <jas@extundo.com>
127323         * lib/strchrnul.h: New file.
127324         * lib/strchrnul.c: New file.
127326 2003-06-10  Bruno Haible  <bruno@clisp.org>
127328         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127330 2003-06-07  Karl Berry  <karl@gnu.org>
127332         * config/config.{guess,sub}: update from prep.
127334 2003-06-07  Jim Meyering  <jim@meyering.net>
127336         * modules/strtod: Use $(...) notation, not @...@ for
127337         AC_REPLACE'd variables.
127338         * modules/localcharset: Likewise.
127340 2003-06-07  Jim Meyering  <jim@meyering.net>
127342         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127343         in place of my name in the copyright comment.
127344         Remove definition and uses of __P.
127346         From coreutils.
127347         * lib/stat.c: Don't declare xmalloc explicitly.
127348         Instead, include "xalloc.h".
127349         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127350         xrealloc, and xcalloc return values.
127351         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127352         Improve comment.
127353         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127355 2003-06-07  Bruno Haible  <bruno@clisp.org>
127357         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127358         avoid AC_CONFIG_LINKS.
127359         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127360         fnmatch.h, to avoid AC_CONFIG_LINKS.
127361         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127363 2003-06-07  Bruno Haible  <bruno@clisp.org>
127365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127366         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127367         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127368         directory.
127369         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127370         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127371         directory.
127373 2003-06-06  Jim Meyering  <jim@meyering.net>
127375         Merge from coreutils.
127376         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127377         Consolidate declarations and initializations of *_base* locals.
127379         Merge from coreutils.
127380         This avoids a core dump on systems without GNU putenv,
127381         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
127382         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
127383         (unsetenv): New static function, from GNU libc.
127384         (rpl_putenv): Use it.
127386         * lib/modechange.c: Remove trailing blanks.
127388         Merge from coreutils.
127389         * lib/fsusage.c: Remove declaration of statfs.
127390         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
127392         * lib/posixtm.c: Include <stdbool.h> unconditionally.
127394 2003-06-06  Jim Meyering  <jim@meyering.net>
127396         * lib/stdbool_.h: Renamed from stdbool.h.in.
127398 2003-06-06  Jim Meyering  <jim@meyering.net>
127399             Bruno Haible  <bruno@clisp.org>
127401         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
127402         Adjust Makefile.am snippet not to redirect directly to target.
127403         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
127405 2003-06-05  Paul Eggert  <eggert@twinsun.com>
127407         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
127408         mismatch, look in future quarters as well as past.  This fixes a
127409         bug when processing fall-backwards gaps immediately after a long
127410         period of daylight-saving time.
127412         * lib/mktime.c: Assume freestanding C89 or better.
127413         (HAVE_LIMITS_H): Remove.  Assume it's 1.
127414         (__P): Remove; not used.
127415         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
127416         (mktime, not_equal_tm, print_tm, check_result,
127417         main): Use prototypes.  Use const * where appropriate.
127418         (main): Fix typo in testing code that uncovered by above changes.
127419         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
127421 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127423         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
127424         locale.h, localeconv.  This merges changes from coreutils.
127426         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
127427         It can be removed after the next Autoconf is released.
127428         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
127429         needed.
127431 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127433         * lib/mktime.c: Fix Debian bug 177940
127434         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
127435         (localtime_offset): Now long int, not time_t, because we want it
127436         to be guaranteed to be signed.  All uses changed.
127437         (__mktime_internal): If overflow would occur when adding offset,
127438         don't add it.
127440         Merge 'human' changes from coreutils.  Rewrite to support
127441         locale-specific notations like thousands separators.
127442         * lib/human.c: Simplify authorship notice.
127443         Include human.h immediately after config.h.
127444         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
127445         <limits.h>: Do not include, since human.h does.
127446         (SIZE_MAX, UINTMAX_MAX): New macros.
127447         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
127448         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
127449         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
127450         (power_letter): Renamed from suffixes.
127451         (generate_suffix_backwards): Remove.
127452         (adjust_value): Now takes int style (because of human.h changes)
127453         and long double value (for greater precision on some platforms).
127454         (group_number): New function.
127455         (human_readable): Use it.  Use integer options, not enum.
127456         Put the options before the sizes in the arg list.
127457         Support all the new options.
127458         The old human_readable function has been removed;
127459         use inttostr.h instead.
127460         (human_readable, default_block_size, humblock):
127461         Use uintmax_t, not int, for block sizes.
127462         (human_readable_inexact, block_size_types): Remove.
127463         (block_size_opts): New constant.
127464         (human_options): Renamed from human_block_size, with new signature
127465         that allows block sizes up to UINTMAX_MAX.  All callers changed.
127466         * lib/human.h: Add copyright and authorship notice.
127467         Include <limits.h> and <stdbool.h> unconditionally.
127468         (PARAMS): Remove.  All uses removed.
127469         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
127470         (enum human_inexact_style): Remove tag; now a nameless enum.
127471         (human_floor, human_ceiling, human_round_to_even): Now have
127472         values 2, 0, 1 rather than -1, 1, 0.
127473         (human_group_digits, human_suppress_point_zero, human_autoscale,
127474         human_base_1024, human_SI, human_B): New constants.
127475         (human_readable_inexact, human_block_size): Remove.
127476         (human_readable): Size args are now uintmax_t, not int.
127477         (human_options): New decl.
127479         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
127480         unnecessary now that we assume C89 or better.  This change
127481         imported from coreutils.
127483         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127484         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
127485         in the 2003-05-30 sync from glibc.
127487         .h files should stand alone, but we shouldn't include <sys/types.h>
127488         if we can get away with just <stddef.h>.
127490         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
127491         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
127492         rather than <sys/types.h>, as we merely need size_t.
127493         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
127494         to get size_t.
127495         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
127496         Include <stdio.h>, to get FILE.
127497         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
127498         memcasecmp.h has included <stddef.h> and all we need is size_t.
127499         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
127500         our interface, instead of including <sys/types.h>
127502 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127504         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
127505         now, as glibc mktime is buggy on non-glibc systems.
127507 2003-06-03  Karl Berry  <karl@gnu.org>
127509         * config/config.sub: update from prep.
127511 2003-06-02  Paul Eggert  <eggert@twinsun.com>
127513         [from coreutils]
127514         Fix some minor time-related bugs with POSIX time arguments.
127515         Some valid time stamps were being rejected (notably -1, and
127516         time stamps before 1900 on 64-bit hosts).  And some invalid
127517         time stamps were being accepted, e.g. September 31.
127519         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
127520         that we can return (time_t) -1 successfully.
127521         * lib/posixtm.c: Likewise.
127522         [HAVE_STDBOOL_H]: Include <stdbool.h>.
127523         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
127524         (t): Remove static var.
127525         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
127526         of static var.  All uses changed.
127527         (year): Do not reject years before 1900; they can occur with
127528         64-bit time_t.
127529         (posix_time_parse): Do not check for out-of-range components;
127530         that is now the caller's responsibility, since our checks were
127531         only approximations.
127532         (posixtime): Use mktime to check for out-of-range components,
127533         since it knows them exactly.
127534         If mktime returns (time_t) -1, check whether an error actually occurred
127535         by invoking localtime on -1.
127536         (main) [TEST_POSIXTIME]: Check for input data errors, and report
127537         posixtime failures better.
127538         Improve the test data (in comments only).
127540 2003-06-02  Karl Berry  <karl@gnu.org>
127542         * config/mkinstalldirs (version): new variable.
127543         (--version): new option.
127544         (usage): improve message.
127546 2003-05-30  Karl Berry  <karl@gnu.org>
127548         * lib/mktime.c: update from libc.
127550 2003-05-30  Bruno Haible  <bruno@clisp.org>
127552         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
127553         * config/config.rpath: Upgrade to gettext-0.12.1.
127555 2003-05-30  Bruno Haible  <bruno@clisp.org>
127557         * m4/gettext.m4: Upgrade to gettext-0.12.1.
127558         * m4/nls.m4: New file, from gettext-0.12.1.
127559         * m4/po.m4: New file, from gettext-0.12.1.
127560         * m4/progtest.m4: Upgrade to gettext-0.12.1.
127562 2003-05-30  Bruno Haible  <bruno@clisp.org>
127564         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
127565         * lib/localcharset.h: Likewise.
127566         * lib/localcharset.c: Likewise.
127568 2003-05-29  Karl Berry  <karl@gnu.org>
127570         * config/config.rpath: update from gettext.
127572 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127574         Assume the headers required for C89 freestanding compilers.
127575         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
127576         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
127577         * m4/human.m4 (gl_HUMAN): Likewise.
127578         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
127579         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
127580         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127581         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
127582         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127583         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
127585 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127587         Assume the headers required for C89 freestanding compilers.
127588         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
127589         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
127590         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
127591         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
127592         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
127593         define, since <limits.h> is guaranteed to do that.
127594         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
127595         * lib/exclude.c: Include <stdbool.h> unconditionally.
127596         * lib/tempname.c: Include <stddef.h> unconditionally.
127597         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
127598         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
127599         <stddef.h> does that.
127600         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
127601         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
127602         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
127603         needed.
127604         * lib/xstrtol.c: Likewise.
127605         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
127606         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
127608         * lib/addext.c (addext): Use assignment rather than cast, to avoid
127609         warnings on some platforms.
127611         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127612         arbitrarily.
127614 2003-05-26  Jim Meyering  <jim@meyering.net>
127616         Merge in a change from coreutils:
127617         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
127618         that is guaranteed to be `no'.  Use `no_such_member' to indicate
127619         that condition, rather than `-1' which is slightly misleading.
127620         Change the name of the cache variable to have the gl_ prefix.
127621         Prompted by a patch from Richard Dawe for DJGPP.
127623 2003-05-24  Karl Berry  <karl@gnu.org>
127625         * config/config.guess: update from prep.
127627 2003-05-22  Karl Berry  <karl@gnu.org>
127629         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
127631 2003-05-20  Karl Berry  <karl@gnu.org>
127633         * config/config.guess: update from prep.
127635 2003-05-18  Karl Berry  <karl@gnu.org>
127637         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
127638         might actually be set by the user.
127640         * config/depcomp, install-sh, mdate-sh: update from automake.
127642 2003-05-17  Bruno Haible  <bruno@clisp.org>
127644         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
127645         invalid expansion for AC_EGREP_CPP.
127646         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
127647         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
127648         Suggested by Akim Demaille <akim@epita.fr> in
127649         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
127651 2003-05-12  Jim Meyering  <jim@meyering.net>
127653         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
127654         the space-padded-by-default conversion specifiers, %e, %k, %l.
127656 2003-05-12  Bruno Haible  <bruno@clisp.org>
127658         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
127659         the string is longer than 4 KB.
127661 2003-05-11  Karl Berry  <karl@gnu.org>
127663         * config/config.{guess,sub}: update from prep.
127665 2003-05-09  Bruno Haible  <bruno@clisp.org>
127667         * modules/error: Add m4/strerror_r.m4 to file list.
127669 2003-05-03  Bruno Haible  <bruno@clisp.org>
127671         Upgrade to Unicode-4.0.
127672         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
127673         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
127674         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
127675         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
127676         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
127677         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
127678         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
127679         Change width of U+E0100..U+E01EF from 1 to 0.
127681 2003-04-25  Jim Meyering  <jim@meyering.net>
127683         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
127684         of type size_t, not int.
127686 2003-04-25  Bruno Haible  <bruno@clisp.org>
127688         * lib/copy-file.c: Include <stddef.h>, for size_t.
127690 2003-04-21  Paul Eggert  <eggert@twinsun.com>
127692         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
127693         code which expansion is under static control.  Patch imported from
127694         Akim Demaille's patch to Bison; see
127695         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
127697 2003-04-14  Bruno Haible  <bruno@clisp.org>
127699         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
127701 2003-04-11  Jim Meyering  <jim@meyering.net>
127703         Merge changes from Coreutils.
127705         2003-03-22  Jim Meyering  <jim@meyering.net>
127707         * lib/strftime.c (widen): Cast alloca return value to proper type.
127709         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
127711         From GNU libc.
127712         * lib/strftime.c (my_strftime): Handle very large width
127713         specifications for numeric values correctly.  Improve checks for
127714         overflow.
127716         2003-01-19  Jim Meyering  <jim@meyering.net>
127718         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
127719         definitions.
127720         (nl_get_alt_digit) [! defined my_strftime]: Define.
127721         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
127722         _nl_get_alt_digit and _nl_get_walt_digit.
127724         * lib/strftime.c (my_strftime): Merge in locale-related changes from
127725         libc. These changes have no effect outside of _LIBC.
127727 2003-04-10  Bruno Haible  <bruno@clisp.org>
127729         * modules/findprog: New file.
127730         * MODULES.html.sh (func_all_modules): Add it.
127732 2003-04-10  Bruno Haible  <bruno@clisp.org>
127734         * m4/findprog.m4: New file.
127735         * m4/eaccess.m4: New file.
127737 2003-04-10  Bruno Haible  <bruno@clisp.org>
127739         * lib/findprog.h: New file, from GNU gettext.
127740         * lib/findprog.c: New file, from GNU gettext.
127742 2003-04-05  Jim Meyering  <jim@meyering.net>
127744         Merge changes from Coreutils.
127746         * lib/exclude.h (PARAMS): Remove definition and uses.
127747         * lib/exclude.c: Remove uses of `PARAMS'.
127749         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
127750         Add test-cases for DOS filenames. Declare program_name.
127751         (main): Set up program_name.  Patch by Rich Dawe.
127753         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127754         error from mntctl.
127755         Use mntctl's return value to drive the entry-processing loop, since
127756         we can't rely on the value of the vmt_length member in the last
127757         entry.  On some systems doing so could result in exhausting
127758         virtual memory.  Based in part on a patch from Mike Jetzer.
127760 2003-04-04  Bruno Haible  <bruno@clisp.org>
127762         * modules/linebreak: New file.
127763         * MODULES.html.sh (func_all_modules): Add it.
127765 2003-04-04  Bruno Haible  <bruno@clisp.org>
127767         * m4/linebreak.m4: New file.
127769 2003-04-04  Bruno Haible  <bruno@clisp.org>
127771         * lib/linebreak.h: New file, from GNU gettext.
127772         * lib/linebreak.c: New file, from GNU gettext with slight
127773         modifications.
127774         * lib/lbrkprop.h: New file, from GNU gettext.
127776 2003-04-03  Bruno Haible  <bruno@clisp.org>
127778         * modules/utf8-ucs4: New file.
127779         * modules/utf16-ucs4: New file.
127780         * modules/ucs4-utf8: New file.
127781         * modules/ucs4-utf16: New file.
127782         * MODULES.html.sh (func_all_modules): Add them.
127784 2003-04-03  Bruno Haible  <bruno@clisp.org>
127786         * m4/utf-ucs4.m4: New file.
127787         * m4/ucs4-utf.m4: New file.
127789 2003-04-03  Bruno Haible  <bruno@clisp.org>
127791         * lib/utf8-ucs4.h: New file, from GNU gettext.
127792         * lib/utf16-ucs4.h: New file, from GNU gettext.
127793         * lib/ucs4-utf8.h: New file, from GNU gettext.
127794         * lib/ucs4-utf16.h: New file, from GNU gettext.
127796 2003-04-02  Bruno Haible  <bruno@clisp.org>
127798         * modules/binary-io: New file.
127799         * MODULES.html.sh (func_all_modules): Add it.
127801 2003-04-02  Bruno Haible  <bruno@clisp.org>
127803         * lib/binary-io.h: New file, from GNU gettext.
127805 2003-04-01  Bruno Haible  <bruno@clisp.org>
127807         * modules/pathname: New file.
127808         * MODULES.html.sh (func_all_modules): Add it.
127810 2003-04-01  Bruno Haible  <bruno@clisp.org>
127812         * lib/pathname.h: New file, from GNU gettext.
127813         * lib/concatpath.c: New file, from GNU gettext.
127815 2003-03-30  Bruno Haible  <bruno@clisp.org>
127817         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
127819 2003-03-30  Bruno Haible  <bruno@clisp.org>
127821         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
127822         function chown() doesn't exist.
127824 2003-03-28  Bruno Haible  <bruno@clisp.org>
127826         * modules/copy-file: New file.
127827         * MODULES.html.sh (func_all_modules): Add it.
127829 2003-03-28  Bruno Haible  <bruno@clisp.org>
127831         * m4/copy-file.m4: New file.
127833 2003-03-28  Bruno Haible  <bruno@clisp.org>
127835         * lib/copy-file.h: New file, from GNU gettext.
127836         * lib/copy-file.c: New file, from GNU gettext.
127838 2003-03-18  Jim Meyering  <jim@meyering.net>
127840         * lib/quote.c (quote_n): Fix typo in comment.
127842 2003-03-18  Bruno Haible  <bruno@clisp.org>
127844         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
127845         checking.
127846         * m4/onceonly_2_57.m4: Likewise.
127848 2003-03-17  Bruno Haible  <bruno@clisp.org>
127850         * m4/onceonly.m4: Require autoconf 2.54 or newer.
127851         (m4_quote): Remove macro.
127852         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
127854 2003-03-14  Jim Meyering  <jim@meyering.net>
127856         Merge changes from Coreutils.
127857         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
127858         to be const, in order to avoid warnings.
127859         (obstack_room): Likewise.
127860         (obstack_empty_p): Likewise.
127862 2003-03-14  Bruno Haible  <bruno@clisp.org>
127864         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
127865         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
127867 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127869         Merge changes from Bison.
127870         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
127871         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
127872         when compiling Bison 1.875's `bitset bset = obstack_alloc
127873         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
127874         * lib/hash.c: Include <stdbool.h> unconditionally.
127876 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127878         * m4/onceonly.m4 (m4_quote): New macro.
127879         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
127880         Quote AC_FOREACH variable-expansions properly.
127882 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127884         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
127886 2003-03-09  Paul Eggert  <eggert@twinsun.com>
127888         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
127889         Reported by Bruce Becker; see:
127890         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
127892 2003-03-03  Paul Eggert  <eggert@twinsun.com>
127893             Bruno Haible  <bruno@clisp.org>
127895         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
127896         Reported by John Hughes, see
127897         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
127899 2003-02-20  Bruno Haible  <bruno@clisp.org>
127901         * MODULES.html.sh (func_all_modules): Add poll.
127903 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127905         * modules/poll: New file.
127907 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127909         * lib/poll_.h: New file.
127910         * lib/poll.c: New file.
127912 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
127914         * m4/poll.m4: New file.
127916 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127918         * modules/mathl: New file.
127920 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127922         * lib/mathl.h: New file.
127923         * lib/acosl.c: New file.
127924         * lib/asinl.c: New file.
127925         * lib/atanl.c: New file.
127926         * lib/ceill.c: New file.
127927         * lib/cosl.c: New file.
127928         * lib/expl.c: New file.
127929         * lib/floorl.c: New file.
127930         * lib/frexpl.c: New file.
127931         * lib/ldexpl.c: New file.
127932         * lib/logl.c: New file.
127933         * lib/sincosl.c: New file.
127934         * lib/sinl.c: New file.
127935         * lib/sqrtl.c: New file.
127936         * lib/tanl.c: New file.
127937         * lib/trigl.c: New file.
127938         * lib/trigl.h: New file.
127940 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
127942         * m4/mathl.m4: New file.
127944 2003-02-18  Bruno Haible  <bruno@clisp.org>
127946         * MODULES.html.sh (func_all_modules): Add mathl.
127948 2003-02-17  Bruno Haible  <bruno@clisp.org>
127950         * modules/mkdtemp: New module.
127951         * MODULES.html.sh (func_all_modules): Add it.
127953 2003-02-17  Bruno Haible  <bruno@clisp.org>
127955         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
127957 2003-02-17  Bruno Haible  <bruno@clisp.org>
127959         * lib/mkdtemp.h: New file, from GNU gettext.
127960         * lib/mkdtemp.c: New file, from GNU gettext.
127962 2003-02-02  Jim Meyering  <jim@meyering.net>
127964         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
127965         e.g. glibc-2.2.93.
127967 2003-01-31  Bruno Haible  <bruno@clisp.org>
127969         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
127970         'rpl_rename'.
127971         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
127972         'rpl_strnlen'.
127973         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
127974         'rpl_strtod'.
127975         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
127976         'rpl_utime'.
127978 2003-01-31  Bruno Haible  <bruno@clisp.org>
127980         * lib/rename.c: #undef rename before defining rpl_rename.
127981         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
127983 2003-01-30  Bruno Haible  <bruno@clisp.org>
127985         * modules/vasnprintf, modules/vasprintf: New modules.
127986         * MODULES.html.sh (func_all_modules): Add them.
127988 2003-01-30  Bruno Haible  <bruno@clisp.org>
127990         * m4/signed.m4: New file, from GNU gettext.
127991         * m4/longdouble.m4: New file, from GNU gettext.
127992         * m4/wchar_t.m4: New file, from GNU gettext.
127993         * m4/wint_t.m4: New file, from GNU gettext.
127994         * m4/vasnprintf.m4: New file.
127995         * m4/vasprintf.m4: New file.
127997 2003-01-30  Bruno Haible  <bruno@clisp.org>
127999         * lib/printf-args.h: New file, from GNU gettext.
128000         * lib/printf-args.c: New file, from GNU gettext.
128001         * lib/printf-parse.h: New file, from GNU gettext.
128002         * lib/printf-parse.c: New file, from GNU gettext.
128003         * lib/vasnprintf.h: New file, from GNU gettext.
128004         * lib/vasnprintf.c: New file, from GNU gettext.
128005         * lib/asnprintf.c: New file, from GNU gettext.
128006         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128007         * lib/vasprintf.c: New file, from GNU gettext.
128008         * lib/asprintf.c: New file, from GNU gettext.
128010 2003-01-29  Bruno Haible  <bruno@clisp.org>
128012         * modules/stpncpy: New module.
128013         * MODULES.html.sh (func_all_modules): Add it.
128015 2003-01-29  Bruno Haible  <bruno@clisp.org>
128017         * m4/stpncpy.m4: New file.
128019 2003-01-29  Bruno Haible  <bruno@clisp.org>
128021         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128022         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128024 2003-01-28  Bruno Haible  <bruno@clisp.org>
128026         * modules/c-ctype: New module.
128027         * MODULES.html.sh (func_all_modules): Add it.
128029 2003-01-28  Bruno Haible  <bruno@clisp.org>
128031         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128032         Paul Eggert.
128033         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128034         Paul Eggert.
128036 2003-01-27  Bruno Haible  <bruno@clisp.org>
128038         * modules/xsetenv: New module.
128039         * MODULES.html.sh (func_all_modules): Add it.
128041 2003-01-27  Bruno Haible  <bruno@clisp.org>
128043         * lib/xsetenv.h: New file, from GNU gettext.
128044         * lib/xsetenv.c: New file, from GNU gettext.
128046 2003-01-23  Jim Meyering  <jim@meyering.net>
128048         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128049         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128051 2003-01-23  Bruno Haible  <bruno@clisp.org>
128053         * modules/minmax: New module.
128054         * MODULES.html.sh (func_all_modules): Add it.
128056 2003-01-23  Bruno Haible  <bruno@clisp.org>
128058         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128059         Eggert.
128061 2003-01-22  Bruno Haible  <bruno@clisp.org>
128063         * modules/exit: New module.
128064         * MODULES.html.sh (func_all_modules): Add it.
128066 2003-01-22  Bruno Haible  <bruno@clisp.org>
128068         * lib/exit.h: New file, from GNU gettext.
128070 2003-01-19  Bruno Haible  <bruno@clisp.org>
128072         * gnulib-tool: Recognize option --extract-maintainer.
128073         (func_get_maintainer): New function.
128074         * modules/*: Add Maintainer entry.
128076 2003-01-16  Jim Meyering  <jim@meyering.net>
128078         * m4/regex.m4: The `regex' struct is both input and output.
128079         Initialize it before each use.  Patch by Tim Waugh.
128081 2003-01-16  Bruno Haible  <bruno@clisp.org>
128083         * MODULES.html.sh: Add a table of contents. Add the module name as
128084         leftmost column. Add hyperlinks.
128086 2003-01-15  Bruno Haible  <bruno@clisp.org>
128088         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128090 2003-01-15  Bruno Haible  <bruno@clisp.org>
128092         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128093         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128094         suffix.
128096 2003-01-15  Bruno Haible  <bruno@clisp.org>
128098         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128100 2003-01-15  Bruno Haible  <bruno@clisp.org>
128102         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128103         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128105 2003-01-14  Jim Meyering  <jim@meyering.net>
128107         * lib/same.c (same_name): Tweak a comment.
128109 2003-01-14  Bruno Haible  <bruno@clisp.org>
128111         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128112         when a string comparison is sufficient.
128114 2003-01-14  Bruno Haible  <bruno@clisp.org>
128116         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128117         'unsigned int'.
128119 2003-01-14  Bruno Haible  <bruno@clisp.org>
128121         * lib/hash-pjw.c: Add comment about low quality of this function.
128123 2003-01-13  Bruno Haible  <bruno@clisp.org>
128125         * modules/stpcpy: Distribute lib/stpcpy.h.
128126         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128128 2003-01-13  Bruno Haible  <bruno@clisp.org>
128130         * modules/*: Add a description.
128131         * modules/strpbrk: Fix Makefile.am snippet.
128132         * modules/strtoimax: Fix dependencies.
128133         * modules/strtoumax: Likewise.
128135 2003-01-13  Bruno Haible  <bruno@clisp.org>
128137         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128138         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128139         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128141 2003-01-13  Bruno Haible  <bruno@clisp.org>
128143         * gnulib-tool (func_create_testdir): Store config/* files in the main
128144         directory.
128145         * config.rpath: Move to ...
128146         * config/config.rpath: ... here.
128147         * modules/gettext: Contains config/config.rpath, not config.rpath.
128148         * modules/iconv: Likewise.
128150 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128152         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128153         to avoid collisions with libcurses and libreadline.
128155         * m4/getstr.m4: Remove.
128156         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128158 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128160         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128161         to avoid collisions with libcurses and libreadline.
128163         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128164         * lib/getstr.h, getstr.c: Remove.
128165         * lib/getline.c: Include "getline.h", to check interface.
128166         Move body of old getstr.c here: this defines MIN_CHUNK and
128167         declares getdelim2, which is renamed from getstr.
128168         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128170         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128171         All uses changed.
128172         * lib/linebuffer.h: Likewise.
128173         (readline): Remove backward-compatibility macro.
128175 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128177         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128178         to avoid collisions with libcurses and libreadline.
128179         * getstr: Remove.
128180         * MODULES.html.sh: Remove getstr.
128181         * modules/getline: Depend on unlocked-io, not getstr.
128183 2003-01-12  Jim Meyering  <jim@meyering.net>
128185         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128187 2003-01-10  Bruno Haible  <bruno@clisp.org>
128189         * modules/alloca: Change Makefile.am requirements. Simplify Include
128190         requirements. Add lib/alloca_.h to file list.
128192 2003-01-10  Bruno Haible  <bruno@clisp.org>
128194         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128196 2003-01-10  Bruno Haible  <bruno@clisp.org>
128198         * lib/alloca_.h: New file.
128199         * lib/getdate.y: Unconditionally include alloca.h.
128200         * lib/makepath.c: Likewise.
128201         * lib/setenv.c: Likewise.
128202         * lib/userspec.c: Likewise.
128204 2003-01-09  Karl Berry  <karl@gnu.org>
128206         * MODULES.html.sh: include `dirname $0` in PATH, to find
128207         gnulib-tool.
128209 2003-01-09  Bruno Haible  <bruno@clisp.org>
128211         * modules/stdbool: Change configure.ac, Makefile.am requirements.
128212         Simplify Include requirements. Add lib/stdbool.h.in to file list.
128214 2003-01-09  Bruno Haible  <bruno@clisp.org>
128216         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
128218 2003-01-09  Bruno Haible  <bruno@clisp.org>
128220         * lib/stdbool.h.in: New file.
128222 2003-01-09  Bruno Haible  <bruno@clisp.org>
128224         * gnulib-tool (func_all_modules): Ignore files ending in ~.
128225         * MODULES.html.sh: Likewise.
128227 2003-01-08  Jim Meyering  <jim@meyering.net>
128229         * lib/full-write.c: Undefine and define-away `const' after inclusion
128230         of errno.h, not before.  Suggestion from Bruno Haible.
128232 2003-01-08  Bruno Haible  <bruno@clisp.org>
128234         * modules/full-read: Depend on full-write.
128236 2003-01-08  Bruno Haible  <bruno@clisp.org>
128238         * lib/safe-read.c: Include specification header first, to ensure its
128239         selfcontainedness.
128240         * lib/full-write.c: Likewise.
128242 2003-01-07  Jim Meyering  <jim@meyering.net>
128244         * lib/full-write.c: Rework so that it may serve to define full_read,
128245         too.
128246         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
128248 2003-01-07  Bruno Haible  <bruno@clisp.org>
128250         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128251         <inttypes.h>.
128252         * lib/xstrtol.h: Likewise.
128253         * lib/xstrtoimax.c: Likewise.
128254         * lib/xstrtoumax.c: Likewise.
128255         * lib/human.h: Likewise.
128257         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128258         on systems that have <inttypes.h> but not <stdint.h>.
128260 2003-01-07  Bruno Haible  <bruno@clisp.org>
128262         * MODULES.html.sh: Add copyright notice.
128263         (missed_files): Omit CVS directory entries.
128264         (func_module): Make it work with sed-3.02.
128265         * MODULES.txt: Remove file.
128267 2003-01-06  Jim Meyering  <jim@meyering.net>
128269         * lib/version-etc.c: Update year in translatable copyright string.
128271 2003-01-03  Karl Berry  <karl@gnu.org>
128273         * config/config.{guess,sub}: update from prep.
128275 2003-01-02  Karl Berry  <karl@gnu.org>
128277         * doc/COPYING.DOC: belatedly updated to 1.2.
128279 2003-01-01  Karl Berry  <karl@gnu.org>
128281         * gnulib-tool (func_verify_module): report module name $module in
128282         error message, not $1.
128283         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128284         be created, only if it doesn't exist.
128285         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128287 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128289         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128291 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128293         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128294         memcmp if strcoll doesn't work.
128296 2002-12-31  Bruno Haible  <bruno@clisp.org>
128298         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128299         nonempty.
128301 2002-12-31  Bruno Haible  <bruno@clisp.org>
128303         * lib/memcoll.c (STRCOLL): New macro.
128304         (memcoll): Use it.
128306 2002-12-31  Bruno Haible  <bruno@clisp.org>
128308         * lib/localcharset.h: New file.
128309         * lib/localcharset.c: Include it.
128310         * lib/unicodeio.c: Likewise.
128312 2002-12-31  Bruno Haible  <bruno@clisp.org>
128314         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128315         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128317 2002-12-31  Bruno Haible  <bruno@clisp.org>
128319         * lib/getline.h: Include <stddef.h>, for size_t.
128321         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128322         * lib/unicodeio.c: Don't include <stddef.h>.
128324 2002-12-31  Bruno Haible  <bruno@clisp.org>
128326         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128327         HAVE_TM_ZONE.
128329 2002-12-24  Karl Berry  <karl@gnu.org>
128331         * config/config.guess: update from prep.
128333 2002-12-24  Bruno Haible  <bruno@clisp.org>
128335         General infrasructure.
128336         * m4/README: Rewritten.
128337         * m4/onceonly.m4: New file.
128338         * m4/onceonly_2_57.m4: New file.
128340         Module atexit.
128341         * m4/atexit.m4: New file.
128343         Module strtod.
128344         * m4/strtod.m4: New file.
128346         Module strtol.
128347         * m4/strtol.m4: New file.
128349         Module strtoul.
128350         * m4/strtoul.m4: New file.
128352         Module memchr.
128353         * m4/memchr.m4: New file.
128355         Module memcmp.
128356         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128357         (jm_FUNC_MEMCMP): Invoke it.
128359         Module memcpy.
128360         * m4/memcpy.m4: New file.
128362         Module memmove.
128363         * m4/memmove.m4: New file.
128365         Module memset.
128366         * m4/memset.m4: New file.
128368         Module strcspn.
128369         * m4/strcspn.m4: New file.
128371         Module strpbrk.
128372         * m4/strpbrk.m4: New file.
128374         Module strstr.
128375         * m4/strstr.m4: New file.
128377         Module strerror.
128378         * m4/strerror.m4: New file.
128380         Module mktime.
128381         * m4/mktime.m4: Renamed from jm-mktime.m4.
128382         (gl_PREREQ_MKTIME): New macro.
128383         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
128385         Module malloc.
128386         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
128387         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
128388         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
128390         Module realloc.
128391         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
128392         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
128393         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
128395         Module strftime.
128396         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
128397         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
128398         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
128399         gl_TM_GMTOFF.
128400         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
128402         Module xalloc.
128403         * m4/xalloc.m4: New file.
128405         Module alloca.
128406         * m4/alloca.m4: New file.
128408         Module putenv.
128409         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
128410         (jm_FUNC_PUTENV): Invoke it.
128412         Module setenv.
128413         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
128414         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
128415         when invoked twice.
128416         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
128417         gt_FUNC_SETENV.
128419         Module memrchr.
128420         * m4/memrchr.m4: New file.
128422         Module stpcpy.
128423         * m4/stpcpy.m4: New file.
128425         Module strcase.
128426         * m4/strcase.m4: New file.
128428         Module strdup.
128429         * m4/strdup.m4: New file.
128431         Module strnlen.
128432         * m4/strnlen.m4: New file.
128434         Module strndup.
128435         * m4/strndup.m4: New file.
128437         Module xstrtod.
128438         * m4/xstrtod.m4: New file.
128440         Module xstrtol.
128441         * m4/xstrtol.m4: New file.
128443         Module getdate.
128444         * m4/getdate.m4: New file.
128446         Module unlocked-io.
128447         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
128448         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
128449         * m4/jm-glibc-io.m4n: Remove file.
128451         Module long-options.
128452         * m4/long-options.m4: New file.
128454         Module md5.
128455         * m4/md5.m4: New file.
128457         Module sha.
128458         * m4/sha.m4: New file.
128460         Module getstr.
128461         * m4/getstr.m4: New file.
128463         Module getline.
128464         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
128465         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
128466         <sys/types.h>, for size_t. Use the function name gnu_getline, not
128467         simply getline. Infoke gl_PREREQ_GETLINE.
128469         Module obstack.
128470         * m4/obstack.m4: New file.
128472         Module hash.
128473         * m4/hash.m4: New file.
128475         Module readtokens.
128476         * m4/readtokens.m4: New file.
128478         Module strverscmp.
128479         * m4/strverscmp.m4: New file.
128481         Module stdbool.
128482         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
128483         OSF/1.
128485         Module strtoll.
128486         * m4/strtoll.m4: New file.
128488         Module strtoull.
128489         * m4/strtoull.m4: New file.
128491         Module strtoimax.
128492         * m4/strtoimax.m4: New file.
128494         Module strtoumax.
128495         * m4/strtoumax.m4: New file.
128497         Module xstrtoimax.
128498         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
128499         jm_AC_PREREQ_XSTRTOIMAX.
128500         Moved the strtol prerequisites to strtol.m4.
128501         Moved the strtoll prerequisites to strtoll.m4.
128502         Moved the strtoimax prerequisites to strtoimax.m4.
128504         Module xstrtoumax.
128505         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
128506         jm_AC_PREREQ_XSTRTOUMAX.
128507         Moved the strtoul prerequisites to strtoul.m4.
128508         Moved the strtoull prerequisites to strtoull.m4.
128509         Moved the strtoumax prerequisites to strtoumax.m4.
128511         Module chown.
128512         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
128513         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
128515         Module dup2.
128516         * m4/dup2.m4: New file.
128518         Module ftruncate.
128519         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
128520         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
128522         Module getgroups.
128523         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
128524         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
128526         Module gettimeofday.
128527         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
128528         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
128529         gl_PREREQ_GETTIMEOFDAY.
128531         Module mkdir.
128532         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
128533         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
128535         Module mkstemp.
128536         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
128537         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
128538         jm_AC_TYPE_UINTMAX_T.
128539         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
128541         Module stat.
128542         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
128543         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
128545         Module lstat.
128546         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
128547         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
128549         Module timespec.
128550         * m4/timespec.m4 (gl_TIMESPEC): New macro.
128551         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
128552         * m4/st_mtim.m4: Indentation.
128554         Module nanosleep.
128555         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
128556         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
128557         gl_PREREQ_NANOSLEEP.
128559         Module regex.
128560         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
128561         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
128562         (gl_REGEX): New macro.
128564         Module rename.
128565         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
128566         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
128568         Module rmdir.
128569         * m4/rmdir.m4: New file.
128571         Module utime.
128572         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
128573         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
128574         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
128576         Module dirname.
128577         * m4/dirname.m4: New file.
128579         Module getopt.
128580         * m4/getopt.m4: New file.
128582         Module unistd-safer.
128583         * m4/unistd-safer.m4: New file.
128585         Module fnmatch.
128586         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
128587         declaration.
128588         (gl_PREREQ_FNMATCH_EXTRA): New macro.
128589         (gl_FUNC_FNMATCH_POSIX): New macro.
128590         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
128591         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
128592         simply fnmatch.
128594         Module exclude.
128595         * m4/exclude.m4: New file.
128597         Module human.
128598         * m4/human.m4: New file.
128600         Module acl.
128601         * m4/acl.m4: Nop.
128603         Module backupfile.
128604         * m4/backupfile.m4: New file.
128605         * m4/d-ino.m4: Indentation.
128607         Module fsusage.
128608         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
128609         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
128610         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
128612         Module dirfd.
128613         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
128614         requirements.
128616         Module euidaccess.
128617         * m4/euidaccess.m4: New file.
128619         Module file-type.
128620         * m4/file-type.m4: New file.
128622         Module fileblocks.
128623         * m4/fileblocks.m4: New file.
128625         Module filemode.
128626         * m4/filemode.m4: New file.
128628         Module isdir.
128629         * m4/isdir.m4: New file.
128631         Module lchown.
128632         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
128633         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
128635         Module makepath.
128636         * m4/makepath.m4: New file.
128638         Module modechange.
128639         * m4/modechange.m4: New file.
128641         Module mountlist.
128642         * m4/mountlist.m4: New file.
128643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
128644         Indentation.
128646         Module path-concat.
128647         * m4/path-concat.m4: New file.
128649         Module pathmax.
128650         * m4/pathmax.m4: New file.
128652         Module same.
128653         * m4/same.m4: New file.
128655         Module save-cwd.
128656         * m4/save-cwd.m4: New file.
128658         Module savedir.
128659         * m4/savedir.m4: New file.
128661         Module xgetcwd.
128662         * m4/xgetcwd.m4: New file.
128663         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
128665         Module xreadlink.
128666         * m4/xreadlink.m4: New file.
128668         Module safe-read.
128669         * m4/safe-read.m4: New file.
128671         Module safe-write.
128672         * m4/safe-write.m4: New file.
128674         Module closeout.
128675         * m4/closeout.m4: New file.
128677         Module stdio-safer.
128678         * m4/stdio-safer.m4: New file.
128680         Module getpass.
128681         * m4/getpass.m4: New file.
128683         Module getugroups.
128684         * m4/getugroups.m4: New file.
128686         Module group-member.
128687         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
128688         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
128690         Module idcache.
128691         * m4/idcache.m4: New file.
128693         Module userspec.
128694         * m4/userspec.m4: New file.
128696         Module gettime.
128697         * m4/clock_time.m4: New file.
128698         * m4/gettime.m4: New file.
128700         Module settime.
128701         * m4/settime.m4: New file.
128703         Module posixtm.
128704         * m4/posixtm.m4: New file.
128706         Module gethostname.
128707         * m4/gethostname.m4: New file.
128709         Module canon-host.
128710         * m4/canon-host.m4: New file.
128712         Module gettext.
128713         * m4/codeset.m4: New file, from gettext-0.11.5.
128714         * m4/gettext.m4: New file, from gettext-0.11.5.
128715         * m4/glibc21.m4: New file, from gettext-0.11.5.
128716         * m4/iconv.m4: New file, from gettext-0.11.5.
128717         * m4/intdiv0.m4: New file, from gettext-0.11.5.
128718         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
128719         * m4/inttypes.m4: New file, from gettext-0.11.5.
128720         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
128721         * m4/isc-posix.m4: New file, from gettext-0.11.5.
128722         * m4/lcmessage.m4: New file, from gettext-0.11.5.
128723         * m4/lib-ld.m4: New file, from gettext-0.11.5.
128724         * m4/lib-link.m4: New file, from gettext-0.11.5.
128725         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
128726         * m4/progtest.m4: New file, from gettext-0.11.5.
128727         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
128728         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
128729         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
128731         Module localcharset.
128732         * m4/localcharset.m4: New file.
128734         Module hard-locale.
128735         * m4/hard-locale.m4: New file.
128737         Module mbswidth.
128738         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
128739         onceonly macros.
128740         * m4/mbrtowc.m4: Add comment.
128742         Module memcasecmp.
128743         * m4/memcasecmp.m4: New file.
128745         Module memcoll.
128746         * m4/memcoll.m4: New file.
128748         Module unicodeio.
128749         * m4/unicodeio.m4: New file.
128751         Module rpmatch.
128752         * m4/rpmatch.m4: New file.
128754         Module yesno.
128755         * m4/yesno.m4: New file.
128757         Module exitfail.
128758         * m4/exitfail.m4: New file.
128760         Module c-stack.
128761         * m4/c-stack.m4 (gl_C_STACK): New macro.
128762         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
128764         Module error.
128765         * m4/error.m4 (gl_ERROR): New macro.
128766         (jm_PREREQ_ERROR): Use onceonly macros.
128768         Module fatal.
128769         * m4/fatal.m4: New file.
128771         Module getloadavg.
128772         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
128773         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
128775         Module getpagesize.
128776         * m4/getpagesize.m4: New file.
128778         Module getusershell.
128779         * m4/getusershell.m4: New file.
128781         Module physmem.
128782         * m4/physmem.m4: New file.
128784         Module posixver.
128785         * m4/posixver.m4: New file.
128787         Module quotearg.
128788         * m4/quotearg.m4: New file.
128790         Module quote.
128791         * m4/quote.m4: New file.
128793         Module readutmp.
128794         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
128796         Module sig2str.
128797         * m4/sig2str.m4: New file.
128799         Other.
128800         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
128801         ulonglong.m4.
128802         * m4/intmax_t.m4: New file.
128803         * m4/d-type.m4: Indentation.
128804         * m4/jm-macros.m4: Update.
128805         * m4/prereq.m4 (jm_PREREQ): Update.
128806         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
128807         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
128808         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
128809         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
128810         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
128811         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
128812         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
128813         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
128814         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
128815         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
128816         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
128817         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
128818         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
128819         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
128820         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
128821         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
128822         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
128823         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
128824         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
128826 2002-12-24  Bruno Haible  <bruno@clisp.org>
128828         * MODULES.txt: Update according to m4/ changes.
128830         Module gettext.
128831         * config.rpath: New file, from gettext-0.11.5.
128833         * modules/*: New module descriptions.
128834         * gnulib-tool: New file.
128835         * MODULES.html.sh: New file.
128837 2002-12-21  Karl Berry  <karl@gnu.org>
128839         * doc/fdl.texi: update to version 1.2.
128841 2002-12-19  Karl Berry  <karl@gnu.org>
128843         * config/config.guess: update from prep.
128845 2002-12-18  Bruno Haible  <bruno@clisp.org>
128847         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
128848         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
128850 2002-12-17  Bruno Haible  <bruno@clisp.org>
128852         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
128853         stdlib.h, string.h.
128855 2002-12-17  Bruno Haible  <bruno@clisp.org>
128857         * lib/canon-host.c (strdup): Remove unused declaration.
128859         * lib/fsusage.c: Include full_read.h.
128860         (get_fs_usage): Use full_read instead of safe_read.
128862         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
128864 2002-12-12  Karl Berry  <karl@gnu.org>
128866         * config/config.guess: update from prep.
128868 2002-12-11  Bruno Haible  <bruno@clisp.org>
128870         * m4/setenv.m4: New file, from gettext-0.11.5.
128872 2002-12-11  Bruno Haible  <bruno@clisp.org>
128874         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
128875         not unsetenv().
128876         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
128877         modifications:
128879         2002-12-11  Bruno Haible  <bruno@clisp.org>
128881                 * setenv.c (alloca): Fall back to malloc.
128882                 (freea): New macro.
128883                 (setenv): Use freea() to free memory allocated with alloca().
128885         2002-11-13  Bruno Haible  <bruno@clisp.org>
128887                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
128888                 function declarations.
128889                 * unsetenv.c (unsetenv): Likewise.
128891         2002-03-04  Bruno Haible  <bruno@clisp.org>
128893                 Portability to AIX 4.3.3.
128894                 * unsetenv.c: New file, extracted from setenv.c.
128895                 * setenv.c: Move the unsetenv() function to unsetenv.c.
128897         2001-12-20  Bruno Haible  <bruno@clisp.org>
128899                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
128900                 use malloc instead. For SunOS 4.
128902         2001-12-11  Bruno Haible  <bruno@clisp.org>
128904                 * setenv.c: Declare alloca.
128905                 (compar_fn_t): New typedef.
128906                 (KNOWN_VALUE, STORE_VALUE): Use it.
128908         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
128909         setenv.h.
128911 2002-12-10  Paul Eggert  <eggert@twinsun.com>
128913         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
128914         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
128915         Choose values that are less likely to collide with system fnmatch
128916         options.
128917         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
128918         defined (e.g., a pure POSIX system).
128919         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
128920         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
128922 2002-12-06  Paul Eggert  <eggert@twinsun.com>
128924         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
128925         a pain in practice to deal with generated m4 files.  This change
128926         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
128928         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
128929         and jm-glibc-io.m4, as they are no longer a special case.
128930         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
128931         kludge and the auto-generation stuff.  Check only whether the
128932         functions are declared, not whether they exist, since older hosts
128933         that don't declare the functions can't use the optimization anyway.
128935 2002-12-06  Jim Meyering  <jim@meyering.net>
128937         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
128939         Merge in changes from libc's misc/error.c, in preparation
128940         for the merge of gnulib's changes back into libc.
128942         * lib/error.c (_): Define only if not already defined.
128943         Move definition to follow all #include directives.
128944         Include unlocked-io.h only if !_LIBC.
128945         [_LIBC]: Include <libio/libioP.h>.
128946         [USE_IN_LIBIO]: Include <libio/iolibio.h>
128947         (fflush): Tweak definition to use INTUSE.
128948         (putc): Define.
128950 2002-12-05  Paul Eggert  <eggert@twinsun.com>
128952         * lib/alloca.c [defined emacs]: Include "lisp.h".
128953         (xalloc_die) [defined emacs]: New macro.
128954         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
128955         [! defined emacs]: Include <xalloc.h>.
128956         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
128957         (pointer): Typedef to POINTER_TYPE *.
128958         (malloc): Remove decl; we now always use xmalloc.
128959         (alloca): Use old-style definition, since Emacs needs this.
128960         Check for arithmetic overflow when computing combined size.
128962 2002-12-04  Paul Eggert  <eggert@twinsun.com>
128964         Do not generate unlocked-io.h automatically, since it's easier to
128965         maintain it by hand.
128967         * lib/unlocked-io.h: New file, from GNU diffutils,
128968         but with proper copyright notice and attribution.
128969         * lib/gen-uio: Remove.
128970         * lib/Makefile.am: Add copyright notice.
128971         (libfetish_a_SOURCES): Add unlocked-io.h.
128972         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
128973         (DISTCLEANFILES, io_functions): Remove macros.
128974         (EXTRA_DIST): Remove gen_uio.
128975         (unlocked-io.h): Remove rule.
128977 2002-12-04  Jim Meyering  <jim@meyering.net>
128979         Reflect the fact that stat.c and lstat.c are no longer generated.
128980         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
128981         (DISTCLEANFILES): Likewise.
128982         (EXTRA_DIST): Likewise.
128983         (all_local): Don't depend on stat.c or lstat.c.
128984         (stat.c, lstat.c): Remove rules.
128985         (EXTRA_DIST): Remove xstat.in.
128987         * lib/xstat.in: Remove file.  Contents moved into stat.c.
128988         * lib/stat.c: New file.  Contents mostly from xstat.in.
128989         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
128990         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
128992         * lib/safe-read.c: Rework so that it may serve to define safe_write,
128993         too.
128994         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
128996 2002-12-03  Jim Meyering  <jim@meyering.net>
128998         * lib/safe-read.c, safe-write.c: Change variable names and comments,
128999         but not semantics, to minimize the differences between these two files.
129000         (safe_read): Change comment to mention SAFE_READ_ERROR.
129002         * lib/safe-read.c (IS_EINTR): Define.
129003         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129005 2002-12-02  Jim Meyering  <jim@meyering.net>
129007         * lib/safe-read.c (EINTR): Define.
129008         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129009         (INT_MAX): Provide fallback.
129010         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129012         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129014 2002-12-02  Bruno Haible  <bruno@clisp.org>
129016         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129017         Define, taken from safe-read.c.
129018         (INT_MAX): Provide fallback.
129019         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129020         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129022         * lib/safe-read.c (EINTR): Remove definition.
129023         (safe_read): Don't use EINTR if it is absent.
129025 2002-12-01  Jim Meyering  <jim@meyering.net>
129027         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129028         zero.
129029         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129031 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129033         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129034         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129035         with `if (! (value < limit)) abort ();', for readability.
129037 2002-11-26  Karl Berry  <karl@gnu.org>
129039         * lib/strdup.c: copy from libc again, with jim's ok.
129040         * lib/.cppi-disable: re-add strdup.c
129042 2002-11-25  Karl Berry  <karl@gnu.org>
129044         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129045         instead of "strtol.c".
129047 2002-11-25  Karl Berry  <karl@gnu.org>
129049         * config/install-sh: update from automake for variable quoting, $0 in
129050         error msgs, etc.
129052         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129053         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129054         entry.
129056 2002-11-25  Jim Meyering  <jim@meyering.net>
129058         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129060 2002-11-24  Karl Berry  <karl@gnu.org>
129062         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129063         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129065 2002-11-24  Jim Meyering  <jim@meyering.net>
129067         Update from coreutils:
129069         * lib/mktime.c: Merge in changes from libc.
129071         Avoid a link-time failure on some Linux systems.
129072         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129073         (otherwise).
129074         (__mon_yday): Declare with the STATIC attribute.
129075         (__mktime_internal): Likewise.
129076         Based on a report from Greg Schafer.
129078 2002-11-23  Jim Meyering  <jim@meyering.net>
129080         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129081         Use `unsigned', not `int', as type of index.
129083         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129085         * lib/fsusage.c: Remove unneeded parentheses around operands of
129086         `defined'.
129088 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129090         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129091         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129092         so that we can be included first.
129093         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129094         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129095         No need to include stddef.h or sys/types.h any more.
129096         Surround local include files with "", not "<>".
129097         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129098         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129099         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129100         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129101         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129102         (ISPRINT): Remove; no longer needed now that we assume C89.
129104         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129105         Preserve errno.
129107         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129108         quotearg_char): Use SIZE_MAX rather than
129109         (size_t) -1 when we are talking about "infinity".
129111         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129113 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129115         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129116         hint that one should use `if (! x) abort ();' rather than `assert
129117         (x);', and anyway it's one less thing to worry about configuring.
129118         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129119         hash_rehash, hash_insert): Use abort rather than assert.
129121 2002-11-22  Bruno Haible  <bruno@clisp.org>
129123         * lib/safe-read.h: Assume C89. Add comments.
129124         (safe_read): Change return type to size_t.
129125         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129126         byte counts > SSIZE_MAX correctly.
129127         * lib/safe-write.h: New file.
129128         * lib/safe-write.c: New file.
129129         * lib/full-read.h: New file.
129130         * lib/full-read.c: New file.
129131         * lib/full-write.h: Assume C89. Add comments.
129132         * lib/full-write.c: Include safe-write.h.
129133         (full_write): Rewritten to use safe_write.
129134         Suggested by Jim Meyering and Paul Eggert.
129136 2002-11-21  Jim Meyering  <jim@meyering.net>
129138         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129140         Merge in changes from the coreutils.
129142         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129143         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129144         <stdint.h>.
129145         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129146         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129147         int.  Work more efficiently if X is the same width as uintmax_t.
129148         Do not compare X to -1, to avoid bogus compiler warning.
129149         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129150         Don't assume that f_frsize and f_bsize are the same type.
129152         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129153         warning on FreeBSD.
129155         * lib/makepath.c (make_path): Restore umask *before* creating the final
129156         component.
129157         (make_path): Minor reformatting.
129159         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129160         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129161         HAVE_MALLOC/HAVE_REALLOC.
129163         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129164         dummy ones.  At least on GNU/Linux systems, `auto' means something
129165         else.
129166         From Michael Stone.
129168 2002-11-21  Bruno Haible  <bruno@clisp.org>
129170         Remove case insensitive option matching.
129171         * lib/argmatch.h (argcasematch): Remove declaration.
129172         (ARGCASEMATCH): Remove macro.
129173         (__xargmatch_internal): Remove case_sensitive argument.
129174         (XARGMATCH): Update.
129175         (XARGCASEMATCH): Remove macro.
129176         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129177         case_sensitive argument.
129178         (argcasematch): Remove function.
129179         (__xargmatch_internal): Remove case_sensitive argument.
129180         (main): Use XARGMATCH instead of XARGCASEMATCH.
129182         * lib/xmalloc.c: Change compile-time error message. Add comment about
129183         required autoconf version.
129185 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129187         Merge argmatch cleanups from Bison.  Assume C89.
129189         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129190         Include stdlib.h, for EXIT_FAILURE.
129191         Always include <string.h>, since we assume C89.
129192         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129193         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129194         Include <stddef.h> instead, since it's all we need for size_t.
129195         (PARAMS): Remove.  All uses removed.
129196         (ARRAY_CARDINALITY): Do not bother to #undef.
129197         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129198         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129199         Remove unnecessary parentheses.
129200         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129201         Insert necessary parentheses.
129202         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129203         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129205 2002-11-19  Bruno Haible  <bruno@clisp.org>
129207         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129208         * lib/mbswidth.h: Include <stddef.h>, for size_t.
129210         * lib/mbswidth.h (PARAMS): Remove macro.
129211         (mbswidth, mbsnwidth): Use ANSI C function declarations.
129212         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
129214         * lib/gcd.h (PARAMS): Remove macro.
129215         (gcd): Use ANSI C function declarations.
129216         * lib/gcd.c (gcd): Likewise.
129218 2002-11-15  Bruno Haible  <bruno@clisp.org>
129220         * lib/strcspn.c: Include <stddef.h>.
129221         (strcspn): Use ANSI C function declaration. Change return type to
129222         size_t. Use NULL.
129223         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
129224         (strpbrk): Use NULL.
129225         * lib/strpbrk.h (PARAMS): Remove macro.
129226         (strpbrk): Use ANSI C function declaration.
129227         * lib/strstr.c: Don't include <sys/types.h>.
129228         * lib/strstr.h (PARAMS): Remove macro.
129229         (strstr): Use ANSI C function declarations.
129231 2002-11-14  Karl Berry  <karl@gnu.org>
129233         * config/mkinstalldirs: `do' on separate line, instead of
129234         `for var; do'.
129236 2002-11-06  Bruno Haible  <bruno@clisp.org>
129238         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
129239         * lib/gcd.c (gcd): Likewise.
129241 2002-11-05  Bruno Haible  <bruno@clisp.org>
129243         * lib/gcd.h: New file, from gettext-0.11.5.
129244         * lib/gcd.c: New file, from gettext-0.11.5.
129246 2002-11-05  Bruno Haible  <bruno@clisp.org>
129248         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129249         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129250         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129251         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129253         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129254         <libintl.h>.
129255         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129256         <libintl.h>.
129258         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129259         * lib/human.c: Include gettext.h instead of <libintl.h>.
129260         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129261         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129262         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129263         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129264         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129265         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129266         (textdomain): Remove definition.
129267         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129269         * lib/long-options.c: Remove include of <libintl.h> and definition of
129270         _.
129271         * lib/same.c: Remove include of <libintl.h> and definition of _.
129273 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129275         * lib/config.charset: A few additions for Solaris.
129277 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129279         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129280         * lib/localcharset.c (locale_charset): Declare as extern "C".
129282 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129284         * lib/config.charset: msdos in uk_UA uses CP1125.
129286 2002-11-04  Bruno Haible  <bruno@clisp.org>
129288         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129289         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129290         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129291         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129292         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129294 2002-11-04  Bruno Haible  <bruno@clisp.org>
129296         * lib/localcharset.c (locale_charset): Don't return an empty string.
129298 2002-11-04  Bruno Haible  <bruno@clisp.org>
129300         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129301         aliases.
129303 2002-11-04  Bruno Haible  <bruno@clisp.org>
129305         * lib/config.charset: Update for newest glibc. Add canonical names
129306         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129308 2002-11-04  Bruno Haible  <bruno@clisp.org>
129310         * lib/config.charset: Add support for NetBSD.
129312 2002-11-04  Bruno Haible  <bruno@clisp.org>
129314         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129316 2002-11-01  Bruno Haible  <bruno@clisp.org>
129318         * configure.in: Add AC_CONFIG_AUX_DIR call.
129319         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129320         test/Makefile.
129321         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129323 2002-09-28  Karl Berry  <karl@gnu.org>
129325         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129326         installed automake until the next release, since changes have been
129327         made.
129329 2002-09-25  Karl Berry  <karl@gnu.org>
129331         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129332         * lib/getopt*: copy from libc/posix.
129333         * lib/gettext.h: copy from gettext.
129334         * lib/.cppi-disable: add strdup.c, gettext.h.
129336 2002-09-25  Karl Berry  <karl@gnu.org>
129338         * config/srclist.txt: enable gettext.h check.
129339         * config/config.{guess,sub}: update from prep.
129340         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129341                 from automake 1.6.3.
129342         See srclist*.
129344 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129346         * regex.c (PATFETCH): Remove the translating fetch.
129347         (PATFETCH_RAW): Rename to PATFETCH.
129348         (set_image_of_range): New fun.
129349         (SET_RANGE_TABLE_WORK_AREA): Use it.
129350         (regex_compile): Don't translate the pattern chars so eagerly.
129351         Only do it when inserting an `exactn' bytecode or when handling
129352         a char-range.
129353         (mutually_exclusive_p): Avoid empty statement.
129355 2002-07-06  Jim Meyering  <meyering@lucent.com>
129357         * m4/README: Don't mention Makefile.am.in.
129358         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129360 2002-07-01  Jim Meyering  <meyering@lucent.com>
129362         * lib/c-stack.c: Include sys/time.h.
129363         From Volker Borchert.
129365 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129367         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129369 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129371         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129372         New macro.  Use it uniformly instead of
129373         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129374         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129375         reported by Vin Shelton.
129377 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129379         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129380         Do not assume SA_SIGINFO behavior.
129381         Bug reported by Jim Meyering on NetBSD 1.5.2.
129383 2002-06-22  Jim Meyering  <meyering@lucent.com>
129385         * m4/c-stack.m4: New file, from diffutils-2.8.2.
129386         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
129388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
129389         now that configure.ac uses AC_GNU_SOURCE.
129390         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
129391         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
129393         Update to latest tools.  Suggestions from Paul Eggert.
129394         * m4/stdbool.m4: New file, from diffutils-2.8.2.
129395         * m4/gnu-source.m4: Update from diffutils-2.8.2.
129396         * m4/fnmatch.m4: Likewise.
129397         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
129398         to AC_HEADER_STDBOOL
129400 2002-06-22  Jim Meyering  <meyering@lucent.com>
129402         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
129403         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
129405 2002-06-22  Jim Meyering  <meyering@lucent.com>
129407         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
129409         * lib/exitfail.c, exitfail.h: Likewise.
129410         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
129412         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
129413         of fnmatch.h.
129414         (EXTRA_DIST): Add fnmatch_loop.c.
129415         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
129417         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
129418         * lib/fnmatch.c: Update from diffutils-2.8.2.
129419         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
129420         * lib/fnmatch.h: Remove file.
129422 2002-06-21  Jim Meyering  <meyering@lucent.com>
129424         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
129425         * m4/mbrtowc.m4: Likewise.
129427         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
129428         * m4/mbswidth.m4: Reflect name change:
129429         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
129430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129432         * m4/lib-link.m4: Update from gettext-0.11.2.
129433         * m4/gettext.m4: Likewise.
129435         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
129436         From Alfred M. Szmidt.
129438 2002-06-18  Paul Eggert  <eggert@twinsun.com>
129440         * lib/file-type.h: Report an error if neither S_ISREG nor
129441         S_IFREG is defined, instead of using a test specific to glibc
129442         2.2.  This should be safe, since POSIX requires S_ISREG and
129443         Unix Version 7 had S_IFREG.  We don't need to check for
129444         <sys/types.h> since we don't use any symbols that it defines.
129446 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
129448         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
129449         $@-t, so that each temporary file name is unique and valid in the first
129450         8 characters, for operation under DOS.
129452 2002-06-15  Paul Eggert  <eggert@twinsun.com>
129454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
129456 2002-06-15  Jim Meyering  <meyering@lucent.com>
129458         Work even with DJGPP 2.03, which lacks support for symlinks.
129459         From Richard Dawe.
129460         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
129461         is defined.
129462         * lib/lchown.c (S_ISLNK): Likewise.
129464 2002-06-15  Jim Meyering  <meyering@lucent.com>
129466         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
129467         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
129468         have been included before this file.
129470 2002-06-14  Jim Meyering  <meyering@lucent.com>
129472         * lib/file-type.h: Use the version from diffutils-2.8.2.
129473         * lib/file-type.c: Likewise.
129475 2002-06-07  Jim Meyering  <meyering@lucent.com>
129477         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
129478         They're needed at least for NetBSD 1.5.2.
129479         ($statxfs_includes): Include those same headers.
129480         ($statxfs_includes): Include sys/vfs.h if available.
129481         ($statxfs_includes): Likewise for sys/statvfs.h.
129482         Check for the following members in both structs statfs and statvfs:
129483         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
129485 2002-06-01  Jim Meyering  <meyering@lucent.com>
129487         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
129488         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
129490 2002-05-28  Jim Meyering  <meyering@lucent.com>
129492         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
129493         Reported by Volker Borchert.
129495 2002-05-27  Jim Meyering  <meyering@lucent.com>
129497         Fix a problem seen only on nonconforming systems whereby ls.c's
129498         use of localtime, and then of gettimeofday would cause trouble:
129499         the localtime call used to initialize rpl_gettimeofday's save
129500         mechanism would clobber ls's current local time information so
129501         that in any long listing the first file would always be listed
129502         with date 1970-01-01.  Analysis by Volker Borchert.
129504         * lib/gettimeofday.c (localtime): Undefine.
129505         (rpl_localtime): New function.
129507 2002-05-27  Jim Meyering  <meyering@lucent.com>
129509         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
129510         localtime.
129512         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
129513         use the replacement function; it wouldn't resolve at link time.
129514         Reported by Volker Borchert.
129516 2002-05-22  Jim Meyering  <meyering@lucent.com>
129518         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
129519         file-type.h.
129520         * lib/file-type.h: New file.
129521         * lib/file-type.c (file_type): New file/function.  Extracted from
129522         diffutils.
129524 2002-04-30  Jim Meyering  <meyering@lucent.com>
129526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
129528 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129530         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
129532 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129534         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
129535         Do not check for alloca.h (no longer used) or stdbool.h (was never
129536         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
129538 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129540         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
129542 2002-04-29  Jim Meyering  <meyering@lucent.com>
129544         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
129545         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
129546         Use AC_FUNC_STRNLEN here instead.
129548         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
129549         With autoconf-2.53a, it's part of AC_PROG_CC.
129551 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129553         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
129554         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
129556 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129558         * lib/sig2str.h, lib/sig2str.c: New files.
129559         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
129561 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129563         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
129564         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
129565         of 127, since 64 is the largest conceivable number for ancient
129566         nonstandard hosts.
129567         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
129569 2002-04-28  Jim Meyering  <meyering@lucent.com>
129571         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
129573 2002-04-24  Jim Meyering  <meyering@lucent.com>
129575         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
129576         (jm_PREREQ): Use it.
129578         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
129579         mach/mach.h fcntl.h.
129580         Check for this function: setlocale.
129582 2002-04-24  Jim Meyering  <meyering@lucent.com>
129584         * lib/gettext.h: New file, from Gettext.
129585         * lib/Makefile.am (INCLUDES): Remove -I../intl.
129586         (libfetish_a_SOURCES): Add gettext.h.
129588 2002-04-16  Jim Meyering  <meyering@lucent.com>
129590         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
129591         ut_pid, ut_id, ut_exit.
129593 2002-04-16  Jim Meyering  <meyering@lucent.com>
129595         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
129596         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
129597         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
129599 2002-04-12  Jim Meyering  <meyering@lucent.com>
129601         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
129602         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
129603         existence of the getmntinfo function.  Needed for Darwin 5.3.
129605         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
129606         This is necessary at least on Darwin 5.3.
129608         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
129609         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
129610         strnlen.o in the library, and that makes some versions of ranlib
129611         object.
129613 2002-04-12  Jim Meyering  <meyering@lucent.com>
129615         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
129617 2002-04-09  Jim Meyering  <meyering@lucent.com>
129619         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
129620         to be more precise.  Rather than saying we're checking whether the
129621         function `works', say what we're testing.
129622         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
129623         Reported by Bruno Haible.
129625 2002-03-10  Jim Meyering  <meyering@lucent.com>
129627         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
129628         Suggestion from Santiago Vila.
129630 2002-03-08  Jim Meyering  <meyering@lucent.com>
129632         * lib/rename.c: Mention that this wrapper is needed also on
129633         mips-dec-ultrix4.4 systems.
129635 2002-03-02  Jim Meyering  <meyering@lucent.com>
129637         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
129638         not HAVE_CLOCK_SETTIME.
129640 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129642         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
129643         Check for clock_settime.
129645 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129647         * lib/nanosleep.h: Rename to....
129648         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
129650         * lib/gettime.c: New file.
129651         * lib/settime.c: New file.
129652         * lib/stime.c: Remove.
129654         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
129655         timespec.h.  Remove nanosleep.h.
129657 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129659         * m4/acl.m4: New file.
129660         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
129661         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
129663 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129665         * lib/acl.c, lib/acl.h: New files.
129666         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
129668 2002-02-24  Jim Meyering  <meyering@lucent.com>
129670         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
129671         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
129672         cause trouble.  Reported by Nelson Beebe.
129674 2002-02-23  Paul Eggert  <eggert@twinsun.com>
129676         * lib/path-concat.c (xpath_concat): Reorder code to pacify
129677         compilers that don't know that xalloc_die never returns.
129679 2002-02-20  Jim Meyering  <meyering@lucent.com>
129681         * lib/getdate.c: Regenerate using bison-1.33.
129683 2002-02-17  Jim Meyering  <meyering@lucent.com>
129685         * config/config.guess (main): Don't use `head -1'; it's no longer
129686         portable. Use `sed 1q' instead.
129688 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
129690         * m4/codeset.m4: Upgrade to gettext-0.11.
129691         * m4/gettext.m4: Upgrade to gettext-0.11.
129692         * m4/glibc21.m4: Upgrade to gettext-0.11.
129693         * m4/iconv.m4: Upgrade to gettext-0.11.
129694         * m4/isc-posix.m4: Upgrade to gettext-0.11.
129695         * m4/lcmessage.m4: Upgrade to gettext-0.11.
129696         * m4/lib-ld.m4: New file, from gettext-0.11.
129697         * m4/lib-link.m4: New file, from gettext-0.11.
129698         * m4/lib-prefix.m4: New file, from gettext-0.11.
129699         * m4/progtest.m4: Upgrade to gettext-0.11.
129701 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129703         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
129704         (jm_PREREQ): Use it.
129706 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129708         * lib/posixver.c, lib/posixver.h: New files.
129709         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129711 2002-02-02  Paul Eggert  <eggert@twinsun.com>
129712             Bruno Haible  <bruno@clisp.org>
129714         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
129715         (fwrite_success_callback): New declaration.
129716         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
129717         print_unicode_char. Call failure callback instead of error.
129718         (fwrite_success_callback): New function.
129719         (exit_failure_callback): New function.
129720         (fallback_failure_callback): New function.
129721         (print_unicode_char): Call unicode_to_mb.
129723 2002-01-26  Jim Meyering  <meyering@lucent.com>
129725         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
129726         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
129728 2002-01-26  Jim Meyering  <meyering@lucent.com>
129730         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
129732 2002-01-22  Paul Eggert  <eggert@twinsun.com>
129734         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
129736 2002-01-22  Jim Meyering  <meyering@lucent.com>
129738         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
129739         Otherwise, some versions of automake would omit the rule that makes
129740         Makefile from Makefile.in.
129742 2002-01-21  Paul Eggert  <eggert@twinsun.com>
129744         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
129745         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129746         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
129747         (memcoll): Set errno to zero if there is no error.
129749         * lib/quotearg.c (quotearg_buffer_restyled):
129750         Fix bug with quoting buffers containing NUL when backslashing escapes.
129751         This bug was exposed by the other changes in this patch.
129752         (quotearg_n_options): New arg ARGSIZE.
129753         All callers changed.
129754         (quoting_options_from_style): New function.
129755         (quotearg_n_style): Use it.
129756         (quotearg_n_style_mem): New function.
129758         * lib/quotearg.h (quotearg_n_style_mem): New function.
129760 2002-01-19  Jim Meyering  <meyering@lucent.com>
129762         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
129763         Remove useless quotes: DF_PROG="df".
129764         * m4/strnlen.m4: New file.
129766 2002-01-16  Paul Eggert  <eggert@twinsun.com>
129768         * lib/backupfile.c (ISDIGIT): Comment fix.
129769         * lib/getdate.y (ISDIGIT): Likewise.
129770         * lib/posixtm.c (ISDIGIT, year): Likewise.
129771         * lib/strverscmp.c (ISDIGIT): Likewise.
129772         * lib/userspec.c (ISDIGIT): Likewise.
129774 2002-01-16  Jim Meyering  <meyering@lucent.com>
129776         * lib/getdate.y: Add three semicolons, each just before a closing
129777         brace. Bison (as of version 1.31) no longer papers over that mistake.
129779 2002-01-05  Jim Meyering  <meyering@lucent.com>
129781         * lib/version-etc.c (version_etc_copyright): Update copyright year.
129783 2001-12-19  Paul Eggert  <eggert@twinsun.com>
129785         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
129786         not silently exit merely because the output buffer happens to
129787         have nothing pending.
129789 2001-12-18  Paul Eggert  <eggert@twinsun.com>
129791         See the big note in ../ChangeLog.
129792         * lib/human.c (suffixes): Prefer K to k for 1024.
129793         (generate_suffix_backwards): New function.
129794         (human_readable_inexact): Use it.
129795         * lib/xstrtol.c (__xstrtol): If there is no number but there
129796         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
129797         Accept 'K' as well as 'k'.
129799 2001-12-15  Jim Meyering  <meyering@lucent.com>
129801         * lib/regex.h (__restrict_arr): Update from libc.
129803         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
129804         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
129805         (STREQ): Define.
129807 2001-12-14  Jim Meyering  <meyering@lucent.com>
129809         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
129810         Suggestion from Bruno Haible.
129812 2001-12-10  Jim Meyering  <meyering@lucent.com>
129814         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
129815         xrealloc, Instead, include "xalloc.h".
129816         (initbuffer): Don't cast xmalloc return value to char*.
129817         (readline): Reword comment.
129818         Don't cast xrealloc return value to char*
129819         Return NULL, not 0.
129821 2001-12-09  Jim Meyering  <meyering@lucent.com>
129823         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
129824         about `signed and unsigned type in conditional expression'.
129825         * lib/posixtm.c (posix_time_parse): Likewise.
129827         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
129829         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
129830         to avoid a pedantic warning.
129832         * lib/getstr.c: Don't include assert.h.
129833         (getstr): Remove warning-evoking assertions.
129834         Return -1 if offset parameter is out of bounds.
129835         Change the type of a local from int to size_t.
129837         * lib/strftime.c (my_strftime_localtime_r): Include this function
129838         definition in the `#if ! HAVE_TM_GMTOFF' block.
129840         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
129841         Include xalloc.h instead.
129843 2001-12-02  Jim Meyering  <meyering@lucent.com>
129845         * lib/tempname.c: Don't declare getenv, thus reverting the change of
129846         2001-11-18.  It's no longer necessary, now that stdlib.h is always
129847         included.
129849         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
129850         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
129852 2001-11-30  Akim Demaille  <akim@epita.fr>
129854         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
129855         before being defined.
129857 2001-11-27  Paul Eggert  <eggert@twinsun.com>
129859         * lib/quotearg.h (quotearg_n, quotearg_n_style):
129860         First arg is int, not unsigned.
129861         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
129862         (SIZE_MAX, UINT_MAX): New macros.
129863         (quotearg_n_options): Abort if N is negative.
129864         Avoid overflow check on hosts where size_t is 64 bits and int
129865         is 32 bits, as overflow is impossible there.
129866         Fix off-by-one typo that caused unnecessary reallocation.
129868 2001-11-27  Jim Meyering  <meyering@lucent.com>
129870         * lib/tempname.c: Merge with version from libc.
129871         * lib/regex.c: Likewise.
129873         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
129874         systems for which STDC_HEADERS is 0, it was not included, resulting in
129875         a warning about an integer-to-pointer conversion problem with getenv.
129876         Reported by Volker Borchert.
129878 2001-11-26  Jim Meyering  <meyering@lucent.com>
129880         * lib/gtod.h: Remove file.
129881         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
129882         * lib/gettimeofday.c: Don't include gtod.h.
129883         (GTOD_init): Remove function.
129884         (rpl_gettimeofday): Do its job here instead, rather than aborting.
129885         Suggestion from Volker Borchert.
129887 2001-11-23  Jim Meyering  <meyering@lucent.com>
129889         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
129890         it.
129891         * lib/hash.c (struct hash_table): Define it here instead.
129893 2001-11-22  Jim Meyering  <meyering@lucent.com>
129895         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
129897 2001-11-20  Jim Meyering  <meyering@lucent.com>
129899         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
129900         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
129902 2001-11-19  Jim Meyering  <meyering@lucent.com>
129904         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
129905         directory.  Use "conftestXXXXXX" as the template.
129906         Suggestion from Paul Eggert.
129908         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
129909         immediately, so the test doesn't mistakenly hit the max-open-files
129910         limit.
129912 2001-11-18  Paul Eggert  <eggert@twinsun.com>
129914         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
129915         (TEMPORARIES): New macro.
129916         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
129917         removes an artificial limitation (e.g. HP-UX 10.20, where
129918         TMP_MAX is 17576).
129920 2001-11-18  Jim Meyering  <meyering@lucent.com>
129922         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
129924 2001-11-18  Jim Meyering  <meyering@lucent.com>
129926         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
129927         on SunOS 4.
129929         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
129930         files will be created before anything else.
129932 2001-11-17  Paul Eggert  <eggert@twinsun.com>
129934         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
129935         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
129937 2001-11-17  Jim Meyering  <meyering@lucent.com>
129939         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
129940         Prompted by a report from Bob Proulx.
129942         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
129943         Instead, require UTILS_FUNC_MKSTEMP.
129945 2001-11-17  Jim Meyering  <meyering@lucent.com>
129947         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
129948         Now, that's done as part of AC_FUNC_STRTOD.
129950 2001-11-17  Jim Meyering  <meyering@lucent.com>
129952         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
129953         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
129954         rather than group writable.  Patch by Juan F. Codagnone.
129956         * lib/readtokens.c: Remove explicit declarations of xmalloc and
129957         xrealloc, Instead, include "xalloc.h".
129959         * lib/mountlist.c: Include unlocked-io.h after all system headers.
129960         Remove explicit declarations of xmalloc, xrealloc,
129961         and xstrdup.  Instead, include "xalloc.h".
129963         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
129964         unlocked-io.h.
129965         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
129966         Likewise.
129967         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
129969         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
129970         Reported by Padraig Brady.
129972         * lib/mkstemp.c: #undef mkstemp.
129973         Include config.h.
129974         (rpl_mkstemp): Rename from mkstemp.
129975         Protoize.
129977 2001-11-16  Jim Meyering  <meyering@lucent.com>
129979         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
129980         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
129981         determine the amount of total physical memory, use pstat_getstatic.
129982         HPUX-11 doesn't define _SC_PHYS_PAGES.
129983         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
129984         If sysconf couldn't be used to determine the amount of available
129985         physical memory, use both pstat_getstatic and pstat_getdynamic.
129986         Based on a patch from Bob Proulx.
129988 2001-11-10  Jim Meyering  <meyering@lucent.com>
129990         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
129991         (jm_PREREQ): Use it.
129993 2001-11-09  Jim Meyering  <meyering@lucent.com>
129995         * m4/jm-macros.m4: Require autoconf-2.52f.
129996         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
129997         Use these AC_-prefixed names, not the AM_-prefixed ones.
129999         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130001 2001-11-05  Jim Meyering  <meyering@lucent.com>
130003         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130005 2001-11-04  Jim Meyering  <meyering@lucent.com>
130007         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130008         $DEFS.
130010 2001-11-03  Jim Meyering  <meyering@lucent.com>
130012         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130013         of AC_DEFUN.
130015         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130016         know the name of the variable in the macro definition.
130018 2001-11-03  Jim Meyering  <meyering@lucent.com>
130020         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130021         in argmatch_to_argument call.
130023         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130024         argument.
130026         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130027         e.g., a fault due to an attempt to free a NULL pointer.
130029 2001-11-01  Jim Meyering  <meyering@lucent.com>
130031         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130032         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130034 2001-11-01  Jim Meyering  <meyering@lucent.com>
130036         * lib/dirfd.c, lib/dirfd.h: New files.
130037         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130039         * lib/hash.c (hash_print) [TESTING]: Clean up.
130041 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130043         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130044         to avoid a warning if -Wall.
130046 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130048         * README: New file
130049         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130050         (per RMS's instructions, this is now the canonical source)
130051         * lgpl/, gpl/: New directories.
130053 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130055         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130057 2001-10-21  Jim Meyering  <meyering@lucent.com>
130059         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130060         this code would end up calling gettext even in packages built
130061         with --disable-nls.
130062         * lib/getopt.c (_): Likewise.
130063         * lib/regex.c (_): Likewise.
130065 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130067         * m4/error.m4 (jm_PREREQ_ERROR):
130068         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130069         AC_FUNC_STRERROR_R does that.
130070         Check for strerror declaration.
130072         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130073         are supposed to have them these days.
130074         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130075         Merge changes from latest Autoconf CVS.
130076         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130077         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130078         POSIX decided to standardize on the int flavor of strerror_r.
130080 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130082         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130083         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130084         Use strerror_r that is only a macro, even if it is not a function.
130085         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130086         (private_strerror): Use prototypes, not old-style function definition.
130087         (print_errno_message): New function.
130088         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130089         char*-flavored one.
130090         (error_tail, error, error_at_line): Use it.
130092 2001-10-11  Jim Meyering  <meyering@lucent.com>
130094         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130095         and quote_n (1, ... to avoid clobbering a buffer.
130097 2001-10-05  Jim Meyering  <meyering@lucent.com>
130099         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130100         hash-pjw.h.
130101         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130102         * lib/hash-pjw.h: New file.
130104 2001-09-30  Jim Meyering  <meyering@lucent.com>
130106         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130107         `struct fsstat' has the `f_fstypename' member.
130108         Use that to define FS_TYPE, which is now used to make
130109         the getfsstat link test tighter.
130111 2001-09-30  Jim Meyering  <meyering@lucent.com>
130113         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130114         Include <sys/ucred.h>, for Apple Darwin.
130115         Include sys/mount.h and sys/fs_types.h only if available.
130116         (FS_TYPE): Define.
130117         (read_filesystem_list): Use FS_TYPE.
130119 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130121         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130122         a boolean context.
130124 2001-09-29  Jim Meyering  <meyering@lucent.com>
130126         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130127         [one-argument getmntent function]): Include stdio.h before mntent.h.
130128         SunOS 4.1.x needs it for the declaration of `FILE'.
130129         Patch by Volker Borchert.
130131         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130132         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130133         sys/fs_types.h, and make the link-test for getfsstat guard #include
130134         directives with appropriate #if HAVE_*_H tests so that we can
130135         detect getfsstat on Apple Darwin1.3.7 systems.
130136         Reported by Nelson Beebe.
130137         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130139 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130141         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130142         #defines strtoimax.  Also treat the other strto* functions
130143         like strtoimax.
130145         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130146         Check for strtoul and strtoumax,
130147         as those declarations are made even in the signed case.
130148         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130149         Likewise, for strtol and strtoimax.
130151 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130153         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130154         #defines strtoimax.  Also treat the other strto* functions
130155         like strtoimax.
130157         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130158         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130159         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130161 2001-09-26  Jim Meyering  <meyering@lucent.com>
130163         Most macros in unlocked-io.h had the wrong number of arguments.
130164         * lib/gen-uio: New script.
130165         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130166         * lib/unlocked-io.hin: Remove file.
130167         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130168         rather than trying to embed it here.
130169         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130170         Reported by Padraig Brady.
130172 2001-09-25  Volker Borchert  <bt@teknon.de>
130174         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130175         `result'.
130177 2001-09-24  Jim Meyering  <meyering@lucent.com>
130179         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130181 2001-09-23  Jim Meyering  <meyering@lucent.com>
130183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130184         instead of the mere test for existence of mntent.h.  The latter
130185         would get a false-positive on AIX 3.4 systems.
130186         In the outer getmntent if-block, don't die if neither of the getmntent
130187         tests succeeds.  Instead, just fall through and continue with the
130188         remaining tests.
130190 2001-09-23  Jim Meyering  <meyering@lucent.com>
130192         * lib/mountlist.c: Remove useless parentheses in #if directives.
130193         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130194         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130196 2001-09-22  Jim Meyering  <meyering@lucent.com>
130198         * m4/gettext.m4: New file.  From gettext.
130199         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130200         * m4/progtest.m4: Likewise
130201         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130202         * m4/glibc21.m4: Likewise.
130204         * m4/libintl.m4: Remove.  No longer used.
130206 2001-09-22  Jim Meyering  <meyering@lucent.com>
130208         * lib/localcharset.c: Update from latest gettext.
130209         * lib/config.charset: Likewise.
130211 2001-09-20  Jim Meyering  <meyering@lucent.com>
130213         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
130214         strtoimax.
130215         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
130216         strtoumax.
130218 2001-09-20  Jim Meyering  <meyering@lucent.com>
130220         * lib/xstrtol.c (strtoimax): Guard declaration with
130221         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
130222         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
130223         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
130224         (strtoumax): Likewise, for completeness (it wasn't necessary).
130226 2001-09-17  Paul Eggert  <eggert@twinsun.com>
130228         * lib/strtoimax.c (HAVE_LONG_LONG):
130229         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
130230         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
130231         to work around bug in IBM C compiler.
130233 2001-09-17  Jim Meyering  <meyering@lucent.com>
130235         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
130236         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
130237         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
130238         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
130239         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
130240         whenever the right hand side need not be expanded by the shell.
130242 2001-09-16  Paul Eggert  <eggert@twinsun.com>
130244         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
130245         library.  It's not correct, as some older glibcs are buggy.
130246         fnmatch wasn't fixed until glibc 2.2.
130248         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130249         special shell magic here.
130251 2001-09-16  Jim Meyering  <meyering@lucent.com>
130253         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130254         * m4/jm-macros.m4: Require it.
130256 2001-09-16  Jim Meyering  <meyering@lucent.com>
130258         * lib/mkdir.c: New file.
130260 2001-09-15  Jim Meyering  <meyering@lucent.com>
130262         * m4/jm-macros.m4: Check for help2man.
130264 2001-09-11  Jim Meyering  <meyering@lucent.com>
130266         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130267         The body, by Paul Eggert, was moved here from configure.in.
130268         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130270 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130272         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130273         (jm_PREREQ): Use it.
130275 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130277         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130278         Use ssize_t, not int, to store result of readlink.
130279         Check for ssize_t overflow as well as size_t overflow,
130280         as POSIX says the result of readlink is implementation-defined
130281         when ssize_t overflows.
130282         Remove unnecessary cast to char*.
130283         Use free+malloc instead of realloc, as the storage doesn't need
130284         to be preserved and it's clearer and can be more efficient that way.
130285         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130286         * lib/xreadlink.h (xreadlink): Update prototype.
130288 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130290         * lib/xgetcwd.c: Revert some of the previous change; intead,
130291         fix the HAVE_GETCWD_NULL code to behave more like the
130292         !HAVE_GETCWD_NULL code used to.
130294         Include "xalloc.h".
130295         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130296         invoke xalloc_die.
130298 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130300         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130301         sys/param.h, as pathmax.h includes them.
130303 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130305         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130306         (jm_PREREQ_XGETCWD): New macro.
130308         * m4/getcwd.m4: New file.
130310 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130312         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130313         like the HAVE_GETCWD_NULL code.
130314         Include pathmax.h if not HAVE_GETCWD.
130315         Do not include xalloc.h.
130316         (INITIAL_BUFFER_SIZE): New symbol.
130317         Do not use xmalloc / xrealloc, since the caller is responsible for
130318         handling errors.  Preserve errno around `free' during failure.
130319         Do not overrun buffer when using getwd.
130321 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130323         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130324         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130325         getcwd (NULL, 0).
130327 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130329         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130330         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130331         spotted by Jim Meyering.
130333 2001-09-03  Jim Meyering  <meyering@lucent.com>
130335         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130336         failure.
130338 2001-09-02  Jim Meyering  <meyering@lucent.com>
130340         * lib/error.c: Update from GNU libc.
130342 2001-09-01  Jim Meyering  <meyering@lucent.com>
130344         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130345         Used by df.
130347 2001-09-01  Jim Meyering  <meyering@lucent.com>
130349         * lib/xreadlink.c: New file.
130350         * lib/xreadlink.h: New file.
130351         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130352         xreadlink.h.
130354         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130355         doesn't conflict with sparc Solaris 7's definition in
130356         /usr/include/sys/int_types.h.
130358         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130359         files.
130360         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130361         and strncasecmp as r-values.  Unixware didn't have declarations.
130363 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130365         * lib/xstrtol.h: Add copyright notice.
130366         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130367         LONGINT_INVALID_SUFFIX_CHAR.
130369 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130371         * lib/xstrtol.c (strtoimax): New decl.
130373 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130375         * lib/xgetcwd.c: Don't include pathmax.h.
130376         Include stdlib.h and unistd.h if available.
130377         Include xalloc.h.
130378         (xmalloc, xstrdup, free): Remove decls.
130379         (xgetcwd): Don't assume sizes fit in unsigned.
130380         Check for overflow when computing sizes.
130381         Simplify reallocation code.
130383 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130385         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
130386         a directory's st_size can have an arbitrary value, so the old
130387         usage could waste an arbitrary amount of memory.  All uses
130388         changed.
130389         * lib/savedir.h: Update prototype.
130391 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130393         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
130395         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
130396         old strtoimax.c.
130398         Also, make the following further changes to make this file's
130399         configuration more similar to that of strtol.c:
130400         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
130401         (strtoumax, uintmax_t, strtoull, strtol): Remove.
130402         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
130403         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
130404         changed to signed values.
130406         And make the following changes as well:
130407         Fix copyright notice, as 1999 was missing.
130408         (verify): New macro.
130409         (strtoimax): Check sizes at compile-time, not run-time.
130410         Prefer strtol to strtoll if both work.
130411         (main): Remove; it was not that useful and was a pain to maintain.
130413         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
130415 2001-08-31  Jim Meyering  <meyering@lucent.com>
130417         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
130418         Use an initial, malloc'd, buffer of length 128 rather than
130419         a statically allocated one of length 1024.
130421 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130423         Simplify code, partly by assuming autoconf 2.52 semantics.
130425         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
130427         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
130428         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
130429         All uses removed.
130430         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
130431         Move AC_REQUIRE to next-to-top level, to avoid confusion.
130432         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
130433         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
130434         jm_AC_HEADER_INTTYPES_H.
130435         * m4/jm-macros.m4 (jm_MACROS): Likewise.
130437         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
130439         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130440         Quote first arg of AC_DEFUN.
130441         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
130442         since they are needed to parse the include file even if we need
130443         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
130444         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
130445         but with opposite signedness.
130447 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130449         Merge 'exclude' changes from tar 1.13.22.
130450         This fixes one or two unlikely storage allocation overflow bugs,
130451         but doesn't change user-visible behavior otherwise.
130453 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130455         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
130456         (jm_PREREQ_EXCLUDE): New macro.
130458 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130460         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
130461         tm to be declared.
130463 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130465         * lib/hash.c: Remove '2001' from copyright notice.
130467 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130469         * lib/full-write.h: New file.
130470         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
130471         * lib/full-write.c: Correct credits, as cccp.c no longer
130472         exists and anyway it was so heavily changed from the old cccp
130473         code as to be unrecognizable.  Include full-write.h.
130474         (full_write): Return size_t, with short writes meaning failure.
130475         All callers changed.  This fixes a bug with large buffers
130476         on 64-bit hosts.
130477         * lib/utime.c: Include full-write.h.
130479 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130481         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
130482         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
130483         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
130484         Include if available.
130485         (<xalloc.h>): Include
130486         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
130487         (verify): New macro.  Use it to verify that EXCLUDE macros do not
130488         collide with FNM macros.
130489         (struct patopts): New struct.
130490         (struct exclude): Use it, as exclude patterns now come with options.
130491         (new_exclude): Support above changes.
130492         (new_exclude, add_exclude_file):
130493         Initial size must now be a power of two to simplify overflow checking.
130494         (free_exclude, fnmatch_no_wildcards): New function.
130495         (excluded_filename): No longer requires options arg, as the options
130496         are determined by add_exclude.  Now returns bool, not int.
130497         (excluded_filename, add_exclude):
130498         Add support for the fancy new exclusion options.
130499         (add_exclude, add_exclude_file): Now takes int options arg.
130500         Check for arithmetic overflow when computing sizes.
130501         (add_exclude_file): xrealloc might modify errno, so don't
130502         realloc until after errno might be used.
130504         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
130505         New macros.
130506         (free_exclude): New decl.
130507         (add_exclude, add_exclude_file): Now takes int options arg.
130508         (excluded_filename): No longer requires options arg, as the options
130509         are determined by add_exclude.  Now returns bool, not int.
130511 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130513         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
130515 2001-08-27  Jim Meyering  <meyering@lucent.com>
130517         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
130519         * lib/version-etc.c (N_): Remove definition.
130520         Revert most of last change.
130521         Instead, simply don't mark the `Copyright...' string for translation.
130522         Based on advice from Paul Eggert.
130524         * lib/strtoxmax.c: Tweak comment.
130526 2001-08-26  Jim Meyering  <meyering@lucent.com>
130528         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
130530         * m4/xstrtoimax.m4: New file.
130531         * m4/xstrtoumax.m4: Add comments explaining why we
130532         AC_REPLACE_FUNCS(strtol).
130534 2001-08-26  Jim Meyering  <meyering@lucent.com>
130536         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
130537         of copyright with `%s' so translators don't get an untranslated
130538         message in 2002.
130539         (COPYRIGHT_YEAR): Define.
130540         (version_etc): Use fprintf rather than fputs.
130541         Suggestion from Ulrich Drepper.
130543         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
130545         * lib/strtoll.c: New file, from GNU libc.
130546         * lib/xstrtoimax.c: New file.
130548         * lib/xstrtol.h: Add xstrtoimax.
130549         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
130550         * lib/strtoimax.c: New file.  Likewise, but first define
130551         STRTOUXMAX_SIGNED.
130553         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
130554         ...
130555         * lib/strtoxmax.c: ... then renamed to this.
130557 2001-08-18  Paul Eggert  <eggert@twinsun.com>
130559         * m4/inttypes.m4: Add AC_PREREQ(2.13).
130560         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
130561         (jm_AC_TYPE_INTMAX_T): New macro.
130562         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
130564         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
130566         * m4/longlong.m4: Renamed from ulonglong.m4.
130567         * m4/inttypes.m4: Renamed from inttypes_h.m4.
130568         * m4/uintmax_t.m4: Removed.
130570 2001-08-13  Paul Eggert  <eggert@twinsun.com>
130572         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
130573         Port to Solaris 8, where 'sed' requires a space after the 'r'
130574         command, and where sh dislikes "$/".  Clean up the spacing a bit.
130575         Redirect output to $tmp just once.
130577 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
130579         * lib/addext.c (<errno.h>): Include.
130580         (errno): Declare if not defined.
130581         (addext): Work correctly when pathconf returns -1 and leaves
130582         errno alone because there is no limit.  Also, work even if
130583         pathconf returns a value greater than SIZE_MAX.
130585 2001-08-12  Jim Meyering  <meyering@lucent.com>
130587         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
130588         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
130589         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
130590         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
130591         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
130592         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
130593         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
130594         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
130595         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
130596         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
130597         utime.m4, utimes.m4, xstrtoumax.m4:
130598         Quote the first argument in each use of AC_DEFUN.
130600 2001-08-12  Jim Meyering  <meyering@lucent.com>
130602         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
130603         Simply `return getcwd (NULL, 0);'.
130604         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
130605         Use 1300 as initial value for length, not PATH_MAX.
130607         * lib/pathmax.h: Clean up cpp syntax.
130609 2001-08-12  Jim Meyering  <meyering@lucent.com>
130611         * lib/gettimeofday.c: New file.
130612         * lib/gtod.h: New file.
130613         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
130615 2001-08-05  Jim Meyering  <meyering@lucent.com>
130617         * m4/jm-macros.m4: Require autoconf-2.52.
130619 2001-08-04  Jim Meyering  <meyering@lucent.com>
130621         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
130622         stmt, to get in sync with glibc.
130624 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130626         The following changes are from gettext 0.10.39 as maintained by
130627         Bruno Haible.
130629         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
130630         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
130631         with inverted sense.  All uses changed.
130633         * lib/mbswidth.c: Don't include <limits.h>.
130634         Include <stdlib.h> and <string.h> unconditionally.
130635         (iswcntrl, mbsinit, ISCNTRL): New macros.
130636         (mbsnwidth): Use K&R style function declarations.
130637         Don't bother checking for MB_LEN_MAX == 1, since the compiler
130638         can optimize it when MB_CUR_MAX == 1.
130639         The width of control characters is zero, not 1.
130641 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130643         The following changes are from gettext 0.10.39 as maintained by
130644         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
130646         * m4/codeset.m4: Upgrade to serial AM1.
130647         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
130648         all uses changed.  Quote first arg of AC_DEFUN.
130649         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
130651         * m4/iconv.m4: Upgrade to serial AM2.
130652         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
130653         Add --with-libconv-prefix.
130654         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
130655         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
130656         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
130657         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
130658         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
130660         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
130661         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
130662         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
130663         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
130664         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
130665         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
130666         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
130667         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
130668         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
130670         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
130671         string.h any more.
130673         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
130674         not the default value.
130676         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
130677         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
130678         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
130679         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
130680         Also check for iswcntrl, used for wcwidth fallback.
130681         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
130682         to Autoconf 2.13.
130684 2001-08-03  Jim Meyering  <meyering@lucent.com>
130686         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
130687         as it was in the original.  Reported by Paul Eggert.
130689 2001-07-16  Jim Meyering  <meyering@lucent.com>
130691         * m4/gettimeofday.m4: New file.
130692         Prompted by a report from Bernhard Baehr.
130694 2001-07-15  Jim Meyering  <meyering@lucent.com>
130696         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
130697         stuff. Now it's in ../Makefile.cfg.
130699 2001-07-15  Jim Meyering  <meyering@lucent.com>
130701         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
130702         (BUILT_SOURCES): Add unlocked-io.h.
130703         (io_functions): Define.
130704         (unlocked-io.h): New rule.
130705         (DISTCLEANFILES): Add unlocked-io.h.
130706         (all-local): Depend on unlocked-io.h, to ensure it is created.
130708         * lib/unlocked-io.hin: New file
130710         * lib/regex.c: Update from glibc.
130712 2001-07-05  Jim Meyering  <meyering@lucent.com>
130714         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
130715         recommendation.
130716         (libfetish_a_SOURCES): Put all .h files here instead.
130717         Remove a thus-exposed (better checks in automake) duplicate and
130718         two unnecessary .h files.
130720 2001-07-04  Jim Meyering  <meyering@lucent.com>
130722         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
130723         that generates jm-glibc-io.m4 so that it doesn't trigger any make
130724         distcheck failure.
130726 2001-07-02  Jim Meyering  <meyering@lucent.com>
130728         The following changes were prompted by suggestions from Bruno Haible.
130730         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
130731         is now generated.
130732         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
130733         definition of EXTRA_DIST.
130734         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
130735         ensure that the generated file is created/updated whenever the list
130736         of $(unlocked_functions) is changed.
130737         (jm-glibc-io.m4): New rule.
130738         (unlocked-io.h): New rule -- currently unused.
130740 2001-06-24  Jim Meyering  <meyering@lucent.com>
130742         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
130743         unmatched right bracket, rather than kludging it with an extra,
130744         falsely-matching quote in a comment.  Patch by Akim Demaille.
130746 2001-06-11  Jim Meyering  <meyering@lucent.com>
130748         * lib/regex.c: Update from GNU libc.
130750 2001-05-27  Jim Meyering  <meyering@lucent.com>
130752         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
130753         Check for ut_type in struct utmp.
130755 2001-05-27  Jim Meyering  <meyering@lucent.com>
130757         * lib/readutmp.h (UT_TYPE): Define.
130759 2001-05-24  Jim Meyering  <meyering@lucent.com>
130761         * lib/argmatch.c: Include "quote.h".
130762         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
130763         quote function.  Reported by Göran Uddeborg.
130765 2001-05-22  Jim Meyering  <meyering@lucent.com>
130767         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
130768         now that we use the package-supplied version unconditionally.
130769         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
130771 2001-05-21  Jim Meyering  <meyering@lucent.com>
130773         * m4/regex.m4: Change a couple backticks to single quotes to avoid
130774         shell syntax errors.
130776 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130778         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
130780 2001-05-20  Paul Eggert  <eggert@twinsun.com>
130782         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
130783         Don't bother to check library strftime, since
130784         we'll be using our own my_strftime function anyway.
130785         Define my_strftime instead of strftime.
130787 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
130789         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
130790         which is not yet declared.
130792 2001-05-15  Jim Meyering  <meyering@lucent.com>
130794         * m4/regex.m4: Use proper quoting so brackets appear in the test
130795         program.
130796         Reported by, and with help from, Bruno Haible.
130798 2001-05-13  Jim Meyering  <meyering@lucent.com>
130800         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
130801         undefined.
130803 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130805         dirname code cleanup.  base_name now behaves more compatibly
130806         with POSIX basename when given file names that have trailing
130807         slashes, and similarly for dir_name.  Add new primitives
130808         base_len and dir_len.  Put the directory-name-related decls
130809         into dirname.h.
130811         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
130812         * lib/backupfile.c (base_name): Likewise.
130813         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
130814         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
130815         * lib/makepath.c (strip_trailing_slashes): Likewise.
130816         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
130817         ISSLASH): Likewise.
130818         * lib/rename.c (strip_trailing_slashes): Likewise.
130819         * lib/same.c (base_name): Likewise.
130820         * lib/stripslash.c (ISSLASH): Likewise.
130822         * lib/addext.c: Include <dirname.h> after size_t is defined.
130823         * lib/backupfile.c: Likewise.
130825         * lib/addext.c (addext): Use base_len to trim redundant
130826         trailing slashes instead of doing it ourselves.
130827         But do not trim the last slash if it is not redundant.
130829         * lib/backupfile.c (find_backup_file_name,
130830         max_backup_version): Use base_len instead of rolling it ourselves.
130831         Handle the case of "" and (on DOS) "C:" correctly.
130833         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
130834         needed. Include <string.h>, <dirname.h>.
130835         (base_name): Allow file names ending in slashes, other than names
130836         that are all slashes.  In this case, return the basename followed
130837         by the slashes.  This is more general, and can be used in places
130838         where the original base_name purposely had an assertion failure.
130839         (base_len): New function.
130841         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
130842         Do not include <assert.h>; no longer needed.
130843         Include xalloc.h.
130844         (memrchr): Remove decl.
130845         (dir_name_r): Remove.
130846         (dir_len): Renamed from dirlen.  All callers changed.
130847         Rewrite in terms of base_name, for simplicity and consistency.
130848         (dir_name): Never return NULL.  All callers changed.
130849         Do not include <stdlib.h> in test program; no longer needed.
130850         return 0; is fine for test program.
130852         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
130853         New macros.
130854         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
130856         * lib/path-concat.c (path_concat): Use base_len to compute
130857         base length, not strlen; this means we cannot rely on memcpy
130858         to null-terminate.
130860         * lib/same.c (STREQ): Remove.
130861         (same_name): Handle the case where the basename ends in trailing '/'.
130863         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
130864         a slash was stripped.  Do not strip the last slash after a
130865         file system prefix.
130867 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130869         * lib/Makefile.am (libfetish_a_SOURCES):
130870         Add strftime.c, since we now compile it on all hosts.
130872         * lib/strftime.c (my_strftime):
130873         Define to nstrftime if emacs, but only if my_strftime is not defined.
130874         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
130875         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
130876         Add one more extra argument: a nanoseconds value.
130877         All uses changed.
130878         (ns): New macro.
130879         (my_strftime function): Add %N format.
130880         (emacs_strftimeu): Renamed from emacs_strftime,
130881         with extra ut argument.
130883 2001-05-09  Paul Eggert  <eggert@twinsun.com>
130885         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
130887 2001-04-21  Jim Meyering  <meyering@lucent.com>
130889         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
130890         doesn't interfere.
130892 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130894         * m4/ftruncate.m4: Check for chsize.
130895         Link with ftruncate.o unconditionally if ftruncate is missing.
130896         This was required when cross-compiling to i586-mingw32msvc.
130898 2001-04-08  Jim Meyering  <meyering@lucent.com>
130900         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
130901         recomputed; that's necessary when the offset spans a DST transition.
130902         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
130904 2001-04-02  Jim Meyering  <meyering@lucent.com>
130906         * lib/regex.h, regex.c: Update from GNU libc.
130908 2001-03-24  Jim Meyering  <meyering@lucent.com>
130910         * m4/jm-macros.m4: Require autoconf-2.49d.
130912 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
130914         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
130916 2001-03-19  Paul Eggert  <eggert@twinsun.com>
130918         * lib/version-etc.c (version_etc_copyright): Update to 2001.
130920 2001-03-17  Jim Meyering  <meyering@lucent.com>
130922         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
130923         now that the version in autoconf is equivalent.
130924         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
130926         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
130927         Suggestion from Akim Demaille.
130929         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
130930         (jm_PREREQ_TEMPNAME): New function.
130932 2001-03-16  Paul Eggert  <eggert@twinsun.com>
130934         * lib/tempname.c (uint64_t): Define to uintmax_t if
130935         not defined, and if UINT64_MAX is not defined.
130936         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
130937         Reported by John David Anglin.
130939 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
130941         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
130942         resolve alias if codeset is empty.
130943         * lib/config.charset (BeOS): Use wildcard syntax.
130945 2001-03-13  Jim Meyering  <meyering@lucent.com>
130947         * lib/path-concat.c (path_concat)
130948         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
130949         concatenating e.g., `C:' and `foo'.
130950         From Bruno Haible.
130952 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
130954         * lib/localcharset.c (locale_charset): Don't use
130955         setlocale(LC_CTYPE,NULL). Don't return NULL.
130956         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
130958 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
130960         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
130961         support for DOS/DJGPP.
130963 2001-03-01  Paul Eggert  <eggert@twinsun.com>
130965         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
130966         lacks mkstemp.  Compile our own tempname.c if we compile our own
130967         mkstemp.c, as mkstemp relies on tempname.
130969 2001-03-01  Jim Meyering  <meyering@lucent.com>
130971         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
130972         AH_VERBATIM really does output its argument verbatim.
130974 2001-02-28  Paul Eggert  <eggert@twinsun.com>
130976         * lib/Makefile.am (libfetish_a_SOURCES):
130977         Add dup-safer.c, fopen-safer.c.
130978         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
130980         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
130981         * lib/unistd-safer.h: New files.
130983 2001-02-25  Paul Eggert  <eggert@twinsun.com>
130985         The mkstemp replacement is taken from glibc 2.2.2, with some
130986         portability fixes for use outside glibc, as follows:
130988         * lib/tempname.c (struct_stat64): New macro.
130989         (direxists, __gen_tempname): Use it.
130990         This avoids a portability problem with Solaris 8.
130992         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
130993         (<stddef.h>, <stdint.h>, <string.h>):
130994         Include only if STDC_HEADERS || _LIBC.
130995         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
130996         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
130997         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
130998         (__set_errno): Define this macro if <errno.h> doesn't.
130999         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131000         Define these macros if <stdio.h> doesn't.
131001         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131002         Define these macros if <sys/stat.h>
131003         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131004         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131005         __xstat64): Define if not _LIBC.
131006         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131007         (__gen_tempname): Invoke gettimeofday only if
131008         HAVE_GETTIMEOFDAY || _LIBC;
131009         otherwise, fall back on plain "time".
131010         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131012         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131014         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131016 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131018         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131020 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131022         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131023         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131024         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131025         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131027 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131029         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131030         Remove workaround macros for hosts that have mbrtowc but not
131031         mbstate_t, as we now insist on proper declarations for both
131032         before using mbrtowc.
131034 2001-02-17  Jim Meyering  <meyering@lucent.com>
131036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131037         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131038         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131039         UnixWare 7.1.1.
131041         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131042         rather than AC_CACHE_VAL.
131044 2001-02-17  Jim Meyering  <meyering@lucent.com>
131046         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131047         around included file name.
131049         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131051         * lib/strftime.c: Update from GNU libc (the only changes were to
131052         comments).
131054 2001-02-17  Jim Meyering  <meyering@lucent.com>
131056         * lib/regex.c: Update from libc.
131058 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131060         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131061         clash.
131063 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131065         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131066         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131067         Reported by Mark Hounschell via Paul Eggert.
131069 2001-02-07  Jim Meyering  <meyering@lucent.com>
131071         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131073 2001-02-05  Jim Meyering  <meyering@lucent.com>
131075         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131076         it includes the patch required for `large file' support with at least
131077         HP-UX's 10.20 /bin/cc.
131079 2001-02-03  Jim Meyering  <meyering@lucent.com>
131081         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131082         AS_IF, now that it works once again (mysteriously).
131083         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131085 2001-01-30  Jim Meyering  <meyering@lucent.com>
131087         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131088         * m4/chown.m4: Rename conftestchown to conftest.chown.
131089         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131090         s/conftestdir2/conftest.d2/.
131091         * m4/utimes.m4: s/conftestdata/conftest.data/
131092         Inspired by Pavel Roskin's change in autoconf.
131094 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131096         * lib/config.charset: Update for FreeBSD 4.2.
131098 2001-01-27  Jim Meyering  <meyering@lucent.com>
131100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131101         a use of AS_IF.
131102         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131104 2001-01-26  Jim Meyering  <meyering@lucent.com>
131106         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131107         quotearg.c includes it.
131109 2001-01-26  Jim Meyering  <meyering@lucent.com>
131111         * lib/quotearg.c: Include stddef.h.
131112         * lib/quote.c: Include stddef.h.
131113         Reported by Axel Kittenberger.
131115         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131116         line in double quotes so that it evokes a better diagnostic.
131117         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131118         Reported by Axel Kittenberger.
131120 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131122         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131123         as if it was a `charset'.
131125 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131127         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131128         has const.
131130 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131132         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131133         to avoid a warning.  Add back 'const' to inptr.
131135 2001-01-20  Jim Meyering  <meyering@lucent.com>
131137         Be sure that headers are checked before used in code compiled
131138         for the type checks.
131139         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131140         In place of that, invoke jm_CHECK_ALL_TYPES.
131141         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131142         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131143         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131144         The check for ssize_t was mistakenly run before the test for unistd.h.
131146         The configure-time check for stdbool.h was missing.
131147         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131148         (jm_PREREQ_HASH): New function.
131150 2001-01-17  Jim Meyering  <meyering@lucent.com>
131152         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131153         for autoconf-2.49c.
131154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131156 2001-01-16  Jim Meyering  <meyering@lucent.com>
131158         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131159         From Bruno Haible.
131161 2001-01-14  Jim Meyering  <meyering@lucent.com>
131163         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131164         foo and bar.  Create conftestdir/ in the script, not in the C code.
131165         Remove directories in the script, not in the C code.
131166         Remove conftestdir{,2} before trying to create the directory.
131167         Make the entire configure script fail if the mkdir fails.
131169 2001-01-14  Jim Meyering  <meyering@lucent.com>
131171         * lib/rename.c: New file.  From Volker Borchert.
131172         Include stdlib.h, string.h or strings.h, and xalloc.h.
131173         Use strip_trailing_slashes rather than open-coding it.
131175 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131177         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131179 2001-01-03  Jim Meyering  <meyering@lucent.com>
131181         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131182         of local `inptr' to avoid warning with some system declarations of
131183         iconv.
131185 2001-01-02  Volker Borchert  <bt@teknon.de>
131187         * m4/rename.m4: New file.
131188         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131190 2001-01-01  Jim Meyering  <meyering@lucent.com>
131192         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131193         even on systems with utmpx.h.  It's necessary for the declaration of
131194         utmp's ut_user member.  Reported by Andreas Jaeger.
131196         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131197         available. They are required for the declarations of getgrgid and
131198         getpwuid resp.
131199         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131200         Reported by Andreas Jaeger.
131202 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131204         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131205         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131206         so `make install' also works in VPATH builds.
131208 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
131210         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
131211         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
131212         can be used in subdirectories.
131214 2000-12-29  Paul Eggert  <eggert@twinsun.com>
131216         * lib/modechange.c: Do not assume that mode_t uses the
131217         traditional octal encoding.  E.g. "chmod 1 FOO" should set
131218         the other-execute bit of FOO even if S_IXOTH != 1.
131220         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
131221         WOTH, XOTH, ALLM): New macros.
131222         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
131223          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
131224         Use them.
131225         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
131226         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
131227         (mode_compile):
131228         No need to use uintmax_t; unsigned long is long enough.
131229         Don't bother to get suffix since we don't use it.
131231 2000-12-26  Jim Meyering  <meyering@lucent.com>
131233         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
131234         better with autoheader.
131236 2000-12-24  Jim Meyering  <meyering@lucent.com>
131238         * lib/hash.c (is_prime): Return explicit boolean values.
131239         (hash_get_first): Return NULL to appease Irix5.6's 89.
131240         Reported by Nelson Beebe.
131242 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
131244         * lib/localcharset.c (locale_charset): Add support for Win32.
131246 2000-12-18  Paul Eggert  <eggert@twinsun.com>
131248         * lib/physmem.h, lib/physmem.c: New files.
131250         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131251         (noinst_HEADERS): Add physmem.h.
131253         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131254         't' for compatibility with Solaris 8 sort.
131256 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131258         * lib/config.charset: Add support for BeOS.
131260 2000-12-17  Jim Meyering  <meyering@lucent.com>
131262         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131263         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131265 2000-12-16  Jim Meyering  <meyering@lucent.com>
131267         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131268         N and M) would have treated it like `chown N:N FILE'.
131270         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131272 2000-12-16  Jim Meyering  <meyering@lucent.com>
131274         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131275         SHELLS_FILE to a file name that's useful on djgpp systems.
131276         Include stdlib.h.
131277         (ADDITIONAL_DEFAULT_SHELLS): Define.
131278         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131279         Based mostly on a patch from Prashant TR.
131281 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131283         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131284         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131285         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131287 2000-12-08  Andreas Schwab  <schwab@suse.de>
131289         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131290         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131292 2000-12-07  Jim Meyering  <meyering@lucent.com>
131294         * lib/stripslash.c (ISSLASH): Define.
131295         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131296         `/'.
131297         From Prashant TR.
131299         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131300         (dir_name_r): Declare this function as static.
131301         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131302         manifest itself on a name containing a mix of slashes and
131303         backslashes.
131304         Make this function work with names starting with a DOS-style
131305         drive letter and colon prefix.
131306         (dir_name): Append `.' if necessary.
131307         Based mostly on patches from Prashant TR and Eli Zaretskii.
131309         * lib/dirname.h (dir_name_r): Remove prototype.
131311 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131313         * m4/off_t-format.m4: Remove this file.
131314         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131316 2000-12-06  Jim Meyering  <meyering@lucent.com>
131318         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131319         replacement strtoull, we may well need the replacement strtoul, too.
131320         Check for declarations of strtoul and strtoull.
131321         Check for strtol.  Mainly as a cue to cause automake to include
131322         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131323         Check for limits.h -- strtol.c needs it.
131325 2000-12-05  Jim Meyering  <meyering@lucent.com>
131327         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131329 2000-12-04  Jim Meyering  <meyering@lucent.com>
131331         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131332         Also include memory.h, stdlib.h, unistd.h if appropriate.
131333         Reported by Andreas Jaeger (conflicting declaration of malloc).
131335 2000-12-02  Jim Meyering  <meyering@lucent.com>
131337         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131338         * m4/jm-macros.m4 (jm_MACROS): require it.
131340 2000-12-02  Jim Meyering  <meyering@lucent.com>
131342         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131344 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131346         * lib/memrchr.c: Include <config.h> before any system include file.
131348 2000-11-30  Jim Meyering  <meyering@lucent.com>
131350         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131352 2000-11-30  Jim Meyering  <meyering@lucent.com>
131354         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131356 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131358         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131360 2000-11-26  Jim Meyering  <meyering@lucent.com>
131362         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131364 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131366         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131367         size of (size_t) -1; it's not portable.
131369 2000-11-17  Jim Meyering  <meyering@lucent.com>
131371         * lib/strstr.c: Update from GNU libc.
131373 2000-11-17  Akim Demaille  <akim@epita.fr>
131375         * lib/obstack.h: Formatting changes.
131376         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131377         prevent type checking.
131378         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131379         cast the value to (void *): assigning a `foo *' to a `void *'
131380         variable is valid.
131381         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
131383 2000-11-16  Jim Meyering  <meyering@lucent.com>
131385         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
131387 2000-11-11  Jim Meyering  <meyering@lucent.com>
131389         * lib/error.c: Add a couple #includes, merging from GNU libc version.
131391 2000-11-10  Jim Meyering  <meyering@lucent.com>
131393         * lib/obstack.h: Update from GNU libc.
131394         * lib/obstack.c: Likewise.
131396 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
131398         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
131400 2000-11-06  Paul Eggert  <eggert@twinsun.com>
131402         * lib/getusershell.c (setusershell): Use rewind rather than
131403         fseek/fseeko, to avoid configuration hassles with fseeko.
131404         Don't bother opening SHELLS_FILE if shellstream is NULL;
131405         it's not necessary.
131407 2000-11-05  Jim Meyering  <meyering@lucent.com>
131409         * lib/makepath.h (make_dir): Declare.
131410         * lib/makepath.c (make_dir): Remove `static' attribute.
131411         Tweak a comment.
131413 2000-11-04  Jim Meyering  <meyering@lucent.com>
131415         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
131417 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
131419         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
131420         last one in a bucket, advance to the next bucket.
131422 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
131424         * lib/fnmatch.c: Do not comment out all the code if we are using
131425         the GNU C library, because in some cases we are replacing buggy
131426         code in the GNU C library itself.
131428 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
131430         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
131431         (regex_compile): Catch bogus \(\1\).
131433 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131435         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
131436         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
131437         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
131439 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131441         * lib/error.h, getline.h, modechange.h:
131442         Remove "2000" from Copyright line, as the file hasn't been
131443         changed this year other than in the copyright notice.
131445         * lib/xalloc.h: Add "2000" to Copyright line, as this file
131446         was changed this year.
131448 2000-10-29  Jim Meyering  <meyering@lucent.com>
131450         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
131451         renaming.
131452         * m4/ls-mntd-fs.m4: Likewise
131454 2000-10-29  Jim Meyering  <meyering@lucent.com>
131456         * lib/xstat.in: Fix grammar in comment.
131458 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
131460         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
131461         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
131462         doesn't define __restrict_arr.
131464 2000-10-28  Jim Meyering  <meyering@lucent.com>
131466         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
131467         (jm_PREREQ_MEMCHR): New function.
131469 2000-10-28  Jim Meyering  <meyering@lucent.com>
131471         * lib/memchr.c: Update from libc.
131472         Adjust for portability:
131473         [HAVE_STDLIB_H]: Include stdlib.h.
131474         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
131475         Undef __memchr, too.
131476         [!weak_alias]: Define __memchr to memchr.
131478         * lib/regex.c: Update from libc.
131479         * lib/regex.h: Likewise.
131480         * lib/getopt1.c: Likewise.
131481         * lib/memcmp.c: Likewise.
131483         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
131484         Avoid using fseek, when possible -- it's broken by design.
131485         Patch by Ulrich Drepper.
131487 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
131489         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
131490         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
131491         Giving in to popular pressure to shut up the compiler with casts.
131493 2000-10-26  Jim Meyering  <meyering@lucent.com>
131495         * lib/strftime.c: Update from libc.
131497 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
131499         * regex.c: More `unsigned char' -> `re_char' changes.
131500         Also change several `int' into `re_wchar_t'.
131501         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
131502         (PUSH_FAILURE_POINTER): Don't cast any more.
131503         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
131504         We want GCC to complain, since this piece of code makes
131505         re_match non-reentrant, which *should* be fixed.
131506         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
131507         (EXTEND_BUFFER): Use RETALLOC.
131508         (SET_LIST_BIT): Don't cast.
131509         (re_wchar_t): New type.
131510         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
131511         that those two functions will always properly return.
131512         (IMMEDIATE_QUIT_CHECK): Cast to void.
131513         (analyse_first): Use recursion rather than an explicit stack.
131514         (re_compile_fastmap): Can't fail anymore.
131515         (re_search_2): Don't check re_compile_fastmap for failure.
131516         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
131517         Now also sets the new value (passed in a new argument).
131518         (re_match_2_internal): Use it.
131519         Also, use a new var `reg' of type size_t when looping through regs
131520         rather than reuse the inappropriate `mcnt'.
131522 2000-10-25  Jim Meyering  <meyering@lucent.com>
131524         * lib/obstack.c: Update from libc.
131526 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
131528         * regex.c (regex_compile): Change the way of handling a range from
131529         a char less than 256 to a char not less than 256.
131531 2000-10-24  Andrew Innes  <andrewi@gnu.org>
131533         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
131534         NT-Emacs only.
131535         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
131536         so that re_search functions only quit when callers expect them to.
131538 2000-10-23  Jim Meyering  <meyering@lucent.com>
131540         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
131541         wrong.  That set_locale call must not have any side effects.
131542         From Paul Eggert.
131544 2000-10-22  Jim Meyering  <meyering@lucent.com>
131546         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
131547         [CYCLIC]: Remove now-unused definition.
131549         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
131550         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
131551         Suggestion from Ulrich Drepper.
131553 2000-10-21  Jim Meyering  <meyering@lucent.com>
131555         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
131556         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
131557         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
131559 2000-10-21  Jim Meyering  <meyering@lucent.com>
131561         * lib/dirname.c (memrchr): Declare if necessary.
131562         (dir_name): Remove the restriction that there be no
131563         trailing slashes.  Now, this code skips past them, effectively
131564         ignoring them.
131565         [TEST_DIRNAME] (main): New unit tests.
131567         * lib/memrchr.c: New file from GNU libc.
131568         Undef __memrchr, too.
131569         [!weak_alias]: Define __memrchr to memrchr.
131570         Guard weak_alias use with `#ifdef weak_alias'.
131572 2000-10-21  Jim Meyering  <meyering@lucent.com>
131574         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
131575         (dir_name): Use dir_name_r.
131576         * lib/dirname.h (dir_name_r): Declare it.
131578 2000-10-17  Jim Meyering  <meyering@lucent.com>
131580         * lib/quote.h (PARAMS): Define and use.
131581         Reported by Akim Demaille.
131583         * lib/getopt.c: Update from libc.
131585 2000-10-16  Jim Meyering  <meyering@lucent.com>
131587         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
131588         setlocale.
131589         From Jan Fedak.
131591 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
131593         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
131595 2000-09-25  Jim Meyering  <meyering@lucent.com>
131597         * lib/md5.h (rol): Define (from GnuPG).
131599         * lib/sha.c: Give credit (GnuPG) where due.
131600         (M): Use rol rather than open-coding it.
131601         Add a FIXME comment.
131603 2000-09-21  Jim Meyering  <meyering@lucent.com>
131605         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
131606         Reported by Michael Stone.
131608 2000-09-20  Jim Meyering  <meyering@lucent.com>
131610         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
131611         (noinst_HEADERS): Add sha.h.
131612         Based on code from Scott G. Miller and from GnuPG.
131614 2000-09-18  Jim Meyering  <meyering@lucent.com>
131616         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
131617         LIBS. Otherwise, everyone ends up linking with -lelf for some
131618         configurations.
131619         Reported by Mike Stone.
131621 2000-09-15  Jim Meyering  <meyering@lucent.com>
131623         * lib/regex.c: Update from libc.
131625 2000-09-10  Jim Meyering  <meyering@lucent.com>
131627         * lib/getopt.c (_getopt_internal): Update from glibc.
131629 2000-09-09  Jim Meyering  <meyering@lucent.com>
131631         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
131632         think it should be used as a general replacement for isascii.
131633         * lib/fnmatch.c: Likewise.
131634         * lib/mbswidth.c: Likewise
131635         * lib/regex.c: Likewise.
131637         Don't use atoi.
131638         * lib/userspec.c: Include sys/param.h and limits.h.
131639         Include xstrtol.h.
131640         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
131641         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
131642         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
131643         UID, GID.  Check range.
131645 2000-09-06  Jim Meyering  <meyering@lucent.com>
131647         * lib/getopt.c (_getopt_internal): Update from glibc.
131649 2000-08-30  Jim Meyering  <meyering@lucent.com>
131651         * lib/strftime.c: Merge in changes from GNU libc.
131653 2000-08-26  Jim Meyering  <meyering@lucent.com>
131655         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
131656         * m4/fpending.m4: New file.
131658 2000-08-26  Jim Meyering  <meyering@lucent.com>
131660         * lib/closeout.c: Include "__fpending.h".
131661         (close_stdout_status): Return right away if there's nothing to flush.
131663         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
131664         * lib/__fpending.c: New file.
131665         * lib/__fpending.h: New file.
131667 2000-08-20  Jim Meyering  <meyering@lucent.com>
131669         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
131670         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
131671         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
131673 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
131675         Improve fileutils installation on systems where running
131676         programs (like install) can't be unlinked.
131677         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
131678         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
131680 2000-08-07  Paul Eggert  <eggert@twinsun.com>
131682         Standardize on "memory exhausted" instead of "Memory exhausted"
131683         or "virtual memory exhausted".
131684         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
131685         "virtual memory exhausted".
131686         * lib/same.c (same_name): Invoke xalloc_die instead of printing
131687         our own message.
131688         * lib/userspec.c (parse_user_spec): Likewise.
131689         * lib/bumpalloc.h: comment fix
131690         * lib/same.c, userspec.c: Include xalloc.h.
131692         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
131693         not char *const and pointing to a constant array.
131694         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
131695         (xrealloc): Comment fix.
131697         * lib/userspec.c (parse_user_spec):
131698         Don't translate a message until just before returning,
131699         to avoid unnecessary translation.
131701 2000-08-07  Jim Meyering  <meyering@lucent.com>
131703         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
131704         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
131705         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
131706         getgroups.c, gethostname.c, getopt.h, group-member.c,
131707         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
131708         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
131709         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
131710         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
131711         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
131712         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
131713         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
131714         yesno.c: Back out Copyright date changes for each file with no change
131715         this year.  This eases coordination with other programs using the same
131716         source code modules.  From Paul Eggert.
131718 2000-08-06  Paul Eggert  <eggert@twinsun.com>
131720         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
131721         not char, for compatibility with glibc 2.1.3 strftime.c.
131723 2000-08-03  Greg McGary  <greg@mcgary.org>
131725         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
131726         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
131727         (EXTEND_BUFFER): Use them.
131729 2000-08-01  Jim Meyering  <meyering@lucent.com>
131731         * lib/dirname.c (ISSLASH): Define.
131732         (BACKSLASH_IS_PATH_SEPARATOR): Define.
131733         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
131734         both `\' and `/' may be use as path separators.
131735         Based on a patch from Prashant TR.
131737 2000-07-31  Paul Eggert  <eggert@twinsun.com>
131739         * lib/quotearg.c (quotearg_n_options): Don't make the initial
131740         slot vector a constant, since it might get modified.
131742 2000-07-31  Jim Meyering  <meyering@lucent.com>
131744         * lib/xmalloc.c: Use `virtual memory exhausted', not
131745         `Memory exhausted'.
131746         * lib/obstack.c (print_and_abort): Likewise.
131748 2000-07-30  Paul Eggert  <eggert@twinsun.com>
131750         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
131751         buffer, so that the caller can always quote one small
131752         component of a "memory exhausted" message in slot 0.
131753         From a suggestion by Jim Meyering.
131755 2000-07-30  Jim Meyering  <meyering@lucent.com>
131757         * lib/makepath.c (make_path): Quote the other instance, too.
131759         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
131760         (STATIC_BUF_SIZE): Define.
131761         (quotearg_n_options): Use only statically allocated storage when
131762         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
131763         than STATIC_BUF_SIZE.
131765 2000-07-29  Jim Meyering  <meyering@lucent.com>
131767         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
131768         * lib/dirname.c (dir_name): Likewise.
131770         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
131771         `/'.
131773         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
131774         (dir_name): Assert that there are no trailing slashes.
131776 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
131778         * lib/mbswidth.h (mbswidth): Add a flags argument.
131779         (mbswidth): New declaration.
131780         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
131781         * lib/mbswidth.c (mbswidth): Add a flags argument.
131782         (mbsnwidth): New function.
131784 2000-07-24  Jim Meyering  <meyering@lucent.com>
131786         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
131788 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131790         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
131792 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131794         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
131795         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
131796         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
131797         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
131798         invoke multibyte primitives.
131800 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131802         * lib/quotearg.c:
131803         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
131804         so that mbstate_t is always defined.
131806         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
131807         be 1 in at least one GCC installation, and this configuration
131808         error is likely to be common.  Ignoring MB_LEN_MAX hurts
131809         performance on hosts that have mbrtowc but have only unibyte
131810         locales, but I assume these hosts are rare.
131812 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131814         * lib/mbswidth.c (_XOPEN_SOURCE):
131815         Don't define; this causes problems on Solaris 7.
131816         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
131818 2000-07-23  Jim Meyering  <meyering@lucent.com>
131820         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
131821         too: getgrgid, getpwuid, getuid.
131823 2000-07-23  Jim Meyering  <meyering@lucent.com>
131825         * lib/basename.c (base_name): Add an assertion.
131827 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
131829         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
131830         shadow its mbsinit function.
131832 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131834         * lib/mbswidth.h: New file.
131835         * lib/mbswidth.c: New file.
131836         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
131837         (noinst_HEADERS): Add mbswidth.h.
131839 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131841         * lib/config.charset: Add support for FreeBSD. Improve support for
131842         HP-UX and IRIX 6.
131844 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
131846         * m4/mbswidth.m4: New file.
131847         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
131849 2000-07-15  Jim Meyering  <meyering@lucent.com>
131851         * lib/makepath.c: Include quote.h.
131852         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
131853         corresponding argument in a `quote (...)' call.
131854         Give better diagnostics.
131856         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
131857         (noinst_HEADERS): Add quote.h.
131859         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
131860         from tar's src/misc.c.
131861         * lib/quote.h: New file.  Prototypes for same.
131863 2000-07-14  Paul Eggert  <eggert@twinsun.com>
131865         From a suggestion by Bruno Haible.
131866         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
131867         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
131868         to decide whether to define the BeOS workaround macro;
131869         this adjusts to the change to AC_MBSTATE_T.
131871 2000-07-14  Jim Meyering  <meyering@lucent.com>
131873         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
131874         jm_AC_TYPE_UINTMAX_T.
131876 2000-07-13  Paul Eggert  <eggert@twinsun.com>
131878         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
131880         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
131881         quotearg_buffer_restyled): Add support for
131882         clocale_quoting_style.  Undo previous change to
131883         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
131884         and "{RIGHT QUOTATION MARK}" msgids.
131886 2000-07-10  Paul Eggert  <eggert@twinsun.com>
131888         From a suggestion by Bruno Haible.
131889         * m4/mbstate_t.m4 (AC_MBSTATE_T):
131890         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
131891         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
131892         and mbstate_t, to a single-part test that simply defines mbstate_t.
131893         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
131894         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
131896 2000-07-10  Jim Meyering  <meyering@lucent.com>
131898         * m4/strerror_r.m4: Mirror the correction made in autoconf.
131900         * m4/gnu-source.m4: Output to confdefs.h directly.
131901         Suggestion from Akim Demaille.
131903 2000-07-09  Paul Eggert  <eggert@twinsun.com>
131905         The old behavior of quoting `like this' doesn't look good with
131906         newer, ISO-style fonts.  See:
131907         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
131909         Instead, quote "like this" by default.  Let the translator
131910         tailor the locale-specific quoting behavior by providing
131911         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
131913         * lib/quotearg.c (N_): New macro.
131914         (gettext_default): New function.
131915         (quotearg_buffer_restyled): Use
131916         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
131917         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
131919 2000-07-09  Jim Meyering  <meyering@lucent.com>
131921         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
131922         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
131924         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
131925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
131927 2000-07-09  Jim Meyering  <meyering@lucent.com>
131929         * lib/Most files: Update copyright dates to include 2000.
131931 2000-07-08  Jim Meyering  <meyering@lucent.com>
131933         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
131934         if not defined.
131935         (xgethostname): Remove now-unnecessary #ifdef.
131936         Move declaration of `err' into loop where it's used.
131938 2000-07-05  Paul Eggert  <eggert@twinsun.com>
131939         and Bruno Haible  <haible@clisp.cons.org>
131941         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
131942         only if the test for an object-type mbstate_t fails.  This
131943         prevents us from mistakenly reporting that mbstate_t is a
131944         system object type after we "#define mbstate_t int" to work
131945         around its lack.
131947 2000-07-05  Paul Eggert  <eggert@twinsun.com>
131948         and Bruno Haible  <haible@clisp.cons.org>
131950         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
131952 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131954         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
131955         to strerror_r.
131956         Include <ctype.h> for use of isalpha.
131958 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131960         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
131961         by allocating a larger buffer. Test the gethostname return value for
131962         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
131963         returns an error and ENAMETOOLONG isn't defined.
131965 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
131967         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
131968         dimension.
131970 2000-07-04  Jim Meyering  <meyering@lucent.com>
131972         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
131973         of the deprecated AC_CHECKING.
131975 2000-07-04  Jim Meyering  <meyering@lucent.com>
131977         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
131978         Reported by Bruno Haible.
131980 2000-07-04  Jim Meyering  <meyering@lucent.com>
131982         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
131983         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
131984         lacks mbrtowc.
131986 2000-07-03  Paul Eggert  <eggert@twinsun.com>
131988         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
131989         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
131991 2000-07-03  Paul Eggert  <eggert@twinsun.com>
131992         and Bruno Haible  <haible@clisp.cons.org>
131994         * lib/quotearg.c (mbrtowc):
131995         Assign to *pwc, and return 1 only if result is nonzero.
131996         (iswprint): Use ISPRINT when substituting our own mbrtowc.
131998 2000-07-03  Jim Meyering  <meyering@lucent.com>
132000         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132002 2000-07-03  Jim Meyering  <meyering@lucent.com>
132004         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132005         This is necessary to get a definition of e.g., UTMP_FILE on
132006         HP-UX 10.20.
132007         From Bob Proulx.
132009 2000-07-02  Jim Meyering  <meyering@lucent.com>
132011         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132013         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132014         AC_LIBOBJ(function_name).
132015         * m4/chown.m4: Likewise.
132016         * m4/fnmatch.m4: Likewise.
132017         * m4/ftruncate.m4: Likewise.
132018         * m4/getgroups.m4: Likewise.
132019         * m4/getline.m4: Likewise.
132020         * m4/group-member.m4: Likewise.
132021         * m4/jm-macros.m4: Likewise.
132022         * m4/lstat.m4: Likewise.
132023         * m4/malloc.m4: Likewise.
132024         * m4/memcmp.m4: Likewise.
132025         * m4/nanosleep.m4: Likewise.
132026         * m4/putenv.m4: Likewise.
132027         * m4/realloc.m4: Likewise.
132028         * m4/regex.m4: Likewise.
132029         * m4/stat.m4: Likewise.
132030         * m4/strftime.m4: Likewise.
132032 2000-07-02  Jim Meyering  <meyering@lucent.com>
132034         * lib/quotearg.c (mbstate_t): Don't define here.
132036 2000-07-02  Jim Meyering  <meyering@lucent.com>
132038         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132040 2000-07-01  Jim Meyering  <meyering@lucent.com>
132042         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132044 2000-07-01  Jim Meyering  <meyering@lucent.com>
132046         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132047         problem.
132049 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132051         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132052         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132054 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132056         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132057         per change in ../m4/ls-mntd-fs.m4.
132058         (read_filesystem_list): Ignore symbolic links.
132060 2000-06-29  Jim Meyering  <meyering@lucent.com>
132062         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132063         for declaration of strcmp.
132065         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132067         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132068         Avoid warning by casting result to `char *' to remove `const'.
132070 2000-06-28  Jim Meyering  <meyering@lucent.com>
132072         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132073         included by quotearg.c, for which we perform this test.  From
132074         Bruno Haible.
132076 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132078         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132079         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132080         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132082 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132084         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132086 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132088         savedir now sets errno on failure and invokes xmalloc to get memory.
132089         Fix a couple of other minor bugs while we're at it.
132091         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132092         (NAMLEN): Remove macro.
132093         (malloc, realloc): Remove decls.
132094         (stpcpy): Likewise.
132095         ("xalloc.h"): Include.
132096         (NAME_SIZE_DEFAULT): New macro.
132097         (savedir): Use xmalloc / xrealloc to allocate memory.
132098         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132099         Skip "" directory entries.
132100         Use strlen to calculate directory entry length, since the old method
132101         is rarely used these days and isn't worth supporting.
132102         Don't use a pointer after freeing it.
132103         Check for integer overflow when calculating allocation size.
132104         Use memcpy to copy entries, instead of stpcpy.
132105         Set errno properly when returning NULL.
132106         Check for readdir error.
132108 2000-06-26  Jim Meyering  <meyering@lucent.com>
132110         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132112 2000-06-25  Jim Meyering  <meyering@lucent.com>
132114         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132115         Linux header bug when _XOPEN_SOURCE is defined to 500.
132117 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132119         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132120         deficiency.
132122 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132124         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132125         Include xalloc.h.
132126         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132128 2000-06-24  Jim Meyering  <meyering@lucent.com>
132130         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132131         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132132         for which strerror does return char*, but which lacks a conveniently
132133         accessible declaration of the function.  If the compile-test says
132134         strerror_r doesn't work, then resort to a `run'-test that works on
132135         BeOS and segfaults on DEC Unix.
132137 2000-06-24  Jim Meyering  <meyering@lucent.com>
132139         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132141 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132143         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132144         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132146 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132148         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132149         (mbrtowc, mbstate_t): Define substitutes if
132150         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132151         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132152         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132154 2000-06-23  Jim Meyering  <meyering@lucent.com>
132156         * m4/afs.m4: Add missing AC_MSG_RESULT.
132157         Reported by Bruno Haible.
132159         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132160         Suggestion from Bruno Haible.
132162 2000-06-23  Jim Meyering  <meyering@lucent.com>
132164         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132166 2000-06-21  Jim Meyering  <meyering@lucent.com>
132168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132170 2000-06-21  Jim Meyering  <meyering@lucent.com>
132172         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132173         (noinst_HEADERS): Add getstr.h.
132175         * lib/getline.c (getstr): Move into a separate file.
132176         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132177         the following changes: new parameter, delim2; both delim[12]
132178         parameters have type `int', not `char'.  The latter would lose
132179         with 8-bit delimiters.
132180         * lib/getstr.h: New file.
132182 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132184         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132185         than 1024, return a memory chunk of least possible size, instead
132186         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132187         Use free/xmalloc instead of xrealloc to avoid copying for very long
132188         paths.
132190 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132192         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132193         the empty string.
132195 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132197         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132198         address, not strdup.  Include <stdlib.h> and don't declare free().
132200 2000-06-19  Jim Meyering  <meyering@lucent.com>
132202         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132204 2000-06-18  Jim Meyering  <meyering@lucent.com>
132206         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132208         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
132209         `checking whether...' message to be consistent with that of the
132210         lstat test.
132212 2000-06-18  Jim Meyering  <meyering@lucent.com>
132214         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
132215         Besides, these days every porting target provides a mkdir function.
132217         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
132218         needed. (this snippet comes from src/system.h).
132220 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
132222         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
132224 2000-06-15  Paul Eggert  <eggert@twinsun.com>
132226         * lib/human.c (adjust_value): New function.
132227         (human_readable_inexact): Apply rounding style even when
132228         printing approximate values.
132230 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132232         * lib/human.c (human_readable_inexact): Allow an input block
132233         size that is not a multiple of the output block size, and vice versa.
132234         Reported by Piergiorgio Sartor.
132236 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132238         * lib/getdate.y (get_date): Apply relative times after time
132239         zone indicator, not before.  Reported by Todd A. Jacobs.
132241 2000-06-13  Jim Meyering  <meyering@lucent.com>
132243         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
132245         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
132247 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132249         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132251 2000-06-12  Jim Meyering  <meyering@lucent.com>
132253         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132254         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132255         optional argument.
132256         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132257         the optional argument, `lib'.
132259 2000-06-08  Jim Meyering  <meyering@lucent.com>
132261         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132263 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132265         Rewrite largefile configuration so that we don't need to run
132266         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132267         AC_CANONICAL_HOST in configure.in -- jmm]
132269         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132270         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132271         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132272         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132273         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132274         All uses changed.
132275         Instead of inspecting the output of getconf, try to compile the
132276         test program without and with the macro definition.
132277         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132278         for getconf.  Instead, check for the needed flags by compiling
132279         test programs.
132281 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132283         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132285 2000-06-04  Jim Meyering  <meyering@lucent.com>
132287         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132288         SunOS 4.1.4 for which gid_t is an unsigned type.
132290 2000-06-03  Jim Meyering  <meyering@lucent.com>
132292         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132293         now that autoconf requires that.
132295         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132296         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132297         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132299 2000-06-03  Jim Meyering  <meyering@lucent.com>
132301         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132303 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132305         * m4/glibc21.m4: New file.
132306         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132308 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132310         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132311         newer, don't install charset.alias.
132312         * lib/config.charset: Change the Linux/glibc rules so they become empty
132313         on glibc-2.1 or newer.
132315 2000-06-02  Jim Meyering  <meyering@lucent.com>
132317         * lib/mountlist.c: Back out last change.  Instead, do this...
132318         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132319         me_dummy member using the same `ignore'-testing code.
132320         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132321         fs_type strings.
132322         From Mark D. Roth.
132324 2000-05-29  Jim Meyering  <meyering@lucent.com>
132326         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132327         mounts with the `ignore' attribute.  Based on a patch from
132328         Mark D. Roth.
132330 2000-05-28  Jim Meyering  <meyering@lucent.com>
132332         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132333         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132334         * m4/stat.m4: Likewise.
132335         * m4/lstat.m4: Likewise.
132336         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132338         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132339         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132341 2000-05-26  Jim Meyering  <meyering@lucent.com>
132343         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132345 2000-05-24  Jim Meyering  <meyering@lucent.com>
132347         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132348         autoconf requires that.
132349         * m4/lib-check.m4: Likewise.
132350         * m4/jm-macros.m4: Likewise.
132351         * m4/strftime.m4: Likewise.
132353         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132354         AC_CHECK_DECLS, now that autoconf requires that.
132356 2000-05-22  Jim Meyering  <meyering@lucent.com>
132358         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132359         * m4/lstat.m4: Likewise.
132361 2000-05-22  Jim Meyering  <meyering@lucent.com>
132363         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132365 2000-05-20  Jim Meyering  <meyering@lucent.com>
132367         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132368         (jm_PREREQ): Use it.
132370 2000-05-18  Jim Meyering  <meyering@lucent.com>
132372         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132373         back, too, since it may have been modified by allocate_entry.
132374         (hash_delete): Rewrite to use neither the assignment operator
132375         nor the comma operator in an if-expression.
132377 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132379         * lib/closeout.c:
132380         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
132381         Remove; no longer needed.
132382         "quotearg.h": Add include.
132383         (file_name): Do not bother to explicitly initialize to NULL; it's less
132384         efficient on some hosts.
132385         (close_stdout_status): Remove test as to whether stdout was already
132386         closed; it breaks for the case "echo x | sort >&-".
132387         Quote file name colons.
132388         Do not assume that _("write error") lacks format strings.
132390 2000-05-15  Jim Meyering  <meyering@lucent.com>
132392         * lib/version-etc.c (version_etc_copyright): Update the copyright
132393         string used in all --version output.
132395 2000-05-14  Jim Meyering  <meyering@lucent.com>
132397         * lib/closeout.c (close_stdout_set_file_name): New function.
132398         (close_stdout_status): Use new file-scoped global.
132399         Return right away if fstat says the stdout file descriptor is invalid.
132400         * lib/closeout.h (close_stdout_set_file_name): Declare.
132402 2000-05-10  Jim Meyering  <meyering@lucent.com>
132404         * lib/closeout.c [default_exit_status]: New file-scoped variable.
132405         (close_stdout_set_status): New function.
132406         * lib/closeout.h (close_stdout_set_status): Declare.
132408 2000-05-09  Jim Meyering  <meyering@lucent.com>
132410         * m4/gettext.m4: Rename this...
132411         * m4/libintl.m4: ...to this.
132413 2000-05-08  Jim Meyering  <meyering@lucent.com>
132415         * lib/long-options.c: Don't include closeout.h.
132416         (parse_long_options): Don't call close_stdout for --version.
132418 2000-05-06  Paul Eggert  <eggert@twinsun.com>
132420         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
132421         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
132422         2.1.3 bug.  This avoids a clash when files like regex.c define
132423         _GNU_SOURCE.
132425 2000-05-06  Jim Meyering  <meyering@lucent.com>
132427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
132428         (AC_REPLACE_FUNCS): Add strnlen.
132430         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
132431         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
132433         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
132434         AC_SEARCH_LIBS call for nanosleep.
132435         (LIB_NANOSLEEP): Set and AC_SUBST.
132437 2000-05-06  Jim Meyering  <meyering@lucent.com>
132439         * lib/strnlen.c: Undefine __strnlen and strnlen.
132440         [!weak_alias]: Define __strnlen to strnlen.
132442         * lib/atexit.c: New file, from libiberty.
132444 2000-05-06  Jim Meyering  <meyering@lucent.com>
132446         * lib/closeout.c (close_stdout_status): Also check for errors on the
132447         stderr stream.
132449 2000-05-05  Jim Meyering  <meyering@lucent.com>
132451         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
132452         AC_SEARCH_LIBS call for clock_gettime.
132453         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
132455         * m4/search-libs.m4: Update from autoconf.
132457         su doesn't work on Solaris 2.6.
132458         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
132459         <shadow.h>.  Reported by Dragos Harabor.
132461 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
132463         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
132464         memcpy instead of xmalloc, xrealloc, path_concat.
132465         (locale_charset): Treat empty environment variables as absent.
132466         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
132468 2000-05-04  Jim Meyering  <meyering@lucent.com>
132470         * lib/getopt.c: Update from glibc.
132471         * lib/obstack.c: Likewise.
132472         * lib/obstack.h: Likewise.
132473         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
132474         file
132476         * lib/regex.h: Likewise.
132477         * lib/strndup.c: Likewise.
132478         * lib/strnlen.c: New file, from glibc.
132480 2000-05-03  Jim Meyering  <meyering@lucent.com>
132482         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
132484 2000-05-02  Paul Eggert  <eggert@twinsun.com>
132486         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
132487         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
132488         compile-time test, rather than inspecting host and OS, to
132489         decide whether to define _LARGEFILE_SOURCE.
132491 2000-05-01  Jim Meyering  <meyering@lucent.com>
132493         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
132495         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
132496         Based on a patch from Bruno Haible.
132498 2000-05-01  Jim Meyering  <meyering@lucent.com>
132500         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
132502 2000-04-29  Jim Meyering  <meyering@lucent.com>
132504         * lib/path-concat.c: Declare strdup only if it's not defined.
132505         * lib/canon-host.c: Likewise.
132507 2000-04-28  Jim Meyering  <meyering@lucent.com>
132509         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
132510         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
132511         is included first, then limits.h is included by locale.h by libintl.h.
132512         From John David Anglin.
132514 2000-04-25  Jim Meyering  <meyering@lucent.com>
132516         * lib/makepath.c (S_IRWXUGO): Define.
132517         (make_path): Always perform explicit chmod if MODE specifies any
132518         of the `special' permission bits.  Prompted by a bug report against
132519         install from Mate Wierdl and Joost van Baal.
132521 2000-04-18  Jim Meyering  <meyering@lucent.com>
132523         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
132524         (jm_PREREQ): Use it.
132526 2000-04-18  Jim Meyering  <meyering@lucent.com>
132528         * lib/README: New file.
132530         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
132531         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
132533 2000-04-17  Jim Meyering  <meyering@lucent.com>
132535         Get it right :-)
132536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
132537         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
132538         Suggestion from Akim Demaille.
132540 2000-04-17  Jim Meyering  <meyering@lucent.com>
132542         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
132543         the definition of it to rpl_strftime also defined-away the system's
132544         declaration.
132546 2000-04-15  Jim Meyering  <meyering@lucent.com>
132548         Use `C' to denote so-called `contiguous' files, the same way
132549         that tar does.
132550         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
132551         (ftypelet): Use S_ISCTG.
132552         From Michael Deutschmann.
132554 2000-04-14  Jim Meyering  <meyering@lucent.com>
132556         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
132557         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
132558         clobbered.
132560 2000-04-14  Jim Meyering  <meyering@lucent.com>
132562         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
132564 2000-04-13  Jim Meyering  <meyering@lucent.com>
132566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
132567         AH_VERBATIM to insert required #ifndef into config.h.in.
132568         Suggestion from Akim Demaille.
132570 2000-04-12  Jim Meyering  <meyering@lucent.com>
132572         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
132573         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
132574         Christian Krackowizer.
132576         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
132577         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
132578         (AC_SYS_LARGEFILE): Require.
132579         (AM_C_PROTOTYPES): Require.
132581 2000-04-08  Jim Meyering  <meyering@lucent.com>
132583         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
132584         names don't conflict.  Reported by Eli Zaretskii.
132586 2000-04-07  Jim Meyering  <meyering@lucent.com>
132588         * lib/putenv.c: Move inclusion of errno.h so it follows that of
132589         sys/types.h, to work around system header problems on AIX 3.2.5.
132590         From Bruno Haible.
132592 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
132594         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
132595         bug.  Deal with the different error behavior of Irix iconv.
132597 2000-04-05  Paul Eggert  <eggert@twinsun.com>
132599         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
132600         IRIX if the installer said otherwise.
132602 2000-04-05  Jim Meyering  <meyering@lucent.com>
132604         Portability tweaks required for ultrix4.3.
132605         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
132606         (jm_CHECK_DECLS): Add getutent to the list of functions.
132607         (_jm_DECL_HEADERS): Add utmpx.h.
132608         From John David Anglin.
132610         * m4/strftime.m4: Back out the 2000-04-02 change.
132611         Instead of that change, simply undefine putenv in the test program.
132613 2000-04-05  Jim Meyering  <meyering@lucent.com>
132615         Portability tweaks required for ultrix4.3.
132616         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
132617         getutent.
132618         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
132619         * lib/canon-host.c: Declare strdup.
132620         * lib/path-concat.c: Likewise.
132621         From John David Anglin.
132623 2000-04-04  Jim Meyering  <meyering@lucent.com>
132625         Be more DOS 8.3-friendly.
132626         * lib/ref-add.sin: Renamed from ref-add.sed.in.
132627         * lib/ref-del.sin: Renamed from ref-del.sed.in.
132628         * lib/Makefile.am: Reflect renaming.
132629         Reported by Eli Zaretskii.
132631         Use a temporary file name that won't clash with `charset.alias'
132632         in the DOS 8.3 name space.
132633         * lib/Makefile.am (charset_tmp): Define.
132634         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
132635         (uninstall-local): Likewise.
132636         Reported by Eli Zaretskii.
132638 2000-04-03  Jim Meyering  <meyering@lucent.com>
132640         * m4/gettext.m4: Fix typo in comment.
132642         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
132643         textutils/configure.in).  Suggestion from Paul Eggert.
132644         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
132646 2000-04-02  Paul Eggert  <eggert@twinsun.com>
132648         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
132649         variable in the shell rather than using putenv, which isn't
132650         portable.  This avoids the configure-time inter-test dependency
132651         on the potentially-renamed putenv function.
132653 2000-03-30  Paul Eggert  <eggert@twinsun.com>
132655         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
132656         before checking struct stat.st_blksize, so that
132657         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
132659 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132661         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
132662         since strftime.c uses HAVE_STRFTIME to decide whether to use
132663         the underlying strftime.
132665 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132667         * lib/time/strftime.c (my_strftime): Make sure we call the system
132668         strftime, not ourselves, when invoking the underlying strftime.
132670 2000-03-24  Jim Meyering  <meyering@lucent.com>
132672         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
132673         (charset_alias): Define.
132674         (install-exec-local): Factor out common code.
132675         (uninstall-local): Split lines longer than 80.
132676         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
132677         (SUFFIXES): Define.
132678         (.sed.in.sed): New rule.  Don't redirect directly to $@.
132679         (CLEANFILES): Add ref-add.sed and ref-del.sed.
132681 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
132683         * lib/config.charset: Output a line containing "Packages using this
132684         file".
132685         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
132686         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
132687         ref-del.sed): New rules.
132689 2000-03-17  Jim Meyering  <meyering@lucent.com>
132691         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
132692         Otherwise, include <strings.h>
132694 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
132696         * lib/unicodeio.c (utf8_wctomb): New function.
132697         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
132698         format instead of in UCS-4 with platform dependent endianness.
132700 2000-03-10  Jim Meyering  <meyering@lucent.com>
132702         * m4/lib-check.m4: Look for getspnam in -lgen, too.
132703         From Marco Franzen.
132705 2000-03-07  Paul Eggert  <eggert@twinsun.com>
132707         * lib/savedir.c (savedir): Work even if directory size is
132708         negative; this can happen with some screwy NFS configurations.
132710 2000-03-06  Jim Meyering  <meyering@lucent.com>
132712         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
132713         if it's NULL (because we ran out of memory).  From Bruno Haible.
132715 2000-03-05  Jim Meyering  <meyering@lucent.com>
132717         * lib/localcharset.c ("path-concat.h"): Include.
132718         (get_charset_aliases): Use path_concat instead of ANSI string
132719         concatenation.
132721         * lib/unicodeio.h (PARAMS): Define.
132722         Use it to guard prototype.
132724 2000-03-04  Jim Meyering  <meyering@lucent.com>
132726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
132727         for lib/localcharset.c.
132729 2000-03-04  Jim Meyering  <meyering@lucent.com>
132731         * lib/Makefile.am (install-exec-local): Create $(libdir) before
132732         installing into it.
132733         (uninstall-local): Uncomment this rule so `make distcheck' works
132734         once again.
132736         * lib/unicodeio.c (<errno.h>): Include it.
132737         (errno): Declare if not defined.
132739         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
132741         * lib/config.charset: New version, incorporating remarks from a linux
132742         i18n mailing list.  From Bruno Haible.
132744 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
132746         * m4/codeset.m4: New file.
132747         * m4/iconv.m4: New file.
132748         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
132750 2000-03-03  Jim Meyering  <meyering@lucent.com>
132752         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
132754 2000-03-02  Jim Meyering  <meyering@lucent.com>
132756         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
132757         the messages come out on separate lines.
132759         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
132760         rather than jm_CHECK_DECLARATIONS.
132761         * m4/decl.m4: Remove now-unused file.
132763         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
132764         geteuid.
132766 2000-03-02  Jim Meyering  <meyering@lucent.com>
132768         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
132770 2000-03-01  Jim Meyering  <meyering@lucent.com>
132772         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
132773         * lib/unicodeio.c: Likewise.
132775 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
132777         * lib/config.charset: New file.
132778         * lib/localcharset.c: New file.
132779         * lib/unicodeio.h, lib/unicodeio.c: New files.
132780         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
132781         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
132782         (noinst_HEADERS): Add unicodeio.h.
132783         (all-local, install-exec-local, charset.alias): New targets.
132785 2000-02-28  Paul Eggert  <eggert@twinsun.com>
132787         * lib/quotearg.c (ALERT_CHAR): New macro.
132788         (quotearg_buffer_restyled): Use it.
132790 2000-02-27  Jim Meyering  <meyering@lucent.com>
132792         * m4/check-decl.m4: Add getenv to the list.
132794 2000-02-27  Jim Meyering  <meyering@lucent.com>
132796         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
132797         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
132799         * lib/backupfile.c: Guard inclusion of stdlib.h with
132800         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
132801         Declare malloc if needed.
132803         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
132804         `#ifndef HAVE_DECL..'
132805         now that autoconf always defines the HAVE_DECL_ symbols.
132806         * lib/human.c: Likewise.
132807         * lib/same.c: Likewise.
132808         * lib/strtoumax.c: Likewise.
132810         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
132811         declaration check was not run.
132812         * lib/hash.c: Likewise.
132813         * lib/human.c: Likewise.
132814         * lib/same.c: Likewise.
132815         * lib/strtoumax.c: Likewise.
132817         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
132818         `.', then first look up the entire `.'-containing string as a login
132819         name.
132821 2000-02-23  Jim Meyering  <meyering@lucent.com>
132823         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
132824         in place of my hack.
132826 2000-02-18  Paul Eggert  <eggert@twinsun.com>
132828         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
132829         (textint): New typedef.
132830         (parser_control): Member year changed from int to textint.
132831         All uses changed.
132832         (YYSTYPE): Removed; replaced by %union with int and textint members.
132833         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
132834         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
132835         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
132836         (tSNUMBER, tUNUMBER): Now of type <textintval>.
132837         (date, number, to_year): Use width of number in digits, not its value,
132838         to determine whether it's a 2-digit year, or a 2-digit time.
132839         (yylex): Store number of digits of numeric tokens.
132840         Reported by John Kendall.
132842         (parser_control): Changed from struct parser_control to typedef (for
132843         consistency).  All uses changed.
132845         (tID): Removed; not used.
132846         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
132848 2000-02-14  Paul Eggert  <eggert@twinsun.com>
132850         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
132851         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
132853 2000-02-12  Jim Meyering  <meyering@lucent.com>
132855         * lib/userspec.c (ISDIGIT): Define it.
132856         (isdigit): Remove definition.
132857         (is_number): Use ISDIGIT, not isdigit.
132858         <libintl.h>: Include.
132859         (_ and N_): Define.
132860         (parse_user_spec): Mark translatable strings.
132862 2000-02-10  Jim Meyering  <meyering@lucent.com>
132864         With these changes, nanosleep.[ch] are finally enough like the other
132865         lib/* replacement files to compile on a few more losing systems.
132867         * lib/nanosleep.h: Don't include config.h.
132868         Remove prototype from declaration of nanosleep.
132869         (PARAMS): Remove now-unneeded definition.
132870         * lib/nanosleep.c: #undef nanosleep.
132871         (rpl_nanosleep): Rename from nanosleep.
132873 2000-02-10  Jim Meyering  <meyering@lucent.com>
132875         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
132876         gnu_nanosleep to rpl_nanosleep.
132878 2000-02-09  Jim Meyering  <meyering@lucent.com>
132880         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
132881         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
132883 2000-02-08  Akim Demaille  <akim@epita.fr>
132885         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
132886         `[' and `]' and remove uses of `changequote'.
132887         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
132888         (AC_SYS_LARGEFILE): Likewise.
132889         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
132890         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
132891         of changequote.
132892         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
132893         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
132894         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
132895         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
132897 2000-02-05  Jim Meyering  <meyering@lucent.com>
132899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
132900         Remove explicit use of AC_HEADER_TIME.  It is required by
132901         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
132902         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
132903         in autoconf whereby the expansion of the latter ended up preceding
132904         the expansion of its prerequisite, AC_HEADER_TIME.
132905         Reported by Volker Borchert.
132907 2000-02-03  Jim Meyering  <meyering@lucent.com>
132909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
132911 2000-02-03  Jim Meyering  <meyering@lucent.com>
132913         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
132914         rather than with `#if HAVE_UTMPNAME'.
132916 2000-02-02  Jim Meyering  <meyering@lucent.com>
132918         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
132919         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
132920         Reported by Eli Zaretskii.
132922 2000-02-01  Jim Meyering  <meyering@lucent.com>
132924         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
132926 2000-01-31  Jim Meyering  <meyering@lucent.com>
132928         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
132929         functions.  Add the time.h and sys/time.h headers along with the
132930         AC_REQUIRE'ment of AC_HEADER_TIME.
132932 2000-01-31  Jim Meyering  <meyering@lucent.com>
132934         * lib/nanosleep.h (nanosleep): Guard declaration with
132935         `#if ! HAVE_DECL_NANOSLEEP'.
132936         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
132937         the declaration in that vendor's sys/timers.h.
132938         Reported by Christian Krackowizer.
132940         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
132941         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
132942         (ISPRINT): Likewise.
132943         Reported by Tom Tromey.
132945 2000-01-30  Jim Meyering  <meyering@lucent.com>
132947         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
132949         * m4/prereq.m4 (utmp_includes): Define.
132950         Check for ut_user and ut_name members in both struct utmpx
132951         and struct utmp.
132953 2000-01-30  Jim Meyering  <meyering@lucent.com>
132955         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
132956         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
132957         header files where only utmpx.ut_user is declared.
132959         * lib/readutmp.h (UT_USER): Define.
132961 2000-01-29  Jim Meyering  <meyering@lucent.com>
132963         * m4/lib-check.m4: New file containing library-related checks from
132964         fileutils and sh-utils (textutils had none).
132966 2000-01-28  Jim Meyering  <meyering@lucent.com>
132968         * m4/perl.m4: Change format of warning message to look more like that
132969         from the missing script.  Suggestion from François Pinard.
132971 2000-01-25  Jim Meyering  <meyering@lucent.com>
132973         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
132974         well as time.h in the compile check.
132975         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
132976         Fix typo in cross-compiling case: s/yes/no/.
132978 2000-01-23  Jim Meyering  <meyering@lucent.com>
132980         * m4/jm-macros.m4: Move df-related tests here from
132981         fileutils/configure.in
132983         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
132984         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
132986         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
132987         s/space/ac_fsusage_space/.
132988         (jm_FILE_SYSTEM_USAGE): Take two parameters.
132990         * m4/ftruncate.m4: New file (derived from part of
132991         fileutils/configure.in).
132992         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
132993         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
132995         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
132996         AC_SUBST these here, rather than just in sh-util/configure.in, so
132997         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
132998         all the same.
132999         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133000         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133001         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133002         (AC_SUBST(POW_LIBM)): Likewise.
133003         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133005 2000-01-23  Jim Meyering  <meyering@lucent.com>
133007         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133008         obstack.c.
133010 2000-01-22  Jim Meyering  <meyering@lucent.com>
133012         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133014         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133016         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133017         configure.in
133018         (AC_CHECK_HEADERS): Likewise for sh-utils.
133019         (AC_CHECK_HEADERS): Likewise for textutils.
133020         Merge the three lists of headers.
133022         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133023         from fileutils' configure.in.
133025         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133026         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133027         check-decl.m4.
133029         * m4/check-decl.m4: Use #if rather than #ifdef.
133030         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133031         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133032         (_jm_DECL_HEADERS): Define new function.
133033         (jm_CHECK_DECLARATIONS): Require it.
133035 2000-01-22  Jim Meyering  <meyering@lucent.com>
133037         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133038         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133039         Required for some AIX systems.  Reported by Christian Krackowizer.
133040         [TESTING] (main): New function.
133042         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133043         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133044         letters.
133046         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133047         iswprint.
133049         * lib/strverscmp.c (ISDIGIT): Define.
133050         (strverscmp): Use ISDIGIT, not isdigit.
133052 2000-01-19  Jim Meyering  <meyering@lucent.com>
133054         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133055         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133056         defines `struct timespec' in <sys/time.h>
133058         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133059         Thanks to Akim for explaining.
133061 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133063         * lib/nanosleep.c (nanosleep):
133064         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133065         POSIX.1 doesn't require SA_INTERRUPT and some systems
133066         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133067         it's been part of POSIX.1 since day 1 (in 1988).
133069 2000-01-17  Jim Meyering  <meyering@lucent.com>
133071         * lib/interlock: Remove unused file.  Reported by François Pinard.
133073 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133075         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133076         alert, backslash, formfeed, and vertical tab unnecessarily in
133077         shell quoting style.
133079 2000-01-16  Jim Meyering  <meyering@lucent.com>
133081         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133082         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133083         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133084         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133086 2000-01-16  Jim Meyering  <meyering@lucent.com>
133088         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133089         because the latter didn't work.
133091 2000-01-15  Jim Meyering  <meyering@lucent.com>
133093         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133094         (AC_REPLACE_FUNCS): Add memcpy and memset.
133095         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133096         Add strpbrk.
133097         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133099 2000-01-12  Jim Meyering  <meyering@lucent.com>
133101         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133102         (jm_PREREQ): Use it.
133103         (jm_PREREQ_READUTMP): New macro.
133104         (jm_PREREQ): Use it.
133106 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133108         Quote multibyte characters correctly.
133109         * m4/c-bs-a.m4: New file.
133110         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133111         (jm_PREREQ): Use it.
133113 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133115         * m4/uintmax_t.m4: Port to autoconf 2.13.
133117 2000-01-08  Jim Meyering  <meyering@ascend.com>
133119         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133120         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133122 2000-01-04  Jim Meyering  <meyering@ascend.com>
133124         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133125         jm_STRUCT_DIRENT_D_TYPE.
133126         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133127         jm_STRUCT_DIRENT_D_INO.
133128         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133129         jm_STRUCT_UTIMBUF.
133130         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133131         renamings.
133132         * m4/utime.m4: Likewise.
133134         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133135         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133137 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133139         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133140         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133142 2000-01-02  Jim Meyering  <meyering@ascend.com>
133144         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133145         remember if this is necessary.
133147 1999-12-26  Jim Meyering  <meyering@ascend.com>
133149         * m4/jm-macros.m4: Use it here.
133150         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133152 1999-12-23  Jim Meyering  <meyering@ascend.com>
133154         * m4/jm-macros.m4: Check for clock_gettime (moved from
133155         fileutils/configure.in)
133156         Check for gettimeofday.
133158 1999-12-20  Jim Meyering  <meyering@ascend.com>
133160         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133161         autoconf-2.14a-1999-12-20.
133163 1999-12-19  Jim Meyering  <meyering@ascend.com>
133165         * m4/lstat-slash.m4: New file.
133166         * m4/jm-macros.m4: Use the new macro:
133167         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133169 1999-12-07  Jim Meyering  <meyering@ascend.com>
133171         * m4/perl.m4: Require that File::Compare be available, too.
133172         Too many systems seem to lack it.
133174         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133175         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133177 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133179         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133180         problem with the QNX 4.25 shell, which doesn't propagate exit
133181         status of failed commands inside shell assignments.
133183 1999-11-17  Jim Meyering  <meyering@ascend.com>
133185         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133187 1999-11-07  Jim Meyering  <meyering@ascend.com>
133189         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133191 1999-11-06  Jim Meyering  <meyering@ascend.com>
133193         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133194         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133196 1999-11-05  Jim Meyering  <meyering@ascend.com>
133198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133199         configure.in of textutils, fileutils, and sh-utils into this one
133200         (shared between those packages) file.
133201         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133202         AC_STRUCT_ST_BLKSIZE.
133204 1999-11-03  Jim Meyering  <meyering@ascend.com>
133206         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133207         of AC_CHECK_TYPE checks includes unistd.h.
133208         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
133209         Suggestion from Akim Demaille.
133211 1999-10-30  Jim Meyering  <meyering@ascend.com>
133213         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
133214         m4-quoted string.
133215         * m4/ls-mntd-fs.m4: Likewise.
133216         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
133217         * m4/jm-winsz1.m4: Likewise.
133219         * m4/const.m4: Remove file, since the fix made it into the experimental
133220         version of autoconf.
133221         * m4/mktime.m4: Likewise.
133223         * m4/check-type.m4: Remove file, now that the latest version of
133224         AC_CHECK_TYPE takes a third arg to specify additional #includes.
133226         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
133227         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
133228         AC_CHECK_TYPE.
133230 1999-10-04  Jim Meyering  <meyering@ascend.com>
133232         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
133234 1999-09-22  Paul Eggert  <eggert@twinsun.com>
133236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
133237         2.95.1 bug with HP-UX 10.20.
133239 1999-09-17  Jim Meyering  <meyering@ascend.com>
133241         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
133242         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
133243         due to missing strdup (against sh-utils-2.0).
133245 1999-08-29  Jim Meyering  <meyering@ascend.com>
133247         * m4/jm-macros.m4: Require jm_BISON.
133248         * m4/bison.m4: New file.
133250 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133252         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133253         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133255 1999-08-05  Jim Meyering  <meyering@ascend.com>
133257         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133258         to avoid conflicts with `conftest' on 8+3 filesystems.
133259         Suggestion from Eli Zaretskii.
133261 1999-08-04  Jim Meyering  <meyering@ascend.com>
133263         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133264         fileutils and sh-utils (textutils's getline test was inadequate).
133265         (AM_FUNC_GETLINE): Run this test.
133266         (AC_CHECK_FUNCS): Check for getdelim.
133267         Reported by Bob Proulx.
133269 1999-08-02  Jim Meyering  <meyering@ascend.com>
133271         * m4/jm-macros.m4: Add a comment.
133273 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133275         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133276         <inttypes.h> defines strtoumax as a macro (and not as a
133277         function).
133279 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133281         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133282         that we can shift, multiply and divide unsigned long long
133283         values; Ultrix cc can't do it.
133285 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133287         * m4/mktime.m4: New file, which is a preview of what should appear
133288         in the next public autoconf release.
133290 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133292         * m4/lfs.m4: Remove this file.
133293         * m4/largefile.m4: New file.  It contains the old contents of
133294         lfs.m4, except that all names with prefix AC_LFS have been
133295         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133296         compatible with future autoconf versions.  Also, some minor m4
133297         quoting problems have been fixed.
133299 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133301         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133302         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133303         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133304         and simplify the shell code.
133306 1999-08-01  Jim Meyering  <meyering@ascend.com>
133308         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133309         m4.
133311 1999-07-20  Jim Meyering  <meyering@ascend.com>
133313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133315 1999-07-15  Jim Meyering  <meyering@ascend.com>
133317         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133319 1999-05-22  Jim Meyering  <meyering@ascend.com>
133321         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133323 1999-05-20  Jim Meyering  <meyering@ascend.com>
133325         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133326         Add a colon after each `then' in case $4 is empty.
133328 1999-05-16  Jim Meyering  <meyering@ascend.com>
133330         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133332 1999-05-10  Jim Meyering  <meyering@ascend.com>
133334         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133336         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133337         AC_FUNC_MKTIME.
133339 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133341         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133343 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133345         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133346         not CPPFLAGS, so that linking works correctly in IRIX.
133348 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133352 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133354         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133355         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133356         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133357         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133358         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133360         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133362 1999-04-20  Jim Meyering  <meyering@ascend.com>
133364         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133365         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133366         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133368 1999-04-18  Jim Meyering  <meyering@ascend.com>
133370         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133371         * m4/jm-macros.m4: Use it.
133373 1999-04-06  Jim Meyering  <meyering@ascend.com>
133375         * m4/strftime.m4: Remove test for %f.
133377 1999-03-29  Jim Meyering  <meyering@ascend.com>
133379         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133380         superset of the AC_TYPE_* checks in the textutils, fileutils,
133381         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
133382         AC_TYPE_PID_T.
133384 1999-03-28  Jim Meyering  <meyering@ascend.com>
133386         * m4/jm-macros.m4: Define GNU_PACKAGE here.
133387         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
133388         replaced e.g., in the *.sh files of the sh-utils.
133390 1999-03-20  Jim Meyering  <meyering@ascend.com>
133392         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
133393         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
133394         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
133396 1999-03-19  Jim Meyering  <meyering@ascend.com>
133398         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
133400 1999-03-12  Jim Meyering  <meyering@ascend.com>
133402         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
133404 1999-03-07  Jim Meyering  <meyering@ascend.com>
133406         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
133407         declared.
133409 1999-02-17  Jim Meyering  <meyering@ascend.com>
133411         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
133412         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
133414 1999-02-07  Jim Meyering  <meyering@ascend.com>
133416         * m4/group-member.m4: New file -- extracted from sh-utils'
133417         configure.in.
133419         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
133420         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
133422 1999-02-06  Jim Meyering  <meyering@ascend.com>
133424         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
133425         * m4/fnmatch.m4: Likewise.
133426         * m4/getgroups.m4: Likewise.
133427         * m4/lstat.m4: Likewise.
133428         * m4/malloc.m4: Likewise.
133429         * m4/putenv.m4: Likewise.
133430         * m4/realloc.m4: Likewise.
133431         * m4/regex.m4: Likewise.
133432         * m4/stat.m4: Likewise.
133433         * m4/strftime.m4: Likewise.
133434         Suggestion from Alain Magloire.
133436         * m4/chown.m4: Use `.$ac_objext', not `.o'.
133437         * m4/fnmatch.m4: Likewise.
133438         * m4/getgroups.m4: Likewise.
133439         * m4/getline.m4: Likewise.
133440         * m4/lstat.m4: Likewise.
133441         * m4/malloc.m4: Likewise.
133442         * m4/memcmp.m4: Likewise.
133443         * m4/putenv.m4: Likewise.
133444         * m4/realloc.m4: Likewise.
133445         * m4/regex.m4: Likewise.
133446         * m4/stat.m4: Likewise.
133447         * m4/strftime.m4: Likewise.
133448         Suggestion from Alain Magloire.
133450         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
133451         an argument.
133453         * m4/regex.m4: Add a run-time Test for proper operation of
133454         re_compile_pattern.
133456 1999-01-31  Jim Meyering  <meyering@ascend.com>
133458         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
133460 1999-01-30  Jim Meyering  <meyering@ascend.com>
133462         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
133464         * m4/jm-mktime.m4: Make this a wrapper around the official
133465         AM_FUNC_MKTIME rather than my private copy, now that the official one
133466         is up to date.
133467         * m4/mktime.m4: Remove file.
133469         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
133470         * m4/uptime.m4: Likewise.
133471         * m4/uintmax_t.m4: Likewise.
133473 1999-01-28  Jim Meyering  <meyering@ascend.com>
133475         * m4/jm-macros.m4: Use jm_AFS.
133476         * m4/afs.m4: New file (from fileutils' configure.in).
133478         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
133479         * m4/chown.m4: Likewise.
133480         * m4/d-ino.m4: Likewise.
133481         * m4/d-type.m4: Likewise.
133482         * m4/fnmatch.m4: Likewise.
133483         * m4/getgroups.m4: Likewise.
133484         * m4/gettext.m4: Likewise.
133485         * m4/jm-mktime.m4: Likewise.
133486         * m4/jm-winsz2.m4: Likewise.
133487         * m4/lcmessage.m4: Likewise.
133488         * m4/ls-mntd-fs.m4: Likewise.
133489         * m4/malloc.m4: Likewise.
133490         * m4/memcmp.m4: Likewise.
133491         * m4/putenv.m4: Likewise.
133492         * m4/realloc.m4: Likewise.
133493         * m4/st_mtim.m4: Likewise.
133494         * m4/strftime.m4: Likewise.
133496 1999-01-16  Jim Meyering  <meyering@ascend.com>
133498         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
133499         (ARGMATCH_DIE_DECL): Define.
133501 1999-01-12  Jim Meyering  <meyering@ascend.com>
133503         * m4/Makefile.am.in: Rewrite to avoid using fmt.
133504         Reported by Lars Hecking.
133506 1999-01-10  Jim Meyering  <meyering@ascend.com>
133508         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
133509         gross kludge.
133510         * m4/inttypes_h.m4: Likewise.
133511         * m4/lstat.m4: Likewise.
133512         * m4/malloc.m4: Likewise.
133513         * m4/readdir.m4: Likewise.
133514         * m4/realloc.m4: Likewise.
133515         * m4/st_dm_mode.m4: Likewise.
133516         * m4/stat.m4: Likewise.
133517         * m4/utimbuf.m4: Likewise.
133518         * m4/utimes.m4: Likewise.
133520         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
133521         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
133522         comments in config.h.in are meaningful.
133524         * m4/jm-macros.m4: Require autoconf-2.13 here.
133526         * m4/regex.m4: By default, don't use the included regex.c on systems
133527         with glibc 2.  Suggestion from Uli Drepper.
133529 1999-01-02  Jim Meyering  <meyering@ascend.com>
133531         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
133533 1998-12-18  Jim Meyering  <meyering@ascend.com>
133535         * m4/Makefile.am.in (Makefile.am): Simplify rule.
133536         Based on a suggestion from Lars Hecking.
133538 1998-11-16  Paul Eggert  <eggert@twinsun.com>
133540         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
133542 1998-11-16  Jim Meyering  <meyering@ascend.com>
133544         * m4/lfs.m4: Double-quote the `uname...` expression.
133546 1998-11-14  Jim Meyering  <meyering@ascend.com>
133548         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
133549         * m4/stat.m4: Likewise.
133551 1998-11-03  Jim Meyering  <meyering@ascend.com>
133553         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
133554         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
133556 1998-10-18  Jim Meyering  <meyering@ascend.com>
133558         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
133560 1998-10-17  Jim Meyering  <meyering@ascend.com>
133562         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
133563         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
133564         calls for those previously hard-coded headers.  Instead, take a new
133565         parameter.
133566         (jm_CHECK_DECLARATIONS): Reflect interface change.
133567         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
133568         (jm_CHECK_DECL_LOCALTIME_R): New macro.
133570         * m4/mktime.m4: Test for spring-forward gap before long-running test.
133572 1998-10-14  Jim Meyering  <meyering@ascend.com>
133574         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
133575         instead of "TZ=America/Vancouver".  From Paul Eggert.
133577 1998-10-11  Jim Meyering  <meyering@ascend.com>
133579         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
133580         This adds a test for a recently added compatibility fix for mktime.c.
133581         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
133583 1998-09-27  Jim Meyering  <meyering@ascend.com>
133585         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
133587         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
133588         ../configure.in, including a change from Gordon Matzigkeit to allow
133589         cross-compiling for the Hurd.
133591         * m4/glibc.m4: New file/macro to test for the GNU C Library
133592         versions 1 and 2.  From Gordon Matzigkeit.
133593         Indent.
133595 1998-09-21  Jim Meyering  <meyering@ascend.com>
133597         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
133599 1998-08-18  Paul Eggert  <eggert@twinsun.com>
133601         Port nanosecond-resolution times to UnixWare 2.1.2 and
133602         pedantic Solaris 2.6.
133604         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
133605         AC_STRUCT_ST_MTIM.
133606         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
133607         Generate name of ns member, instead of just 1 or undef.
133608         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
133610 1998-08-15  Jim Meyering  <meyering@ascend.com>
133612         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
133613         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
133614         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
133615         instead of jm_TYPE_SSIZE_T.
133617 1998-08-12  Jim Meyering  <meyering@ascend.com>
133619         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
133621 1998-08-02  Jim Meyering  <meyering@ascend.com>
133623         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
133624         in acconfig.h manually.
133626 1998-07-31  Paul Eggert  <eggert@twinsun.com>
133628         * m4/st_mtim.m4: New file.
133630 1998-07-28  Jim Meyering  <meyering@ascend.com>
133632         * m4/utimes.m4: Undef stat.
133634 1998-07-25  Jim Meyering  <meyering@ascend.com>
133636         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
133637         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
133639 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
133641         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
133642         uid and gid actually remain unchanged.
133644 1998-07-07  Jim Meyering  <meyering@ascend.com>
133646         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
133648 1998-07-04  Jim Meyering  <meyering@ascend.com>
133650         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
133651         to prove that this macro can be used in packages without regex.c.
133653 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
133655         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
133656         is to be used.
133658 1998-07-03  Jim Meyering  <meyering@ascend.com>
133660         * m4/gettext.m4: Add -lintl if it's found to be necessary.
133662         * m4/gettext.m4: New file -- from gettext-0.10.35.
133663         * m4/lcmessage.m4: Likewise.
133664         * m4/progtest.m4: Likewise.
133666         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
133667         * m4/jm-macros.m4: Require the new macro.
133669 1998-06-29  Jim Meyering  <meyering@ascend.com>
133671         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
133672         for the definition of NGROUPS (used in a system header included
133673         by sys/mount.h).
133675 1998-06-28  Jim Meyering  <meyering@ascend.com>
133677         * m4/ls-mntd-fs.m4: New file.
133678         * m4/fstypename.m4: New file.
133680         * m4/jm-macros.m4: Require the new macro.
133681         * m4/jm-glibc-io.m4: New file.
133683 1998-05-19  Jim Meyering  <meyering@ascend.com>
133685         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
133686         * m4/lchown.m4: New file.
133688         * m4/Makefile.am.in: New file.
133689         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
133691 1998-05-14  Jim Meyering  <meyering@ascend.com>
133693         * m4/Makefile.am (EXTRA_DIST): Add them.
133694         * m4/jm-macros.m4: New file.
133695         * m4/utimbuf.m4: New file.
133697 1998-05-12  Jim Meyering  <meyering@ascend.com>
133699         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
133701 1998-05-11  Jim Meyering  <meyering@ascend.com>
133703         * m4/isc-posix.m4: New file.
133705 1998-05-10  Jim Meyering  <meyering@ascend.com>
133707         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
133709 1998-05-09  Jim Meyering  <meyering@ascend.com>
133711         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
133712         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
133713         with automake.
133715         * m4/ssize_t.m4: New file.
133716         * m4/mktime.m4: Remove file -- the new automake has this now.
133718 1998-04-26  Jim Meyering  <meyering@ascend.com>
133720         * m4/assert.m4: New file.
133721         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
133723 1998-04-05  Jim Meyering  <meyering@ascend.com>
133725         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
133726         (jm_PREREQ): Use it here.
133728 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
133730         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
133731         in acconfig.h.
133733 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
133735         * m4/prereq.m4: New file.
133736         * m4/error.m4: New file.
133737         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
133739 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
133741         * m4/getline.m4: Don't set am_cv_func_working_getline before the
133742         cache-check for the same variable -- that defeated the purpose of
133743         the test; the test program was never run.  This was a problem only
133744         on systems with losing getline functions -- HP-UX 10.20 is one.
133745         Reported by Bjorn Helgaas.
133747 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
133749         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
133751 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
133753         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
133755         * m4/const.m4: New file.  Use an initializer in this declaration
133756         typedef int charset[2]; const charset x;
133757         Reported by Bob Glickstein.
133759 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
133761         * m4/chown.m4: Fix reversed types on -1 args to chown.
133762         From Kaveh Ghazi.
133764 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
133766         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
133767         Add lseek and memchr.
133769         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
133770         T.E.Dickey <dickey@clark.net> said that some older preprocessors
133771         have a 20-character limit on names.
133773 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
133775         * m4/inttypes_h.m4: New file.
133776         * m4/uintmax_t.m4: New file.
133777         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
133780         -----
133782         Local Variables:
133783         coding: utf-8
133784         End:
133786         Copyright (C) 1997-2020 Free Software Foundation, Inc.
133788         Copying and distribution of this file, with or without
133789         modification, are permitted provided the copyright notice
133790         and this notice are preserved.